ZAP by Checkmarx Scanning Report

Generated with ZAP on Fri 18 Jul 2025, at 19:18:34

ZAP Version: 2.16.0

ZAP by Checkmarx

Contents

About this report

Report parameters

Contexts

No contexts were selected, so all contexts were included by default.

Sites

The following sites were included:

  • https://localhost:8085
  • https://localhost:4201
  • https://update.googleapis.com

(If no sites were selected, all sites were included by default.)

An included site must also be within one of the included contexts for its data to be included in the report.

Risk levels

Included: High, Medium, Low, Informational

Excluded: None

Confidence levels

Included: User Confirmed, High, Medium, Low

Excluded: User Confirmed, High, Medium, Low, False Positive

Summaries

Alert counts by risk and confidence

This table shows the number of alerts for each level of risk and confidence included in the report.

(The percentages in brackets represent the count as a percentage of the total number of alerts included in the report, rounded to one decimal place.)

Confidence
User Confirmed High Medium Low Total
Risk High 0
(0.0%)
0
(0.0%)
0
(0.0%)
0
(0.0%)
0
(0.0%)
Medium 0
(0.0%)
2
(18.2%)
3
(27.3%)
0
(0.0%)
5
(45.5%)
Low 0
(0.0%)
1
(9.1%)
2
(18.2%)
0
(0.0%)
3
(27.3%)
Informational 0
(0.0%)
0
(0.0%)
1
(9.1%)
2
(18.2%)
3
(27.3%)
Total 0
(0.0%)
3
(27.3%)
6
(54.5%)
2
(18.2%)
11
(100%)

Alert counts by site and risk

This table shows, for each site for which one or more alerts were raised, the number of alerts raised at each risk level.

Alerts with a confidence level of "False Positive" have been excluded from these counts.

(The numbers in brackets are the number of alerts raised for the site at or above that risk level.)

Risk
High
(= High)
Medium
(>= Medium)
Low
(>= Low)
Informational
(>= Informational)
Site https://localhost:4201 0
(0)
5
(5)
2
(7)
3
(10)
https://update.googleapis.com 0
(0)
0
(0)
1
(1)
0
(1)

Alert counts by alert type

This table shows the number of alerts of each alert type, together with the alert type's risk level.

(The percentages in brackets represent each count as a percentage, rounded to one decimal place, of the total number of alerts included in this report.)

Alert type Risk Count
CSP: Wildcard Directive Medium 2
(18.2%)
Content Security Policy (CSP) Header Not Set Medium 2
(18.2%)
Cross-Domain Misconfiguration Medium 12
(109.1%)
Directory Browsing Medium 1
(9.1%)
Missing Anti-clickjacking Header Medium 2
(18.2%)
Server Leaks Information via "X-Powered-By" HTTP Response Header Field(s) Low 12
(109.1%)
Strict-Transport-Security Header Not Set Low 13
(118.2%)
X-Content-Type-Options Header Missing Low 10
(90.9%)
Information Disclosure - Suspicious Comments Informational 44
(400.0%)
Modern Web Application Informational 2
(18.2%)
Re-examine Cache-control Directives Informational 2
(18.2%)
Total 11

Alerts

  1. Risk=Medium, Confidence=High (2)

    1. https://localhost:4201 (2)

      1. CSP: Wildcard Directive (1)
        1. GET https://localhost:4201/sitemap.xml
          Alert tags
          Alert description

          Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks. Including (but not limited to) Cross Site Scripting (XSS), and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.

          Other info

          The following directives either allow wildcard sources (or ancestors), are not defined, or are overly broadly defined:

          frame-ancestors, form-action

          The directive(s): frame-ancestors, form-action are among the directives that do not fallback to default-src, missing/excluding them is the same as allowing anything.

          Request
          Request line and header section (241 bytes)
          GET https://localhost:4201/sitemap.xml HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (304 bytes)
          HTTP/1.1 404 Not Found
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Security-Policy: default-src 'none'
          X-Content-Type-Options: nosniff
          Content-Type: text/html; charset=utf-8
          Content-Length: 150
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (150 bytes)
          <!DOCTYPE html>
          <html lang="en">
          <head>
          <meta charset="utf-8">
          <title>Error</title>
          </head>
          <body>
          <pre>Cannot GET /sitemap.xml</pre>
          </body>
          </html>
          
          Parameter
          Content-Security-Policy
          Evidence
          default-src 'none'
          Solution

          Ensure that your web server, application server, load balancer, etc. is properly configured to set the Content-Security-Policy header.

      2. Content Security Policy (CSP) Header Not Set (1)
        1. GET https://localhost:4201
          Alert tags
          Alert description

          Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.

          Request
          Request line and header section (229 bytes)
          GET https://localhost:4201 HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (284 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: text/html; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 861
          ETag: W/"35d-FQAip+PMWoUCdLT6I/1rM9bv8Kg"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (861 bytes)
          <!doctype html>
          <html lang="en">
          <head>
            <meta charset="utf-8">
            <title>PSP</title>
            <base href="/">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="icon" type="image/x-icon" href="favicon.ico">
            <link rel="preconnect" href="https://fonts.gstatic.com">
            <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
            <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
          <link rel="stylesheet" href="styles.css"></head>
          <body class="mat-typography">
            <app-root></app-root>
          <script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" defer></script><script src="vendor.js" type="module"></script><script src="main.js" type="module"></script></body>
          </html>
          
          Solution

          Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header.

  2. Risk=Medium, Confidence=Medium (3)

    1. https://localhost:4201 (3)

      1. Cross-Domain Misconfiguration (1)
        1. GET https://localhost:4201/sitemap.xml
          Alert tags
          Alert description

          Web browser data loading may be possible, due to a Cross Origin Resource Sharing (CORS) misconfiguration on the web server.

          Other info

          The CORS misconfiguration on the web server permits cross-domain read requests from arbitrary third party domains, using unauthenticated APIs on this domain. Web browser implementations do not permit arbitrary third parties to read the response from authenticated APIs, however. This reduces the risk somewhat. This misconfiguration could be used by an attacker to access data that is available in an unauthenticated manner, but which uses some other form of security, such as IP address white-listing.

          Request
          Request line and header section (241 bytes)
          GET https://localhost:4201/sitemap.xml HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (304 bytes)
          HTTP/1.1 404 Not Found
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Security-Policy: default-src 'none'
          X-Content-Type-Options: nosniff
          Content-Type: text/html; charset=utf-8
          Content-Length: 150
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (150 bytes)
          <!DOCTYPE html>
          <html lang="en">
          <head>
          <meta charset="utf-8">
          <title>Error</title>
          </head>
          <body>
          <pre>Cannot GET /sitemap.xml</pre>
          </body>
          </html>
          
          Evidence
          Access-Control-Allow-Origin: *
          Solution

          Ensure that sensitive data is not available in an unauthenticated manner (using IP address white-listing, for instance).

          Configure the "Access-Control-Allow-Origin" HTTP header to a more restrictive set of domains, or remove all CORS headers entirely, to allow the web browser to enforce the Same Origin Policy (SOP) in a more restrictive manner.

      2. Directory Browsing (1)
        1. GET https://localhost:4201/vendor.js/
          Alert tags
          Alert description

          It is possible to view the directory listing. Directory listing may reveal hidden scripts, include files, backup source files, etc. which can be accessed to read sensitive information.

          Request
          Request line and header section (273 bytes)
          GET https://localhost:4201/vendor.js/ HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          referer: https://localhost:4201
          
          
          Request body (0 bytes)
          Response
          Status line and header section (304 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: application/javascript; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 4218927
          ETag: W/"40602f-OhK1sYWPKxNbCsaQYO8NW0opv1g"
          Date: Fri, 18 Jul 2025 17:17:27 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (4218927 bytes)
          (self["webpackChunksep_front"] = self["webpackChunksep_front"] || []).push([["vendor"],{
          
          /***/ 6972:
          /*!***************************************************!*\
            !*** ./node_modules/ansi-html-community/index.js ***!
            \***************************************************/
          /***/ ((module) => {
          
          "use strict";
          
          
          module.exports = ansiHTML;
          
          // Reference to https://github.com/sindresorhus/ansi-regex
          var _regANSI = /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/;
          var _defColors = {
            reset: ['fff', '000'],
            // [FOREGROUD_COLOR, BACKGROUND_COLOR]
            black: '000',
            red: 'ff0000',
            green: '209805',
            yellow: 'e8bf03',
            blue: '0000ff',
            magenta: 'ff00ff',
            cyan: '00ffee',
            lightgrey: 'f0f0f0',
            darkgrey: '888'
          };
          var _styles = {
            30: 'black',
            31: 'red',
            32: 'green',
            33: 'yellow',
            34: 'blue',
            35: 'magenta',
            36: 'cyan',
            37: 'lightgrey'
          };
          var _openTags = {
            '1': 'font-weight:bold',
            // bold
            '2': 'opacity:0.5',
            // dim
            '3': '<i>',
            // italic
            '4': '<u>',
            // underscore
            '8': 'display:none',
            // hidden
            '9': '<del>' // delete
          };
          
          var _closeTags = {
            '23': '</i>',
            // reset italic
            '24': '</u>',
            // reset underscore
            '29': '</del>' // reset delete
          };
          
          [0, 21, 22, 27, 28, 39, 49].forEach(function (n) {
            _closeTags[n] = '</span>';
          });
          
          /**
           * Converts text with ANSI color codes to HTML markup.
           * @param {String} text
           * @returns {*}
           */
          function ansiHTML(text) {
            // Returns the text if the string has no ANSI escape code.
            if (!_regANSI.test(text)) {
              return text;
            }
          
            // Cache opened sequence.
            var ansiCodes = [];
            // Replace with markup.
            var ret = text.replace(/\033\[(\d+)m/g, function (match, seq) {
              var ot = _openTags[seq];
              if (ot) {
                // If current sequence has been opened, close it.
                if (!!~ansiCodes.indexOf(seq)) {
                  // eslint-disable-line no-extra-boolean-cast
                  ansiCodes.pop();
                  return '</span>';
                }
                // Open tag.
                ansiCodes.push(seq);
                return ot[0] === '<' ? ot : '<span style="' + ot + ';">';
              }
              var ct = _closeTags[seq];
              if (ct) {
                // Pop sequence
                ansiCodes.pop();
                return ct;
              }
              return '';
            });
          
            // Make sure tags are closed.
            var l = ansiCodes.length;
            l > 0 && (ret += Array(l + 1).join('</span>'));
            return ret;
          }
          
          /**
           * Customize colors.
           * @param {Object} colors reference to _defColors
           */
          ansiHTML.setColors = function (colors) {
            if (typeof colors !== 'object') {
              throw new Error('`colors` parameter must be an Object.');
            }
            var _finalColors = {};
            for (var key in _defColors) {
              var hex = colors.hasOwnProperty(key) ? colors[key] : null;
              if (!hex) {
                _finalColors[key] = _defColors[key];
                continue;
              }
              if ('reset' === key) {
                if (typeof hex === 'string') {
                  hex = [hex];
                }
                if (!Array.isArray(hex) || hex.length === 0 || hex.some(function (h) {
                  return typeof h !== 'string';
                })) {
                  throw new Error('The value of `' + key + '` property must be an Array and each item could only be a hex string, e.g.: FF0000');
                }
                var defHexColor = _defColors[key];
                if (!hex[0]) {
                  hex[0] = defHexColor[0];
                }
                if (hex.length === 1 || !hex[1]) {
                  hex = [hex[0]];
                  hex.push(defHexColor[1]);
                }
                hex = hex.slice(0, 2);
              } else if (typeof hex !== 'string') {
                throw new Error('The value of `' + key + '` property must be a hex string, e.g.: FF0000');
              }
              _finalColors[key] = hex;
            }
            _setTags(_finalColors);
          };
          
          /**
           * Reset colors.
           */
          ansiHTML.reset = function () {
            _setTags(_defColors);
          };
          
          /**
           * Expose tags, including open and close.
           * @type {Object}
           */
          ansiHTML.tags = {};
          if (Object.defineProperty) {
            Object.defineProperty(ansiHTML.tags, 'open', {
              get: function () {
                return _openTags;
              }
            });
            Object.defineProperty(ansiHTML.tags, 'close', {
              get: function () {
                return _closeTags;
              }
            });
          } else {
            ansiHTML.tags.open = _openTags;
            ansiHTML.tags.close = _closeTags;
          }
          function _setTags(colors) {
            // reset all
            _openTags['0'] = 'font-weight:normal;opacity:1;color:#' + colors.reset[0] + ';background:#' + colors.reset[1];
            // inverse
            _openTags['7'] = 'color:#' + colors.reset[1] + ';background:#' + colors.reset[0];
            // dark grey
            _openTags['90'] = 'color:#' + colors.darkgrey;
            for (var code in _styles) {
              var color = _styles[code];
              var oriColor = colors[color] || '000';
              _openTags[code] = 'color:#' + oriColor;
              code = parseInt(code);
              _openTags[(code + 10).toString()] = 'background:#' + oriColor;
            }
          }
          ansiHTML.reset();
          
          /***/ }),
          
          /***/ 4339:
          /*!***************************************!*\
            !*** ./node_modules/events/events.js ***!
            \***************************************/
          /***/ ((module) => {
          
          "use strict";
          // Copyright Joyent, Inc. and other Node contributors.
          //
          // Permission is hereby granted, free of charge, to any person obtaining a
          // copy of this software and associated documentation files (the
          // "Software"), to deal in the Software without restriction, including
          // without limitation the rights to use, copy, modify, merge, publish,
          // distribute, sublicense, and/or sell copies of the Software, and to permit
          // persons to whom the Software is furnished to do so, subject to the
          // following conditions:
          //
          // The above copyright notice and this permission notice shall be included
          // in all copies or substantial portions of the Software.
          //
          // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
          // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
          // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
          // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
          // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
          // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
          // USE OR OTHER DEALINGS IN THE SOFTWARE.
          
          
          
          var R = typeof Reflect === 'object' ? Reflect : null;
          var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) {
            return Function.prototype.apply.call(target, receiver, args);
          };
          var ReflectOwnKeys;
          if (R && typeof R.ownKeys === 'function') {
            ReflectOwnKeys = R.ownKeys;
          } else if (Object.getOwnPropertySymbols) {
            ReflectOwnKeys = function ReflectOwnKeys(target) {
              return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
            };
          } else {
            ReflectOwnKeys = function ReflectOwnKeys(target) {
              return Object.getOwnPropertyNames(target);
            };
          }
          function ProcessEmitWarning(warning) {
            if (console && console.warn) console.warn(warning);
          }
          var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
            return value !== value;
          };
          function EventEmitter() {
            EventEmitter.init.call(this);
          }
          module.exports = EventEmitter;
          module.exports.once = once;
          
          // Backwards-compat with node 0.10.x
          EventEmitter.EventEmitter = EventEmitter;
          EventEmitter.prototype._events = undefined;
          EventEmitter.prototype._eventsCount = 0;
          EventEmitter.prototype._maxListeners = undefined;
          
          // By default EventEmitters will print a warning if more than 10 listeners are
          // added to it. This is a useful default which helps finding memory leaks.
          var defaultMaxListeners = 10;
          function checkListener(listener) {
            if (typeof listener !== 'function') {
              throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
            }
          }
          Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
            enumerable: true,
            get: function () {
              return defaultMaxListeners;
            },
            set: function (arg) {
              if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
                throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
              }
              defaultMaxListeners = arg;
            }
          });
          EventEmitter.init = function () {
            if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) {
              this._events = Object.create(null);
              this._eventsCount = 0;
            }
            this._maxListeners = this._maxListeners || undefined;
          };
          
          // Obviously not all Emitters should be limited to 10. This function allows
          // that to be increased. Set to zero for unlimited.
          EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
            if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
              throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
            }
            this._maxListeners = n;
            return this;
          };
          function _getMaxListeners(that) {
            if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners;
            return that._maxListeners;
          }
          EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
            return _getMaxListeners(this);
          };
          EventEmitter.prototype.emit = function emit(type) {
            var args = [];
            for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
            var doError = type === 'error';
            var events = this._events;
            if (events !== undefined) doError = doError && events.error === undefined;else if (!doError) return false;
          
            // If there is no 'error' event listener then throw.
            if (doError) {
              var er;
              if (args.length > 0) er = args[0];
              if (er instanceof Error) {
                // Note: The comments on the `throw` lines are intentional, they show
                // up in Node's output if this results in an unhandled exception.
                throw er; // Unhandled 'error' event
              }
              // At least give some kind of context to the user
              var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
              err.context = er;
              throw err; // Unhandled 'error' event
            }
          
            var handler = events[type];
            if (handler === undefined) return false;
            if (typeof handler === 'function') {
              ReflectApply(handler, this, args);
            } else {
              var len = handler.length;
              var listeners = arrayClone(handler, len);
              for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args);
            }
            return true;
          };
          function _addListener(target, type, listener, prepend) {
            var m;
            var events;
            var existing;
            checkListener(listener);
            events = target._events;
            if (events === undefined) {
              events = target._events = Object.create(null);
              target._eventsCount = 0;
            } else {
              // To avoid recursion in the case that type === "newListener"! Before
              // adding it to the listeners, first emit "newListener".
              if (events.newListener !== undefined) {
                target.emit('newListener', type, listener.listener ? listener.listener : listener);
          
                // Re-assign `events` because a newListener handler could have caused the
                // this._events to be assigned to a new object
                events = target._events;
              }
              existing = events[type];
            }
            if (existing === undefined) {
              // Optimize the case of one listener. Don't need the extra array object.
              existing = events[type] = listener;
              ++target._eventsCount;
            } else {
              if (typeof existing === 'function') {
                // Adding the second element, need to change to array.
                existing = events[type] = prepend ? [listener, existing] : [existing, listener];
                // If we've already got an array, just append.
              } else if (prepend) {
                existing.unshift(listener);
              } else {
                existing.push(listener);
              }
          
              // Check for listener leak
              m = _getMaxListeners(target);
              if (m > 0 && existing.length > m && !existing.warned) {
                existing.warned = true;
                // No error code for this since it is a Warning
                // eslint-disable-next-line no-restricted-syntax
                var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit');
                w.name = 'MaxListenersExceededWarning';
                w.emitter = target;
                w.type = type;
                w.count = existing.length;
                ProcessEmitWarning(w);
              }
            }
            return target;
          }
          EventEmitter.prototype.addListener = function addListener(type, listener) {
            return _addListener(this, type, listener, false);
          };
          EventEmitter.prototype.on = EventEmitter.prototype.addListener;
          EventEmitter.prototype.prependListener = function prependListener(type, listener) {
            return _addListener(this, type, listener, true);
          };
          function onceWrapper() {
            if (!this.fired) {
              this.target.removeListener(this.type, this.wrapFn);
              this.fired = true;
              if (arguments.length === 0) return this.listener.call(this.target);
              return this.listener.apply(this.target, arguments);
            }
          }
          function _onceWrap(target, type, listener) {
            var state = {
              fired: false,
              wrapFn: undefined,
              target: target,
              type: type,
              listener: listener
            };
            var wrapped = onceWrapper.bind(state);
            wrapped.listener = listener;
            state.wrapFn = wrapped;
            return wrapped;
          }
          EventEmitter.prototype.once = function once(type, listener) {
            checkListener(listener);
            this.on(type, _onceWrap(this, type, listener));
            return this;
          };
          EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
            checkListener(listener);
            this.prependListener(type, _onceWrap(this, type, listener));
            return this;
          };
          
          // Emits a 'removeListener' event if and only if the listener was removed.
          EventEmitter.prototype.removeListener = function removeListener(type, listener) {
            var list, events, position, i, originalListener;
            checkListener(listener);
            events = this._events;
            if (events === undefined) return this;
            list = events[type];
            if (list === undefined) return this;
            if (list === listener || list.listener === listener) {
              if (--this._eventsCount === 0) this._events = Object.create(null);else {
                delete events[type];
                if (events.removeListener) this.emit('removeListener', type, list.listener || listener);
              }
            } else if (typeof list !== 'function') {
              position = -1;
              for (i = list.length - 1; i >= 0; i--) {
                if (list[i] === listener || list[i].listener === listener) {
                  originalListener = list[i].listener;
                  position = i;
                  break;
                }
              }
              if (position < 0) return this;
              if (position === 0) list.shift();else {
                spliceOne(list, position);
              }
              if (list.length === 1) events[type] = list[0];
              if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener);
            }
            return this;
          };
          EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
          EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
            var listeners, events, i;
            events = this._events;
            if (events === undefined) return this;
          
            // not listening for removeListener, no need to emit
            if (events.removeListener === undefined) {
              if (arguments.length === 0) {
                this._events = Object.create(null);
                this._eventsCount = 0;
              } else if (events[type] !== undefined) {
                if (--this._eventsCount === 0) this._events = Object.create(null);else delete events[type];
              }
              return this;
            }
          
            // emit removeListener for all listeners on all events
            if (arguments.length === 0) {
              var keys = Object.keys(events);
              var key;
              for (i = 0; i < keys.length; ++i) {
                key = keys[i];
                if (key === 'removeListener') continue;
                this.removeAllListeners(key);
              }
              this.removeAllListeners('removeListener');
              this._events = Object.create(null);
              this._eventsCount = 0;
              return this;
            }
            listeners = events[type];
            if (typeof listeners === 'function') {
              this.removeListener(type, listeners);
            } else if (listeners !== undefined) {
              // LIFO order
              for (i = listeners.length - 1; i >= 0; i--) {
                this.removeListener(type, listeners[i]);
              }
            }
            return this;
          };
          function _listeners(target, type, unwrap) {
            var events = target._events;
            if (events === undefined) return [];
            var evlistener = events[type];
            if (evlistener === undefined) return [];
            if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener];
            return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
          }
          EventEmitter.prototype.listeners = function listeners(type) {
            return _listeners(this, type, true);
          };
          EventEmitter.prototype.rawListeners = function rawListeners(type) {
            return _listeners(this, type, false);
          };
          EventEmitter.listenerCount = function (emitter, type) {
            if (typeof emitter.listenerCount === 'function') {
              return emitter.listenerCount(type);
            } else {
              return listenerCount.call(emitter, type);
            }
          };
          EventEmitter.prototype.listenerCount = listenerCount;
          function listenerCount(type) {
            var events = this._events;
            if (events !== undefined) {
              var evlistener = events[type];
              if (typeof evlistener === 'function') {
                return 1;
              } else if (evlistener !== undefined) {
                return evlistener.length;
              }
            }
            return 0;
          }
          EventEmitter.prototype.eventNames = function eventNames() {
            return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
          };
          function arrayClone(arr, n) {
            var copy = new Array(n);
            for (var i = 0; i < n; ++i) copy[i] = arr[i];
            return copy;
          }
          function spliceOne(list, index) {
            for (; index + 1 < list.length; index++) list[index] = list[index + 1];
            list.pop();
          }
          function unwrapListeners(arr) {
            var ret = new Array(arr.length);
            for (var i = 0; i < ret.length; ++i) {
              ret[i] = arr[i].listener || arr[i];
            }
            return ret;
          }
          function once(emitter, name) {
            return new Promise(function (resolve, reject) {
              function errorListener(err) {
                emitter.removeListener(name, resolver);
                reject(err);
              }
              function resolver() {
                if (typeof emitter.removeListener === 'function') {
                  emitter.removeListener('error', errorListener);
                }
                resolve([].slice.call(arguments));
              }
              ;
              eventTargetAgnosticAddListener(emitter, name, resolver, {
                once: true
              });
              if (name !== 'error') {
                addErrorHandlerIfEventEmitter(emitter, errorListener, {
                  once: true
                });
              }
            });
          }
          function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
            if (typeof emitter.on === 'function') {
              eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
            }
          }
          function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
            if (typeof emitter.on === 'function') {
              if (flags.once) {
                emitter.once(name, listener);
              } else {
                emitter.on(name, listener);
              }
            } else if (typeof emitter.addEventListener === 'function') {
              // EventTarget does not have `error` event semantics like Node
              // EventEmitters, we do not listen for `error` events here.
              emitter.addEventListener(name, function wrapListener(arg) {
                // IE does not have builtin `{ once: true }` support so we
                // have to do it manually.
                if (flags.once) {
                  emitter.removeEventListener(name, wrapListener);
                }
                listener(arg);
              });
            } else {
              throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
            }
          }
          
          /***/ }),
          
          /***/ 6924:
          /*!*************************************************!*\
            !*** ./node_modules/html-entities/lib/index.js ***!
            \*************************************************/
          /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
          
          "use strict";
          
          
          var __assign = this && this.__assign || function () {
            __assign = Object.assign || function (t) {
              for (var s, i = 1, n = arguments.length; i < n; i++) {
                s = arguments[i];
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
              }
              return t;
            };
            return __assign.apply(this, arguments);
          };
          Object.defineProperty(exports, "__esModule", ({
            value: true
          }));
          var named_references_1 = __webpack_require__(/*! ./named-references */ 4096);
          var numeric_unicode_map_1 = __webpack_require__(/*! ./numeric-unicode-map */ 7294);
          var surrogate_pairs_1 = __webpack_require__(/*! ./surrogate-pairs */ 422);
          var allNamedReferences = __assign(__assign({}, named_references_1.namedReferences), {
            all: named_references_1.namedReferences.html5
          });
          function replaceUsingRegExp(macroText, macroRegExp, macroReplacer) {
            macroRegExp.lastIndex = 0;
            var replaceMatch = macroRegExp.exec(macroText);
            var replaceResult;
            if (replaceMatch) {
              replaceResult = "";
              var replaceLastIndex = 0;
              do {
                if (replaceLastIndex !== replaceMatch.index) {
                  replaceResult += macroText.substring(replaceLastIndex, replaceMatch.index);
                }
                var replaceInput = replaceMatch[0];
                replaceResult += macroReplacer(replaceInput);
                replaceLastIndex = replaceMatch.index + replaceInput.length;
              } while (replaceMatch = macroRegExp.exec(macroText));
              if (replaceLastIndex !== macroText.length) {
                replaceResult += macroText.substring(replaceLastIndex);
              }
            } else {
              replaceResult = macroText;
            }
            return replaceResult;
          }
          var encodeRegExps = {
            specialChars: /[<>'"&]/g,
            nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,
            nonAsciiPrintable: /[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,
            nonAsciiPrintableOnly: /[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,
            extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g
          };
          var defaultEncodeOptions = {
            mode: "specialChars",
            level: "all",
            numeric: "decimal"
          };
          function encode(text, _a) {
            var _b = _a === void 0 ? defaultEncodeOptions : _a,
              _c = _b.mode,
              mode = _c === void 0 ? "specialChars" : _c,
              _d = _b.numeric,
              numeric = _d === void 0 ? "decimal" : _d,
              _e = _b.level,
              level = _e === void 0 ? "all" : _e;
            if (!text) {
              return "";
            }
            var encodeRegExp = encodeRegExps[mode];
            var references = allNamedReferences[level].characters;
            var isHex = numeric === "hexadecimal";
            return replaceUsingRegExp(text, encodeRegExp, function (input) {
              var result = references[input];
              if (!result) {
                var code = input.length > 1 ? surrogate_pairs_1.getCodePoint(input, 0) : input.charCodeAt(0);
                result = (isHex ? "&#x" + code.toString(16) : "&#" + code) + ";";
              }
              return result;
            });
          }
          exports.encode = encode;
          var defaultDecodeOptions = {
            scope: "body",
            level: "all"
          };
          var strict = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g;
          var attribute = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g;
          var baseDecodeRegExps = {
            xml: {
              strict: strict,
              attribute: attribute,
              body: named_references_1.bodyRegExps.xml
            },
            html4: {
              strict: strict,
              attribute: attribute,
              body: named_references_1.bodyRegExps.html4
            },
            html5: {
              strict: strict,
              attribute: attribute,
              body: named_references_1.bodyRegExps.html5
            }
          };
          var decodeRegExps = __assign(__assign({}, baseDecodeRegExps), {
            all: baseDecodeRegExps.html5
          });
          var fromCharCode = String.fromCharCode;
          var outOfBoundsChar = fromCharCode(65533);
          var defaultDecodeEntityOptions = {
            level: "all"
          };
          function getDecodedEntity(entity, references, isAttribute, isStrict) {
            var decodeResult = entity;
            var decodeEntityLastChar = entity[entity.length - 1];
            if (isAttribute && decodeEntityLastChar === "=") {
              decodeResult = entity;
            } else if (isStrict && decodeEntityLastChar !== ";") {
              decodeResult = entity;
            } else {
              var decodeResultByReference = references[entity];
              if (decodeResultByReference) {
                decodeResult = decodeResultByReference;
              } else if (entity[0] === "&" && entity[1] === "#") {
                var decodeSecondChar = entity[2];
                var decodeCode = decodeSecondChar == "x" || decodeSecondChar == "X" ? parseInt(entity.substr(3), 16) : parseInt(entity.substr(2));
                decodeResult = decodeCode >= 1114111 ? outOfBoundsChar : decodeCode > 65535 ? surrogate_pairs_1.fromCodePoint(decodeCode) : fromCharCode(numeric_unicode_map_1.numericUnicodeMap[decodeCode] || decodeCode);
              }
            }
            return decodeResult;
          }
          function decodeEntity(entity, _a) {
            var _b = (_a === void 0 ? defaultDecodeEntityOptions : _a).level,
              level = _b === void 0 ? "all" : _b;
            if (!entity) {
              return "";
            }
            return getDecodedEntity(entity, allNamedReferences[level].entities, false, false);
          }
          exports.decodeEntity = decodeEntity;
          function decode(text, _a) {
            var _b = _a === void 0 ? defaultDecodeOptions : _a,
              _c = _b.level,
              level = _c === void 0 ? "all" : _c,
              _d = _b.scope,
              scope = _d === void 0 ? level === "xml" ? "strict" : "body" : _d;
            if (!text) {
              return "";
            }
            var decodeRegExp = decodeRegExps[level][scope];
            var references = allNamedReferences[level].entities;
            var isAttribute = scope === "attribute";
            var isStrict = scope === "strict";
            return replaceUsingRegExp(text, decodeRegExp, function (entity) {
              return getDecodedEntity(entity, references, isAttribute, isStrict);
            });
          }
          exports.decode = decode;
          
          /***/ }),
          
          /***/ 4096:
          /*!************************************************************!*\
            !*** ./node_modules/html-entities/lib/named-references.js ***!
            \************************************************************/
          /***/ ((__unused_webpack_module, exports) => {
          
          "use strict";
          
          
          Object.defineProperty(exports, "__esModule", ({
            value: true
          }));
          exports.bodyRegExps = {
            xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
            html4: /&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
            html5: /&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g
          };
          exports.namedReferences = {
            xml: {
              entities: {
                "&lt;": "<",
                "&gt;": ">",
                "&quot;": '"',
                "&apos;": "'",
                "&amp;": "&"
              },
              characters: {
                "<": "&lt;",
                ">": "&gt;",
                '"': "&quot;",
                "'": "&apos;",
                "&": "&amp;"
              }
            },
            html4: {
              entities: {
                "&apos;": "'",
                "&nbsp": " ",
                "&nbsp;": " ",
                "&iexcl": "¡",
                "&iexcl;": "¡",
                "&cent": "¢",
                "&cent;": "¢",
                "&pound": "£",
                "&pound;": "£",
                "&curren": "¤",
                "&curren;": "¤",
                "&yen": "¥",
                "&yen;": "¥",
                "&brvbar": "¦",
                "&brvbar;": "¦",
                "&sect": "§",
                "&sect;": "§",
                "&uml": "¨",
                "&uml;": "¨",
                "&copy": "©",
                "&copy;": "©",
                "&ordf": "ª",
                "&ordf;": "ª",
                "&laquo": "«",
                "&laquo;": "«",
                "&not": "¬",
                "&not;": "¬",
                "&shy": "­",
                "&shy;": "­",
                "&reg": "®",
                "&reg;": "®",
                "&macr": "¯",
                "&macr;": "¯",
                "&deg": "°",
                "&deg;": "°",
                "&plusmn": "±",
                "&plusmn;": "±",
                "&sup2": "²",
                "&sup2;": "²",
                "&sup3": "³",
                "&sup3;": "³",
                "&acute": "´",
                "&acute;": "´",
                "&micro": "µ",
                "&micro;": "µ",
                "&para": "¶",
                "&para;": "¶",
                "&middot": "·",
                "&middot;": "·",
                "&cedil": "¸",
                "&cedil;": "¸",
                "&sup1": "¹",
                "&sup1;": "¹",
                "&ordm": "º",
                "&ordm;": "º",
                "&raquo": "»",
                "&raquo;": "»",
                "&frac14": "¼",
                "&frac14;": "¼",
                "&frac12": "½",
                "&frac12;": "½",
                "&frac34": "¾",
                "&frac34;": "¾",
                "&iquest": "¿",
                "&iquest;": "¿",
                "&Agrave": "À",
                "&Agrave;": "À",
                "&Aacute": "Á",
                "&Aacute;": "Á",
                "&Acirc": "Â",
                "&Acirc;": "Â",
                "&Atilde": "Ã",
                "&Atilde;": "Ã",
                "&Auml": "Ä",
                "&Auml;": "Ä",
                "&Aring": "Å",
                "&Aring;": "Å",
                "&AElig": "Æ",
                "&AElig;": "Æ",
                "&Ccedil": "Ç",
                "&Ccedil;": "Ç",
                "&Egrave": "È",
                "&Egrave;": "È",
                "&Eacute": "É",
                "&Eacute;": "É",
                "&Ecirc": "Ê",
                "&Ecirc;": "Ê",
                "&Euml": "Ë",
                "&Euml;": "Ë",
                "&Igrave": "Ì",
                "&Igrave;": "Ì",
                "&Iacute": "Í",
                "&Iacute;": "Í",
                "&Icirc": "Î",
                "&Icirc;": "Î",
                "&Iuml": "Ï",
                "&Iuml;": "Ï",
                "&ETH": "Ð",
                "&ETH;": "Ð",
                "&Ntilde": "Ñ",
                "&Ntilde;": "Ñ",
                "&Ograve": "Ò",
                "&Ograve;": "Ò",
                "&Oacute": "Ó",
                "&Oacute;": "Ó",
                "&Ocirc": "Ô",
                "&Ocirc;": "Ô",
                "&Otilde": "Õ",
                "&Otilde;": "Õ",
                "&Ouml": "Ö",
                "&Ouml;": "Ö",
                "&times": "×",
                "&times;": "×",
                "&Oslash": "Ø",
                "&Oslash;": "Ø",
                "&Ugrave": "Ù",
                "&Ugrave;": "Ù",
                "&Uacute": "Ú",
                "&Uacute;": "Ú",
                "&Ucirc": "Û",
                "&Ucirc;": "Û",
                "&Uuml": "Ü",
                "&Uuml;": "Ü",
                "&Yacute": "Ý",
                "&Yacute;": "Ý",
                "&THORN": "Þ",
                "&THORN;": "Þ",
                "&szlig": "ß",
                "&szlig;": "ß",
                "&agrave": "à",
                "&agrave;": "à",
                "&aacute": "á",
                "&aacute;": "á",
                "&acirc": "â",
                "&acirc;": "â",
                "&atilde": "ã",
                "&atilde;": "ã",
                "&auml": "ä",
                "&auml;": "ä",
                "&aring": "å",
                "&aring;": "å",
                "&aelig": "æ",
                "&aelig;": "æ",
                "&ccedil": "ç",
                "&ccedil;": "ç",
                "&egrave": "è",
                "&egrave;": "è",
                "&eacute": "é",
                "&eacute;": "é",
                "&ecirc": "ê",
                "&ecirc;": "ê",
                "&euml": "ë",
                "&euml;": "ë",
                "&igrave": "ì",
                "&igrave;": "ì",
                "&iacute": "í",
                "&iacute;": "í",
                "&icirc": "î",
                "&icirc;": "î",
                "&iuml": "ï",
                "&iuml;": "ï",
                "&eth": "ð",
                "&eth;": "ð",
                "&ntilde": "ñ",
                "&ntilde;": "ñ",
                "&ograve": "ò",
                "&ograve;": "ò",
                "&oacute": "ó",
                "&oacute;": "ó",
                "&ocirc": "ô",
                "&ocirc;": "ô",
                "&otilde": "õ",
                "&otilde;": "õ",
                "&ouml": "ö",
                "&ouml;": "ö",
                "&divide": "÷",
                "&divide;": "÷",
                "&oslash": "ø",
                "&oslash;": "ø",
                "&ugrave": "ù",
                "&ugrave;": "ù",
                "&uacute": "ú",
                "&uacute;": "ú",
                "&ucirc": "û",
                "&ucirc;": "û",
                "&uuml": "ü",
                "&uuml;": "ü",
                "&yacute": "ý",
                "&yacute;": "ý",
                "&thorn": "þ",
                "&thorn;": "þ",
                "&yuml": "ÿ",
                "&yuml;": "ÿ",
                "&quot": '"',
                "&quot;": '"',
                "&amp": "&",
                "&amp;": "&",
                "&lt": "<",
                "&lt;": "<",
                "&gt": ">",
                "&gt;": ">",
                "&OElig;": "Œ",
                "&oelig;": "œ",
                "&Scaron;": "Š",
                "&scaron;": "š",
                "&Yuml;": "Ÿ",
                "&circ;": "ˆ",
                "&tilde;": "˜",
                "&ensp;": " ",
                "&emsp;": " ",
                "&thinsp;": " ",
                "&zwnj;": "‌",
                "&zwj;": "‍",
                "&lrm;": "‎",
                "&rlm;": "‏",
                "&ndash;": "–",
                "&mdash;": "—",
                "&lsquo;": "‘",
                "&rsquo;": "’",
                "&sbquo;": "‚",
                "&ldquo;": "“",
                "&rdquo;": "”",
                "&bdquo;": "„",
                "&dagger;": "†",
                "&Dagger;": "‡",
                "&permil;": "‰",
                "&lsaquo;": "‹",
                "&rsaquo;": "›",
                "&euro;": "€",
                "&fnof;": "ƒ",
                "&Alpha;": "Α",
                "&Beta;": "Β",
                "&Gamma;": "Γ",
                "&Delta;": "Δ",
                "&Epsilon;": "Ε",
                "&Zeta;": "Ζ",
                "&Eta;": "Η",
                "&Theta;": "Θ",
                "&Iota;": "Ι",
                "&Kappa;": "Κ",
                "&Lambda;": "Λ",
                "&Mu;": "Μ",
                "&Nu;": "Ν",
                "&Xi;": "Ξ",
                "&Omicron;": "Ο",
                "&Pi;": "Π",
                "&Rho;": "Ρ",
                "&Sigma;": "Σ",
                "&Tau;": "Τ",
                "&Upsilon;": "Υ",
                "&Phi;": "Φ",
                "&Chi;": "Χ",
                "&Psi;": "Ψ",
                "&Omega;": "Ω",
                "&alpha;": "α",
                "&beta;": "β",
                "&gamma;": "γ",
                "&delta;": "δ",
                "&epsilon;": "ε",
                "&zeta;": "ζ",
                "&eta;": "η",
                "&theta;": "θ",
                "&iota;": "ι",
                "&kappa;": "κ",
                "&lambda;": "λ",
                "&mu;": "μ",
                "&nu;": "ν",
                "&xi;": "ξ",
                "&omicron;": "ο",
                "&pi;": "π",
                "&rho;": "ρ",
                "&sigmaf;": "ς",
                "&sigma;": "σ",
                "&tau;": "τ",
                "&upsilon;": "υ",
                "&phi;": "φ",
                "&chi;": "χ",
                "&psi;": "ψ",
                "&omega;": "ω",
                "&thetasym;": "ϑ",
                "&upsih;": "ϒ",
                "&piv;": "ϖ",
                "&bull;": "•",
                "&hellip;": "…",
                "&prime;": "′",
                "&Prime;": "″",
                "&oline;": "‾",
                "&frasl;": "⁄",
                "&weierp;": "℘",
                "&image;": "ℑ",
                "&real;": "ℜ",
                "&trade;": "™",
                "&alefsym;": "ℵ",
                "&larr;": "←",
                "&uarr;": "↑",
                "&rarr;": "→",
                "&darr;": "↓",
                "&harr;": "↔",
                "&crarr;": "↵",
                "&lArr;": "⇐",
                "&uArr;": "⇑",
                "&rArr;": "⇒",
                "&dArr;": "⇓",
                "&hArr;": "⇔",
                "&forall;": "∀",
                "&part;": "∂",
                "&exist;": "∃",
                "&empty;": "∅",
                "&nabla;": "∇",
                "&isin;": "∈",
                "&notin;": "∉",
                "&ni;": "∋",
                "&prod;": "∏",
                "&sum;": "∑",
                "&minus;": "−",
                "&lowast;": "∗",
                "&radic;": "√",
                "&prop;": "∝",
                "&infin;": "∞",
                "&ang;": "∠",
                "&and;": "∧",
                "&or;": "∨",
                "&cap;": "∩",
                "&cup;": "∪",
                "&int;": "∫",
                "&there4;": "∴",
                "&sim;": "∼",
                "&cong;": "≅",
                "&asymp;": "≈",
                "&ne;": "≠",
                "&equiv;": "≡",
                "&le;": "≤",
                "&ge;": "≥",
                "&sub;": "⊂",
                "&sup;": "⊃",
                "&nsub;": "⊄",
                "&sube;": "⊆",
                "&supe;": "⊇",
                "&oplus;": "⊕",
                "&otimes;": "⊗",
                "&perp;": "⊥",
                "&sdot;": "⋅",
                "&lceil;": "⌈",
                "&rceil;": "⌉",
                "&lfloor;": "⌊",
                "&rfloor;": "⌋",
                "&lang;": "〈",
                "&rang;": "〉",
                "&loz;": "◊",
                "&spades;": "♠",
                "&clubs;": "♣",
                "&hearts;": "♥",
                "&diams;": "♦"
              },
              characters: {
                "'": "&apos;",
                " ": "&nbsp;",
                "¡": "&iexcl;",
                "¢": "&cent;",
                "£": "&pound;",
                "¤": "&curren;",
                "¥": "&yen;",
                "¦": "&brvbar;",
                "§": "&sect;",
                "¨": "&uml;",
                "©": "&copy;",
                "ª": "&ordf;",
                "«": "&laquo;",
                "¬": "&not;",
                "­": "&shy;",
                "®": "&reg;",
                "¯": "&macr;",
                "°": "&deg;",
                "±": "&plusmn;",
                "²": "&sup2;",
                "³": "&sup3;",
                "´": "&acute;",
                "µ": "&micro;",
                "¶": "&para;",
                "·": "&middot;",
                "¸": "&cedil;",
                "¹": "&sup1;",
                "º": "&ordm;",
                "»": "&raquo;",
                "¼": "&frac14;",
                "½": "&frac12;",
                "¾": "&frac34;",
                "¿": "&iquest;",
                "À": "&Agrave;",
                "Á": "&Aacute;",
                "Â": "&Acirc;",
                "Ã": "&Atilde;",
                "Ä": "&Auml;",
                "Å": "&Aring;",
                "Æ": "&AElig;",
                "Ç": "&Ccedil;",
                "È": "&Egrave;",
                "É": "&Eacute;",
                "Ê": "&Ecirc;",
                "Ë": "&Euml;",
                "Ì": "&Igrave;",
                "Í": "&Iacute;",
                "Î": "&Icirc;",
                "Ï": "&Iuml;",
                "Ð": "&ETH;",
                "Ñ": "&Ntilde;",
                "Ò": "&Ograve;",
                "Ó": "&Oacute;",
                "Ô": "&Ocirc;",
                "Õ": "&Otilde;",
                "Ö": "&Ouml;",
                "×": "&times;",
                "Ø": "&Oslash;",
                "Ù": "&Ugrave;",
                "Ú": "&Uacute;",
                "Û": "&Ucirc;",
                "Ü": "&Uuml;",
                "Ý": "&Yacute;",
                "Þ": "&THORN;",
                "ß": "&szlig;",
                "à": "&agrave;",
                "á": "&aacute;",
                "â": "&acirc;",
                "ã": "&atilde;",
                "ä": "&auml;",
                "å": "&aring;",
                "æ": "&aelig;",
                "ç": "&ccedil;",
                "è": "&egrave;",
                "é": "&eacute;",
                "ê": "&ecirc;",
                "ë": "&euml;",
                "ì": "&igrave;",
                "í": "&iacute;",
                "î": "&icirc;",
                "ï": "&iuml;",
                "ð": "&eth;",
                "ñ": "&ntilde;",
                "ò": "&ograve;",
                "ó": "&oacute;",
                "ô": "&ocirc;",
                "õ": "&otilde;",
                "ö": "&ouml;",
                "÷": "&divide;",
                "ø": "&oslash;",
                "ù": "&ugrave;",
                "ú": "&uacute;",
                "û": "&ucirc;",
                "ü": "&uuml;",
                "ý": "&yacute;",
                "þ": "&thorn;",
                "ÿ": "&yuml;",
                '"': "&quot;",
                "&": "&amp;",
                "<": "&lt;",
                ">": "&gt;",
                "Œ": "&OElig;",
                "œ": "&oelig;",
                "Š": "&Scaron;",
                "š": "&scaron;",
                "Ÿ": "&Yuml;",
                "ˆ": "&circ;",
                "˜": "&tilde;",
                " ": "&ensp;",
                " ": "&emsp;",
                " ": "&thinsp;",
                "‌": "&zwnj;",
                "‍": "&zwj;",
                "‎": "&lrm;",
                "‏": "&rlm;",
                "–": "&ndash;",
                "—": "&mdash;",
                "‘": "&lsquo;",
                "’": "&rsquo;",
                "‚": "&sbquo;",
                "“": "&ldquo;",
                "”": "&rdquo;",
                "„": "&bdquo;",
                "†": "&dagger;",
                "‡": "&Dagger;",
                "‰": "&permil;",
                "‹": "&lsaquo;",
                "›": "&rsaquo;",
                "€": "&euro;",
                "ƒ": "&fnof;",
                "Α": "&Alpha;",
                "Β": "&Beta;",
                "Γ": "&Gamma;",
                "Δ": "&Delta;",
                "Ε": "&Epsilon;",
                "Ζ": "&Zeta;",
                "Η": "&Eta;",
                "Θ": "&Theta;",
                "Ι": "&Iota;",
                "Κ": "&Kappa;",
                "Λ": "&Lambda;",
                "Μ": "&Mu;",
                "Ν": "&Nu;",
                "Ξ": "&Xi;",
                "Ο": "&Omicron;",
                "Π": "&Pi;",
                "Ρ": "&Rho;",
                "Σ": "&Sigma;",
                "Τ": "&Tau;",
                "Υ": "&Upsilon;",
                "Φ": "&Phi;",
                "Χ": "&Chi;",
                "Ψ": "&Psi;",
                "Ω": "&Omega;",
                "α": "&alpha;",
                "β": "&beta;",
                "γ": "&gamma;",
                "δ": "&delta;",
                "ε": "&epsilon;",
                "ζ": "&zeta;",
                "η": "&eta;",
                "θ": "&theta;",
                "ι": "&iota;",
                "κ": "&kappa;",
                "λ": "&lambda;",
                "μ": "&mu;",
                "ν": "&nu;",
                "ξ": "&xi;",
                "ο": "&omicron;",
                "π": "&pi;",
                "ρ": "&rho;",
                "ς": "&sigmaf;",
                "σ": "&sigma;",
                "τ": "&tau;",
                "υ": "&upsilon;",
                "φ": "&phi;",
                "χ": "&chi;",
                "ψ": "&psi;",
                "ω": "&omega;",
                "ϑ": "&thetasym;",
                "ϒ": "&upsih;",
                "ϖ": "&piv;",
                "•": "&bull;",
                "…": "&hellip;",
                "′": "&prime;",
                "″": "&Prime;",
                "‾": "&oline;",
                "⁄": "&frasl;",
                "℘": "&weierp;",
                "ℑ": "&image;",
                "ℜ": "&real;",
                "™": "&trade;",
                "ℵ": "&alefsym;",
                "←": "&larr;",
                "↑": "&uarr;",
                "→": "&rarr;",
                "↓": "&darr;",
                "↔": "&harr;",
                "↵": "&crarr;",
                "⇐": "&lArr;",
                "⇑": "&uArr;",
                "⇒": "&rArr;",
                "⇓": "&dArr;",
                "⇔": "&hArr;",
                "∀": "&forall;",
                "∂": "&part;",
                "∃": "&exist;",
                "∅": "&empty;",
                "∇": "&nabla;",
                "∈": "&isin;",
                "∉": "&notin;",
                "∋": "&ni;",
                "∏": "&prod;",
                "∑": "&sum;",
                "−": "&minus;",
                "∗": "&lowast;",
                "√": "&radic;",
                "∝": "&prop;",
                "∞": "&infin;",
                "∠": "&ang;",
                "∧": "&and;",
                "∨": "&or;",
                "∩": "&cap;",
                "∪": "&cup;",
                "∫": "&int;",
                "∴": "&there4;",
                "∼": "&sim;",
                "≅": "&cong;",
                "≈": "&asymp;",
                "≠": "&ne;",
                "≡": "&equiv;",
                "≤": "&le;",
                "≥": "&ge;",
                "⊂": "&sub;",
                "⊃": "&sup;",
                "⊄": "&nsub;",
                "⊆": "&sube;",
                "⊇": "&supe;",
                "⊕": "&oplus;",
                "⊗": "&otimes;",
                "⊥": "&perp;",
                "⋅": "&sdot;",
                "⌈": "&lceil;",
                "⌉": "&rceil;",
                "⌊": "&lfloor;",
                "⌋": "&rfloor;",
                "〈": "&lang;",
                "〉": "&rang;",
                "◊": "&loz;",
                "♠": "&spades;",
                "♣": "&clubs;",
                "♥": "&hearts;",
                "♦": "&diams;"
              }
            },
            html5: {
              entities: {
                "&AElig": "Æ",
                "&AElig;": "Æ",
                "&AMP": "&",
                "&AMP;": "&",
                "&Aacute": "Á",
                "&Aacute;": "Á",
                "&Abreve;": "Ă",
                "&Acirc": "Â",
                "&Acirc;": "Â",
                "&Acy;": "А",
                "&Afr;": "𝔄",
                "&Agrave": "À",
                "&Agrave;": "À",
                "&Alpha;": "Α",
                "&Amacr;": "Ā",
                "&And;": "⩓",
                "&Aogon;": "Ą",
                "&Aopf;": "𝔸",
                "&ApplyFunction;": "⁡",
                "&Aring": "Å",
                "&Aring;": "Å",
                "&Ascr;": "𝒜",
                "&Assign;": "≔",
                "&Atilde": "Ã",
                "&Atilde;": "Ã",
                "&Auml": "Ä",
                "&Auml;": "Ä",
                "&Backslash;": "∖",
                "&Barv;": "⫧",
                "&Barwed;": "⌆",
                "&Bcy;": "Б",
                "&Because;": "∵",
                "&Bernoullis;": "ℬ",
                "&Beta;": "Β",
                "&Bfr;": "𝔅",
                "&Bopf;": "𝔹",
                "&Breve;": "˘",
                "&Bscr;": "ℬ",
                "&Bumpeq;": "≎",
                "&CHcy;": "Ч",
                "&COPY": "©",
                "&COPY;": "©",
                "&Cacute;": "Ć",
                "&Cap;": "⋒",
                "&CapitalDifferentialD;": "ⅅ",
                "&Cayleys;": "ℭ",
                "&Ccaron;": "Č",
                "&Ccedil": "Ç",
                "&Ccedil;": "Ç",
                "&Ccirc;": "Ĉ",
                "&Cconint;": "∰",
                "&Cdot;": "Ċ",
                "&Cedilla;": "¸",
                "&CenterDot;": "·",
                "&Cfr;": "ℭ",
                "&Chi;": "Χ",
                "&CircleDot;": "⊙",
                "&CircleMinus;": "⊖",
                "&CirclePlus;": "⊕",
                "&CircleTimes;": "⊗",
                "&ClockwiseContourIntegral;": "∲",
                "&CloseCurlyDoubleQuote;": "”",
                "&CloseCurlyQuote;": "’",
                "&Colon;": "∷",
                "&Colone;": "⩴",
                "&Congruent;": "≡",
                "&Conint;": "∯",
                "&ContourIntegral;": "∮",
                "&Copf;": "ℂ",
                "&Coproduct;": "∐",
                "&CounterClockwiseContourIntegral;": "∳",
                "&Cross;": "⨯",
                "&Cscr;": "𝒞",
                "&Cup;": "⋓",
                "&CupCap;": "≍",
                "&DD;": "ⅅ",
                "&DDotrahd;": "⤑",
                "&DJcy;": "Ђ",
                "&DScy;": "Ѕ",
                "&DZcy;": "Џ",
                "&Dagger;": "‡",
                "&Darr;": "↡",
                "&Dashv;": "⫤",
                "&Dcaron;": "Ď",
                "&Dcy;": "Д",
                "&Del;": "∇",
                "&Delta;": "Δ",
                "&Dfr;": "𝔇",
                "&DiacriticalAcute;": "´",
                "&DiacriticalDot;": "˙",
                "&DiacriticalDoubleAcute;": "˝",
                "&DiacriticalGrave;": "`",
                "&DiacriticalTilde;": "˜",
                "&Diamond;": "⋄",
                "&DifferentialD;": "ⅆ",
                "&Dopf;": "𝔻",
                "&Dot;": "¨",
                "&DotDot;": "⃜",
                "&DotEqual;": "≐",
                "&DoubleContourIntegral;": "∯",
                "&DoubleDot;": "¨",
                "&DoubleDownArrow;": "⇓",
                "&DoubleLeftArrow;": "⇐",
                "&DoubleLeftRightArrow;": "⇔",
                "&DoubleLeftTee;": "⫤",
                "&DoubleLongLeftArrow;": "⟸",
                "&DoubleLongLeftRightArrow;": "⟺",
                "&DoubleLongRightArrow;": "⟹",
                "&DoubleRightArrow;": "⇒",
                "&DoubleRightTee;": "⊨",
                "&DoubleUpArrow;": "⇑",
                "&DoubleUpDownArrow;": "⇕",
                "&DoubleVerticalBar;": "∥",
                "&DownArrow;": "↓",
                "&DownArrowBar;": "⤓",
                "&DownArrowUpArrow;": "⇵",
                "&DownBreve;": "̑",
                "&DownLeftRightVector;": "⥐",
                "&DownLeftTeeVector;": "⥞",
                "&DownLeftVector;": "↽",
                "&DownLeftVectorBar;": "⥖",
                "&DownRightTeeVector;": "⥟",
                "&DownRightVector;": "⇁",
                "&DownRightVectorBar;": "⥗",
                "&DownTee;": "⊤",
                "&DownTeeArrow;": "↧",
                "&Downarrow;": "⇓",
                "&Dscr;": "𝒟",
                "&Dstrok;": "Đ",
                "&ENG;": "Ŋ",
                "&ETH": "Ð",
                "&ETH;": "Ð",
                "&Eacute": "É",
                "&Eacute;": "É",
                "&Ecaron;": "Ě",
                "&Ecirc": "Ê",
                "&Ecirc;": "Ê",
                "&Ecy;": "Э",
                "&Edot;": "Ė",
                "&Efr;": "𝔈",
                "&Egrave": "È",
                "&Egrave;": "È",
                "&Element;": "∈",
                "&Emacr;": "Ē",
                "&EmptySmallSquare;": "◻",
                "&EmptyVerySmallSquare;": "▫",
                "&Eogon;": "Ę",
                "&Eopf;": "𝔼",
                "&Epsilon;": "Ε",
                "&Equal;": "⩵",
                "&EqualTilde;": "≂",
                "&Equilibrium;": "⇌",
                "&Escr;": "ℰ",
                "&Esim;": "⩳",
                "&Eta;": "Η",
                "&Euml": "Ë",
                "&Euml;": "Ë",
                "&Exists;": "∃",
                "&ExponentialE;": "ⅇ",
                "&Fcy;": "Ф",
                "&Ffr;": "𝔉",
                "&FilledSmallSquare;": "◼",
                "&FilledVerySmallSquare;": "▪",
                "&Fopf;": "𝔽",
                "&ForAll;": "∀",
                "&Fouriertrf;": "ℱ",
                "&Fscr;": "ℱ",
                "&GJcy;": "Ѓ",
                "&GT": ">",
                "&GT;": ">",
                "&Gamma;": "Γ",
                "&Gammad;": "Ϝ",
                "&Gbreve;": "Ğ",
                "&Gcedil;": "Ģ",
                "&Gcirc;": "Ĝ",
                "&Gcy;": "Г",
                "&Gdot;": "Ġ",
                "&Gfr;": "𝔊",
                "&Gg;": "⋙",
                "&Gopf;": "𝔾",
                "&GreaterEqual;": "≥",
                "&GreaterEqualLess;": "⋛",
                "&GreaterFullEqual;": "≧",
                "&GreaterGreater;": "⪢",
                "&GreaterLess;": "≷",
                "&GreaterSlantEqual;": "⩾",
                "&GreaterTilde;": "≳",
                "&Gscr;": "𝒢",
                "&Gt;": "≫",
                "&HARDcy;": "Ъ",
                "&Hacek;": "ˇ",
                "&Hat;": "^",
                "&Hcirc;": "Ĥ",
                "&Hfr;": "ℌ",
                "&HilbertSpace;": "ℋ",
                "&Hopf;": "ℍ",
                "&HorizontalLine;": "─",
                "&Hscr;": "ℋ",
                "&Hstrok;": "Ħ",
                "&HumpDownHump;": "≎",
                "&HumpEqual;": "≏",
                "&IEcy;": "Е",
                "&IJlig;": "IJ",
                "&IOcy;": "Ё",
                "&Iacute": "Í",
                "&Iacute;": "Í",
                "&Icirc": "Î",
                "&Icirc;": "Î",
                "&Icy;": "И",
                "&Idot;": "İ",
                "&Ifr;": "ℑ",
                "&Igrave": "Ì",
                "&Igrave;": "Ì",
                "&Im;": "ℑ",
                "&Imacr;": "Ī",
                "&ImaginaryI;": "ⅈ",
                "&Implies;": "⇒",
                "&Int;": "∬",
                "&Integral;": "∫",
                "&Intersection;": "⋂",
                "&InvisibleComma;": "⁣",
                "&InvisibleTimes;": "⁢",
                "&Iogon;": "Į",
                "&Iopf;": "𝕀",
                "&Iota;": "Ι",
                "&Iscr;": "ℐ",
                "&Itilde;": "Ĩ",
                "&Iukcy;": "І",
                "&Iuml": "Ï",
                "&Iuml;": "Ï",
                "&Jcirc;": "Ĵ",
                "&Jcy;": "Й",
                "&Jfr;": "𝔍",
                "&Jopf;": "𝕁",
                "&Jscr;": "𝒥",
                "&Jsercy;": "Ј",
                "&Jukcy;": "Є",
                "&KHcy;": "Х",
                "&KJcy;": "Ќ",
                "&Kappa;": "Κ",
                "&Kcedil;": "Ķ",
                "&Kcy;": "К",
                "&Kfr;": "𝔎",
                "&Kopf;": "𝕂",
                "&Kscr;": "𝒦",
                "&LJcy;": "Љ",
                "&LT": "<",
                "&LT;": "<",
                "&Lacute;": "Ĺ",
                "&Lambda;": "Λ",
                "&Lang;": "⟪",
                "&Laplacetrf;": "ℒ",
                "&Larr;": "↞",
                "&Lcaron;": "Ľ",
                "&Lcedil;": "Ļ",
                "&Lcy;": "Л",
                "&LeftAngleBracket;": "⟨",
                "&LeftArrow;": "←",
                "&LeftArrowBar;": "⇤",
                "&LeftArrowRightArrow;": "⇆",
                "&LeftCeiling;": "⌈",
                "&LeftDoubleBracket;": "⟦",
                "&LeftDownTeeVector;": "⥡",
                "&LeftDownVector;": "⇃",
                "&LeftDownVectorBar;": "⥙",
                "&LeftFloor;": "⌊",
                "&LeftRightArrow;": "↔",
                "&LeftRightVector;": "⥎",
                "&LeftTee;": "⊣",
                "&LeftTeeArrow;": "↤",
                "&LeftTeeVector;": "⥚",
                "&LeftTriangle;": "⊲",
                "&LeftTriangleBar;": "⧏",
                "&LeftTriangleEqual;": "⊴",
                "&LeftUpDownVector;": "⥑",
                "&LeftUpTeeVector;": "⥠",
                "&LeftUpVector;": "↿",
                "&LeftUpVectorBar;": "⥘",
                "&LeftVector;": "↼",
                "&LeftVectorBar;": "⥒",
                "&Leftarrow;": "⇐",
                "&Leftrightarrow;": "⇔",
                "&LessEqualGreater;": "⋚",
                "&LessFullEqual;": "≦",
                "&LessGreater;": "≶",
                "&LessLess;": "⪡",
                "&LessSlantEqual;": "⩽",
                "&LessTilde;": "≲",
                "&Lfr;": "𝔏",
                "&Ll;": "⋘",
                "&Lleftarrow;": "⇚",
                "&Lmidot;": "Ŀ",
                "&LongLeftArrow;": "⟵",
                "&LongLeftRightArrow;": "⟷",
                "&LongRightArrow;": "⟶",
                "&Longleftarrow;": "⟸",
                "&Longleftrightarrow;": "⟺",
                "&Longrightarrow;": "⟹",
                "&Lopf;": "𝕃",
                "&LowerLeftArrow;": "↙",
                "&LowerRightArrow;": "↘",
                "&Lscr;": "ℒ",
                "&Lsh;": "↰",
                "&Lstrok;": "Ł",
                "&Lt;": "≪",
                "&Map;": "⤅",
                "&Mcy;": "М",
                "&MediumSpace;": " ",
                "&Mellintrf;": "ℳ",
                "&Mfr;": "𝔐",
                "&MinusPlus;": "∓",
                "&Mopf;": "𝕄",
                "&Mscr;": "ℳ",
                "&Mu;": "Μ",
                "&NJcy;": "Њ",
                "&Nacute;": "Ń",
                "&Ncaron;": "Ň",
                "&Ncedil;": "Ņ",
                "&Ncy;": "Н",
                "&NegativeMediumSpace;": "​",
                "&NegativeThickSpace;": "​",
                "&NegativeThinSpace;": "​",
                "&NegativeVeryThinSpace;": "​",
                "&NestedGreaterGreater;": "≫",
                "&NestedLessLess;": "≪",
                "&NewLine;": "\n",
                "&Nfr;": "𝔑",
                "&NoBreak;": "⁠",
                "&NonBreakingSpace;": " ",
                "&Nopf;": "ℕ",
                "&Not;": "⫬",
                "&NotCongruent;": "≢",
                "&NotCupCap;": "≭",
                "&NotDoubleVerticalBar;": "∦",
                "&NotElement;": "∉",
                "&NotEqual;": "≠",
                "&NotEqualTilde;": "≂̸",
                "&NotExists;": "∄",
                "&NotGreater;": "≯",
                "&NotGreaterEqual;": "≱",
                "&NotGreaterFullEqual;": "≧̸",
                "&NotGreaterGreater;": "≫̸",
                "&NotGreaterLess;": "≹",
                "&NotGreaterSlantEqual;": "⩾̸",
                "&NotGreaterTilde;": "≵",
                "&NotHumpDownHump;": "≎̸",
                "&NotHumpEqual;": "≏̸",
                "&NotLeftTriangle;": "⋪",
                "&NotLeftTriangleBar;": "⧏̸",
                "&NotLeftTriangleEqual;": "⋬",
                "&NotLess;": "≮",
                "&NotLessEqual;": "≰",
                "&NotLessGreater;": "≸",
                "&NotLessLess;": "≪̸",
                "&NotLessSlantEqual;": "⩽̸",
                "&NotLessTilde;": "≴",
                "&NotNestedGreaterGreater;": "⪢̸",
                "&NotNestedLessLess;": "⪡̸",
                "&NotPrecedes;": "⊀",
                "&NotPrecedesEqual;": "⪯̸",
                "&NotPrecedesSlantEqual;": "⋠",
                "&NotReverseElement;": "∌",
                "&NotRightTriangle;": "⋫",
                "&NotRightTriangleBar;": "⧐̸",
                "&NotRightTriangleEqual;": "⋭",
                "&NotSquareSubset;": "⊏̸",
                "&NotSquareSubsetEqual;": "⋢",
                "&NotSquareSuperset;": "⊐̸",
                "&NotSquareSupersetEqual;": "⋣",
                "&NotSubset;": "⊂⃒",
                "&NotSubsetEqual;": "⊈",
                "&NotSucceeds;": "⊁",
                "&NotSucceedsEqual;": "⪰̸",
                "&NotSucceedsSlantEqual;": "⋡",
                "&NotSucceedsTilde;": "≿̸",
                "&NotSuperset;": "⊃⃒",
                "&NotSupersetEqual;": "⊉",
                "&NotTilde;": "≁",
                "&NotTildeEqual;": "≄",
                "&NotTildeFullEqual;": "≇",
                "&NotTildeTilde;": "≉",
                "&NotVerticalBar;": "∤",
                "&Nscr;": "𝒩",
                "&Ntilde": "Ñ",
                "&Ntilde;": "Ñ",
                "&Nu;": "Ν",
                "&OElig;": "Œ",
                "&Oacute": "Ó",
                "&Oacute;": "Ó",
                "&Ocirc": "Ô",
                "&Ocirc;": "Ô",
                "&Ocy;": "О",
                "&Odblac;": "Ő",
                "&Ofr;": "𝔒",
                "&Ograve": "Ò",
                "&Ograve;": "Ò",
                "&Omacr;": "Ō",
                "&Omega;": "Ω",
                "&Omicron;": "Ο",
                "&Oopf;": "𝕆",
                "&OpenCurlyDoubleQuote;": "“",
                "&OpenCurlyQuote;": "‘",
                "&Or;": "⩔",
                "&Oscr;": "𝒪",
                "&Oslash": "Ø",
                "&Oslash;": "Ø",
                "&Otilde": "Õ",
                "&Otilde;": "Õ",
                "&Otimes;": "⨷",
                "&Ouml": "Ö",
                "&Ouml;": "Ö",
                "&OverBar;": "‾",
                "&OverBrace;": "⏞",
                "&OverBracket;": "⎴",
                "&OverParenthesis;": "⏜",
                "&PartialD;": "∂",
                "&Pcy;": "П",
                "&Pfr;": "𝔓",
                "&Phi;": "Φ",
                "&Pi;": "Π",
                "&PlusMinus;": "±",
                "&Poincareplane;": "ℌ",
                "&Popf;": "ℙ",
                "&Pr;": "⪻",
                "&Precedes;": "≺",
                "&PrecedesEqual;": "⪯",
                "&PrecedesSlantEqual;": "≼",
                "&PrecedesTilde;": "≾",
                "&Prime;": "″",
                "&Product;": "∏",
                "&Proportion;": "∷",
                "&Proportional;": "∝",
                "&Pscr;": "𝒫",
                "&Psi;": "Ψ",
                "&QUOT": '"',
                "&QUOT;": '"',
                "&Qfr;": "𝔔",
                "&Qopf;": "ℚ",
                "&Qscr;": "𝒬",
                "&RBarr;": "⤐",
                "&REG": "®",
                "&REG;": "®",
                "&Racute;": "Ŕ",
                "&Rang;": "⟫",
                "&Rarr;": "↠",
                "&Rarrtl;": "⤖",
                "&Rcaron;": "Ř",
                "&Rcedil;": "Ŗ",
                "&Rcy;": "Р",
                "&Re;": "ℜ",
                "&ReverseElement;": "∋",
                "&ReverseEquilibrium;": "⇋",
                "&ReverseUpEquilibrium;": "⥯",
                "&Rfr;": "ℜ",
                "&Rho;": "Ρ",
                "&RightAngleBracket;": "⟩",
                "&RightArrow;": "→",
                "&RightArrowBar;": "⇥",
                "&RightArrowLeftArrow;": "⇄",
                "&RightCeiling;": "⌉",
                "&RightDoubleBracket;": "⟧",
                "&RightDownTeeVector;": "⥝",
                "&RightDownVector;": "⇂",
                "&RightDownVectorBar;": "⥕",
                "&RightFloor;": "⌋",
                "&RightTee;": "⊢",
                "&RightTeeArrow;": "↦",
                "&RightTeeVector;": "⥛",
                "&RightTriangle;": "⊳",
                "&RightTriangleBar;": "⧐",
                "&RightTriangleEqual;": "⊵",
                "&RightUpDownVector;": "⥏",
                "&RightUpTeeVector;": "⥜",
                "&RightUpVector;": "↾",
                "&RightUpVectorBar;": "⥔",
                "&RightVector;": "⇀",
                "&RightVectorBar;": "⥓",
                "&Rightarrow;": "⇒",
                "&Ropf;": "ℝ",
                "&RoundImplies;": "⥰",
                "&Rrightarrow;": "⇛",
                "&Rscr;": "ℛ",
                "&Rsh;": "↱",
                "&RuleDelayed;": "⧴",
                "&SHCHcy;": "Щ",
                "&SHcy;": "Ш",
                "&SOFTcy;": "Ь",
                "&Sacute;": "Ś",
                "&Sc;": "⪼",
                "&Scaron;": "Š",
                "&Scedil;": "Ş",
                "&Scirc;": "Ŝ",
                "&Scy;": "С",
                "&Sfr;": "𝔖",
                "&ShortDownArrow;": "↓",
                "&ShortLeftArrow;": "←",
                "&ShortRightArrow;": "→",
                "&ShortUpArrow;": "↑",
                "&Sigma;": "Σ",
                "&SmallCircle;": "∘",
                "&Sopf;": "𝕊",
                "&Sqrt;": "√",
                "&Square;": "□",
                "&SquareIntersection;": "⊓",
                "&SquareSubset;": "⊏",
                "&SquareSubsetEqual;": "⊑",
                "&SquareSuperset;": "⊐",
                "&SquareSupersetEqual;": "⊒",
                "&SquareUnion;": "⊔",
                "&Sscr;": "𝒮",
                "&Star;": "⋆",
                "&Sub;": "⋐",
                "&Subset;": "⋐",
                "&SubsetEqual;": "⊆",
                "&Succeeds;": "≻",
                "&SucceedsEqual;": "⪰",
                "&SucceedsSlantEqual;": "≽",
                "&SucceedsTilde;": "≿",
                "&SuchThat;": "∋",
                "&Sum;": "∑",
                "&Sup;": "⋑",
                "&Superset;": "⊃",
                "&SupersetEqual;": "⊇",
                "&Supset;": "⋑",
                "&THORN": "Þ",
                "&THORN;": "Þ",
                "&TRADE;": "™",
                "&TSHcy;": "Ћ",
                "&TScy;": "Ц",
                "&Tab;": "\t",
                "&Tau;": "Τ",
                "&Tcaron;": "Ť",
                "&Tcedil;": "Ţ",
                "&Tcy;": "Т",
                "&Tfr;": "𝔗",
                "&Therefore;": "∴",
                "&Theta;": "Θ",
                "&ThickSpace;": "  ",
                "&ThinSpace;": " ",
                "&Tilde;": "∼",
                "&TildeEqual;": "≃",
                "&TildeFullEqual;": "≅",
                "&TildeTilde;": "≈",
                "&Topf;": "𝕋",
                "&TripleDot;": "⃛",
                "&Tscr;": "𝒯",
                "&Tstrok;": "Ŧ",
                "&Uacute": "Ú",
                "&Uacute;": "Ú",
                "&Uarr;": "↟",
                "&Uarrocir;": "⥉",
                "&Ubrcy;": "Ў",
                "&Ubreve;": "Ŭ",
                "&Ucirc": "Û",
                "&Ucirc;": "Û",
                "&Ucy;": "У",
                "&Udblac;": "Ű",
                "&Ufr;": "𝔘",
                "&Ugrave": "Ù",
                "&Ugrave;": "Ù",
                "&Umacr;": "Ū",
                "&UnderBar;": "_",
                "&UnderBrace;": "⏟",
                "&UnderBracket;": "⎵",
                "&UnderParenthesis;": "⏝",
                "&Union;": "⋃",
                "&UnionPlus;": "⊎",
                "&Uogon;": "Ų",
                "&Uopf;": "𝕌",
                "&UpArrow;": "↑",
                "&UpArrowBar;": "⤒",
                "&UpArrowDownArrow;": "⇅",
                "&UpDownArrow;": "↕",
                "&UpEquilibrium;": "⥮",
                "&UpTee;": "⊥",
                "&UpTeeArrow;": "↥",
                "&Uparrow;": "⇑",
                "&Updownarrow;": "⇕",
                "&UpperLeftArrow;": "↖",
                "&UpperRightArrow;": "↗",
                "&Upsi;": "ϒ",
                "&Upsilon;": "Υ",
                "&Uring;": "Ů",
                "&Uscr;": "𝒰",
                "&Utilde;": "Ũ",
                "&Uuml": "Ü",
                "&Uuml;": "Ü",
                "&VDash;": "⊫",
                "&Vbar;": "⫫",
                "&Vcy;": "В",
                "&Vdash;": "⊩",
                "&Vdashl;": "⫦",
                "&Vee;": "⋁",
                "&Verbar;": "‖",
                "&Vert;": "‖",
                "&VerticalBar;": "∣",
                "&VerticalLine;": "|",
                "&VerticalSeparator;": "❘",
                "&VerticalTilde;": "≀",
                "&VeryThinSpace;": " ",
                "&Vfr;": "𝔙",
                "&Vopf;": "𝕍",
                "&Vscr;": "𝒱",
                "&Vvdash;": "⊪",
                "&Wcirc;": "Ŵ",
                "&Wedge;": "⋀",
                "&Wfr;": "𝔚",
                "&Wopf;": "𝕎",
                "&Wscr;": "𝒲",
                "&Xfr;": "𝔛",
                "&Xi;": "Ξ",
                "&Xopf;": "𝕏",
                "&Xscr;": "𝒳",
                "&YAcy;": "Я",
                "&YIcy;": "Ї",
                "&YUcy;": "Ю",
                "&Yacute": "Ý",
                "&Yacute;": "Ý",
                "&Ycirc;": "Ŷ",
                "&Ycy;": "Ы",
                "&Yfr;": "𝔜",
                "&Yopf;": "𝕐",
                "&Yscr;": "𝒴",
                "&Yuml;": "Ÿ",
                "&ZHcy;": "Ж",
                "&Zacute;": "Ź",
                "&Zcaron;": "Ž",
                "&Zcy;": "З",
                "&Zdot;": "Ż",
                "&ZeroWidthSpace;": "​",
                "&Zeta;": "Ζ",
                "&Zfr;": "ℨ",
                "&Zopf;": "ℤ",
                "&Zscr;": "𝒵",
                "&aacute": "á",
                "&aacute;": "á",
                "&abreve;": "ă",
                "&ac;": "∾",
                "&acE;": "∾̳",
                "&acd;": "∿",
                "&acirc": "â",
                "&acirc;": "â",
                "&acute": "´",
                "&acute;": "´",
                "&acy;": "а",
                "&aelig": "æ",
                "&aelig;": "æ",
                "&af;": "⁡",
                "&afr;": "𝔞",
                "&agrave": "à",
                "&agrave;": "à",
                "&alefsym;": "ℵ",
                "&aleph;": "ℵ",
                "&alpha;": "α",
                "&amacr;": "ā",
                "&amalg;": "⨿",
                "&amp": "&",
                "&amp;": "&",
                "&and;": "∧",
                "&andand;": "⩕",
                "&andd;": "⩜",
                "&andslope;": "⩘",
                "&andv;": "⩚",
                "&ang;": "∠",
                "&ange;": "⦤",
                "&angle;": "∠",
                "&angmsd;": "∡",
                "&angmsdaa;": "⦨",
                "&angmsdab;": "⦩",
                "&angmsdac;": "⦪",
                "&angmsdad;": "⦫",
                "&angmsdae;": "⦬",
                "&angmsdaf;": "⦭",
                "&angmsdag;": "⦮",
                "&angmsdah;": "⦯",
                "&angrt;": "∟",
                "&angrtvb;": "⊾",
                "&angrtvbd;": "⦝",
                "&angsph;": "∢",
                "&angst;": "Å",
                "&angzarr;": "⍼",
                "&aogon;": "ą",
                "&aopf;": "𝕒",
                "&ap;": "≈",
                "&apE;": "⩰",
                "&apacir;": "⩯",
                "&ape;": "≊",
                "&apid;": "≋",
                "&apos;": "'",
                "&approx;": "≈",
                "&approxeq;": "≊",
                "&aring": "å",
                "&aring;": "å",
                "&ascr;": "𝒶",
                "&ast;": "*",
                "&asymp;": "≈",
                "&asympeq;": "≍",
                "&atilde": "ã",
                "&atilde;": "ã",
                "&auml": "ä",
                "&auml;": "ä",
                "&awconint;": "∳",
                "&awint;": "⨑",
                "&bNot;": "⫭",
                "&backcong;": "≌",
                "&backepsilon;": "϶",
                "&backprime;": "‵",
                "&backsim;": "∽",
                "&backsimeq;": "⋍",
                "&barvee;": "⊽",
                "&barwed;": "⌅",
                "&barwedge;": "⌅",
                "&bbrk;": "⎵",
                "&bbrktbrk;": "⎶",
                "&bcong;": "≌",
                "&bcy;": "б",
                "&bdquo;": "„",
                "&becaus;": "∵",
                "&because;": "∵",
                "&bemptyv;": "⦰",
                "&bepsi;": "϶",
                "&bernou;": "ℬ",
                "&beta;": "β",
                "&beth;": "ℶ",
                "&between;": "≬",
                "&bfr;": "𝔟",
                "&bigcap;": "⋂",
                "&bigcirc;": "◯",
                "&bigcup;": "⋃",
                "&bigodot;": "⨀",
                "&bigoplus;": "⨁",
                "&bigotimes;": "⨂",
                "&bigsqcup;": "⨆",
                "&bigstar;": "★",
                "&bigtriangledown;": "▽",
                "&bigtriangleup;": "△",
                "&biguplus;": "⨄",
                "&bigvee;": "⋁",
                "&bigwedge;": "⋀",
                "&bkarow;": "⤍",
                "&blacklozenge;": "⧫",
                "&blacksquare;": "▪",
                "&blacktriangle;": "▴",
                "&blacktriangledown;": "▾",
                "&blacktriangleleft;": "◂",
                "&blacktriangleright;": "▸",
                "&blank;": "␣",
                "&blk12;": "▒",
                "&blk14;": "░",
                "&blk34;": "▓",
                "&block;": "█",
                "&bne;": "=⃥",
                "&bnequiv;": "≡⃥",
                "&bnot;": "⌐",
                "&bopf;": "𝕓",
                "&bot;": "⊥",
                "&bottom;": "⊥",
                "&bowtie;": "⋈",
                "&boxDL;": "╗",
                "&boxDR;": "╔",
                "&boxDl;": "╖",
                "&boxDr;": "╓",
                "&boxH;": "═",
                "&boxHD;": "╦",
                "&boxHU;": "╩",
                "&boxHd;": "╤",
                "&boxHu;": "╧",
                "&boxUL;": "╝",
                "&boxUR;": "╚",
                "&boxUl;": "╜",
                "&boxUr;": "╙",
                "&boxV;": "║",
                "&boxVH;": "╬",
                "&boxVL;": "╣",
                "&boxVR;": "╠",
                "&boxVh;": "╫",
                "&boxVl;": "╢",
                "&boxVr;": "╟",
                "&boxbox;": "⧉",
                "&boxdL;": "╕",
                "&boxdR;": "╒",
                "&boxdl;": "┐",
                "&boxdr;": "┌",
                "&boxh;": "─",
                "&boxhD;": "╥",
                "&boxhU;": "╨",
                "&boxhd;": "┬",
                "&boxhu;": "┴",
                "&boxminus;": "⊟",
                "&boxplus;": "⊞",
                "&boxtimes;": "⊠",
                "&boxuL;": "╛",
                "&boxuR;": "╘",
                "&boxul;": "┘",
                "&boxur;": "└",
                "&boxv;": "│",
                "&boxvH;": "╪",
                "&boxvL;": "╡",
                "&boxvR;": "╞",
                "&boxvh;": "┼",
                "&boxvl;": "┤",
                "&boxvr;": "├",
                "&bprime;": "‵",
                "&breve;": "˘",
                "&brvbar": "¦",
                "&brvbar;": "¦",
                "&bscr;": "𝒷",
                "&bsemi;": "⁏",
                "&bsim;": "∽",
                "&bsime;": "⋍",
                "&bsol;": "\\",
                "&bsolb;": "⧅",
                "&bsolhsub;": "⟈",
                "&bull;": "•",
                "&bullet;": "•",
                "&bump;": "≎",
                "&bumpE;": "⪮",
                "&bumpe;": "≏",
                "&bumpeq;": "≏",
                "&cacute;": "ć",
                "&cap;": "∩",
                "&capand;": "⩄",
                "&capbrcup;": "⩉",
                "&capcap;": "⩋",
                "&capcup;": "⩇",
                "&capdot;": "⩀",
                "&caps;": "∩︀",
                "&caret;": "⁁",
                "&caron;": "ˇ",
                "&ccaps;": "⩍",
                "&ccaron;": "č",
                "&ccedil": "ç",
                "&ccedil;": "ç",
                "&ccirc;": "ĉ",
                "&ccups;": "⩌",
                "&ccupssm;": "⩐",
                "&cdot;": "ċ",
                "&cedil": "¸",
                "&cedil;": "¸",
                "&cemptyv;": "⦲",
                "&cent": "¢",
                "&cent;": "¢",
                "&centerdot;": "·",
                "&cfr;": "𝔠",
                "&chcy;": "ч",
                "&check;": "✓",
                "&checkmark;": "✓",
                "&chi;": "χ",
                "&cir;": "○",
                "&cirE;": "⧃",
                "&circ;": "ˆ",
                "&circeq;": "≗",
                "&circlearrowleft;": "↺",
                "&circlearrowright;": "↻",
                "&circledR;": "®",
                "&circledS;": "Ⓢ",
                "&circledast;": "⊛",
                "&circledcirc;": "⊚",
                "&circleddash;": "⊝",
                "&cire;": "≗",
                "&cirfnint;": "⨐",
                "&cirmid;": "⫯",
                "&cirscir;": "⧂",
                "&clubs;": "♣",
                "&clubsuit;": "♣",
                "&colon;": ":",
                "&colone;": "≔",
                "&coloneq;": "≔",
                "&comma;": ",",
                "&commat;": "@",
                "&comp;": "∁",
                "&compfn;": "∘",
                "&complement;": "∁",
                "&complexes;": "ℂ",
                "&cong;": "≅",
                "&congdot;": "⩭",
                "&conint;": "∮",
                "&copf;": "𝕔",
                "&coprod;": "∐",
                "&copy": "©",
                "&copy;": "©",
                "&copysr;": "℗",
                "&crarr;": "↵",
                "&cross;": "✗",
                "&cscr;": "𝒸",
                "&csub;": "⫏",
                "&csube;": "⫑",
                "&csup;": "⫐",
                "&csupe;": "⫒",
                "&ctdot;": "⋯",
                "&cudarrl;": "⤸",
                "&cudarrr;": "⤵",
                "&cuepr;": "⋞",
                "&cuesc;": "⋟",
                "&cularr;": "↶",
                "&cularrp;": "⤽",
                "&cup;": "∪",
                "&cupbrcap;": "⩈",
                "&cupcap;": "⩆",
                "&cupcup;": "⩊",
                "&cupdot;": "⊍",
                "&cupor;": "⩅",
                "&cups;": "∪︀",
                "&curarr;": "↷",
                "&curarrm;": "⤼",
                "&curlyeqprec;": "⋞",
                "&curlyeqsucc;": "⋟",
                "&curlyvee;": "⋎",
                "&curlywedge;": "⋏",
                "&curren": "¤",
                "&curren;": "¤",
                "&curvearrowleft;": "↶",
                "&curvearrowright;": "↷",
                "&cuvee;": "⋎",
                "&cuwed;": "⋏",
                "&cwconint;": "∲",
                "&cwint;": "∱",
                "&cylcty;": "⌭",
                "&dArr;": "⇓",
                "&dHar;": "⥥",
                "&dagger;": "†",
                "&daleth;": "ℸ",
                "&darr;": "↓",
                "&dash;": "‐",
                "&dashv;": "⊣",
                "&dbkarow;": "⤏",
                "&dblac;": "˝",
                "&dcaron;": "ď",
                "&dcy;": "д",
                "&dd;": "ⅆ",
                "&ddagger;": "‡",
                "&ddarr;": "⇊",
                "&ddotseq;": "⩷",
                "&deg": "°",
                "&deg;": "°",
                "&delta;": "δ",
                "&demptyv;": "⦱",
                "&dfisht;": "⥿",
                "&dfr;": "𝔡",
                "&dharl;": "⇃",
                "&dharr;": "⇂",
                "&diam;": "⋄",
                "&diamond;": "⋄",
                "&diamondsuit;": "♦",
                "&diams;": "♦",
                "&die;": "¨",
                "&digamma;": "ϝ",
                "&disin;": "⋲",
                "&div;": "÷",
                "&divide": "÷",
                "&divide;": "÷",
                "&divideontimes;": "⋇",
                "&divonx;": "⋇",
                "&djcy;": "ђ",
                "&dlcorn;": "⌞",
                "&dlcrop;": "⌍",
                "&dollar;": "$",
                "&dopf;": "𝕕",
                "&dot;": "˙",
                "&doteq;": "≐",
                "&doteqdot;": "≑",
                "&dotminus;": "∸",
                "&dotplus;": "∔",
                "&dotsquare;": "⊡",
                "&doublebarwedge;": "⌆",
                "&downarrow;": "↓",
                "&downdownarrows;": "⇊",
                "&downharpoonleft;": "⇃",
                "&downharpoonright;": "⇂",
                "&drbkarow;": "⤐",
                "&drcorn;": "⌟",
                "&drcrop;": "⌌",
                "&dscr;": "𝒹",
                "&dscy;": "ѕ",
                "&dsol;": "⧶",
                "&dstrok;": "đ",
                "&dtdot;": "⋱",
                "&dtri;": "▿",
                "&dtrif;": "▾",
                "&duarr;": "⇵",
                "&duhar;": "⥯",
                "&dwangle;": "⦦",
                "&dzcy;": "џ",
                "&dzigrarr;": "⟿",
                "&eDDot;": "⩷",
                "&eDot;": "≑",
                "&eacute": "é",
                "&eacute;": "é",
                "&easter;": "⩮",
                "&ecaron;": "ě",
                "&ecir;": "≖",
                "&ecirc": "ê",
                "&ecirc;": "ê",
                "&ecolon;": "≕",
                "&ecy;": "э",
                "&edot;": "ė",
                "&ee;": "ⅇ",
                "&efDot;": "≒",
                "&efr;": "𝔢",
                "&eg;": "⪚",
                "&egrave": "è",
                "&egrave;": "è",
                "&egs;": "⪖",
                "&egsdot;": "⪘",
                "&el;": "⪙",
                "&elinters;": "⏧",
                "&ell;": "ℓ",
                "&els;": "⪕",
                "&elsdot;": "⪗",
                "&emacr;": "ē",
                "&empty;": "∅",
                "&emptyset;": "∅",
                "&emptyv;": "∅",
                "&emsp13;": " ",
                "&emsp14;": " ",
                "&emsp;": " ",
                "&eng;": "ŋ",
                "&ensp;": " ",
                "&eogon;": "ę",
                "&eopf;": "𝕖",
                "&epar;": "⋕",
                "&eparsl;": "⧣",
                "&eplus;": "⩱",
                "&epsi;": "ε",
                "&epsilon;": "ε",
                "&epsiv;": "ϵ",
                "&eqcirc;": "≖",
                "&eqcolon;": "≕",
                "&eqsim;": "≂",
                "&eqslantgtr;": "⪖",
                "&eqslantless;": "⪕",
                "&equals;": "=",
                "&equest;": "≟",
                "&equiv;": "≡",
                "&equivDD;": "⩸",
                "&eqvparsl;": "⧥",
                "&erDot;": "≓",
                "&erarr;": "⥱",
                "&escr;": "ℯ",
                "&esdot;": "≐",
                "&esim;": "≂",
                "&eta;": "η",
                "&eth": "ð",
                "&eth;": "ð",
                "&euml": "ë",
                "&euml;": "ë",
                "&euro;": "€",
                "&excl;": "!",
                "&exist;": "∃",
                "&expectation;": "ℰ",
                "&exponentiale;": "ⅇ",
                "&fallingdotseq;": "≒",
                "&fcy;": "ф",
                "&female;": "♀",
                "&ffilig;": "ffi",
                "&fflig;": "ff",
                "&ffllig;": "ffl",
                "&ffr;": "𝔣",
                "&filig;": "fi",
                "&fjlig;": "fj",
                "&flat;": "♭",
                "&fllig;": "fl",
                "&fltns;": "▱",
                "&fnof;": "ƒ",
                "&fopf;": "𝕗",
                "&forall;": "∀",
                "&fork;": "⋔",
                "&forkv;": "⫙",
                "&fpartint;": "⨍",
                "&frac12": "½",
                "&frac12;": "½",
                "&frac13;": "⅓",
                "&frac14": "¼",
                "&frac14;": "¼",
                "&frac15;": "⅕",
                "&frac16;": "⅙",
                "&frac18;": "⅛",
                "&frac23;": "⅔",
                "&frac25;": "⅖",
                "&frac34": "¾",
                "&frac34;": "¾",
                "&frac35;": "⅗",
                "&frac38;": "⅜",
                "&frac45;": "⅘",
                "&frac56;": "⅚",
                "&frac58;": "⅝",
                "&frac78;": "⅞",
                "&frasl;": "⁄",
                "&frown;": "⌢",
                "&fscr;": "𝒻",
                "&gE;": "≧",
                "&gEl;": "⪌",
                "&gacute;": "ǵ",
                "&gamma;": "γ",
                "&gammad;": "ϝ",
                "&gap;": "⪆",
                "&gbreve;": "ğ",
                "&gcirc;": "ĝ",
                "&gcy;": "г",
                "&gdot;": "ġ",
                "&ge;": "≥",
                "&gel;": "⋛",
                "&geq;": "≥",
                "&geqq;": "≧",
                "&geqslant;": "⩾",
                "&ges;": "⩾",
                "&gescc;": "⪩",
                "&gesdot;": "⪀",
                "&gesdoto;": "⪂",
                "&gesdotol;": "⪄",
                "&gesl;": "⋛︀",
                "&gesles;": "⪔",
                "&gfr;": "𝔤",
                "&gg;": "≫",
                "&ggg;": "⋙",
                "&gimel;": "ℷ",
                "&gjcy;": "ѓ",
                "&gl;": "≷",
                "&glE;": "⪒",
                "&gla;": "⪥",
                "&glj;": "⪤",
                "&gnE;": "≩",
                "&gnap;": "⪊",
                "&gnapprox;": "⪊",
                "&gne;": "⪈",
                "&gneq;": "⪈",
                "&gneqq;": "≩",
                "&gnsim;": "⋧",
                "&gopf;": "𝕘",
                "&grave;": "`",
                "&gscr;": "ℊ",
                "&gsim;": "≳",
                "&gsime;": "⪎",
                "&gsiml;": "⪐",
                "&gt": ">",
                "&gt;": ">",
                "&gtcc;": "⪧",
                "&gtcir;": "⩺",
                "&gtdot;": "⋗",
                "&gtlPar;": "⦕",
                "&gtquest;": "⩼",
                "&gtrapprox;": "⪆",
                "&gtrarr;": "⥸",
                "&gtrdot;": "⋗",
                "&gtreqless;": "⋛",
                "&gtreqqless;": "⪌",
                "&gtrless;": "≷",
                "&gtrsim;": "≳",
                "&gvertneqq;": "≩︀",
                "&gvnE;": "≩︀",
                "&hArr;": "⇔",
                "&hairsp;": " ",
                "&half;": "½",
                "&hamilt;": "ℋ",
                "&hardcy;": "ъ",
                "&harr;": "↔",
                "&harrcir;": "⥈",
                "&harrw;": "↭",
                "&hbar;": "ℏ",
                "&hcirc;": "ĥ",
                "&hearts;": "♥",
                "&heartsuit;": "♥",
                "&hellip;": "…",
                "&hercon;": "⊹",
                "&hfr;": "𝔥",
                "&hksearow;": "⤥",
                "&hkswarow;": "⤦",
                "&hoarr;": "⇿",
                "&homtht;": "∻",
                "&hookleftarrow;": "↩",
                "&hookrightarrow;": "↪",
                "&hopf;": "𝕙",
                "&horbar;": "―",
                "&hscr;": "𝒽",
                "&hslash;": "ℏ",
                "&hstrok;": "ħ",
                "&hybull;": "⁃",
                "&hyphen;": "‐",
                "&iacute": "í",
                "&iacute;": "í",
                "&ic;": "⁣",
                "&icirc": "î",
                "&icirc;": "î",
                "&icy;": "и",
                "&iecy;": "е",
                "&iexcl": "¡",
                "&iexcl;": "¡",
                "&iff;": "⇔",
                "&ifr;": "𝔦",
                "&igrave": "ì",
                "&igrave;": "ì",
                "&ii;": "ⅈ",
                "&iiiint;": "⨌",
                "&iiint;": "∭",
                "&iinfin;": "⧜",
                "&iiota;": "℩",
                "&ijlig;": "ij",
                "&imacr;": "ī",
                "&image;": "ℑ",
                "&imagline;": "ℐ",
                "&imagpart;": "ℑ",
                "&imath;": "ı",
                "&imof;": "⊷",
                "&imped;": "Ƶ",
                "&in;": "∈",
                "&incare;": "℅",
                "&infin;": "∞",
                "&infintie;": "⧝",
                "&inodot;": "ı",
                "&int;": "∫",
                "&intcal;": "⊺",
                "&integers;": "ℤ",
                "&intercal;": "⊺",
                "&intlarhk;": "⨗",
                "&intprod;": "⨼",
                "&iocy;": "ё",
                "&iogon;": "į",
                "&iopf;": "𝕚",
                "&iota;": "ι",
                "&iprod;": "⨼",
                "&iquest": "¿",
                "&iquest;": "¿",
                "&iscr;": "𝒾",
                "&isin;": "∈",
                "&isinE;": "⋹",
                "&isindot;": "⋵",
                "&isins;": "⋴",
                "&isinsv;": "⋳",
                "&isinv;": "∈",
                "&it;": "⁢",
                "&itilde;": "ĩ",
                "&iukcy;": "і",
                "&iuml": "ï",
                "&iuml;": "ï",
                "&jcirc;": "ĵ",
                "&jcy;": "й",
                "&jfr;": "𝔧",
                "&jmath;": "ȷ",
                "&jopf;": "𝕛",
                "&jscr;": "𝒿",
                "&jsercy;": "ј",
                "&jukcy;": "є",
                "&kappa;": "κ",
                "&kappav;": "ϰ",
                "&kcedil;": "ķ",
                "&kcy;": "к",
                "&kfr;": "𝔨",
                "&kgreen;": "ĸ",
                "&khcy;": "х",
                "&kjcy;": "ќ",
                "&kopf;": "𝕜",
                "&kscr;": "𝓀",
                "&lAarr;": "⇚",
                "&lArr;": "⇐",
                "&lAtail;": "⤛",
                "&lBarr;": "⤎",
                "&lE;": "≦",
                "&lEg;": "⪋",
                "&lHar;": "⥢",
                "&lacute;": "ĺ",
                "&laemptyv;": "⦴",
                "&lagran;": "ℒ",
                "&lambda;": "λ",
                "&lang;": "⟨",
                "&langd;": "⦑",
                "&langle;": "⟨",
                "&lap;": "⪅",
                "&laquo": "«",
                "&laquo;": "«",
                "&larr;": "←",
                "&larrb;": "⇤",
                "&larrbfs;": "⤟",
                "&larrfs;": "⤝",
                "&larrhk;": "↩",
                "&larrlp;": "↫",
                "&larrpl;": "⤹",
                "&larrsim;": "⥳",
                "&larrtl;": "↢",
                "&lat;": "⪫",
                "&latail;": "⤙",
                "&late;": "⪭",
                "&lates;": "⪭︀",
                "&lbarr;": "⤌",
                "&lbbrk;": "❲",
                "&lbrace;": "{",
                "&lbrack;": "[",
                "&lbrke;": "⦋",
                "&lbrksld;": "⦏",
                "&lbrkslu;": "⦍",
                "&lcaron;": "ľ",
                "&lcedil;": "ļ",
                "&lceil;": "⌈",
                "&lcub;": "{",
                "&lcy;": "л",
                "&ldca;": "⤶",
                "&ldquo;": "“",
                "&ldquor;": "„",
                "&ldrdhar;": "⥧",
                "&ldrushar;": "⥋",
                "&ldsh;": "↲",
                "&le;": "≤",
                "&leftarrow;": "←",
                "&leftarrowtail;": "↢",
                "&leftharpoondown;": "↽",
                "&leftharpoonup;": "↼",
                "&leftleftarrows;": "⇇",
                "&leftrightarrow;": "↔",
                "&leftrightarrows;": "⇆",
                "&leftrightharpoons;": "⇋",
                "&leftrightsquigarrow;": "↭",
                "&leftthreetimes;": "⋋",
                "&leg;": "⋚",
                "&leq;": "≤",
                "&leqq;": "≦",
                "&leqslant;": "⩽",
                "&les;": "⩽",
                "&lescc;": "⪨",
                "&lesdot;": "⩿",
                "&lesdoto;": "⪁",
                "&lesdotor;": "⪃",
                "&lesg;": "⋚︀",
                "&lesges;": "⪓",
                "&lessapprox;": "⪅",
                "&lessdot;": "⋖",
                "&lesseqgtr;": "⋚",
                "&lesseqqgtr;": "⪋",
                "&lessgtr;": "≶",
                "&lesssim;": "≲",
                "&lfisht;": "⥼",
                "&lfloor;": "⌊",
                "&lfr;": "𝔩",
                "&lg;": "≶",
                "&lgE;": "⪑",
                "&lhard;": "↽",
                "&lharu;": "↼",
                "&lharul;": "⥪",
                "&lhblk;": "▄",
                "&ljcy;": "љ",
                "&ll;": "≪",
                "&llarr;": "⇇",
                "&llcorner;": "⌞",
                "&llhard;": "⥫",
                "&lltri;": "◺",
                "&lmidot;": "ŀ",
                "&lmoust;": "⎰",
                "&lmoustache;": "⎰",
                "&lnE;": "≨",
                "&lnap;": "⪉",
                "&lnapprox;": "⪉",
                "&lne;": "⪇",
                "&lneq;": "⪇",
                "&lneqq;": "≨",
                "&lnsim;": "⋦",
                "&loang;": "⟬",
                "&loarr;": "⇽",
                "&lobrk;": "⟦",
                "&longleftarrow;": "⟵",
                "&longleftrightarrow;": "⟷",
                "&longmapsto;": "⟼",
                "&longrightarrow;": "⟶",
                "&looparrowleft;": "↫",
                "&looparrowright;": "↬",
                "&lopar;": "⦅",
                "&lopf;": "𝕝",
                "&loplus;": "⨭",
                "&lotimes;": "⨴",
                "&lowast;": "∗",
                "&lowbar;": "_",
                "&loz;": "◊",
                "&lozenge;": "◊",
                "&lozf;": "⧫",
                "&lpar;": "(",
                "&lparlt;": "⦓",
                "&lrarr;": "⇆",
                "&lrcorner;": "⌟",
                "&lrhar;": "⇋",
                "&lrhard;": "⥭",
                "&lrm;": "‎",
                "&lrtri;": "⊿",
                "&lsaquo;": "‹",
                "&lscr;": "𝓁",
                "&lsh;": "↰",
                "&lsim;": "≲",
                "&lsime;": "⪍",
                "&lsimg;": "⪏",
                "&lsqb;": "[",
                "&lsquo;": "‘",
                "&lsquor;": "‚",
                "&lstrok;": "ł",
                "&lt": "<",
                "&lt;": "<",
                "&ltcc;": "⪦",
                "&ltcir;": "⩹",
                "&ltdot;": "⋖",
                "&lthree;": "⋋",
                "&ltimes;": "⋉",
                "&ltlarr;": "⥶",
                "&ltquest;": "⩻",
                "&ltrPar;": "⦖",
                "&ltri;": "◃",
                "&ltrie;": "⊴",
                "&ltrif;": "◂",
                "&lurdshar;": "⥊",
                "&luruhar;": "⥦",
                "&lvertneqq;": "≨︀",
                "&lvnE;": "≨︀",
                "&mDDot;": "∺",
                "&macr": "¯",
                "&macr;": "¯",
                "&male;": "♂",
                "&malt;": "✠",
                "&maltese;": "✠",
                "&map;": "↦",
                "&mapsto;": "↦",
                "&mapstodown;": "↧",
                "&mapstoleft;": "↤",
                "&mapstoup;": "↥",
                "&marker;": "▮",
                "&mcomma;": "⨩",
                "&mcy;": "м",
                "&mdash;": "—",
                "&measuredangle;": "∡",
                "&mfr;": "𝔪",
                "&mho;": "℧",
                "&micro": "µ",
                "&micro;": "µ",
                "&mid;": "∣",
                "&midast;": "*",
                "&midcir;": "⫰",
                "&middot": "·",
                "&middot;": "·",
                "&minus;": "−",
                "&minusb;": "⊟",
                "&minusd;": "∸",
                "&minusdu;": "⨪",
                "&mlcp;": "⫛",
                "&mldr;": "…",
                "&mnplus;": "∓",
                "&models;": "⊧",
                "&mopf;": "𝕞",
                "&mp;": "∓",
                "&mscr;": "𝓂",
                "&mstpos;": "∾",
                "&mu;": "μ",
                "&multimap;": "⊸",
                "&mumap;": "⊸",
                "&nGg;": "⋙̸",
                "&nGt;": "≫⃒",
                "&nGtv;": "≫̸",
                "&nLeftarrow;": "⇍",
                "&nLeftrightarrow;": "⇎",
                "&nLl;": "⋘̸",
                "&nLt;": "≪⃒",
                "&nLtv;": "≪̸",
                "&nRightarrow;": "⇏",
                "&nVDash;": "⊯",
                "&nVdash;": "⊮",
                "&nabla;": "∇",
                "&nacute;": "ń",
                "&nang;": "∠⃒",
                "&nap;": "≉",
                "&napE;": "⩰̸",
                "&napid;": "≋̸",
                "&napos;": "ʼn",
                "&napprox;": "≉",
                "&natur;": "♮",
                "&natural;": "♮",
                "&naturals;": "ℕ",
                "&nbsp": " ",
                "&nbsp;": " ",
                "&nbump;": "≎̸",
                "&nbumpe;": "≏̸",
                "&ncap;": "⩃",
                "&ncaron;": "ň",
                "&ncedil;": "ņ",
                "&ncong;": "≇",
                "&ncongdot;": "⩭̸",
                "&ncup;": "⩂",
                "&ncy;": "н",
                "&ndash;": "–",
                "&ne;": "≠",
                "&neArr;": "⇗",
                "&nearhk;": "⤤",
                "&nearr;": "↗",
                "&nearrow;": "↗",
                "&nedot;": "≐̸",
                "&nequiv;": "≢",
                "&nesear;": "⤨",
                "&nesim;": "≂̸",
                "&nexist;": "∄",
                "&nexists;": "∄",
                "&nfr;": "𝔫",
                "&ngE;": "≧̸",
                "&nge;": "≱",
                "&ngeq;": "≱",
                "&ngeqq;": "≧̸",
                "&ngeqslant;": "⩾̸",
                "&nges;": "⩾̸",
                "&ngsim;": "≵",
                "&ngt;": "≯",
                "&ngtr;": "≯",
                "&nhArr;": "⇎",
                "&nharr;": "↮",
                "&nhpar;": "⫲",
                "&ni;": "∋",
                "&nis;": "⋼",
                "&nisd;": "⋺",
                "&niv;": "∋",
                "&njcy;": "њ",
                "&nlArr;": "⇍",
                "&nlE;": "≦̸",
                "&nlarr;": "↚",
                "&nldr;": "‥",
                "&nle;": "≰",
                "&nleftarrow;": "↚",
                "&nleftrightarrow;": "↮",
                "&nleq;": "≰",
                "&nleqq;": "≦̸",
                "&nleqslant;": "⩽̸",
                "&nles;": "⩽̸",
                "&nless;": "≮",
                "&nlsim;": "≴",
                "&nlt;": "≮",
                "&nltri;": "⋪",
                "&nltrie;": "⋬",
                "&nmid;": "∤",
                "&nopf;": "𝕟",
                "&not": "¬",
                "&not;": "¬",
                "&notin;": "∉",
                "&notinE;": "⋹̸",
                "&notindot;": "⋵̸",
                "&notinva;": "∉",
                "&notinvb;": "⋷",
                "&notinvc;": "⋶",
                "&notni;": "∌",
                "&notniva;": "∌",
                "&notnivb;": "⋾",
                "&notnivc;": "⋽",
                "&npar;": "∦",
                "&nparallel;": "∦",
                "&nparsl;": "⫽⃥",
                "&npart;": "∂̸",
                "&npolint;": "⨔",
                "&npr;": "⊀",
                "&nprcue;": "⋠",
                "&npre;": "⪯̸",
                "&nprec;": "⊀",
                "&npreceq;": "⪯̸",
                "&nrArr;": "⇏",
                "&nrarr;": "↛",
                "&nrarrc;": "⤳̸",
                "&nrarrw;": "↝̸",
                "&nrightarrow;": "↛",
                "&nrtri;": "⋫",
                "&nrtrie;": "⋭",
                "&nsc;": "⊁",
                "&nsccue;": "⋡",
                "&nsce;": "⪰̸",
                "&nscr;": "𝓃",
                "&nshortmid;": "∤",
                "&nshortparallel;": "∦",
                "&nsim;": "≁",
                "&nsime;": "≄",
                "&nsimeq;": "≄",
                "&nsmid;": "∤",
                "&nspar;": "∦",
                "&nsqsube;": "⋢",
                "&nsqsupe;": "⋣",
                "&nsub;": "⊄",
                "&nsubE;": "⫅̸",
                "&nsube;": "⊈",
                "&nsubset;": "⊂⃒",
                "&nsubseteq;": "⊈",
                "&nsubseteqq;": "⫅̸",
                "&nsucc;": "⊁",
                "&nsucceq;": "⪰̸",
                "&nsup;": "⊅",
                "&nsupE;": "⫆̸",
                "&nsupe;": "⊉",
                "&nsupset;": "⊃⃒",
                "&nsupseteq;": "⊉",
                "&nsupseteqq;": "⫆̸",
                "&ntgl;": "≹",
                "&ntilde": "ñ",
                "&ntilde;": "ñ",
                "&ntlg;": "≸",
                "&ntriangleleft;": "⋪",
                "&ntrianglelefteq;": "⋬",
                "&ntriangleright;": "⋫",
                "&ntrianglerighteq;": "⋭",
                "&nu;": "ν",
                "&num;": "#",
                "&numero;": "№",
                "&numsp;": " ",
                "&nvDash;": "⊭",
                "&nvHarr;": "⤄",
                "&nvap;": "≍⃒",
                "&nvdash;": "⊬",
                "&nvge;": "≥⃒",
                "&nvgt;": ">⃒",
                "&nvinfin;": "⧞",
                "&nvlArr;": "⤂",
                "&nvle;": "≤⃒",
                "&nvlt;": "<⃒",
                "&nvltrie;": "⊴⃒",
                "&nvrArr;": "⤃",
                "&nvrtrie;": "⊵⃒",
                "&nvsim;": "∼⃒",
                "&nwArr;": "⇖",
                "&nwarhk;": "⤣",
                "&nwarr;": "↖",
                "&nwarrow;": "↖",
                "&nwnear;": "⤧",
                "&oS;": "Ⓢ",
                "&oacute": "ó",
                "&oacute;": "ó",
                "&oast;": "⊛",
                "&ocir;": "⊚",
                "&ocirc": "ô",
                "&ocirc;": "ô",
                "&ocy;": "о",
                "&odash;": "⊝",
                "&odblac;": "ő",
                "&odiv;": "⨸",
                "&odot;": "⊙",
                "&odsold;": "⦼",
                "&oelig;": "œ",
                "&ofcir;": "⦿",
                "&ofr;": "𝔬",
                "&ogon;": "˛",
                "&ograve": "ò",
                "&ograve;": "ò",
                "&ogt;": "⧁",
                "&ohbar;": "⦵",
                "&ohm;": "Ω",
                "&oint;": "∮",
                "&olarr;": "↺",
                "&olcir;": "⦾",
                "&olcross;": "⦻",
                "&oline;": "‾",
                "&olt;": "⧀",
                "&omacr;": "ō",
                "&omega;": "ω",
                "&omicron;": "ο",
                "&omid;": "⦶",
                "&ominus;": "⊖",
                "&oopf;": "𝕠",
                "&opar;": "⦷",
                "&operp;": "⦹",
                "&oplus;": "⊕",
                "&or;": "∨",
                "&orarr;": "↻",
                "&ord;": "⩝",
                "&order;": "ℴ",
                "&orderof;": "ℴ",
                "&ordf": "ª",
                "&ordf;": "ª",
                "&ordm": "º",
                "&ordm;": "º",
                "&origof;": "⊶",
                "&oror;": "⩖",
                "&orslope;": "⩗",
                "&orv;": "⩛",
                "&oscr;": "ℴ",
                "&oslash": "ø",
                "&oslash;": "ø",
                "&osol;": "⊘",
                "&otilde": "õ",
                "&otilde;": "õ",
                "&otimes;": "⊗",
                "&otimesas;": "⨶",
                "&ouml": "ö",
                "&ouml;": "ö",
                "&ovbar;": "⌽",
                "&par;": "∥",
                "&para": "¶",
                "&para;": "¶",
                "&parallel;": "∥",
                "&parsim;": "⫳",
                "&parsl;": "⫽",
                "&part;": "∂",
                "&pcy;": "п",
                "&percnt;": "%",
                "&period;": ".",
                "&permil;": "‰",
                "&perp;": "⊥",
                "&pertenk;": "‱",
                "&pfr;": "𝔭",
                "&phi;": "φ",
                "&phiv;": "ϕ",
                "&phmmat;": "ℳ",
                "&phone;": "☎",
                "&pi;": "π",
                "&pitchfork;": "⋔",
                "&piv;": "ϖ",
                "&planck;": "ℏ",
                "&planckh;": "ℎ",
                "&plankv;": "ℏ",
                "&plus;": "+",
                "&plusacir;": "⨣",
                "&plusb;": "⊞",
                "&pluscir;": "⨢",
                "&plusdo;": "∔",
                "&plusdu;": "⨥",
                "&pluse;": "⩲",
                "&plusmn": "±",
                "&plusmn;": "±",
                "&plussim;": "⨦",
                "&plustwo;": "⨧",
                "&pm;": "±",
                "&pointint;": "⨕",
                "&popf;": "𝕡",
                "&pound": "£",
                "&pound;": "£",
                "&pr;": "≺",
                "&prE;": "⪳",
                "&prap;": "⪷",
                "&prcue;": "≼",
                "&pre;": "⪯",
                "&prec;": "≺",
                "&precapprox;": "⪷",
                "&preccurlyeq;": "≼",
                "&preceq;": "⪯",
                "&precnapprox;": "⪹",
                "&precneqq;": "⪵",
                "&precnsim;": "⋨",
                "&precsim;": "≾",
                "&prime;": "′",
                "&primes;": "ℙ",
                "&prnE;": "⪵",
                "&prnap;": "⪹",
                "&prnsim;": "⋨",
                "&prod;": "∏",
                "&profalar;": "⌮",
                "&profline;": "⌒",
                "&profsurf;": "⌓",
                "&prop;": "∝",
                "&propto;": "∝",
                "&prsim;": "≾",
                "&prurel;": "⊰",
                "&pscr;": "𝓅",
                "&psi;": "ψ",
                "&puncsp;": " ",
                "&qfr;": "𝔮",
                "&qint;": "⨌",
                "&qopf;": "𝕢",
                "&qprime;": "⁗",
                "&qscr;": "𝓆",
                "&quaternions;": "ℍ",
                "&quatint;": "⨖",
                "&quest;": "?",
                "&questeq;": "≟",
                "&quot": '"',
                "&quot;": '"',
                "&rAarr;": "⇛",
                "&rArr;": "⇒",
                "&rAtail;": "⤜",
                "&rBarr;": "⤏",
                "&rHar;": "⥤",
                "&race;": "∽̱",
                "&racute;": "ŕ",
                "&radic;": "√",
                "&raemptyv;": "⦳",
                "&rang;": "⟩",
                "&rangd;": "⦒",
                "&range;": "⦥",
                "&rangle;": "⟩",
                "&raquo": "»",
                "&raquo;": "»",
                "&rarr;": "→",
                "&rarrap;": "⥵",
                "&rarrb;": "⇥",
                "&rarrbfs;": "⤠",
                "&rarrc;": "⤳",
                "&rarrfs;": "⤞",
                "&rarrhk;": "↪",
                "&rarrlp;": "↬",
                "&rarrpl;": "⥅",
                "&rarrsim;": "⥴",
                "&rarrtl;": "↣",
                "&rarrw;": "↝",
                "&ratail;": "⤚",
                "&ratio;": "∶",
                "&rationals;": "ℚ",
                "&rbarr;": "⤍",
                "&rbbrk;": "❳",
                "&rbrace;": "}",
                "&rbrack;": "]",
                "&rbrke;": "⦌",
                "&rbrksld;": "⦎",
                "&rbrkslu;": "⦐",
                "&rcaron;": "ř",
                "&rcedil;": "ŗ",
                "&rceil;": "⌉",
                "&rcub;": "}",
                "&rcy;": "р",
                "&rdca;": "⤷",
                "&rdldhar;": "⥩",
                "&rdquo;": "”",
                "&rdquor;": "”",
                "&rdsh;": "↳",
                "&real;": "ℜ",
                "&realine;": "ℛ",
                "&realpart;": "ℜ",
                "&reals;": "ℝ",
                "&rect;": "▭",
                "&reg": "®",
                "&reg;": "®",
                "&rfisht;": "⥽",
                "&rfloor;": "⌋",
                "&rfr;": "𝔯",
                "&rhard;": "⇁",
                "&rharu;": "⇀",
                "&rharul;": "⥬",
                "&rho;": "ρ",
                "&rhov;": "ϱ",
                "&rightarrow;": "→",
                "&rightarrowtail;": "↣",
                "&rightharpoondown;": "⇁",
                "&rightharpoonup;": "⇀",
                "&rightleftarrows;": "⇄",
                "&rightleftharpoons;": "⇌",
                "&rightrightarrows;": "⇉",
                "&rightsquigarrow;": "↝",
                "&rightthreetimes;": "⋌",
                "&ring;": "˚",
                "&risingdotseq;": "≓",
                "&rlarr;": "⇄",
                "&rlhar;": "⇌",
                "&rlm;": "‏",
                "&rmoust;": "⎱",
                "&rmoustache;": "⎱",
                "&rnmid;": "⫮",
                "&roang;": "⟭",
                "&roarr;": "⇾",
                "&robrk;": "⟧",
                "&ropar;": "⦆",
                "&ropf;": "𝕣",
                "&roplus;": "⨮",
                "&rotimes;": "⨵",
                "&rpar;": ")",
                "&rpargt;": "⦔",
                "&rppolint;": "⨒",
                "&rrarr;": "⇉",
                "&rsaquo;": "›",
                "&rscr;": "𝓇",
                "&rsh;": "↱",
                "&rsqb;": "]",
                "&rsquo;": "’",
                "&rsquor;": "’",
                "&rthree;": "⋌",
                "&rtimes;": "⋊",
                "&rtri;": "▹",
                "&rtrie;": "⊵",
                "&rtrif;": "▸",
                "&rtriltri;": "⧎",
                "&ruluhar;": "⥨",
                "&rx;": "℞",
                "&sacute;": "ś",
                "&sbquo;": "‚",
                "&sc;": "≻",
                "&scE;": "⪴",
                "&scap;": "⪸",
                "&scaron;": "š",
                "&sccue;": "≽",
                "&sce;": "⪰",
                "&scedil;": "ş",
                "&scirc;": "ŝ",
                "&scnE;": "⪶",
                "&scnap;": "⪺",
                "&scnsim;": "⋩",
                "&scpolint;": "⨓",
                "&scsim;": "≿",
                "&scy;": "с",
                "&sdot;": "⋅",
                "&sdotb;": "⊡",
                "&sdote;": "⩦",
                "&seArr;": "⇘",
                "&searhk;": "⤥",
                "&searr;": "↘",
                "&searrow;": "↘",
                "&sect": "§",
                "&sect;": "§",
                "&semi;": ";",
                "&seswar;": "⤩",
                "&setminus;": "∖",
                "&setmn;": "∖",
                "&sext;": "✶",
                "&sfr;": "𝔰",
                "&sfrown;": "⌢",
                "&sharp;": "♯",
                "&shchcy;": "щ",
                "&shcy;": "ш",
                "&shortmid;": "∣",
                "&shortparallel;": "∥",
                "&shy": "­",
                "&shy;": "­",
                "&sigma;": "σ",
                "&sigmaf;": "ς",
                "&sigmav;": "ς",
                "&sim;": "∼",
                "&simdot;": "⩪",
                "&sime;": "≃",
                "&simeq;": "≃",
                "&simg;": "⪞",
                "&simgE;": "⪠",
                "&siml;": "⪝",
                "&simlE;": "⪟",
                "&simne;": "≆",
                "&simplus;": "⨤",
                "&simrarr;": "⥲",
                "&slarr;": "←",
                "&smallsetminus;": "∖",
                "&smashp;": "⨳",
                "&smeparsl;": "⧤",
                "&smid;": "∣",
                "&smile;": "⌣",
                "&smt;": "⪪",
                "&smte;": "⪬",
                "&smtes;": "⪬︀",
                "&softcy;": "ь",
                "&sol;": "/",
                "&solb;": "⧄",
                "&solbar;": "⌿",
                "&sopf;": "𝕤",
                "&spades;": "♠",
                "&spadesuit;": "♠",
                "&spar;": "∥",
                "&sqcap;": "⊓",
                "&sqcaps;": "⊓︀",
                "&sqcup;": "⊔",
                "&sqcups;": "⊔︀",
                "&sqsub;": "⊏",
                "&sqsube;": "⊑",
                "&sqsubset;": "⊏",
                "&sqsubseteq;": "⊑",
                "&sqsup;": "⊐",
                "&sqsupe;": "⊒",
                "&sqsupset;": "⊐",
                "&sqsupseteq;": "⊒",
                "&squ;": "□",
                "&square;": "□",
                "&squarf;": "▪",
                "&squf;": "▪",
                "&srarr;": "→",
                "&sscr;": "𝓈",
                "&ssetmn;": "∖",
                "&ssmile;": "⌣",
                "&sstarf;": "⋆",
                "&star;": "☆",
                "&starf;": "★",
                "&straightepsilon;": "ϵ",
                "&straightphi;": "ϕ",
                "&strns;": "¯",
                "&sub;": "⊂",
                "&subE;": "⫅",
                "&subdot;": "⪽",
                "&sube;": "⊆",
                "&subedot;": "⫃",
                "&submult;": "⫁",
                "&subnE;": "⫋",
                "&subne;": "⊊",
                "&subplus;": "⪿",
                "&subrarr;": "⥹",
                "&subset;": "⊂",
                "&subseteq;": "⊆",
                "&subseteqq;": "⫅",
                "&subsetneq;": "⊊",
                "&subsetneqq;": "⫋",
                "&subsim;": "⫇",
                "&subsub;": "⫕",
                "&subsup;": "⫓",
                "&succ;": "≻",
                "&succapprox;": "⪸",
                "&succcurlyeq;": "≽",
                "&succeq;": "⪰",
                "&succnapprox;": "⪺",
                "&succneqq;": "⪶",
                "&succnsim;": "⋩",
                "&succsim;": "≿",
                "&sum;": "∑",
                "&sung;": "♪",
                "&sup1": "¹",
                "&sup1;": "¹",
                "&sup2": "²",
                "&sup2;": "²",
                "&sup3": "³",
                "&sup3;": "³",
                "&sup;": "⊃",
                "&supE;": "⫆",
                "&supdot;": "⪾",
                "&supdsub;": "⫘",
                "&supe;": "⊇",
                "&supedot;": "⫄",
                "&suphsol;": "⟉",
                "&suphsub;": "⫗",
                "&suplarr;": "⥻",
                "&supmult;": "⫂",
                "&supnE;": "⫌",
                "&supne;": "⊋",
                "&supplus;": "⫀",
                "&supset;": "⊃",
                "&supseteq;": "⊇",
                "&supseteqq;": "⫆",
                "&supsetneq;": "⊋",
                "&supsetneqq;": "⫌",
                "&supsim;": "⫈",
                "&supsub;": "⫔",
                "&supsup;": "⫖",
                "&swArr;": "⇙",
                "&swarhk;": "⤦",
                "&swarr;": "↙",
                "&swarrow;": "↙",
                "&swnwar;": "⤪",
                "&szlig": "ß",
                "&szlig;": "ß",
                "&target;": "⌖",
                "&tau;": "τ",
                "&tbrk;": "⎴",
                "&tcaron;": "ť",
                "&tcedil;": "ţ",
                "&tcy;": "т",
                "&tdot;": "⃛",
                "&telrec;": "⌕",
                "&tfr;": "𝔱",
                "&there4;": "∴",
                "&therefore;": "∴",
                "&theta;": "θ",
                "&thetasym;": "ϑ",
                "&thetav;": "ϑ",
                "&thickapprox;": "≈",
                "&thicksim;": "∼",
                "&thinsp;": " ",
                "&thkap;": "≈",
                "&thksim;": "∼",
                "&thorn": "þ",
                "&thorn;": "þ",
                "&tilde;": "˜",
                "&times": "×",
                "&times;": "×",
                "&timesb;": "⊠",
                "&timesbar;": "⨱",
                "&timesd;": "⨰",
                "&tint;": "∭",
                "&toea;": "⤨",
                "&top;": "⊤",
                "&topbot;": "⌶",
                "&topcir;": "⫱",
                "&topf;": "𝕥",
                "&topfork;": "⫚",
                "&tosa;": "⤩",
                "&tprime;": "‴",
                "&trade;": "™",
                "&triangle;": "▵",
                "&triangledown;": "▿",
                "&triangleleft;": "◃",
                "&trianglelefteq;": "⊴",
                "&triangleq;": "≜",
                "&triangleright;": "▹",
                "&trianglerighteq;": "⊵",
                "&tridot;": "◬",
                "&trie;": "≜",
                "&triminus;": "⨺",
                "&triplus;": "⨹",
                "&trisb;": "⧍",
                "&tritime;": "⨻",
                "&trpezium;": "⏢",
                "&tscr;": "𝓉",
                "&tscy;": "ц",
                "&tshcy;": "ћ",
                "&tstrok;": "ŧ",
                "&twixt;": "≬",
                "&twoheadleftarrow;": "↞",
                "&twoheadrightarrow;": "↠",
                "&uArr;": "⇑",
                "&uHar;": "⥣",
                "&uacute": "ú",
                "&uacute;": "ú",
                "&uarr;": "↑",
                "&ubrcy;": "ў",
                "&ubreve;": "ŭ",
                "&ucirc": "û",
                "&ucirc;": "û",
                "&ucy;": "у",
                "&udarr;": "⇅",
                "&udblac;": "ű",
                "&udhar;": "⥮",
                "&ufisht;": "⥾",
                "&ufr;": "𝔲",
                "&ugrave": "ù",
                "&ugrave;": "ù",
                "&uharl;": "↿",
                "&uharr;": "↾",
                "&uhblk;": "▀",
                "&ulcorn;": "⌜",
                "&ulcorner;": "⌜",
                "&ulcrop;": "⌏",
                "&ultri;": "◸",
                "&umacr;": "ū",
                "&uml": "¨",
                "&uml;": "¨",
                "&uogon;": "ų",
                "&uopf;": "𝕦",
                "&uparrow;": "↑",
                "&updownarrow;": "↕",
                "&upharpoonleft;": "↿",
                "&upharpoonright;": "↾",
                "&uplus;": "⊎",
                "&upsi;": "υ",
                "&upsih;": "ϒ",
                "&upsilon;": "υ",
                "&upuparrows;": "⇈",
                "&urcorn;": "⌝",
                "&urcorner;": "⌝",
                "&urcrop;": "⌎",
                "&uring;": "ů",
                "&urtri;": "◹",
                "&uscr;": "𝓊",
                "&utdot;": "⋰",
                "&utilde;": "ũ",
                "&utri;": "▵",
                "&utrif;": "▴",
                "&uuarr;": "⇈",
                "&uuml": "ü",
                "&uuml;": "ü",
                "&uwangle;": "⦧",
                "&vArr;": "⇕",
                "&vBar;": "⫨",
                "&vBarv;": "⫩",
                "&vDash;": "⊨",
                "&vangrt;": "⦜",
                "&varepsilon;": "ϵ",
                "&varkappa;": "ϰ",
                "&varnothing;": "∅",
                "&varphi;": "ϕ",
                "&varpi;": "ϖ",
                "&varpropto;": "∝",
                "&varr;": "↕",
                "&varrho;": "ϱ",
                "&varsigma;": "ς",
                "&varsubsetneq;": "⊊︀",
                "&varsubsetneqq;": "⫋︀",
                "&varsupsetneq;": "⊋︀",
                "&varsupsetneqq;": "⫌︀",
                "&vartheta;": "ϑ",
                "&vartriangleleft;": "⊲",
                "&vartriangleright;": "⊳",
                "&vcy;": "в",
                "&vdash;": "⊢",
                "&vee;": "∨",
                "&veebar;": "⊻",
                "&veeeq;": "≚",
                "&vellip;": "⋮",
                "&verbar;": "|",
                "&vert;": "|",
                "&vfr;": "𝔳",
                "&vltri;": "⊲",
                "&vnsub;": "⊂⃒",
                "&vnsup;": "⊃⃒",
                "&vopf;": "𝕧",
                "&vprop;": "∝",
                "&vrtri;": "⊳",
                "&vscr;": "𝓋",
                "&vsubnE;": "⫋︀",
                "&vsubne;": "⊊︀",
                "&vsupnE;": "⫌︀",
                "&vsupne;": "⊋︀",
                "&vzigzag;": "⦚",
                "&wcirc;": "ŵ",
                "&wedbar;": "⩟",
                "&wedge;": "∧",
                "&wedgeq;": "≙",
                "&weierp;": "℘",
                "&wfr;": "𝔴",
                "&wopf;": "𝕨",
                "&wp;": "℘",
                "&wr;": "≀",
                "&wreath;": "≀",
                "&wscr;": "𝓌",
                "&xcap;": "⋂",
                "&xcirc;": "◯",
                "&xcup;": "⋃",
                "&xdtri;": "▽",
                "&xfr;": "𝔵",
                "&xhArr;": "⟺",
                "&xharr;": "⟷",
                "&xi;": "ξ",
                "&xlArr;": "⟸",
                "&xlarr;": "⟵",
                "&xmap;": "⟼",
                "&xnis;": "⋻",
                "&xodot;": "⨀",
                "&xopf;": "𝕩",
                "&xoplus;": "⨁",
                "&xotime;": "⨂",
                "&xrArr;": "⟹",
                "&xrarr;": "⟶",
                "&xscr;": "𝓍",
                "&xsqcup;": "⨆",
                "&xuplus;": "⨄",
                "&xutri;": "△",
                "&xvee;": "⋁",
                "&xwedge;": "⋀",
                "&yacute": "ý",
                "&yacute;": "ý",
                "&yacy;": "я",
                "&ycirc;": "ŷ",
                "&ycy;": "ы",
                "&yen": "¥",
                "&yen;": "¥",
                "&yfr;": "𝔶",
                "&yicy;": "ї",
                "&yopf;": "𝕪",
                "&yscr;": "𝓎",
                "&yucy;": "ю",
                "&yuml": "ÿ",
                "&yuml;": "ÿ",
                "&zacute;": "ź",
                "&zcaron;": "ž",
                "&zcy;": "з",
                "&zdot;": "ż",
                "&zeetrf;": "ℨ",
                "&zeta;": "ζ",
                "&zfr;": "𝔷",
                "&zhcy;": "ж",
                "&zigrarr;": "⇝",
                "&zopf;": "𝕫",
                "&zscr;": "𝓏",
                "&zwj;": "‍",
                "&zwnj;": "‌"
              },
              characters: {
                "Æ": "&AElig;",
                "&": "&amp;",
                "Á": "&Aacute;",
                "Ă": "&Abreve;",
                "Â": "&Acirc;",
                "А": "&Acy;",
                "𝔄": "&Afr;",
                "À": "&Agrave;",
                "Α": "&Alpha;",
                "Ā": "&Amacr;",
                "⩓": "&And;",
                "Ą": "&Aogon;",
                "𝔸": "&Aopf;",
                "⁡": "&af;",
                "Å": "&angst;",
                "𝒜": "&Ascr;",
                "≔": "&coloneq;",
                "Ã": "&Atilde;",
                "Ä": "&Auml;",
                "∖": "&ssetmn;",
                "⫧": "&Barv;",
                "⌆": "&doublebarwedge;",
                "Б": "&Bcy;",
                "∵": "&because;",
                "ℬ": "&bernou;",
                "Β": "&Beta;",
                "𝔅": "&Bfr;",
                "𝔹": "&Bopf;",
                "˘": "&breve;",
                "≎": "&bump;",
                "Ч": "&CHcy;",
                "©": "&copy;",
                "Ć": "&Cacute;",
                "⋒": "&Cap;",
                "ⅅ": "&DD;",
                "ℭ": "&Cfr;",
                "Č": "&Ccaron;",
                "Ç": "&Ccedil;",
                "Ĉ": "&Ccirc;",
                "∰": "&Cconint;",
                "Ċ": "&Cdot;",
                "¸": "&cedil;",
                "·": "&middot;",
                "Χ": "&Chi;",
                "⊙": "&odot;",
                "⊖": "&ominus;",
                "⊕": "&oplus;",
                "⊗": "&otimes;",
                "∲": "&cwconint;",
                "”": "&rdquor;",
                "’": "&rsquor;",
                "∷": "&Proportion;",
                "⩴": "&Colone;",
                "≡": "&equiv;",
                "∯": "&DoubleContourIntegral;",
                "∮": "&oint;",
                "ℂ": "&complexes;",
                "∐": "&coprod;",
                "∳": "&awconint;",
                "⨯": "&Cross;",
                "𝒞": "&Cscr;",
                "⋓": "&Cup;",
                "≍": "&asympeq;",
                "⤑": "&DDotrahd;",
                "Ђ": "&DJcy;",
                "Ѕ": "&DScy;",
                "Џ": "&DZcy;",
                "‡": "&ddagger;",
                "↡": "&Darr;",
                "⫤": "&DoubleLeftTee;",
                "Ď": "&Dcaron;",
                "Д": "&Dcy;",
                "∇": "&nabla;",
                "Δ": "&Delta;",
                "𝔇": "&Dfr;",
                "´": "&acute;",
                "˙": "&dot;",
                "˝": "&dblac;",
                "`": "&grave;",
                "˜": "&tilde;",
                "⋄": "&diamond;",
                "ⅆ": "&dd;",
                "𝔻": "&Dopf;",
                "¨": "&uml;",
                "⃜": "&DotDot;",
                "≐": "&esdot;",
                "⇓": "&dArr;",
                "⇐": "&lArr;",
                "⇔": "&iff;",
                "⟸": "&xlArr;",
                "⟺": "&xhArr;",
                "⟹": "&xrArr;",
                "⇒": "&rArr;",
                "⊨": "&vDash;",
                "⇑": "&uArr;",
                "⇕": "&vArr;",
                "∥": "&spar;",
                "↓": "&downarrow;",
                "⤓": "&DownArrowBar;",
                "⇵": "&duarr;",
                "̑": "&DownBreve;",
                "⥐": "&DownLeftRightVector;",
                "⥞": "&DownLeftTeeVector;",
                "↽": "&lhard;",
                "⥖": "&DownLeftVectorBar;",
                "⥟": "&DownRightTeeVector;",
                "⇁": "&rightharpoondown;",
                "⥗": "&DownRightVectorBar;",
                "⊤": "&top;",
                "↧": "&mapstodown;",
                "𝒟": "&Dscr;",
                "Đ": "&Dstrok;",
                "Ŋ": "&ENG;",
                "Ð": "&ETH;",
                "É": "&Eacute;",
                "Ě": "&Ecaron;",
                "Ê": "&Ecirc;",
                "Э": "&Ecy;",
                "Ė": "&Edot;",
                "𝔈": "&Efr;",
                "È": "&Egrave;",
                "∈": "&isinv;",
                "Ē": "&Emacr;",
                "◻": "&EmptySmallSquare;",
                "▫": "&EmptyVerySmallSquare;",
                "Ę": "&Eogon;",
                "𝔼": "&Eopf;",
                "Ε": "&Epsilon;",
                "⩵": "&Equal;",
                "≂": "&esim;",
                "⇌": "&rlhar;",
                "ℰ": "&expectation;",
                "⩳": "&Esim;",
                "Η": "&Eta;",
                "Ë": "&Euml;",
                "∃": "&exist;",
                "ⅇ": "&exponentiale;",
                "Ф": "&Fcy;",
                "𝔉": "&Ffr;",
                "◼": "&FilledSmallSquare;",
                "▪": "&squf;",
                "𝔽": "&Fopf;",
                "∀": "&forall;",
                "ℱ": "&Fscr;",
                "Ѓ": "&GJcy;",
                ">": "&gt;",
                "Γ": "&Gamma;",
                "Ϝ": "&Gammad;",
                "Ğ": "&Gbreve;",
                "Ģ": "&Gcedil;",
                "Ĝ": "&Gcirc;",
                "Г": "&Gcy;",
                "Ġ": "&Gdot;",
                "𝔊": "&Gfr;",
                "⋙": "&ggg;",
                "𝔾": "&Gopf;",
                "≥": "&geq;",
                "⋛": "&gtreqless;",
                "≧": "&geqq;",
                "⪢": "&GreaterGreater;",
                "≷": "&gtrless;",
                "⩾": "&ges;",
                "≳": "&gtrsim;",
                "𝒢": "&Gscr;",
                "≫": "&gg;",
                "Ъ": "&HARDcy;",
                "ˇ": "&caron;",
                "^": "&Hat;",
                "Ĥ": "&Hcirc;",
                "ℌ": "&Poincareplane;",
                "ℋ": "&hamilt;",
                "ℍ": "&quaternions;",
                "─": "&boxh;",
                "Ħ": "&Hstrok;",
                "≏": "&bumpeq;",
                "Е": "&IEcy;",
                "IJ": "&IJlig;",
                "Ё": "&IOcy;",
                "Í": "&Iacute;",
                "Î": "&Icirc;",
                "И": "&Icy;",
                "İ": "&Idot;",
                "ℑ": "&imagpart;",
                "Ì": "&Igrave;",
                "Ī": "&Imacr;",
                "ⅈ": "&ii;",
                "∬": "&Int;",
                "∫": "&int;",
                "⋂": "&xcap;",
                "⁣": "&ic;",
                "⁢": "&it;",
                "Į": "&Iogon;",
                "𝕀": "&Iopf;",
                "Ι": "&Iota;",
                "ℐ": "&imagline;",
                "Ĩ": "&Itilde;",
                "І": "&Iukcy;",
                "Ï": "&Iuml;",
                "Ĵ": "&Jcirc;",
                "Й": "&Jcy;",
                "𝔍": "&Jfr;",
                "𝕁": "&Jopf;",
                "𝒥": "&Jscr;",
                "Ј": "&Jsercy;",
                "Є": "&Jukcy;",
                "Х": "&KHcy;",
                "Ќ": "&KJcy;",
                "Κ": "&Kappa;",
                "Ķ": "&Kcedil;",
                "К": "&Kcy;",
                "𝔎": "&Kfr;",
                "𝕂": "&Kopf;",
                "𝒦": "&Kscr;",
                "Љ": "&LJcy;",
                "<": "&lt;",
                "Ĺ": "&Lacute;",
                "Λ": "&Lambda;",
                "⟪": "&Lang;",
                "ℒ": "&lagran;",
                "↞": "&twoheadleftarrow;",
                "Ľ": "&Lcaron;",
                "Ļ": "&Lcedil;",
                "Л": "&Lcy;",
                "⟨": "&langle;",
                "←": "&slarr;",
                "⇤": "&larrb;",
                "⇆": "&lrarr;",
                "⌈": "&lceil;",
                "⟦": "&lobrk;",
                "⥡": "&LeftDownTeeVector;",
                "⇃": "&downharpoonleft;",
                "⥙": "&LeftDownVectorBar;",
                "⌊": "&lfloor;",
                "↔": "&leftrightarrow;",
                "⥎": "&LeftRightVector;",
                "⊣": "&dashv;",
                "↤": "&mapstoleft;",
                "⥚": "&LeftTeeVector;",
                "⊲": "&vltri;",
                "⧏": "&LeftTriangleBar;",
                "⊴": "&trianglelefteq;",
                "⥑": "&LeftUpDownVector;",
                "⥠": "&LeftUpTeeVector;",
                "↿": "&upharpoonleft;",
                "⥘": "&LeftUpVectorBar;",
                "↼": "&lharu;",
                "⥒": "&LeftVectorBar;",
                "⋚": "&lesseqgtr;",
                "≦": "&leqq;",
                "≶": "&lg;",
                "⪡": "&LessLess;",
                "⩽": "&les;",
                "≲": "&lsim;",
                "𝔏": "&Lfr;",
                "⋘": "&Ll;",
                "⇚": "&lAarr;",
                "Ŀ": "&Lmidot;",
                "⟵": "&xlarr;",
                "⟷": "&xharr;",
                "⟶": "&xrarr;",
                "𝕃": "&Lopf;",
                "↙": "&swarrow;",
                "↘": "&searrow;",
                "↰": "&lsh;",
                "Ł": "&Lstrok;",
                "≪": "&ll;",
                "⤅": "&Map;",
                "М": "&Mcy;",
                " ": "&MediumSpace;",
                "ℳ": "&phmmat;",
                "𝔐": "&Mfr;",
                "∓": "&mp;",
                "𝕄": "&Mopf;",
                "Μ": "&Mu;",
                "Њ": "&NJcy;",
                "Ń": "&Nacute;",
                "Ň": "&Ncaron;",
                "Ņ": "&Ncedil;",
                "Н": "&Ncy;",
                "​": "&ZeroWidthSpace;",
                "\n": "&NewLine;",
                "𝔑": "&Nfr;",
                "⁠": "&NoBreak;",
                " ": "&nbsp;",
                "ℕ": "&naturals;",
                "⫬": "&Not;",
                "≢": "&nequiv;",
                "≭": "&NotCupCap;",
                "∦": "&nspar;",
                "∉": "&notinva;",
                "≠": "&ne;",
                "≂̸": "&nesim;",
                "∄": "&nexists;",
                "≯": "&ngtr;",
                "≱": "&ngeq;",
                "≧̸": "&ngeqq;",
                "≫̸": "&nGtv;",
                "≹": "&ntgl;",
                "⩾̸": "&nges;",
                "≵": "&ngsim;",
                "≎̸": "&nbump;",
                "≏̸": "&nbumpe;",
                "⋪": "&ntriangleleft;",
                "⧏̸": "&NotLeftTriangleBar;",
                "⋬": "&ntrianglelefteq;",
                "≮": "&nlt;",
                "≰": "&nleq;",
                "≸": "&ntlg;",
                "≪̸": "&nLtv;",
                "⩽̸": "&nles;",
                "≴": "&nlsim;",
                "⪢̸": "&NotNestedGreaterGreater;",
                "⪡̸": "&NotNestedLessLess;",
                "⊀": "&nprec;",
                "⪯̸": "&npreceq;",
                "⋠": "&nprcue;",
                "∌": "&notniva;",
                "⋫": "&ntriangleright;",
                "⧐̸": "&NotRightTriangleBar;",
                "⋭": "&ntrianglerighteq;",
                "⊏̸": "&NotSquareSubset;",
                "⋢": "&nsqsube;",
                "⊐̸": "&NotSquareSuperset;",
                "⋣": "&nsqsupe;",
                "⊂⃒": "&vnsub;",
                "⊈": "&nsubseteq;",
                "⊁": "&nsucc;",
                "⪰̸": "&nsucceq;",
                "⋡": "&nsccue;",
                "≿̸": "&NotSucceedsTilde;",
                "⊃⃒": "&vnsup;",
                "⊉": "&nsupseteq;",
                "≁": "&nsim;",
                "≄": "&nsimeq;",
                "≇": "&ncong;",
                "≉": "&napprox;",
                "∤": "&nsmid;",
                "𝒩": "&Nscr;",
                "Ñ": "&Ntilde;",
                "Ν": "&Nu;",
                "Œ": "&OElig;",
                "Ó": "&Oacute;",
                "Ô": "&Ocirc;",
                "О": "&Ocy;",
                "Ő": "&Odblac;",
                "𝔒": "&Ofr;",
                "Ò": "&Ograve;",
                "Ō": "&Omacr;",
                "Ω": "&ohm;",
                "Ο": "&Omicron;",
                "𝕆": "&Oopf;",
                "“": "&ldquo;",
                "‘": "&lsquo;",
                "⩔": "&Or;",
                "𝒪": "&Oscr;",
                "Ø": "&Oslash;",
                "Õ": "&Otilde;",
                "⨷": "&Otimes;",
                "Ö": "&Ouml;",
                "‾": "&oline;",
                "⏞": "&OverBrace;",
                "⎴": "&tbrk;",
                "⏜": "&OverParenthesis;",
                "∂": "&part;",
                "П": "&Pcy;",
                "𝔓": "&Pfr;",
                "Φ": "&Phi;",
                "Π": "&Pi;",
                "±": "&pm;",
                "ℙ": "&primes;",
                "⪻": "&Pr;",
                "≺": "&prec;",
                "⪯": "&preceq;",
                "≼": "&preccurlyeq;",
                "≾": "&prsim;",
                "″": "&Prime;",
                "∏": "&prod;",
                "∝": "&vprop;",
                "𝒫": "&Pscr;",
                "Ψ": "&Psi;",
                '"': "&quot;",
                "𝔔": "&Qfr;",
                "ℚ": "&rationals;",
                "𝒬": "&Qscr;",
                "⤐": "&drbkarow;",
                "®": "&reg;",
                "Ŕ": "&Racute;",
                "⟫": "&Rang;",
                "↠": "&twoheadrightarrow;",
                "⤖": "&Rarrtl;",
                "Ř": "&Rcaron;",
                "Ŗ": "&Rcedil;",
                "Р": "&Rcy;",
                "ℜ": "&realpart;",
                "∋": "&niv;",
                "⇋": "&lrhar;",
                "⥯": "&duhar;",
                "Ρ": "&Rho;",
                "⟩": "&rangle;",
                "→": "&srarr;",
                "⇥": "&rarrb;",
                "⇄": "&rlarr;",
                "⌉": "&rceil;",
                "⟧": "&robrk;",
                "⥝": "&RightDownTeeVector;",
                "⇂": "&downharpoonright;",
                "⥕": "&RightDownVectorBar;",
                "⌋": "&rfloor;",
                "⊢": "&vdash;",
                "↦": "&mapsto;",
                "⥛": "&RightTeeVector;",
                "⊳": "&vrtri;",
                "⧐": "&RightTriangleBar;",
                "⊵": "&trianglerighteq;",
                "⥏": "&RightUpDownVector;",
                "⥜": "&RightUpTeeVector;",
                "↾": "&upharpoonright;",
                "⥔": "&RightUpVectorBar;",
                "⇀": "&rightharpoonup;",
                "⥓": "&RightVectorBar;",
                "ℝ": "&reals;",
                "⥰": "&RoundImplies;",
                "⇛": "&rAarr;",
                "ℛ": "&realine;",
                "↱": "&rsh;",
                "⧴": "&RuleDelayed;",
                "Щ": "&SHCHcy;",
                "Ш": "&SHcy;",
                "Ь": "&SOFTcy;",
                "Ś": "&Sacute;",
                "⪼": "&Sc;",
                "Š": "&Scaron;",
                "Ş": "&Scedil;",
                "Ŝ": "&Scirc;",
                "С": "&Scy;",
                "𝔖": "&Sfr;",
                "↑": "&uparrow;",
                "Σ": "&Sigma;",
                "∘": "&compfn;",
                "𝕊": "&Sopf;",
                "√": "&radic;",
                "□": "&square;",
                "⊓": "&sqcap;",
                "⊏": "&sqsubset;",
                "⊑": "&sqsubseteq;",
                "⊐": "&sqsupset;",
                "⊒": "&sqsupseteq;",
                "⊔": "&sqcup;",
                "𝒮": "&Sscr;",
                "⋆": "&sstarf;",
                "⋐": "&Subset;",
                "⊆": "&subseteq;",
                "≻": "&succ;",
                "⪰": "&succeq;",
                "≽": "&succcurlyeq;",
                "≿": "&succsim;",
                "∑": "&sum;",
                "⋑": "&Supset;",
                "⊃": "&supset;",
                "⊇": "&supseteq;",
                "Þ": "&THORN;",
                "™": "&trade;",
                "Ћ": "&TSHcy;",
                "Ц": "&TScy;",
                "\t": "&Tab;",
                "Τ": "&Tau;",
                "Ť": "&Tcaron;",
                "Ţ": "&Tcedil;",
                "Т": "&Tcy;",
                "𝔗": "&Tfr;",
                "∴": "&therefore;",
                "Θ": "&Theta;",
                "  ": "&ThickSpace;",
                " ": "&thinsp;",
                "∼": "&thksim;",
                "≃": "&simeq;",
                "≅": "&cong;",
                "≈": "&thkap;",
                "𝕋": "&Topf;",
                "⃛": "&tdot;",
                "𝒯": "&Tscr;",
                "Ŧ": "&Tstrok;",
                "Ú": "&Uacute;",
                "↟": "&Uarr;",
                "⥉": "&Uarrocir;",
                "Ў": "&Ubrcy;",
                "Ŭ": "&Ubreve;",
                "Û": "&Ucirc;",
                "У": "&Ucy;",
                "Ű": "&Udblac;",
                "𝔘": "&Ufr;",
                "Ù": "&Ugrave;",
                "Ū": "&Umacr;",
                _: "&lowbar;",
                "⏟": "&UnderBrace;",
                "⎵": "&bbrk;",
                "⏝": "&UnderParenthesis;",
                "⋃": "&xcup;",
                "⊎": "&uplus;",
                "Ų": "&Uogon;",
                "𝕌": "&Uopf;",
                "⤒": "&UpArrowBar;",
                "⇅": "&udarr;",
                "↕": "&varr;",
                "⥮": "&udhar;",
                "⊥": "&perp;",
                "↥": "&mapstoup;",
                "↖": "&nwarrow;",
                "↗": "&nearrow;",
                "ϒ": "&upsih;",
                "Υ": "&Upsilon;",
                "Ů": "&Uring;",
                "𝒰": "&Uscr;",
                "Ũ": "&Utilde;",
                "Ü": "&Uuml;",
                "⊫": "&VDash;",
                "⫫": "&Vbar;",
                "В": "&Vcy;",
                "⊩": "&Vdash;",
                "⫦": "&Vdashl;",
                "⋁": "&xvee;",
                "‖": "&Vert;",
                "∣": "&smid;",
                "|": "&vert;",
                "❘": "&VerticalSeparator;",
                "≀": "&wreath;",
                " ": "&hairsp;",
                "𝔙": "&Vfr;",
                "𝕍": "&Vopf;",
                "𝒱": "&Vscr;",
                "⊪": "&Vvdash;",
                "Ŵ": "&Wcirc;",
                "⋀": "&xwedge;",
                "𝔚": "&Wfr;",
                "𝕎": "&Wopf;",
                "𝒲": "&Wscr;",
                "𝔛": "&Xfr;",
                "Ξ": "&Xi;",
                "𝕏": "&Xopf;",
                "𝒳": "&Xscr;",
                "Я": "&YAcy;",
                "Ї": "&YIcy;",
                "Ю": "&YUcy;",
                "Ý": "&Yacute;",
                "Ŷ": "&Ycirc;",
                "Ы": "&Ycy;",
                "𝔜": "&Yfr;",
                "𝕐": "&Yopf;",
                "𝒴": "&Yscr;",
                "Ÿ": "&Yuml;",
                "Ж": "&ZHcy;",
                "Ź": "&Zacute;",
                "Ž": "&Zcaron;",
                "З": "&Zcy;",
                "Ż": "&Zdot;",
                "Ζ": "&Zeta;",
                "ℨ": "&zeetrf;",
                "ℤ": "&integers;",
                "𝒵": "&Zscr;",
                "á": "&aacute;",
                "ă": "&abreve;",
                "∾": "&mstpos;",
                "∾̳": "&acE;",
                "∿": "&acd;",
                "â": "&acirc;",
                "а": "&acy;",
                "æ": "&aelig;",
                "𝔞": "&afr;",
                "à": "&agrave;",
                "ℵ": "&aleph;",
                "α": "&alpha;",
                "ā": "&amacr;",
                "⨿": "&amalg;",
                "∧": "&wedge;",
                "⩕": "&andand;",
                "⩜": "&andd;",
                "⩘": "&andslope;",
                "⩚": "&andv;",
                "∠": "&angle;",
                "⦤": "&ange;",
                "∡": "&measuredangle;",
                "⦨": "&angmsdaa;",
                "⦩": "&angmsdab;",
                "⦪": "&angmsdac;",
                "⦫": "&angmsdad;",
                "⦬": "&angmsdae;",
                "⦭": "&angmsdaf;",
                "⦮": "&angmsdag;",
                "⦯": "&angmsdah;",
                "∟": "&angrt;",
                "⊾": "&angrtvb;",
                "⦝": "&angrtvbd;",
                "∢": "&angsph;",
                "⍼": "&angzarr;",
                "ą": "&aogon;",
                "𝕒": "&aopf;",
                "⩰": "&apE;",
                "⩯": "&apacir;",
                "≊": "&approxeq;",
                "≋": "&apid;",
                "'": "&apos;",
                "å": "&aring;",
                "𝒶": "&ascr;",
                "*": "&midast;",
                "ã": "&atilde;",
                "ä": "&auml;",
                "⨑": "&awint;",
                "⫭": "&bNot;",
                "≌": "&bcong;",
                "϶": "&bepsi;",
                "‵": "&bprime;",
                "∽": "&bsim;",
                "⋍": "&bsime;",
                "⊽": "&barvee;",
                "⌅": "&barwedge;",
                "⎶": "&bbrktbrk;",
                "б": "&bcy;",
                "„": "&ldquor;",
                "⦰": "&bemptyv;",
                "β": "&beta;",
                "ℶ": "&beth;",
                "≬": "&twixt;",
                "𝔟": "&bfr;",
                "◯": "&xcirc;",
                "⨀": "&xodot;",
                "⨁": "&xoplus;",
                "⨂": "&xotime;",
                "⨆": "&xsqcup;",
                "★": "&starf;",
                "▽": "&xdtri;",
                "△": "&xutri;",
                "⨄": "&xuplus;",
                "⤍": "&rbarr;",
                "⧫": "&lozf;",
                "▴": "&utrif;",
                "▾": "&dtrif;",
                "◂": "&ltrif;",
                "▸": "&rtrif;",
                "␣": "&blank;",
                "▒": "&blk12;",
                "░": "&blk14;",
                "▓": "&blk34;",
                "█": "&block;",
                "=⃥": "&bne;",
                "≡⃥": "&bnequiv;",
                "⌐": "&bnot;",
                "𝕓": "&bopf;",
                "⋈": "&bowtie;",
                "╗": "&boxDL;",
                "╔": "&boxDR;",
                "╖": "&boxDl;",
                "╓": "&boxDr;",
                "═": "&boxH;",
                "╦": "&boxHD;",
                "╩": "&boxHU;",
                "╤": "&boxHd;",
                "╧": "&boxHu;",
                "╝": "&boxUL;",
                "╚": "&boxUR;",
                "╜": "&boxUl;",
                "╙": "&boxUr;",
                "║": "&boxV;",
                "╬": "&boxVH;",
                "╣": "&boxVL;",
                "╠": "&boxVR;",
                "╫": "&boxVh;",
                "╢": "&boxVl;",
                "╟": "&boxVr;",
                "⧉": "&boxbox;",
                "╕": "&boxdL;",
                "╒": "&boxdR;",
                "┐": "&boxdl;",
                "┌": "&boxdr;",
                "╥": "&boxhD;",
                "╨": "&boxhU;",
                "┬": "&boxhd;",
                "┴": "&boxhu;",
                "⊟": "&minusb;",
                "⊞": "&plusb;",
                "⊠": "&timesb;",
                "╛": "&boxuL;",
                "╘": "&boxuR;",
                "┘": "&boxul;",
                "└": "&boxur;",
                "│": "&boxv;",
                "╪": "&boxvH;",
                "╡": "&boxvL;",
                "╞": "&boxvR;",
                "┼": "&boxvh;",
                "┤": "&boxvl;",
                "├": "&boxvr;",
                "¦": "&brvbar;",
                "𝒷": "&bscr;",
                "⁏": "&bsemi;",
                "\\": "&bsol;",
                "⧅": "&bsolb;",
                "⟈": "&bsolhsub;",
                "•": "&bullet;",
                "⪮": "&bumpE;",
                "ć": "&cacute;",
                "∩": "&cap;",
                "⩄": "&capand;",
                "⩉": "&capbrcup;",
                "⩋": "&capcap;",
                "⩇": "&capcup;",
                "⩀": "&capdot;",
                "∩︀": "&caps;",
                "⁁": "&caret;",
                "⩍": "&ccaps;",
                "č": "&ccaron;",
                "ç": "&ccedil;",
                "ĉ": "&ccirc;",
                "⩌": "&ccups;",
                "⩐": "&ccupssm;",
                "ċ": "&cdot;",
                "⦲": "&cemptyv;",
                "¢": "&cent;",
                "𝔠": "&cfr;",
                "ч": "&chcy;",
                "✓": "&checkmark;",
                "χ": "&chi;",
                "○": "&cir;",
                "⧃": "&cirE;",
                "ˆ": "&circ;",
                "≗": "&cire;",
                "↺": "&olarr;",
                "↻": "&orarr;",
                "Ⓢ": "&oS;",
                "⊛": "&oast;",
                "⊚": "&ocir;",
                "⊝": "&odash;",
                "⨐": "&cirfnint;",
                "⫯": "&cirmid;",
                "⧂": "&cirscir;",
                "♣": "&clubsuit;",
                ":": "&colon;",
                ",": "&comma;",
                "@": "&commat;",
                "∁": "&complement;",
                "⩭": "&congdot;",
                "𝕔": "&copf;",
                "℗": "&copysr;",
                "↵": "&crarr;",
                "✗": "&cross;",
                "𝒸": "&cscr;",
                "⫏": "&csub;",
                "⫑": "&csube;",
                "⫐": "&csup;",
                "⫒": "&csupe;",
                "⋯": "&ctdot;",
                "⤸": "&cudarrl;",
                "⤵": "&cudarrr;",
                "⋞": "&curlyeqprec;",
                "⋟": "&curlyeqsucc;",
                "↶": "&curvearrowleft;",
                "⤽": "&cularrp;",
                "∪": "&cup;",
                "⩈": "&cupbrcap;",
                "⩆": "&cupcap;",
                "⩊": "&cupcup;",
                "⊍": "&cupdot;",
                "⩅": "&cupor;",
                "∪︀": "&cups;",
                "↷": "&curvearrowright;",
                "⤼": "&curarrm;",
                "⋎": "&cuvee;",
                "⋏": "&cuwed;",
                "¤": "&curren;",
                "∱": "&cwint;",
                "⌭": "&cylcty;",
                "⥥": "&dHar;",
                "†": "&dagger;",
                "ℸ": "&daleth;",
                "‐": "&hyphen;",
                "⤏": "&rBarr;",
                "ď": "&dcaron;",
                "д": "&dcy;",
                "⇊": "&downdownarrows;",
                "⩷": "&eDDot;",
                "°": "&deg;",
                "δ": "&delta;",
                "⦱": "&demptyv;",
                "⥿": "&dfisht;",
                "𝔡": "&dfr;",
                "♦": "&diams;",
                "ϝ": "&gammad;",
                "⋲": "&disin;",
                "÷": "&divide;",
                "⋇": "&divonx;",
                "ђ": "&djcy;",
                "⌞": "&llcorner;",
                "⌍": "&dlcrop;",
                $: "&dollar;",
                "𝕕": "&dopf;",
                "≑": "&eDot;",
                "∸": "&minusd;",
                "∔": "&plusdo;",
                "⊡": "&sdotb;",
                "⌟": "&lrcorner;",
                "⌌": "&drcrop;",
                "𝒹": "&dscr;",
                "ѕ": "&dscy;",
                "⧶": "&dsol;",
                "đ": "&dstrok;",
                "⋱": "&dtdot;",
                "▿": "&triangledown;",
                "⦦": "&dwangle;",
                "џ": "&dzcy;",
                "⟿": "&dzigrarr;",
                "é": "&eacute;",
                "⩮": "&easter;",
                "ě": "&ecaron;",
                "≖": "&eqcirc;",
                "ê": "&ecirc;",
                "≕": "&eqcolon;",
                "э": "&ecy;",
                "ė": "&edot;",
                "≒": "&fallingdotseq;",
                "𝔢": "&efr;",
                "⪚": "&eg;",
                "è": "&egrave;",
                "⪖": "&eqslantgtr;",
                "⪘": "&egsdot;",
                "⪙": "&el;",
                "⏧": "&elinters;",
                "ℓ": "&ell;",
                "⪕": "&eqslantless;",
                "⪗": "&elsdot;",
                "ē": "&emacr;",
                "∅": "&varnothing;",
                " ": "&emsp13;",
                " ": "&emsp14;",
                " ": "&emsp;",
                "ŋ": "&eng;",
                " ": "&ensp;",
                "ę": "&eogon;",
                "𝕖": "&eopf;",
                "⋕": "&epar;",
                "⧣": "&eparsl;",
                "⩱": "&eplus;",
                "ε": "&epsilon;",
                "ϵ": "&varepsilon;",
                "=": "&equals;",
                "≟": "&questeq;",
                "⩸": "&equivDD;",
                "⧥": "&eqvparsl;",
                "≓": "&risingdotseq;",
                "⥱": "&erarr;",
                "ℯ": "&escr;",
                "η": "&eta;",
                "ð": "&eth;",
                "ë": "&euml;",
                "€": "&euro;",
                "!": "&excl;",
                "ф": "&fcy;",
                "♀": "&female;",
                "ffi": "&ffilig;",
                "ff": "&fflig;",
                "ffl": "&ffllig;",
                "𝔣": "&ffr;",
                "fi": "&filig;",
                fj: "&fjlig;",
                "♭": "&flat;",
                "fl": "&fllig;",
                "▱": "&fltns;",
                "ƒ": "&fnof;",
                "𝕗": "&fopf;",
                "⋔": "&pitchfork;",
                "⫙": "&forkv;",
                "⨍": "&fpartint;",
                "½": "&half;",
                "⅓": "&frac13;",
                "¼": "&frac14;",
                "⅕": "&frac15;",
                "⅙": "&frac16;",
                "⅛": "&frac18;",
                "⅔": "&frac23;",
                "⅖": "&frac25;",
                "¾": "&frac34;",
                "⅗": "&frac35;",
                "⅜": "&frac38;",
                "⅘": "&frac45;",
                "⅚": "&frac56;",
                "⅝": "&frac58;",
                "⅞": "&frac78;",
                "⁄": "&frasl;",
                "⌢": "&sfrown;",
                "𝒻": "&fscr;",
                "⪌": "&gtreqqless;",
                "ǵ": "&gacute;",
                "γ": "&gamma;",
                "⪆": "&gtrapprox;",
                "ğ": "&gbreve;",
                "ĝ": "&gcirc;",
                "г": "&gcy;",
                "ġ": "&gdot;",
                "⪩": "&gescc;",
                "⪀": "&gesdot;",
                "⪂": "&gesdoto;",
                "⪄": "&gesdotol;",
                "⋛︀": "&gesl;",
                "⪔": "&gesles;",
                "𝔤": "&gfr;",
                "ℷ": "&gimel;",
                "ѓ": "&gjcy;",
                "⪒": "&glE;",
                "⪥": "&gla;",
                "⪤": "&glj;",
                "≩": "&gneqq;",
                "⪊": "&gnapprox;",
                "⪈": "&gneq;",
                "⋧": "&gnsim;",
                "𝕘": "&gopf;",
                "ℊ": "&gscr;",
                "⪎": "&gsime;",
                "⪐": "&gsiml;",
                "⪧": "&gtcc;",
                "⩺": "&gtcir;",
                "⋗": "&gtrdot;",
                "⦕": "&gtlPar;",
                "⩼": "&gtquest;",
                "⥸": "&gtrarr;",
                "≩︀": "&gvnE;",
                "ъ": "&hardcy;",
                "⥈": "&harrcir;",
                "↭": "&leftrightsquigarrow;",
                "ℏ": "&plankv;",
                "ĥ": "&hcirc;",
                "♥": "&heartsuit;",
                "…": "&mldr;",
                "⊹": "&hercon;",
                "𝔥": "&hfr;",
                "⤥": "&searhk;",
                "⤦": "&swarhk;",
                "⇿": "&hoarr;",
                "∻": "&homtht;",
                "↩": "&larrhk;",
                "↪": "&rarrhk;",
                "𝕙": "&hopf;",
                "―": "&horbar;",
                "𝒽": "&hscr;",
                "ħ": "&hstrok;",
                "⁃": "&hybull;",
                "í": "&iacute;",
                "î": "&icirc;",
                "и": "&icy;",
                "е": "&iecy;",
                "¡": "&iexcl;",
                "𝔦": "&ifr;",
                "ì": "&igrave;",
                "⨌": "&qint;",
                "∭": "&tint;",
                "⧜": "&iinfin;",
                "℩": "&iiota;",
                "ij": "&ijlig;",
                "ī": "&imacr;",
                "ı": "&inodot;",
                "⊷": "&imof;",
                "Ƶ": "&imped;",
                "℅": "&incare;",
                "∞": "&infin;",
                "⧝": "&infintie;",
                "⊺": "&intercal;",
                "⨗": "&intlarhk;",
                "⨼": "&iprod;",
                "ё": "&iocy;",
                "į": "&iogon;",
                "𝕚": "&iopf;",
                "ι": "&iota;",
                "¿": "&iquest;",
                "𝒾": "&iscr;",
                "⋹": "&isinE;",
                "⋵": "&isindot;",
                "⋴": "&isins;",
                "⋳": "&isinsv;",
                "ĩ": "&itilde;",
                "і": "&iukcy;",
                "ï": "&iuml;",
                "ĵ": "&jcirc;",
                "й": "&jcy;",
                "𝔧": "&jfr;",
                "ȷ": "&jmath;",
                "𝕛": "&jopf;",
                "𝒿": "&jscr;",
                "ј": "&jsercy;",
                "є": "&jukcy;",
                "κ": "&kappa;",
                "ϰ": "&varkappa;",
                "ķ": "&kcedil;",
                "к": "&kcy;",
                "𝔨": "&kfr;",
                "ĸ": "&kgreen;",
                "х": "&khcy;",
                "ќ": "&kjcy;",
                "𝕜": "&kopf;",
                "𝓀": "&kscr;",
                "⤛": "&lAtail;",
                "⤎": "&lBarr;",
                "⪋": "&lesseqqgtr;",
                "⥢": "&lHar;",
                "ĺ": "&lacute;",
                "⦴": "&laemptyv;",
                "λ": "&lambda;",
                "⦑": "&langd;",
                "⪅": "&lessapprox;",
                "«": "&laquo;",
                "⤟": "&larrbfs;",
                "⤝": "&larrfs;",
                "↫": "&looparrowleft;",
                "⤹": "&larrpl;",
                "⥳": "&larrsim;",
                "↢": "&leftarrowtail;",
                "⪫": "&lat;",
                "⤙": "&latail;",
                "⪭": "&late;",
                "⪭︀": "&lates;",
                "⤌": "&lbarr;",
                "❲": "&lbbrk;",
                "{": "&lcub;",
                "[": "&lsqb;",
                "⦋": "&lbrke;",
                "⦏": "&lbrksld;",
                "⦍": "&lbrkslu;",
                "ľ": "&lcaron;",
                "ļ": "&lcedil;",
                "л": "&lcy;",
                "⤶": "&ldca;",
                "⥧": "&ldrdhar;",
                "⥋": "&ldrushar;",
                "↲": "&ldsh;",
                "≤": "&leq;",
                "⇇": "&llarr;",
                "⋋": "&lthree;",
                "⪨": "&lescc;",
                "⩿": "&lesdot;",
                "⪁": "&lesdoto;",
                "⪃": "&lesdotor;",
                "⋚︀": "&lesg;",
                "⪓": "&lesges;",
                "⋖": "&ltdot;",
                "⥼": "&lfisht;",
                "𝔩": "&lfr;",
                "⪑": "&lgE;",
                "⥪": "&lharul;",
                "▄": "&lhblk;",
                "љ": "&ljcy;",
                "⥫": "&llhard;",
                "◺": "&lltri;",
                "ŀ": "&lmidot;",
                "⎰": "&lmoustache;",
                "≨": "&lneqq;",
                "⪉": "&lnapprox;",
                "⪇": "&lneq;",
                "⋦": "&lnsim;",
                "⟬": "&loang;",
                "⇽": "&loarr;",
                "⟼": "&xmap;",
                "↬": "&rarrlp;",
                "⦅": "&lopar;",
                "𝕝": "&lopf;",
                "⨭": "&loplus;",
                "⨴": "&lotimes;",
                "∗": "&lowast;",
                "◊": "&lozenge;",
                "(": "&lpar;",
                "⦓": "&lparlt;",
                "⥭": "&lrhard;",
                "‎": "&lrm;",
                "⊿": "&lrtri;",
                "‹": "&lsaquo;",
                "𝓁": "&lscr;",
                "⪍": "&lsime;",
                "⪏": "&lsimg;",
                "‚": "&sbquo;",
                "ł": "&lstrok;",
                "⪦": "&ltcc;",
                "⩹": "&ltcir;",
                "⋉": "&ltimes;",
                "⥶": "&ltlarr;",
                "⩻": "&ltquest;",
                "⦖": "&ltrPar;",
                "◃": "&triangleleft;",
                "⥊": "&lurdshar;",
                "⥦": "&luruhar;",
                "≨︀": "&lvnE;",
                "∺": "&mDDot;",
                "¯": "&strns;",
                "♂": "&male;",
                "✠": "&maltese;",
                "▮": "&marker;",
                "⨩": "&mcomma;",
                "м": "&mcy;",
                "—": "&mdash;",
                "𝔪": "&mfr;",
                "℧": "&mho;",
                "µ": "&micro;",
                "⫰": "&midcir;",
                "−": "&minus;",
                "⨪": "&minusdu;",
                "⫛": "&mlcp;",
                "⊧": "&models;",
                "𝕞": "&mopf;",
                "𝓂": "&mscr;",
                "μ": "&mu;",
                "⊸": "&mumap;",
                "⋙̸": "&nGg;",
                "≫⃒": "&nGt;",
                "⇍": "&nlArr;",
                "⇎": "&nhArr;",
                "⋘̸": "&nLl;",
                "≪⃒": "&nLt;",
                "⇏": "&nrArr;",
                "⊯": "&nVDash;",
                "⊮": "&nVdash;",
                "ń": "&nacute;",
                "∠⃒": "&nang;",
                "⩰̸": "&napE;",
                "≋̸": "&napid;",
                "ʼn": "&napos;",
                "♮": "&natural;",
                "⩃": "&ncap;",
                "ň": "&ncaron;",
                "ņ": "&ncedil;",
                "⩭̸": "&ncongdot;",
                "⩂": "&ncup;",
                "н": "&ncy;",
                "–": "&ndash;",
                "⇗": "&neArr;",
                "⤤": "&nearhk;",
                "≐̸": "&nedot;",
                "⤨": "&toea;",
                "𝔫": "&nfr;",
                "↮": "&nleftrightarrow;",
                "⫲": "&nhpar;",
                "⋼": "&nis;",
                "⋺": "&nisd;",
                "њ": "&njcy;",
                "≦̸": "&nleqq;",
                "↚": "&nleftarrow;",
                "‥": "&nldr;",
                "𝕟": "&nopf;",
                "¬": "&not;",
                "⋹̸": "&notinE;",
                "⋵̸": "&notindot;",
                "⋷": "&notinvb;",
                "⋶": "&notinvc;",
                "⋾": "&notnivb;",
                "⋽": "&notnivc;",
                "⫽⃥": "&nparsl;",
                "∂̸": "&npart;",
                "⨔": "&npolint;",
                "↛": "&nrightarrow;",
                "⤳̸": "&nrarrc;",
                "↝̸": "&nrarrw;",
                "𝓃": "&nscr;",
                "⊄": "&nsub;",
                "⫅̸": "&nsubseteqq;",
                "⊅": "&nsup;",
                "⫆̸": "&nsupseteqq;",
                "ñ": "&ntilde;",
                "ν": "&nu;",
                "#": "&num;",
                "№": "&numero;",
                " ": "&numsp;",
                "⊭": "&nvDash;",
                "⤄": "&nvHarr;",
                "≍⃒": "&nvap;",
                "⊬": "&nvdash;",
                "≥⃒": "&nvge;",
                ">⃒": "&nvgt;",
                "⧞": "&nvinfin;",
                "⤂": "&nvlArr;",
                "≤⃒": "&nvle;",
                "<⃒": "&nvlt;",
                "⊴⃒": "&nvltrie;",
                "⤃": "&nvrArr;",
                "⊵⃒": "&nvrtrie;",
                "∼⃒": "&nvsim;",
                "⇖": "&nwArr;",
                "⤣": "&nwarhk;",
                "⤧": "&nwnear;",
                "ó": "&oacute;",
                "ô": "&ocirc;",
                "о": "&ocy;",
                "ő": "&odblac;",
                "⨸": "&odiv;",
                "⦼": "&odsold;",
                "œ": "&oelig;",
                "⦿": "&ofcir;",
                "𝔬": "&ofr;",
                "˛": "&ogon;",
                "ò": "&ograve;",
                "⧁": "&ogt;",
                "⦵": "&ohbar;",
                "⦾": "&olcir;",
                "⦻": "&olcross;",
                "⧀": "&olt;",
                "ō": "&omacr;",
                "ω": "&omega;",
                "ο": "&omicron;",
                "⦶": "&omid;",
                "𝕠": "&oopf;",
                "⦷": "&opar;",
                "⦹": "&operp;",
                "∨": "&vee;",
                "⩝": "&ord;",
                "ℴ": "&oscr;",
                "ª": "&ordf;",
                "º": "&ordm;",
                "⊶": "&origof;",
                "⩖": "&oror;",
                "⩗": "&orslope;",
                "⩛": "&orv;",
                "ø": "&oslash;",
                "⊘": "&osol;",
                "õ": "&otilde;",
                "⨶": "&otimesas;",
                "ö": "&ouml;",
                "⌽": "&ovbar;",
                "¶": "&para;",
                "⫳": "&parsim;",
                "⫽": "&parsl;",
                "п": "&pcy;",
                "%": "&percnt;",
                ".": "&period;",
                "‰": "&permil;",
                "‱": "&pertenk;",
                "𝔭": "&pfr;",
                "φ": "&phi;",
                "ϕ": "&varphi;",
                "☎": "&phone;",
                "π": "&pi;",
                "ϖ": "&varpi;",
                "ℎ": "&planckh;",
                "+": "&plus;",
                "⨣": "&plusacir;",
                "⨢": "&pluscir;",
                "⨥": "&plusdu;",
                "⩲": "&pluse;",
                "⨦": "&plussim;",
                "⨧": "&plustwo;",
                "⨕": "&pointint;",
                "𝕡": "&popf;",
                "£": "&pound;",
                "⪳": "&prE;",
                "⪷": "&precapprox;",
                "⪹": "&prnap;",
                "⪵": "&prnE;",
                "⋨": "&prnsim;",
                "′": "&prime;",
                "⌮": "&profalar;",
                "⌒": "&profline;",
                "⌓": "&profsurf;",
                "⊰": "&prurel;",
                "𝓅": "&pscr;",
                "ψ": "&psi;",
                " ": "&puncsp;",
                "𝔮": "&qfr;",
                "𝕢": "&qopf;",
                "⁗": "&qprime;",
                "𝓆": "&qscr;",
                "⨖": "&quatint;",
                "?": "&quest;",
                "⤜": "&rAtail;",
                "⥤": "&rHar;",
                "∽̱": "&race;",
                "ŕ": "&racute;",
                "⦳": "&raemptyv;",
                "⦒": "&rangd;",
                "⦥": "&range;",
                "»": "&raquo;",
                "⥵": "&rarrap;",
                "⤠": "&rarrbfs;",
                "⤳": "&rarrc;",
                "⤞": "&rarrfs;",
                "⥅": "&rarrpl;",
                "⥴": "&rarrsim;",
                "↣": "&rightarrowtail;",
                "↝": "&rightsquigarrow;",
                "⤚": "&ratail;",
                "∶": "&ratio;",
                "❳": "&rbbrk;",
                "}": "&rcub;",
                "]": "&rsqb;",
                "⦌": "&rbrke;",
                "⦎": "&rbrksld;",
                "⦐": "&rbrkslu;",
                "ř": "&rcaron;",
                "ŗ": "&rcedil;",
                "р": "&rcy;",
                "⤷": "&rdca;",
                "⥩": "&rdldhar;",
                "↳": "&rdsh;",
                "▭": "&rect;",
                "⥽": "&rfisht;",
                "𝔯": "&rfr;",
                "⥬": "&rharul;",
                "ρ": "&rho;",
                "ϱ": "&varrho;",
                "⇉": "&rrarr;",
                "⋌": "&rthree;",
                "˚": "&ring;",
                "‏": "&rlm;",
                "⎱": "&rmoustache;",
                "⫮": "&rnmid;",
                "⟭": "&roang;",
                "⇾": "&roarr;",
                "⦆": "&ropar;",
                "𝕣": "&ropf;",
                "⨮": "&roplus;",
                "⨵": "&rotimes;",
                ")": "&rpar;",
                "⦔": "&rpargt;",
                "⨒": "&rppolint;",
                "›": "&rsaquo;",
                "𝓇": "&rscr;",
                "⋊": "&rtimes;",
                "▹": "&triangleright;",
                "⧎": "&rtriltri;",
                "⥨": "&ruluhar;",
                "℞": "&rx;",
                "ś": "&sacute;",
                "⪴": "&scE;",
                "⪸": "&succapprox;",
                "š": "&scaron;",
                "ş": "&scedil;",
                "ŝ": "&scirc;",
                "⪶": "&succneqq;",
                "⪺": "&succnapprox;",
                "⋩": "&succnsim;",
                "⨓": "&scpolint;",
                "с": "&scy;",
                "⋅": "&sdot;",
                "⩦": "&sdote;",
                "⇘": "&seArr;",
                "§": "&sect;",
                ";": "&semi;",
                "⤩": "&tosa;",
                "✶": "&sext;",
                "𝔰": "&sfr;",
                "♯": "&sharp;",
                "щ": "&shchcy;",
                "ш": "&shcy;",
                "­": "&shy;",
                "σ": "&sigma;",
                "ς": "&varsigma;",
                "⩪": "&simdot;",
                "⪞": "&simg;",
                "⪠": "&simgE;",
                "⪝": "&siml;",
                "⪟": "&simlE;",
                "≆": "&simne;",
                "⨤": "&simplus;",
                "⥲": "&simrarr;",
                "⨳": "&smashp;",
                "⧤": "&smeparsl;",
                "⌣": "&ssmile;",
                "⪪": "&smt;",
                "⪬": "&smte;",
                "⪬︀": "&smtes;",
                "ь": "&softcy;",
                "/": "&sol;",
                "⧄": "&solb;",
                "⌿": "&solbar;",
                "𝕤": "&sopf;",
                "♠": "&spadesuit;",
                "⊓︀": "&sqcaps;",
                "⊔︀": "&sqcups;",
                "𝓈": "&sscr;",
                "☆": "&star;",
                "⊂": "&subset;",
                "⫅": "&subseteqq;",
                "⪽": "&subdot;",
                "⫃": "&subedot;",
                "⫁": "&submult;",
                "⫋": "&subsetneqq;",
                "⊊": "&subsetneq;",
                "⪿": "&subplus;",
                "⥹": "&subrarr;",
                "⫇": "&subsim;",
                "⫕": "&subsub;",
                "⫓": "&subsup;",
                "♪": "&sung;",
                "¹": "&sup1;",
                "²": "&sup2;",
                "³": "&sup3;",
                "⫆": "&supseteqq;",
                "⪾": "&supdot;",
                "⫘": "&supdsub;",
                "⫄": "&supedot;",
                "⟉": "&suphsol;",
                "⫗": "&suphsub;",
                "⥻": "&suplarr;",
                "⫂": "&supmult;",
                "⫌": "&supsetneqq;",
                "⊋": "&supsetneq;",
                "⫀": "&supplus;",
                "⫈": "&supsim;",
                "⫔": "&supsub;",
                "⫖": "&supsup;",
                "⇙": "&swArr;",
                "⤪": "&swnwar;",
                "ß": "&szlig;",
                "⌖": "&target;",
                "τ": "&tau;",
                "ť": "&tcaron;",
                "ţ": "&tcedil;",
                "т": "&tcy;",
                "⌕": "&telrec;",
                "𝔱": "&tfr;",
                "θ": "&theta;",
                "ϑ": "&vartheta;",
                "þ": "&thorn;",
                "×": "&times;",
                "⨱": "&timesbar;",
                "⨰": "&timesd;",
                "⌶": "&topbot;",
                "⫱": "&topcir;",
                "𝕥": "&topf;",
                "⫚": "&topfork;",
                "‴": "&tprime;",
                "▵": "&utri;",
                "≜": "&trie;",
                "◬": "&tridot;",
                "⨺": "&triminus;",
                "⨹": "&triplus;",
                "⧍": "&trisb;",
                "⨻": "&tritime;",
                "⏢": "&trpezium;",
                "𝓉": "&tscr;",
                "ц": "&tscy;",
                "ћ": "&tshcy;",
                "ŧ": "&tstrok;",
                "⥣": "&uHar;",
                "ú": "&uacute;",
                "ў": "&ubrcy;",
                "ŭ": "&ubreve;",
                "û": "&ucirc;",
                "у": "&ucy;",
                "ű": "&udblac;",
                "⥾": "&ufisht;",
                "𝔲": "&ufr;",
                "ù": "&ugrave;",
                "▀": "&uhblk;",
                "⌜": "&ulcorner;",
                "⌏": "&ulcrop;",
                "◸": "&ultri;",
                "ū": "&umacr;",
                "ų": "&uogon;",
                "𝕦": "&uopf;",
                "υ": "&upsilon;",
                "⇈": "&uuarr;",
                "⌝": "&urcorner;",
                "⌎": "&urcrop;",
                "ů": "&uring;",
                "◹": "&urtri;",
                "𝓊": "&uscr;",
                "⋰": "&utdot;",
                "ũ": "&utilde;",
                "ü": "&uuml;",
                "⦧": "&uwangle;",
                "⫨": "&vBar;",
                "⫩": "&vBarv;",
                "⦜": "&vangrt;",
                "⊊︀": "&vsubne;",
                "⫋︀": "&vsubnE;",
                "⊋︀": "&vsupne;",
                "⫌︀": "&vsupnE;",
                "в": "&vcy;",
                "⊻": "&veebar;",
                "≚": "&veeeq;",
                "⋮": "&vellip;",
                "𝔳": "&vfr;",
                "𝕧": "&vopf;",
                "𝓋": "&vscr;",
                "⦚": "&vzigzag;",
                "ŵ": "&wcirc;",
                "⩟": "&wedbar;",
                "≙": "&wedgeq;",
                "℘": "&wp;",
                "𝔴": "&wfr;",
                "𝕨": "&wopf;",
                "𝓌": "&wscr;",
                "𝔵": "&xfr;",
                "ξ": "&xi;",
                "⋻": "&xnis;",
                "𝕩": "&xopf;",
                "𝓍": "&xscr;",
                "ý": "&yacute;",
                "я": "&yacy;",
                "ŷ": "&ycirc;",
                "ы": "&ycy;",
                "¥": "&yen;",
                "𝔶": "&yfr;",
                "ї": "&yicy;",
                "𝕪": "&yopf;",
                "𝓎": "&yscr;",
                "ю": "&yucy;",
                "ÿ": "&yuml;",
                "ź": "&zacute;",
                "ž": "&zcaron;",
                "з": "&zcy;",
                "ż": "&zdot;",
                "ζ": "&zeta;",
                "𝔷": "&zfr;",
                "ж": "&zhcy;",
                "⇝": "&zigrarr;",
                "𝕫": "&zopf;",
                "𝓏": "&zscr;",
                "‍": "&zwj;",
                "‌": "&zwnj;"
              }
            }
          };
          
          /***/ }),
          
          /***/ 7294:
          /*!***************************************************************!*\
            !*** ./node_modules/html-entities/lib/numeric-unicode-map.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, exports) => {
          
          "use strict";
          
          
          Object.defineProperty(exports, "__esModule", ({
            value: true
          }));
          exports.numericUnicodeMap = {
            0: 65533,
            128: 8364,
            130: 8218,
            131: 402,
            132: 8222,
            133: 8230,
            134: 8224,
            135: 8225,
            136: 710,
            137: 8240,
            138: 352,
            139: 8249,
            140: 338,
            142: 381,
            145: 8216,
            146: 8217,
            147: 8220,
            148: 8221,
            149: 8226,
            150: 8211,
            151: 8212,
            152: 732,
            153: 8482,
            154: 353,
            155: 8250,
            156: 339,
            158: 382,
            159: 376
          };
          
          /***/ }),
          
          /***/ 422:
          /*!***********************************************************!*\
            !*** ./node_modules/html-entities/lib/surrogate-pairs.js ***!
            \***********************************************************/
          /***/ ((__unused_webpack_module, exports) => {
          
          "use strict";
          
          
          Object.defineProperty(exports, "__esModule", ({
            value: true
          }));
          exports.fromCodePoint = String.fromCodePoint || function (astralCodePoint) {
            return String.fromCharCode(Math.floor((astralCodePoint - 65536) / 1024) + 55296, (astralCodePoint - 65536) % 1024 + 56320);
          };
          exports.getCodePoint = String.prototype.codePointAt ? function (input, position) {
            return input.codePointAt(position);
          } : function (input, position) {
            return (input.charCodeAt(position) - 55296) * 1024 + input.charCodeAt(position + 1) - 56320 + 65536;
          };
          exports.highSurrogateFrom = 55296;
          exports.highSurrogateTo = 56319;
          
          /***/ }),
          
          /***/ 5797:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/BehaviorSubject.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BehaviorSubject: () => (/* binding */ BehaviorSubject)
          /* harmony export */ });
          /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ 819);
          
          class BehaviorSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__.Subject {
            constructor(_value) {
              super();
              this._value = _value;
            }
            get value() {
              return this.getValue();
            }
            _subscribe(subscriber) {
              const subscription = super._subscribe(subscriber);
              !subscription.closed && subscriber.next(this._value);
              return subscription;
            }
            getValue() {
              const {
                hasError,
                thrownError,
                _value
              } = this;
              if (hasError) {
                throw thrownError;
              }
              this._throwIfClosed();
              return _value;
            }
            next(value) {
              super.next(this._value = value);
            }
          }
          
          /***/ }),
          
          /***/ 2220:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/NotificationFactories.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   COMPLETE_NOTIFICATION: () => (/* binding */ COMPLETE_NOTIFICATION),
          /* harmony export */   createNotification: () => (/* binding */ createNotification),
          /* harmony export */   errorNotification: () => (/* binding */ errorNotification),
          /* harmony export */   nextNotification: () => (/* binding */ nextNotification)
          /* harmony export */ });
          const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
          function errorNotification(error) {
            return createNotification('E', undefined, error);
          }
          function nextNotification(value) {
            return createNotification('N', value, undefined);
          }
          function createNotification(kind, value, error) {
            return {
              kind,
              value,
              error
            };
          }
          
          /***/ }),
          
          /***/ 3942:
          /*!***********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/Observable.js ***!
            \***********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   Observable: () => (/* binding */ Observable)
          /* harmony export */ });
          /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscriber */ 9285);
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Subscription */ 2510);
          /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/observable */ 4127);
          /* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/pipe */ 5682);
          /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ 2213);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util/isFunction */ 1530);
          /* harmony import */ var _util_errorContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/errorContext */ 23);
          
          
          
          
          
          
          
          class Observable {
            constructor(subscribe) {
              if (subscribe) {
                this._subscribe = subscribe;
              }
            }
            lift(operator) {
              const observable = new Observable();
              observable.source = this;
              observable.operator = operator;
              return observable;
            }
            subscribe(observerOrNext, error, complete) {
              const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new _Subscriber__WEBPACK_IMPORTED_MODULE_0__.SafeSubscriber(observerOrNext, error, complete);
              (0,_util_errorContext__WEBPACK_IMPORTED_MODULE_1__.errorContext)(() => {
                const {
                  operator,
                  source
                } = this;
                subscriber.add(operator ? operator.call(subscriber, source) : source ? this._subscribe(subscriber) : this._trySubscribe(subscriber));
              });
              return subscriber;
            }
            _trySubscribe(sink) {
              try {
                return this._subscribe(sink);
              } catch (err) {
                sink.error(err);
              }
            }
            forEach(next, promiseCtor) {
              promiseCtor = getPromiseCtor(promiseCtor);
              return new promiseCtor((resolve, reject) => {
                const subscriber = new _Subscriber__WEBPACK_IMPORTED_MODULE_0__.SafeSubscriber({
                  next: value => {
                    try {
                      next(value);
                    } catch (err) {
                      reject(err);
                      subscriber.unsubscribe();
                    }
                  },
                  error: reject,
                  complete: resolve
                });
                this.subscribe(subscriber);
              });
            }
            _subscribe(subscriber) {
              var _a;
              return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
            }
            [_symbol_observable__WEBPACK_IMPORTED_MODULE_2__.observable]() {
              return this;
            }
            pipe(...operations) {
              return (0,_util_pipe__WEBPACK_IMPORTED_MODULE_3__.pipeFromArray)(operations)(this);
            }
            toPromise(promiseCtor) {
              promiseCtor = getPromiseCtor(promiseCtor);
              return new promiseCtor((resolve, reject) => {
                let value;
                this.subscribe(x => value = x, err => reject(err), () => resolve(value));
              });
            }
          }
          Observable.create = subscribe => {
            return new Observable(subscribe);
          };
          function getPromiseCtor(promiseCtor) {
            var _a;
            return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : _config__WEBPACK_IMPORTED_MODULE_4__.config.Promise) !== null && _a !== void 0 ? _a : Promise;
          }
          function isObserver(value) {
            return value && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_5__.isFunction)(value.next) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_5__.isFunction)(value.error) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_5__.isFunction)(value.complete);
          }
          function isSubscriber(value) {
            return value && value instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__.Subscriber || isObserver(value) && (0,_Subscription__WEBPACK_IMPORTED_MODULE_6__.isSubscription)(value);
          }
          
          /***/ }),
          
          /***/ 6042:
          /*!**************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/ReplaySubject.js ***!
            \**************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ReplaySubject: () => (/* binding */ ReplaySubject)
          /* harmony export */ });
          /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ 819);
          /* harmony import */ var _scheduler_dateTimestampProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scheduler/dateTimestampProvider */ 5152);
          
          
          class ReplaySubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__.Subject {
            constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = _scheduler_dateTimestampProvider__WEBPACK_IMPORTED_MODULE_1__.dateTimestampProvider) {
              super();
              this._bufferSize = _bufferSize;
              this._windowTime = _windowTime;
              this._timestampProvider = _timestampProvider;
              this._buffer = [];
              this._infiniteTimeWindow = true;
              this._infiniteTimeWindow = _windowTime === Infinity;
              this._bufferSize = Math.max(1, _bufferSize);
              this._windowTime = Math.max(1, _windowTime);
            }
            next(value) {
              const {
                isStopped,
                _buffer,
                _infiniteTimeWindow,
                _timestampProvider,
                _windowTime
              } = this;
              if (!isStopped) {
                _buffer.push(value);
                !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
              }
              this._trimBuffer();
              super.next(value);
            }
            _subscribe(subscriber) {
              this._throwIfClosed();
              this._trimBuffer();
              const subscription = this._innerSubscribe(subscriber);
              const {
                _infiniteTimeWindow,
                _buffer
              } = this;
              const copy = _buffer.slice();
              for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
                subscriber.next(copy[i]);
              }
              this._checkFinalizedStatuses(subscriber);
              return subscription;
            }
            _trimBuffer() {
              const {
                _bufferSize,
                _timestampProvider,
                _buffer,
                _infiniteTimeWindow
              } = this;
              const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
              _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
              if (!_infiniteTimeWindow) {
                const now = _timestampProvider.now();
                let last = 0;
                for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {
                  last = i;
                }
                last && _buffer.splice(0, last + 1);
              }
            }
          }
          
          /***/ }),
          
          /***/ 1962:
          /*!**********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/Scheduler.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   Scheduler: () => (/* binding */ Scheduler)
          /* harmony export */ });
          /* harmony import */ var _scheduler_dateTimestampProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scheduler/dateTimestampProvider */ 5152);
          
          class Scheduler {
            constructor(schedulerActionCtor, now = Scheduler.now) {
              this.schedulerActionCtor = schedulerActionCtor;
              this.now = now;
            }
            schedule(work, delay = 0, state) {
              return new this.schedulerActionCtor(this, work).schedule(state, delay);
            }
          }
          Scheduler.now = _scheduler_dateTimestampProvider__WEBPACK_IMPORTED_MODULE_0__.dateTimestampProvider.now;
          
          /***/ }),
          
          /***/ 819:
          /*!********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/Subject.js ***!
            \********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AnonymousSubject: () => (/* binding */ AnonymousSubject),
          /* harmony export */   Subject: () => (/* binding */ Subject)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Observable */ 3942);
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Subscription */ 2510);
          /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ 1910);
          /* harmony import */ var _util_arrRemove__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util/arrRemove */ 967);
          /* harmony import */ var _util_errorContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/errorContext */ 23);
          
          
          
          
          
          class Subject extends _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable {
            constructor() {
              super();
              this.closed = false;
              this.currentObservers = null;
              this.observers = [];
              this.isStopped = false;
              this.hasError = false;
              this.thrownError = null;
            }
            lift(operator) {
              const subject = new AnonymousSubject(this, this);
              subject.operator = operator;
              return subject;
            }
            _throwIfClosed() {
              if (this.closed) {
                throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__.ObjectUnsubscribedError();
              }
            }
            next(value) {
              (0,_util_errorContext__WEBPACK_IMPORTED_MODULE_2__.errorContext)(() => {
                this._throwIfClosed();
                if (!this.isStopped) {
                  if (!this.currentObservers) {
                    this.currentObservers = Array.from(this.observers);
                  }
                  for (const observer of this.currentObservers) {
                    observer.next(value);
                  }
                }
              });
            }
            error(err) {
              (0,_util_errorContext__WEBPACK_IMPORTED_MODULE_2__.errorContext)(() => {
                this._throwIfClosed();
                if (!this.isStopped) {
                  this.hasError = this.isStopped = true;
                  this.thrownError = err;
                  const {
                    observers
                  } = this;
                  while (observers.length) {
                    observers.shift().error(err);
                  }
                }
              });
            }
            complete() {
              (0,_util_errorContext__WEBPACK_IMPORTED_MODULE_2__.errorContext)(() => {
                this._throwIfClosed();
                if (!this.isStopped) {
                  this.isStopped = true;
                  const {
                    observers
                  } = this;
                  while (observers.length) {
                    observers.shift().complete();
                  }
                }
              });
            }
            unsubscribe() {
              this.isStopped = this.closed = true;
              this.observers = this.currentObservers = null;
            }
            get observed() {
              var _a;
              return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
            }
            _trySubscribe(subscriber) {
              this._throwIfClosed();
              return super._trySubscribe(subscriber);
            }
            _subscribe(subscriber) {
              this._throwIfClosed();
              this._checkFinalizedStatuses(subscriber);
              return this._innerSubscribe(subscriber);
            }
            _innerSubscribe(subscriber) {
              const {
                hasError,
                isStopped,
                observers
              } = this;
              if (hasError || isStopped) {
                return _Subscription__WEBPACK_IMPORTED_MODULE_3__.EMPTY_SUBSCRIPTION;
              }
              this.currentObservers = null;
              observers.push(subscriber);
              return new _Subscription__WEBPACK_IMPORTED_MODULE_3__.Subscription(() => {
                this.currentObservers = null;
                (0,_util_arrRemove__WEBPACK_IMPORTED_MODULE_4__.arrRemove)(observers, subscriber);
              });
            }
            _checkFinalizedStatuses(subscriber) {
              const {
                hasError,
                thrownError,
                isStopped
              } = this;
              if (hasError) {
                subscriber.error(thrownError);
              } else if (isStopped) {
                subscriber.complete();
              }
            }
            asObservable() {
              const observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable();
              observable.source = this;
              return observable;
            }
          }
          Subject.create = (destination, source) => {
            return new AnonymousSubject(destination, source);
          };
          class AnonymousSubject extends Subject {
            constructor(destination, source) {
              super();
              this.destination = destination;
              this.source = source;
            }
            next(value) {
              var _a, _b;
              (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
            }
            error(err) {
              var _a, _b;
              (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
            }
            complete() {
              var _a, _b;
              (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
            }
            _subscribe(subscriber) {
              var _a, _b;
              return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : _Subscription__WEBPACK_IMPORTED_MODULE_3__.EMPTY_SUBSCRIPTION;
            }
          }
          
          /***/ }),
          
          /***/ 9285:
          /*!***********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/Subscriber.js ***!
            \***********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   EMPTY_OBSERVER: () => (/* binding */ EMPTY_OBSERVER),
          /* harmony export */   SafeSubscriber: () => (/* binding */ SafeSubscriber),
          /* harmony export */   Subscriber: () => (/* binding */ Subscriber)
          /* harmony export */ });
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/isFunction */ 1530);
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscription */ 2510);
          /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ 2213);
          /* harmony import */ var _util_reportUnhandledError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util/reportUnhandledError */ 1411);
          /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util/noop */ 4318);
          /* harmony import */ var _NotificationFactories__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NotificationFactories */ 2220);
          /* harmony import */ var _scheduler_timeoutProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./scheduler/timeoutProvider */ 9603);
          /* harmony import */ var _util_errorContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util/errorContext */ 23);
          
          
          
          
          
          
          
          
          class Subscriber extends _Subscription__WEBPACK_IMPORTED_MODULE_0__.Subscription {
            constructor(destination) {
              super();
              this.isStopped = false;
              if (destination) {
                this.destination = destination;
                if ((0,_Subscription__WEBPACK_IMPORTED_MODULE_0__.isSubscription)(destination)) {
                  destination.add(this);
                }
              } else {
                this.destination = EMPTY_OBSERVER;
              }
            }
            static create(next, error, complete) {
              return new SafeSubscriber(next, error, complete);
            }
            next(value) {
              if (this.isStopped) {
                handleStoppedNotification((0,_NotificationFactories__WEBPACK_IMPORTED_MODULE_1__.nextNotification)(value), this);
              } else {
                this._next(value);
              }
            }
            error(err) {
              if (this.isStopped) {
                handleStoppedNotification((0,_NotificationFactories__WEBPACK_IMPORTED_MODULE_1__.errorNotification)(err), this);
              } else {
                this.isStopped = true;
                this._error(err);
              }
            }
            complete() {
              if (this.isStopped) {
                handleStoppedNotification(_NotificationFactories__WEBPACK_IMPORTED_MODULE_1__.COMPLETE_NOTIFICATION, this);
              } else {
                this.isStopped = true;
                this._complete();
              }
            }
            unsubscribe() {
              if (!this.closed) {
                this.isStopped = true;
                super.unsubscribe();
                this.destination = null;
              }
            }
            _next(value) {
              this.destination.next(value);
            }
            _error(err) {
              try {
                this.destination.error(err);
              } finally {
                this.unsubscribe();
              }
            }
            _complete() {
              try {
                this.destination.complete();
              } finally {
                this.unsubscribe();
              }
            }
          }
          const _bind = Function.prototype.bind;
          function bind(fn, thisArg) {
            return _bind.call(fn, thisArg);
          }
          class ConsumerObserver {
            constructor(partialObserver) {
              this.partialObserver = partialObserver;
            }
            next(value) {
              const {
                partialObserver
              } = this;
              if (partialObserver.next) {
                try {
                  partialObserver.next(value);
                } catch (error) {
                  handleUnhandledError(error);
                }
              }
            }
            error(err) {
              const {
                partialObserver
              } = this;
              if (partialObserver.error) {
                try {
                  partialObserver.error(err);
                } catch (error) {
                  handleUnhandledError(error);
                }
              } else {
                handleUnhandledError(err);
              }
            }
            complete() {
              const {
                partialObserver
              } = this;
              if (partialObserver.complete) {
                try {
                  partialObserver.complete();
                } catch (error) {
                  handleUnhandledError(error);
                }
              }
            }
          }
          class SafeSubscriber extends Subscriber {
            constructor(observerOrNext, error, complete) {
              super();
              let partialObserver;
              if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_2__.isFunction)(observerOrNext) || !observerOrNext) {
                partialObserver = {
                  next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
                  error: error !== null && error !== void 0 ? error : undefined,
                  complete: complete !== null && complete !== void 0 ? complete : undefined
                };
              } else {
                let context;
                if (this && _config__WEBPACK_IMPORTED_MODULE_3__.config.useDeprecatedNextContext) {
                  context = Object.create(observerOrNext);
                  context.unsubscribe = () => this.unsubscribe();
                  partialObserver = {
                    next: observerOrNext.next && bind(observerOrNext.next, context),
                    error: observerOrNext.error && bind(observerOrNext.error, context),
                    complete: observerOrNext.complete && bind(observerOrNext.complete, context)
                  };
                } else {
                  partialObserver = observerOrNext;
                }
              }
              this.destination = new ConsumerObserver(partialObserver);
            }
          }
          function handleUnhandledError(error) {
            if (_config__WEBPACK_IMPORTED_MODULE_3__.config.useDeprecatedSynchronousErrorHandling) {
              (0,_util_errorContext__WEBPACK_IMPORTED_MODULE_4__.captureError)(error);
            } else {
              (0,_util_reportUnhandledError__WEBPACK_IMPORTED_MODULE_5__.reportUnhandledError)(error);
            }
          }
          function defaultErrorHandler(err) {
            throw err;
          }
          function handleStoppedNotification(notification, subscriber) {
            const {
              onStoppedNotification
            } = _config__WEBPACK_IMPORTED_MODULE_3__.config;
            onStoppedNotification && _scheduler_timeoutProvider__WEBPACK_IMPORTED_MODULE_6__.timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
          }
          const EMPTY_OBSERVER = {
            closed: true,
            next: _util_noop__WEBPACK_IMPORTED_MODULE_7__.noop,
            error: defaultErrorHandler,
            complete: _util_noop__WEBPACK_IMPORTED_MODULE_7__.noop
          };
          
          /***/ }),
          
          /***/ 2510:
          /*!*************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/Subscription.js ***!
            \*************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   EMPTY_SUBSCRIPTION: () => (/* binding */ EMPTY_SUBSCRIPTION),
          /* harmony export */   Subscription: () => (/* binding */ Subscription),
          /* harmony export */   isSubscription: () => (/* binding */ isSubscription)
          /* harmony export */ });
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/isFunction */ 1530);
          /* harmony import */ var _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/UnsubscriptionError */ 2540);
          /* harmony import */ var _util_arrRemove__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/arrRemove */ 967);
          
          
          
          class Subscription {
            constructor(initialTeardown) {
              this.initialTeardown = initialTeardown;
              this.closed = false;
              this._parentage = null;
              this._finalizers = null;
            }
            unsubscribe() {
              let errors;
              if (!this.closed) {
                this.closed = true;
                const {
                  _parentage
                } = this;
                if (_parentage) {
                  this._parentage = null;
                  if (Array.isArray(_parentage)) {
                    for (const parent of _parentage) {
                      parent.remove(this);
                    }
                  } else {
                    _parentage.remove(this);
                  }
                }
                const {
                  initialTeardown: initialFinalizer
                } = this;
                if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(initialFinalizer)) {
                  try {
                    initialFinalizer();
                  } catch (e) {
                    errors = e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.UnsubscriptionError ? e.errors : [e];
                  }
                }
                const {
                  _finalizers
                } = this;
                if (_finalizers) {
                  this._finalizers = null;
                  for (const finalizer of _finalizers) {
                    try {
                      execFinalizer(finalizer);
                    } catch (err) {
                      errors = errors !== null && errors !== void 0 ? errors : [];
                      if (err instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.UnsubscriptionError) {
                        errors = [...errors, ...err.errors];
                      } else {
                        errors.push(err);
                      }
                    }
                  }
                }
                if (errors) {
                  throw new _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.UnsubscriptionError(errors);
                }
              }
            }
            add(teardown) {
              var _a;
              if (teardown && teardown !== this) {
                if (this.closed) {
                  execFinalizer(teardown);
                } else {
                  if (teardown instanceof Subscription) {
                    if (teardown.closed || teardown._hasParent(this)) {
                      return;
                    }
                    teardown._addParent(this);
                  }
                  (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
                }
              }
            }
            _hasParent(parent) {
              const {
                _parentage
              } = this;
              return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
            }
            _addParent(parent) {
              const {
                _parentage
              } = this;
              this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
            }
            _removeParent(parent) {
              const {
                _parentage
              } = this;
              if (_parentage === parent) {
                this._parentage = null;
              } else if (Array.isArray(_parentage)) {
                (0,_util_arrRemove__WEBPACK_IMPORTED_MODULE_2__.arrRemove)(_parentage, parent);
              }
            }
            remove(teardown) {
              const {
                _finalizers
              } = this;
              _finalizers && (0,_util_arrRemove__WEBPACK_IMPORTED_MODULE_2__.arrRemove)(_finalizers, teardown);
              if (teardown instanceof Subscription) {
                teardown._removeParent(this);
              }
            }
          }
          Subscription.EMPTY = (() => {
            const empty = new Subscription();
            empty.closed = true;
            return empty;
          })();
          const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
          function isSubscription(value) {
            return value instanceof Subscription || value && 'closed' in value && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(value.remove) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(value.add) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(value.unsubscribe);
          }
          function execFinalizer(finalizer) {
            if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(finalizer)) {
              finalizer();
            } else {
              finalizer.unsubscribe();
            }
          }
          
          /***/ }),
          
          /***/ 2213:
          /*!*******************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/config.js ***!
            \*******************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   config: () => (/* binding */ config)
          /* harmony export */ });
          const config = {
            onUnhandledError: null,
            onStoppedNotification: null,
            Promise: undefined,
            useDeprecatedSynchronousErrorHandling: false,
            useDeprecatedNextContext: false
          };
          
          /***/ }),
          
          /***/ 4982:
          /*!*********************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js ***!
            \*********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ConnectableObservable: () => (/* binding */ ConnectableObservable)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscription */ 2510);
          /* harmony import */ var _operators_refCount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operators/refCount */ 3481);
          /* harmony import */ var _operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/OperatorSubscriber */ 1687);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          
          
          
          
          class ConnectableObservable extends _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable {
            constructor(source, subjectFactory) {
              super();
              this.source = source;
              this.subjectFactory = subjectFactory;
              this._subject = null;
              this._refCount = 0;
              this._connection = null;
              if ((0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.hasLift)(source)) {
                this.lift = source.lift;
              }
            }
            _subscribe(subscriber) {
              return this.getSubject().subscribe(subscriber);
            }
            getSubject() {
              const subject = this._subject;
              if (!subject || subject.isStopped) {
                this._subject = this.subjectFactory();
              }
              return this._subject;
            }
            _teardown() {
              this._refCount = 0;
              const {
                _connection
              } = this;
              this._subject = this._connection = null;
              _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();
            }
            connect() {
              let connection = this._connection;
              if (!connection) {
                connection = this._connection = new _Subscription__WEBPACK_IMPORTED_MODULE_2__.Subscription();
                const subject = this.getSubject();
                connection.add(this.source.subscribe((0,_operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_3__.createOperatorSubscriber)(subject, undefined, () => {
                  this._teardown();
                  subject.complete();
                }, err => {
                  this._teardown();
                  subject.error(err);
                }, () => this._teardown())));
                if (connection.closed) {
                  this._connection = null;
                  connection = _Subscription__WEBPACK_IMPORTED_MODULE_2__.Subscription.EMPTY;
                }
              }
              return connection;
            }
            refCount() {
              return (0,_operators_refCount__WEBPACK_IMPORTED_MODULE_4__.refCount)()(this);
            }
          }
          
          /***/ }),
          
          /***/ 9999:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/combineLatest.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   combineLatest: () => (/* binding */ combineLatest),
          /* harmony export */   combineLatestInit: () => (/* binding */ combineLatestInit)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _util_argsArgArrayOrObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/argsArgArrayOrObject */ 7808);
          /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./from */ 5429);
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/identity */ 1440);
          /* harmony import */ var _util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/mapOneOrManyArgs */ 8067);
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _util_createObject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/createObject */ 6813);
          /* harmony import */ var _operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operators/OperatorSubscriber */ 1687);
          /* harmony import */ var _util_executeSchedule__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/executeSchedule */ 310);
          
          
          
          
          
          
          
          
          
          function combineLatest(...args) {
            const scheduler = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popScheduler)(args);
            const resultSelector = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popResultSelector)(args);
            const {
              args: observables,
              keys
            } = (0,_util_argsArgArrayOrObject__WEBPACK_IMPORTED_MODULE_1__.argsArgArrayOrObject)(args);
            if (observables.length === 0) {
              return (0,_from__WEBPACK_IMPORTED_MODULE_2__.from)([], scheduler);
            }
            const result = new _Observable__WEBPACK_IMPORTED_MODULE_3__.Observable(combineLatestInit(observables, scheduler, keys ? values => (0,_util_createObject__WEBPACK_IMPORTED_MODULE_4__.createObject)(keys, values) : _util_identity__WEBPACK_IMPORTED_MODULE_5__.identity));
            return resultSelector ? result.pipe((0,_util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_6__.mapOneOrManyArgs)(resultSelector)) : result;
          }
          function combineLatestInit(observables, scheduler, valueTransform = _util_identity__WEBPACK_IMPORTED_MODULE_5__.identity) {
            return subscriber => {
              maybeSchedule(scheduler, () => {
                const {
                  length
                } = observables;
                const values = new Array(length);
                let active = length;
                let remainingFirstValues = length;
                for (let i = 0; i < length; i++) {
                  maybeSchedule(scheduler, () => {
                    const source = (0,_from__WEBPACK_IMPORTED_MODULE_2__.from)(observables[i], scheduler);
                    let hasFirstValue = false;
                    source.subscribe((0,_operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_7__.createOperatorSubscriber)(subscriber, value => {
                      values[i] = value;
                      if (!hasFirstValue) {
                        hasFirstValue = true;
                        remainingFirstValues--;
                      }
                      if (!remainingFirstValues) {
                        subscriber.next(valueTransform(values.slice()));
                      }
                    }, () => {
                      if (! --active) {
                        subscriber.complete();
                      }
                    }));
                  }, subscriber);
                }
              }, subscriber);
            };
          }
          function maybeSchedule(scheduler, execute, subscription) {
            if (scheduler) {
              (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_8__.executeSchedule)(subscription, scheduler, execute);
            } else {
              execute();
            }
          }
          
          /***/ }),
          
          /***/ 4665:
          /*!******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/concat.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   concat: () => (/* binding */ concat)
          /* harmony export */ });
          /* harmony import */ var _operators_concatAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../operators/concatAll */ 7278);
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ 5429);
          
          
          
          function concat(...args) {
            return (0,_operators_concatAll__WEBPACK_IMPORTED_MODULE_0__.concatAll)()((0,_from__WEBPACK_IMPORTED_MODULE_1__.from)(args, (0,_util_args__WEBPACK_IMPORTED_MODULE_2__.popScheduler)(args)));
          }
          
          /***/ }),
          
          /***/ 137:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/defer.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   defer: () => (/* binding */ defer)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _innerFrom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./innerFrom */ 2645);
          
          
          function defer(observableFactory) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              (0,_innerFrom__WEBPACK_IMPORTED_MODULE_1__.innerFrom)(observableFactory()).subscribe(subscriber);
            });
          }
          
          /***/ }),
          
          /***/ 9400:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/empty.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   EMPTY: () => (/* binding */ EMPTY),
          /* harmony export */   empty: () => (/* binding */ empty)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          
          const EMPTY = new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => subscriber.complete());
          function empty(scheduler) {
            return scheduler ? emptyScheduled(scheduler) : EMPTY;
          }
          function emptyScheduled(scheduler) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => scheduler.schedule(() => subscriber.complete()));
          }
          
          /***/ }),
          
          /***/ 1873:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/forkJoin.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   forkJoin: () => (/* binding */ forkJoin)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _util_argsArgArrayOrObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/argsArgArrayOrObject */ 7808);
          /* harmony import */ var _innerFrom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./innerFrom */ 2645);
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operators/OperatorSubscriber */ 1687);
          /* harmony import */ var _util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/mapOneOrManyArgs */ 8067);
          /* harmony import */ var _util_createObject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/createObject */ 6813);
          
          
          
          
          
          
          
          function forkJoin(...args) {
            const resultSelector = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popResultSelector)(args);
            const {
              args: sources,
              keys
            } = (0,_util_argsArgArrayOrObject__WEBPACK_IMPORTED_MODULE_1__.argsArgArrayOrObject)(args);
            const result = new _Observable__WEBPACK_IMPORTED_MODULE_2__.Observable(subscriber => {
              const {
                length
              } = sources;
              if (!length) {
                subscriber.complete();
                return;
              }
              const values = new Array(length);
              let remainingCompletions = length;
              let remainingEmissions = length;
              for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {
                let hasValue = false;
                (0,_innerFrom__WEBPACK_IMPORTED_MODULE_3__.innerFrom)(sources[sourceIndex]).subscribe((0,_operators_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_4__.createOperatorSubscriber)(subscriber, value => {
                  if (!hasValue) {
                    hasValue = true;
                    remainingEmissions--;
                  }
                  values[sourceIndex] = value;
                }, () => remainingCompletions--, undefined, () => {
                  if (!remainingCompletions || !hasValue) {
                    if (!remainingEmissions) {
                      subscriber.next(keys ? (0,_util_createObject__WEBPACK_IMPORTED_MODULE_5__.createObject)(keys, values) : values);
                    }
                    subscriber.complete();
                  }
                }));
              }
            });
            return resultSelector ? result.pipe((0,_util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_6__.mapOneOrManyArgs)(resultSelector)) : result;
          }
          
          /***/ }),
          
          /***/ 5429:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/from.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   from: () => (/* binding */ from)
          /* harmony export */ });
          /* harmony import */ var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduled/scheduled */ 4424);
          /* harmony import */ var _innerFrom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./innerFrom */ 2645);
          
          
          function from(input, scheduler) {
            return scheduler ? (0,_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_0__.scheduled)(input, scheduler) : (0,_innerFrom__WEBPACK_IMPORTED_MODULE_1__.innerFrom)(input);
          }
          
          /***/ }),
          
          /***/ 8537:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/fromEvent.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   fromEvent: () => (/* binding */ fromEvent)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _operators_mergeMap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/mergeMap */ 3255);
          /* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isArrayLike */ 8830);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          /* harmony import */ var _util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/mapOneOrManyArgs */ 8067);
          
          
          
          
          
          
          const nodeEventEmitterMethods = ['addListener', 'removeListener'];
          const eventTargetMethods = ['addEventListener', 'removeEventListener'];
          const jqueryMethods = ['on', 'off'];
          function fromEvent(target, eventName, options, resultSelector) {
            if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(options)) {
              resultSelector = options;
              options = undefined;
            }
            if (resultSelector) {
              return fromEvent(target, eventName, options).pipe((0,_util_mapOneOrManyArgs__WEBPACK_IMPORTED_MODULE_1__.mapOneOrManyArgs)(resultSelector));
            }
            const [add, remove] = isEventTarget(target) ? eventTargetMethods.map(methodName => handler => target[methodName](eventName, handler, options)) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [];
            if (!add) {
              if ((0,_util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__.isArrayLike)(target)) {
                return (0,_operators_mergeMap__WEBPACK_IMPORTED_MODULE_3__.mergeMap)(subTarget => fromEvent(subTarget, eventName, options))((0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_4__.innerFrom)(target));
              }
            }
            if (!add) {
              throw new TypeError('Invalid event target');
            }
            return new _Observable__WEBPACK_IMPORTED_MODULE_5__.Observable(subscriber => {
              const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);
              add(handler);
              return () => remove(handler);
            });
          }
          function toCommonHandlerRegistry(target, eventName) {
            return methodName => handler => target[methodName](eventName, handler);
          }
          function isNodeStyleEventEmitter(target) {
            return (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.addListener) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.removeListener);
          }
          function isJQueryStyleEventEmitter(target) {
            return (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.on) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.off);
          }
          function isEventTarget(target) {
            return (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.addEventListener) && (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(target.removeEventListener);
          }
          
          /***/ }),
          
          /***/ 2645:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/innerFrom.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   fromArrayLike: () => (/* binding */ fromArrayLike),
          /* harmony export */   fromAsyncIterable: () => (/* binding */ fromAsyncIterable),
          /* harmony export */   fromInteropObservable: () => (/* binding */ fromInteropObservable),
          /* harmony export */   fromIterable: () => (/* binding */ fromIterable),
          /* harmony export */   fromPromise: () => (/* binding */ fromPromise),
          /* harmony export */   fromReadableStreamLike: () => (/* binding */ fromReadableStreamLike),
          /* harmony export */   innerFrom: () => (/* binding */ innerFrom)
          /* harmony export */ });
          /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! tslib */ 4398);
          /* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isArrayLike */ 8830);
          /* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isPromise */ 1117);
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isInteropObservable */ 1516);
          /* harmony import */ var _util_isAsyncIterable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isAsyncIterable */ 4558);
          /* harmony import */ var _util_throwUnobservableError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/throwUnobservableError */ 1374);
          /* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isIterable */ 528);
          /* harmony import */ var _util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/isReadableStreamLike */ 3233);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          /* harmony import */ var _util_reportUnhandledError__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../util/reportUnhandledError */ 1411);
          /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../symbol/observable */ 4127);
          
          
          
          
          
          
          
          
          
          
          
          
          function innerFrom(input) {
            if (input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable) {
              return input;
            }
            if (input != null) {
              if ((0,_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_1__.isInteropObservable)(input)) {
                return fromInteropObservable(input);
              }
              if ((0,_util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__.isArrayLike)(input)) {
                return fromArrayLike(input);
              }
              if ((0,_util_isPromise__WEBPACK_IMPORTED_MODULE_3__.isPromise)(input)) {
                return fromPromise(input);
              }
              if ((0,_util_isAsyncIterable__WEBPACK_IMPORTED_MODULE_4__.isAsyncIterable)(input)) {
                return fromAsyncIterable(input);
              }
              if ((0,_util_isIterable__WEBPACK_IMPORTED_MODULE_5__.isIterable)(input)) {
                return fromIterable(input);
              }
              if ((0,_util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_6__.isReadableStreamLike)(input)) {
                return fromReadableStreamLike(input);
              }
            }
            throw (0,_util_throwUnobservableError__WEBPACK_IMPORTED_MODULE_7__.createInvalidObservableTypeError)(input);
          }
          function fromInteropObservable(obj) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              const obs = obj[_symbol_observable__WEBPACK_IMPORTED_MODULE_8__.observable]();
              if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_9__.isFunction)(obs.subscribe)) {
                return obs.subscribe(subscriber);
              }
              throw new TypeError('Provided object does not correctly implement Symbol.observable');
            });
          }
          function fromArrayLike(array) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              for (let i = 0; i < array.length && !subscriber.closed; i++) {
                subscriber.next(array[i]);
              }
              subscriber.complete();
            });
          }
          function fromPromise(promise) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              promise.then(value => {
                if (!subscriber.closed) {
                  subscriber.next(value);
                  subscriber.complete();
                }
              }, err => subscriber.error(err)).then(null, _util_reportUnhandledError__WEBPACK_IMPORTED_MODULE_10__.reportUnhandledError);
            });
          }
          function fromIterable(iterable) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              for (const value of iterable) {
                subscriber.next(value);
                if (subscriber.closed) {
                  return;
                }
              }
              subscriber.complete();
            });
          }
          function fromAsyncIterable(asyncIterable) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              process(asyncIterable, subscriber).catch(err => subscriber.error(err));
            });
          }
          function fromReadableStreamLike(readableStream) {
            return fromAsyncIterable((0,_util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_6__.readableStreamLikeToAsyncGenerator)(readableStream));
          }
          function process(asyncIterable, subscriber) {
            var asyncIterable_1, asyncIterable_1_1;
            var e_1, _a;
            return (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__awaiter)(this, void 0, void 0, function* () {
              try {
                for (asyncIterable_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_11__.__asyncValues)(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {
                  const value = asyncIterable_1_1.value;
                  subscriber.next(value);
                  if (subscriber.closed) {
                    return;
                  }
                }
              } catch (e_1_1) {
                e_1 = {
                  error: e_1_1
                };
              } finally {
                try {
                  if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);
                } finally {
                  if (e_1) throw e_1.error;
                }
              }
              subscriber.complete();
            });
          }
          
          /***/ }),
          
          /***/ 3617:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/merge.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   merge: () => (/* binding */ merge)
          /* harmony export */ });
          /* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/mergeAll */ 3222);
          /* harmony import */ var _innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./innerFrom */ 2645);
          /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./empty */ 9400);
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./from */ 5429);
          
          
          
          
          
          function merge(...args) {
            const scheduler = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popScheduler)(args);
            const concurrent = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popNumber)(args, Infinity);
            const sources = args;
            return !sources.length ? _empty__WEBPACK_IMPORTED_MODULE_1__.EMPTY : sources.length === 1 ? (0,_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(sources[0]) : (0,_operators_mergeAll__WEBPACK_IMPORTED_MODULE_3__.mergeAll)(concurrent)((0,_from__WEBPACK_IMPORTED_MODULE_4__.from)(sources, scheduler));
          }
          
          /***/ }),
          
          /***/ 9452:
          /*!**************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/of.js ***!
            \**************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   of: () => (/* binding */ of)
          /* harmony export */ });
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ 5429);
          
          
          function of(...args) {
            const scheduler = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popScheduler)(args);
            return (0,_from__WEBPACK_IMPORTED_MODULE_1__.from)(args, scheduler);
          }
          
          /***/ }),
          
          /***/ 7919:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/throwError.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   throwError: () => (/* binding */ throwError)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          
          
          function throwError(errorOrErrorFactory, scheduler) {
            const errorFactory = (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;
            const init = subscriber => subscriber.error(errorFactory());
            return new _Observable__WEBPACK_IMPORTED_MODULE_1__.Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);
          }
          
          /***/ }),
          
          /***/ 4876:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/observable/timer.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   timer: () => (/* binding */ timer)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ 8473);
          /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ 9397);
          /* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isDate */ 5602);
          
          
          
          
          function timer(dueTime = 0, intervalOrScheduler, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__.async) {
            let intervalDuration = -1;
            if (intervalOrScheduler != null) {
              if ((0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__.isScheduler)(intervalOrScheduler)) {
                scheduler = intervalOrScheduler;
              } else {
                intervalDuration = intervalOrScheduler;
              }
            }
            return new _Observable__WEBPACK_IMPORTED_MODULE_2__.Observable(subscriber => {
              let due = (0,_util_isDate__WEBPACK_IMPORTED_MODULE_3__.isValidDate)(dueTime) ? +dueTime - scheduler.now() : dueTime;
              if (due < 0) {
                due = 0;
              }
              let n = 0;
              return scheduler.schedule(function () {
                if (!subscriber.closed) {
                  subscriber.next(n++);
                  if (0 <= intervalDuration) {
                    this.schedule(undefined, intervalDuration);
                  } else {
                    subscriber.complete();
                  }
                }
              }, due);
            });
          }
          
          /***/ }),
          
          /***/ 1687:
          /*!*****************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js ***!
            \*****************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   OperatorSubscriber: () => (/* binding */ OperatorSubscriber),
          /* harmony export */   createOperatorSubscriber: () => (/* binding */ createOperatorSubscriber)
          /* harmony export */ });
          /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ 9285);
          
          function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {
            return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);
          }
          class OperatorSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__.Subscriber {
            constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
              super(destination);
              this.onFinalize = onFinalize;
              this.shouldUnsubscribe = shouldUnsubscribe;
              this._next = onNext ? function (value) {
                try {
                  onNext(value);
                } catch (err) {
                  destination.error(err);
                }
              } : super._next;
              this._error = onError ? function (err) {
                try {
                  onError(err);
                } catch (err) {
                  destination.error(err);
                } finally {
                  this.unsubscribe();
                }
              } : super._error;
              this._complete = onComplete ? function () {
                try {
                  onComplete();
                } catch (err) {
                  destination.error(err);
                } finally {
                  this.unsubscribe();
                }
              } : super._complete;
            }
            unsubscribe() {
              var _a;
              if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
                const {
                  closed
                } = this;
                super.unsubscribe();
                !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
              }
            }
          }
          
          /***/ }),
          
          /***/ 3658:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/audit.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   audit: () => (/* binding */ audit)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function audit(durationSelector) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let hasValue = false;
              let lastValue = null;
              let durationSubscriber = null;
              let isComplete = false;
              const endDuration = () => {
                durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
                durationSubscriber = null;
                if (hasValue) {
                  hasValue = false;
                  const value = lastValue;
                  lastValue = null;
                  subscriber.next(value);
                }
                isComplete && subscriber.complete();
              };
              const cleanupDuration = () => {
                durationSubscriber = null;
                isComplete && subscriber.complete();
              };
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                hasValue = true;
                lastValue = value;
                if (!durationSubscriber) {
                  (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(durationSelector(value)).subscribe(durationSubscriber = (0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, endDuration, cleanupDuration));
                }
              }, () => {
                isComplete = true;
                (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();
              }));
            });
          }
          
          /***/ }),
          
          /***/ 2351:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/auditTime.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   auditTime: () => (/* binding */ auditTime)
          /* harmony export */ });
          /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ 8473);
          /* harmony import */ var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./audit */ 3658);
          /* harmony import */ var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/timer */ 4876);
          
          
          
          function auditTime(duration, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__.asyncScheduler) {
            return (0,_audit__WEBPACK_IMPORTED_MODULE_1__.audit)(() => (0,_observable_timer__WEBPACK_IMPORTED_MODULE_2__.timer)(duration, scheduler));
          }
          
          /***/ }),
          
          /***/ 1318:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/catchError.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   catchError: () => (/* binding */ catchError)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          
          
          function catchError(selector) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let innerSub = null;
              let syncUnsub = false;
              let handledResult;
              innerSub = source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, undefined, undefined, err => {
                handledResult = (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(selector(err, catchError(selector)(source)));
                if (innerSub) {
                  innerSub.unsubscribe();
                  innerSub = null;
                  handledResult.subscribe(subscriber);
                } else {
                  syncUnsub = true;
                }
              }));
              if (syncUnsub) {
                innerSub.unsubscribe();
                innerSub = null;
                handledResult.subscribe(subscriber);
              }
            });
          }
          
          /***/ }),
          
          /***/ 7278:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/concatAll.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   concatAll: () => (/* binding */ concatAll)
          /* harmony export */ });
          /* harmony import */ var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeAll */ 3222);
          
          function concatAll() {
            return (0,_mergeAll__WEBPACK_IMPORTED_MODULE_0__.mergeAll)(1);
          }
          
          /***/ }),
          
          /***/ 1903:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/concatMap.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   concatMap: () => (/* binding */ concatMap)
          /* harmony export */ });
          /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mergeMap */ 3255);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          
          
          function concatMap(project, resultSelector) {
            return (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(resultSelector) ? (0,_mergeMap__WEBPACK_IMPORTED_MODULE_1__.mergeMap)(project, resultSelector, 1) : (0,_mergeMap__WEBPACK_IMPORTED_MODULE_1__.mergeMap)(project, 1);
          }
          
          /***/ }),
          
          /***/ 2575:
          /*!***********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/debounceTime.js ***!
            \***********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   debounceTime: () => (/* binding */ debounceTime)
          /* harmony export */ });
          /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ 8473);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function debounceTime(dueTime, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__.asyncScheduler) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              let activeTask = null;
              let lastValue = null;
              let lastTime = null;
              const emit = () => {
                if (activeTask) {
                  activeTask.unsubscribe();
                  activeTask = null;
                  const value = lastValue;
                  lastValue = null;
                  subscriber.next(value);
                }
              };
              function emitWhenIdle() {
                const targetTime = lastTime + dueTime;
                const now = scheduler.now();
                if (now < targetTime) {
                  activeTask = this.schedule(undefined, targetTime - now);
                  subscriber.add(activeTask);
                  return;
                }
                emit();
              }
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, value => {
                lastValue = value;
                lastTime = scheduler.now();
                if (!activeTask) {
                  activeTask = scheduler.schedule(emitWhenIdle, dueTime);
                  subscriber.add(activeTask);
                }
              }, () => {
                emit();
                subscriber.complete();
              }, undefined, () => {
                lastValue = activeTask = null;
              }));
            });
          }
          
          /***/ }),
          
          /***/ 778:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   defaultIfEmpty: () => (/* binding */ defaultIfEmpty)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function defaultIfEmpty(defaultValue) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let hasValue = false;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                hasValue = true;
                subscriber.next(value);
              }, () => {
                if (!hasValue) {
                  subscriber.next(defaultValue);
                }
                subscriber.complete();
              }));
            });
          }
          
          /***/ }),
          
          /***/ 1817:
          /*!*******************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js ***!
            \*******************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   distinctUntilChanged: () => (/* binding */ distinctUntilChanged)
          /* harmony export */ });
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/identity */ 1440);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function distinctUntilChanged(comparator, keySelector = _util_identity__WEBPACK_IMPORTED_MODULE_0__.identity) {
            comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              let previousKey;
              let first = true;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, value => {
                const currentKey = keySelector(value);
                if (first || !comparator(previousKey, currentKey)) {
                  first = false;
                  previousKey = currentKey;
                  subscriber.next(value);
                }
              }));
            });
          }
          function defaultCompare(a, b) {
            return a === b;
          }
          
          /***/ }),
          
          /***/ 1567:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/filter.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   filter: () => (/* binding */ filter)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function filter(predicate, thisArg) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let index = 0;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));
            });
          }
          
          /***/ }),
          
          /***/ 9475:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/finalize.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   finalize: () => (/* binding */ finalize)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          function finalize(callback) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              try {
                source.subscribe(subscriber);
              } finally {
                subscriber.add(callback);
              }
            });
          }
          
          /***/ }),
          
          /***/ 2435:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/first.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   first: () => (/* binding */ first)
          /* harmony export */ });
          /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/EmptyError */ 3335);
          /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filter */ 1567);
          /* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./take */ 4334);
          /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ 778);
          /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./throwIfEmpty */ 9365);
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ 1440);
          
          
          
          
          
          
          function first(predicate, defaultValue) {
            const hasDefaultValue = arguments.length >= 2;
            return source => source.pipe(predicate ? (0,_filter__WEBPACK_IMPORTED_MODULE_0__.filter)((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_1__.identity, (0,_take__WEBPACK_IMPORTED_MODULE_2__.take)(1), hasDefaultValue ? (0,_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__.defaultIfEmpty)(defaultValue) : (0,_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__.throwIfEmpty)(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_5__.EmptyError()));
          }
          
          /***/ }),
          
          /***/ 2157:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/last.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   last: () => (/* binding */ last)
          /* harmony export */ });
          /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/EmptyError */ 3335);
          /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filter */ 1567);
          /* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./takeLast */ 602);
          /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./throwIfEmpty */ 9365);
          /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ 778);
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ 1440);
          
          
          
          
          
          
          function last(predicate, defaultValue) {
            const hasDefaultValue = arguments.length >= 2;
            return source => source.pipe(predicate ? (0,_filter__WEBPACK_IMPORTED_MODULE_0__.filter)((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_1__.identity, (0,_takeLast__WEBPACK_IMPORTED_MODULE_2__.takeLast)(1), hasDefaultValue ? (0,_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__.defaultIfEmpty)(defaultValue) : (0,_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__.throwIfEmpty)(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_5__.EmptyError()));
          }
          
          /***/ }),
          
          /***/ 271:
          /*!**************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/map.js ***!
            \**************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   map: () => (/* binding */ map)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function map(project, thisArg) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let index = 0;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                subscriber.next(project.call(thisArg, value, index++));
              }));
            });
          }
          
          /***/ }),
          
          /***/ 7378:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/mapTo.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   mapTo: () => (/* binding */ mapTo)
          /* harmony export */ });
          /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ 271);
          
          function mapTo(value) {
            return (0,_map__WEBPACK_IMPORTED_MODULE_0__.map)(() => value);
          }
          
          /***/ }),
          
          /***/ 3222:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/mergeAll.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   mergeAll: () => (/* binding */ mergeAll)
          /* harmony export */ });
          /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ 3255);
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ 1440);
          
          
          function mergeAll(concurrent = Infinity) {
            return (0,_mergeMap__WEBPACK_IMPORTED_MODULE_0__.mergeMap)(_util_identity__WEBPACK_IMPORTED_MODULE_1__.identity, concurrent);
          }
          
          /***/ }),
          
          /***/ 8735:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   mergeInternals: () => (/* binding */ mergeInternals)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/executeSchedule */ 310);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {
            const buffer = [];
            let active = 0;
            let index = 0;
            let isComplete = false;
            const checkComplete = () => {
              if (isComplete && !buffer.length && !active) {
                subscriber.complete();
              }
            };
            const outerNext = value => active < concurrent ? doInnerSub(value) : buffer.push(value);
            const doInnerSub = value => {
              expand && subscriber.next(value);
              active++;
              let innerComplete = false;
              (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__.innerFrom)(project(value, index++)).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, innerValue => {
                onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);
                if (expand) {
                  outerNext(innerValue);
                } else {
                  subscriber.next(innerValue);
                }
              }, () => {
                innerComplete = true;
              }, undefined, () => {
                if (innerComplete) {
                  try {
                    active--;
                    while (buffer.length && active < concurrent) {
                      const bufferedValue = buffer.shift();
                      if (innerSubScheduler) {
                        (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__.executeSchedule)(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));
                      } else {
                        doInnerSub(bufferedValue);
                      }
                    }
                    checkComplete();
                  } catch (err) {
                    subscriber.error(err);
                  }
                }
              }));
            };
            source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, outerNext, () => {
              isComplete = true;
              checkComplete();
            }));
            return () => {
              additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();
            };
          }
          
          /***/ }),
          
          /***/ 3255:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/mergeMap.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   mergeMap: () => (/* binding */ mergeMap)
          /* harmony export */ });
          /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./map */ 271);
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _mergeInternals__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeInternals */ 8735);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          
          
          
          
          
          function mergeMap(project, resultSelector, concurrent = Infinity) {
            if ((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(resultSelector)) {
              return mergeMap((a, i) => (0,_map__WEBPACK_IMPORTED_MODULE_1__.map)((b, ii) => resultSelector(a, b, i, ii))((0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(project(a, i))), concurrent);
            } else if (typeof resultSelector === 'number') {
              concurrent = resultSelector;
            }
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_3__.operate)((source, subscriber) => (0,_mergeInternals__WEBPACK_IMPORTED_MODULE_4__.mergeInternals)(source, subscriber, project, concurrent));
          }
          
          /***/ }),
          
          /***/ 4304:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/observeOn.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   observeOn: () => (/* binding */ observeOn)
          /* harmony export */ });
          /* harmony import */ var _util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/executeSchedule */ 310);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function observeOn(scheduler, delay = 0) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__.executeSchedule)(subscriber, scheduler, () => subscriber.next(value), delay), () => (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__.executeSchedule)(subscriber, scheduler, () => subscriber.complete(), delay), err => (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_2__.executeSchedule)(subscriber, scheduler, () => subscriber.error(err), delay)));
            });
          }
          
          /***/ }),
          
          /***/ 5057:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/pairwise.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   pairwise: () => (/* binding */ pairwise)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function pairwise() {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let prev;
              let hasPrev = false;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                const p = prev;
                prev = value;
                hasPrev && subscriber.next([p, value]);
                hasPrev = true;
              }));
            });
          }
          
          /***/ }),
          
          /***/ 3481:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/refCount.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   refCount: () => (/* binding */ refCount)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function refCount() {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let connection = null;
              source._refCount++;
              const refCounter = (0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, undefined, undefined, undefined, () => {
                if (!source || source._refCount <= 0 || 0 < --source._refCount) {
                  connection = null;
                  return;
                }
                const sharedConnection = source._connection;
                const conn = connection;
                connection = null;
                if (sharedConnection && (!conn || sharedConnection === conn)) {
                  sharedConnection.unsubscribe();
                }
                subscriber.unsubscribe();
              });
              source.subscribe(refCounter);
              if (!refCounter.closed) {
                connection = source.connect();
              }
            });
          }
          
          /***/ }),
          
          /***/ 2112:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/scan.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scan: () => (/* binding */ scan)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _scanInternals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scanInternals */ 5392);
          
          
          function scan(accumulator, seed) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((0,_scanInternals__WEBPACK_IMPORTED_MODULE_1__.scanInternals)(accumulator, seed, arguments.length >= 2, true));
          }
          
          /***/ }),
          
          /***/ 5392:
          /*!************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/scanInternals.js ***!
            \************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scanInternals: () => (/* binding */ scanInternals)
          /* harmony export */ });
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
            return (source, subscriber) => {
              let hasState = hasSeed;
              let state = seed;
              let index = 0;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_0__.createOperatorSubscriber)(subscriber, value => {
                const i = index++;
                state = hasState ? accumulator(state, value, i) : (hasState = true, value);
                emitOnNext && subscriber.next(state);
              }, emitBeforeComplete && (() => {
                hasState && subscriber.next(state);
                subscriber.complete();
              })));
            };
          }
          
          /***/ }),
          
          /***/ 1870:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/share.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   share: () => (/* binding */ share)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ 819);
          /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ 9285);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          
          
          
          function share(options = {}) {
            const {
              connector = () => new _Subject__WEBPACK_IMPORTED_MODULE_0__.Subject(),
              resetOnError = true,
              resetOnComplete = true,
              resetOnRefCountZero = true
            } = options;
            return wrapperSource => {
              let connection;
              let resetConnection;
              let subject;
              let refCount = 0;
              let hasCompleted = false;
              let hasErrored = false;
              const cancelReset = () => {
                resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
                resetConnection = undefined;
              };
              const reset = () => {
                cancelReset();
                connection = subject = undefined;
                hasCompleted = hasErrored = false;
              };
              const resetAndUnsubscribe = () => {
                const conn = connection;
                reset();
                conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
              };
              return (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
                refCount++;
                if (!hasErrored && !hasCompleted) {
                  cancelReset();
                }
                const dest = subject = subject !== null && subject !== void 0 ? subject : connector();
                subscriber.add(() => {
                  refCount--;
                  if (refCount === 0 && !hasErrored && !hasCompleted) {
                    resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);
                  }
                });
                dest.subscribe(subscriber);
                if (!connection && refCount > 0) {
                  connection = new _Subscriber__WEBPACK_IMPORTED_MODULE_2__.SafeSubscriber({
                    next: value => dest.next(value),
                    error: err => {
                      hasErrored = true;
                      cancelReset();
                      resetConnection = handleReset(reset, resetOnError, err);
                      dest.error(err);
                    },
                    complete: () => {
                      hasCompleted = true;
                      cancelReset();
                      resetConnection = handleReset(reset, resetOnComplete);
                      dest.complete();
                    }
                  });
                  (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_3__.innerFrom)(source).subscribe(connection);
                }
              })(wrapperSource);
            };
          }
          function handleReset(reset, on, ...args) {
            if (on === true) {
              reset();
              return;
            }
            if (on === false) {
              return;
            }
            const onSubscriber = new _Subscriber__WEBPACK_IMPORTED_MODULE_2__.SafeSubscriber({
              next: () => {
                onSubscriber.unsubscribe();
                reset();
              }
            });
            return (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_3__.innerFrom)(on(...args)).subscribe(onSubscriber);
          }
          
          /***/ }),
          
          /***/ 6301:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/shareReplay.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   shareReplay: () => (/* binding */ shareReplay)
          /* harmony export */ });
          /* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ReplaySubject */ 6042);
          /* harmony import */ var _share__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./share */ 1870);
          
          
          function shareReplay(configOrBufferSize, windowTime, scheduler) {
            let bufferSize;
            let refCount = false;
            if (configOrBufferSize && typeof configOrBufferSize === 'object') {
              ({
                bufferSize = Infinity,
                windowTime = Infinity,
                refCount = false,
                scheduler
              } = configOrBufferSize);
            } else {
              bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;
            }
            return (0,_share__WEBPACK_IMPORTED_MODULE_0__.share)({
              connector: () => new _ReplaySubject__WEBPACK_IMPORTED_MODULE_1__.ReplaySubject(bufferSize, windowTime, scheduler),
              resetOnError: true,
              resetOnComplete: false,
              resetOnRefCountZero: refCount
            });
          }
          
          /***/ }),
          
          /***/ 7470:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/skip.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   skip: () => (/* binding */ skip)
          /* harmony export */ });
          /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./filter */ 1567);
          
          function skip(count) {
            return (0,_filter__WEBPACK_IMPORTED_MODULE_0__.filter)((_, index) => count <= index);
          }
          
          /***/ }),
          
          /***/ 3037:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/startWith.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   startWith: () => (/* binding */ startWith)
          /* harmony export */ });
          /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/concat */ 4665);
          /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 4083);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          
          
          function startWith(...values) {
            const scheduler = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popScheduler)(values);
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              (scheduler ? (0,_observable_concat__WEBPACK_IMPORTED_MODULE_2__.concat)(values, source, scheduler) : (0,_observable_concat__WEBPACK_IMPORTED_MODULE_2__.concat)(values, source)).subscribe(subscriber);
            });
          }
          
          /***/ }),
          
          /***/ 2128:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   subscribeOn: () => (/* binding */ subscribeOn)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          
          function subscribeOn(scheduler, delay = 0) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));
            });
          }
          
          /***/ }),
          
          /***/ 6647:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/switchMap.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   switchMap: () => (/* binding */ switchMap)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function switchMap(project, resultSelector) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let innerSubscriber = null;
              let index = 0;
              let isComplete = false;
              const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
                let innerIndex = 0;
                const outerIndex = index++;
                (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(project(value, outerIndex)).subscribe(innerSubscriber = (0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, innerValue => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {
                  innerSubscriber = null;
                  checkComplete();
                }));
              }, () => {
                isComplete = true;
                checkComplete();
              }));
            });
          }
          
          /***/ }),
          
          /***/ 4334:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/take.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   take: () => (/* binding */ take)
          /* harmony export */ });
          /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/empty */ 9400);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function take(count) {
            return count <= 0 ? () => _observable_empty__WEBPACK_IMPORTED_MODULE_0__.EMPTY : (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              let seen = 0;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, value => {
                if (++seen <= count) {
                  subscriber.next(value);
                  if (count <= seen) {
                    subscriber.complete();
                  }
                }
              }));
            });
          }
          
          /***/ }),
          
          /***/ 602:
          /*!*******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/takeLast.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   takeLast: () => (/* binding */ takeLast)
          /* harmony export */ });
          /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/empty */ 9400);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function takeLast(count) {
            return count <= 0 ? () => _observable_empty__WEBPACK_IMPORTED_MODULE_0__.EMPTY : (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              let buffer = [];
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, value => {
                buffer.push(value);
                count < buffer.length && buffer.shift();
              }, () => {
                for (const value of buffer) {
                  subscriber.next(value);
                }
                subscriber.complete();
              }, undefined, () => {
                buffer = null;
              }));
            });
          }
          
          /***/ }),
          
          /***/ 3900:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/takeUntil.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   takeUntil: () => (/* binding */ takeUntil)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/noop */ 4318);
          
          
          
          
          function takeUntil(notifier) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_1__.innerFrom)(notifier).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, () => subscriber.complete(), _util_noop__WEBPACK_IMPORTED_MODULE_3__.noop));
              !subscriber.closed && source.subscribe(subscriber);
            });
          }
          
          /***/ }),
          
          /***/ 1249:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/takeWhile.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   takeWhile: () => (/* binding */ takeWhile)
          /* harmony export */ });
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          function takeWhile(predicate, inclusive = false) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let index = 0;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                const result = predicate(value, index++);
                (result || inclusive) && subscriber.next(value);
                !result && subscriber.complete();
              }));
            });
          }
          
          /***/ }),
          
          /***/ 8764:
          /*!**************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/tap.js ***!
            \**************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   tap: () => (/* binding */ tap)
          /* harmony export */ });
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/identity */ 1440);
          
          
          
          
          function tap(observerOrNext, error, complete) {
            const tapObserver = (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(observerOrNext) || error || complete ? {
              next: observerOrNext,
              error,
              complete
            } : observerOrNext;
            return tapObserver ? (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
              var _a;
              (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
              let isUnsub = true;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_2__.createOperatorSubscriber)(subscriber, value => {
                var _a;
                (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);
                subscriber.next(value);
              }, () => {
                var _a;
                isUnsub = false;
                (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
                subscriber.complete();
              }, err => {
                var _a;
                isUnsub = false;
                (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);
                subscriber.error(err);
              }, () => {
                var _a, _b;
                if (isUnsub) {
                  (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);
                }
                (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
              }));
            }) : _util_identity__WEBPACK_IMPORTED_MODULE_3__.identity;
          }
          
          /***/ }),
          
          /***/ 9365:
          /*!***********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js ***!
            \***********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   throwIfEmpty: () => (/* binding */ throwIfEmpty)
          /* harmony export */ });
          /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/EmptyError */ 3335);
          /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/lift */ 6057);
          /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorSubscriber */ 1687);
          
          
          
          function throwIfEmpty(errorFactory = defaultErrorFactory) {
            return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
              let hasValue = false;
              source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.createOperatorSubscriber)(subscriber, value => {
                hasValue = true;
                subscriber.next(value);
              }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));
            });
          }
          function defaultErrorFactory() {
            return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_2__.EmptyError();
          }
          
          /***/ }),
          
          /***/ 2345:
          /*!************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js ***!
            \************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduleArray: () => (/* binding */ scheduleArray)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          
          function scheduleArray(input, scheduler) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              let i = 0;
              return scheduler.schedule(function () {
                if (i === input.length) {
                  subscriber.complete();
                } else {
                  subscriber.next(input[i++]);
                  if (!subscriber.closed) {
                    this.schedule();
                  }
                }
              });
            });
          }
          
          /***/ }),
          
          /***/ 6438:
          /*!********************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js ***!
            \********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduleAsyncIterable: () => (/* binding */ scheduleAsyncIterable)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/executeSchedule */ 310);
          
          
          function scheduleAsyncIterable(input, scheduler) {
            if (!input) {
              throw new Error('Iterable cannot be null');
            }
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__.executeSchedule)(subscriber, scheduler, () => {
                const iterator = input[Symbol.asyncIterator]();
                (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__.executeSchedule)(subscriber, scheduler, () => {
                  iterator.next().then(result => {
                    if (result.done) {
                      subscriber.complete();
                    } else {
                      subscriber.next(result.value);
                    }
                  });
                }, 0, true);
              });
            });
          }
          
          /***/ }),
          
          /***/ 1272:
          /*!***************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js ***!
            \***************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduleIterable: () => (/* binding */ scheduleIterable)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../symbol/iterator */ 2476);
          /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isFunction */ 1530);
          /* harmony import */ var _util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/executeSchedule */ 310);
          
          
          
          
          function scheduleIterable(input, scheduler) {
            return new _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable(subscriber => {
              let iterator;
              (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__.executeSchedule)(subscriber, scheduler, () => {
                iterator = input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__.iterator]();
                (0,_util_executeSchedule__WEBPACK_IMPORTED_MODULE_1__.executeSchedule)(subscriber, scheduler, () => {
                  let value;
                  let done;
                  try {
                    ({
                      value,
                      done
                    } = iterator.next());
                  } catch (err) {
                    subscriber.error(err);
                    return;
                  }
                  if (done) {
                    subscriber.complete();
                  } else {
                    subscriber.next(value);
                  }
                }, 0, true);
              });
              return () => (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_3__.isFunction)(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();
            });
          }
          
          /***/ }),
          
          /***/ 8143:
          /*!*****************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js ***!
            \*****************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduleObservable: () => (/* binding */ scheduleObservable)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _operators_observeOn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/observeOn */ 4304);
          /* harmony import */ var _operators_subscribeOn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operators/subscribeOn */ 2128);
          
          
          
          function scheduleObservable(input, scheduler) {
            return (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__.innerFrom)(input).pipe((0,_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_1__.subscribeOn)(scheduler), (0,_operators_observeOn__WEBPACK_IMPORTED_MODULE_2__.observeOn)(scheduler));
          }
          
          /***/ }),
          
          /***/ 37:
          /*!**************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js ***!
            \**************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   schedulePromise: () => (/* binding */ schedulePromise)
          /* harmony export */ });
          /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/innerFrom */ 2645);
          /* harmony import */ var _operators_observeOn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/observeOn */ 4304);
          /* harmony import */ var _operators_subscribeOn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operators/subscribeOn */ 2128);
          
          
          
          function schedulePromise(input, scheduler) {
            return (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_0__.innerFrom)(input).pipe((0,_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_1__.subscribeOn)(scheduler), (0,_operators_observeOn__WEBPACK_IMPORTED_MODULE_2__.observeOn)(scheduler));
          }
          
          /***/ }),
          
          /***/ 2777:
          /*!*************************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js ***!
            \*************************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduleReadableStreamLike: () => (/* binding */ scheduleReadableStreamLike)
          /* harmony export */ });
          /* harmony import */ var _scheduleAsyncIterable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scheduleAsyncIterable */ 6438);
          /* harmony import */ var _util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isReadableStreamLike */ 3233);
          
          
          function scheduleReadableStreamLike(input, scheduler) {
            return (0,_scheduleAsyncIterable__WEBPACK_IMPORTED_MODULE_0__.scheduleAsyncIterable)((0,_util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_1__.readableStreamLikeToAsyncGenerator)(input), scheduler);
          }
          
          /***/ }),
          
          /***/ 4424:
          /*!********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js ***!
            \********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   scheduled: () => (/* binding */ scheduled)
          /* harmony export */ });
          /* harmony import */ var _scheduleObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scheduleObservable */ 8143);
          /* harmony import */ var _schedulePromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./schedulePromise */ 37);
          /* harmony import */ var _scheduleArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scheduleArray */ 2345);
          /* harmony import */ var _scheduleIterable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./scheduleIterable */ 1272);
          /* harmony import */ var _scheduleAsyncIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./scheduleAsyncIterable */ 6438);
          /* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isInteropObservable */ 1516);
          /* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isPromise */ 1117);
          /* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isArrayLike */ 8830);
          /* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/isIterable */ 528);
          /* harmony import */ var _util_isAsyncIterable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/isAsyncIterable */ 4558);
          /* harmony import */ var _util_throwUnobservableError__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../util/throwUnobservableError */ 1374);
          /* harmony import */ var _util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../util/isReadableStreamLike */ 3233);
          /* harmony import */ var _scheduleReadableStreamLike__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./scheduleReadableStreamLike */ 2777);
          
          
          
          
          
          
          
          
          
          
          
          
          
          function scheduled(input, scheduler) {
            if (input != null) {
              if ((0,_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_0__.isInteropObservable)(input)) {
                return (0,_scheduleObservable__WEBPACK_IMPORTED_MODULE_1__.scheduleObservable)(input, scheduler);
              }
              if ((0,_util_isArrayLike__WEBPACK_IMPORTED_MODULE_2__.isArrayLike)(input)) {
                return (0,_scheduleArray__WEBPACK_IMPORTED_MODULE_3__.scheduleArray)(input, scheduler);
              }
              if ((0,_util_isPromise__WEBPACK_IMPORTED_MODULE_4__.isPromise)(input)) {
                return (0,_schedulePromise__WEBPACK_IMPORTED_MODULE_5__.schedulePromise)(input, scheduler);
              }
              if ((0,_util_isAsyncIterable__WEBPACK_IMPORTED_MODULE_6__.isAsyncIterable)(input)) {
                return (0,_scheduleAsyncIterable__WEBPACK_IMPORTED_MODULE_7__.scheduleAsyncIterable)(input, scheduler);
              }
              if ((0,_util_isIterable__WEBPACK_IMPORTED_MODULE_8__.isIterable)(input)) {
                return (0,_scheduleIterable__WEBPACK_IMPORTED_MODULE_9__.scheduleIterable)(input, scheduler);
              }
              if ((0,_util_isReadableStreamLike__WEBPACK_IMPORTED_MODULE_10__.isReadableStreamLike)(input)) {
                return (0,_scheduleReadableStreamLike__WEBPACK_IMPORTED_MODULE_11__.scheduleReadableStreamLike)(input, scheduler);
              }
            }
            throw (0,_util_throwUnobservableError__WEBPACK_IMPORTED_MODULE_12__.createInvalidObservableTypeError)(input);
          }
          
          /***/ }),
          
          /***/ 9103:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/Action.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   Action: () => (/* binding */ Action)
          /* harmony export */ });
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ 2510);
          
          class Action extends _Subscription__WEBPACK_IMPORTED_MODULE_0__.Subscription {
            constructor(scheduler, work) {
              super();
            }
            schedule(state, delay = 0) {
              return this;
            }
          }
          
          /***/ }),
          
          /***/ 1860:
          /*!*******************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js ***!
            \*******************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AnimationFrameAction: () => (/* binding */ AnimationFrameAction)
          /* harmony export */ });
          /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ 2083);
          /* harmony import */ var _animationFrameProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./animationFrameProvider */ 5571);
          
          
          class AnimationFrameAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__.AsyncAction {
            constructor(scheduler, work) {
              super(scheduler, work);
              this.scheduler = scheduler;
              this.work = work;
            }
            requestAsyncId(scheduler, id, delay = 0) {
              if (delay !== null && delay > 0) {
                return super.requestAsyncId(scheduler, id, delay);
              }
              scheduler.actions.push(this);
              return scheduler._scheduled || (scheduler._scheduled = _animationFrameProvider__WEBPACK_IMPORTED_MODULE_1__.animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));
            }
            recycleAsyncId(scheduler, id, delay = 0) {
              var _a;
              if (delay != null ? delay > 0 : this.delay > 0) {
                return super.recycleAsyncId(scheduler, id, delay);
              }
              const {
                actions
              } = scheduler;
              if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
                _animationFrameProvider__WEBPACK_IMPORTED_MODULE_1__.animationFrameProvider.cancelAnimationFrame(id);
                scheduler._scheduled = undefined;
              }
              return undefined;
            }
          }
          
          /***/ }),
          
          /***/ 4909:
          /*!**********************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js ***!
            \**********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AnimationFrameScheduler: () => (/* binding */ AnimationFrameScheduler)
          /* harmony export */ });
          /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ 2400);
          
          class AnimationFrameScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__.AsyncScheduler {
            flush(action) {
              this._active = true;
              const flushId = this._scheduled;
              this._scheduled = undefined;
              const {
                actions
              } = this;
              let error;
              action = action || actions.shift();
              do {
                if (error = action.execute(action.state, action.delay)) {
                  break;
                }
              } while ((action = actions[0]) && action.id === flushId && actions.shift());
              this._active = false;
              if (error) {
                while ((action = actions[0]) && action.id === flushId && actions.shift()) {
                  action.unsubscribe();
                }
                throw error;
              }
            }
          }
          
          /***/ }),
          
          /***/ 8206:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AsapAction: () => (/* binding */ AsapAction)
          /* harmony export */ });
          /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ 2083);
          /* harmony import */ var _immediateProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./immediateProvider */ 3701);
          
          
          class AsapAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__.AsyncAction {
            constructor(scheduler, work) {
              super(scheduler, work);
              this.scheduler = scheduler;
              this.work = work;
            }
            requestAsyncId(scheduler, id, delay = 0) {
              if (delay !== null && delay > 0) {
                return super.requestAsyncId(scheduler, id, delay);
              }
              scheduler.actions.push(this);
              return scheduler._scheduled || (scheduler._scheduled = _immediateProvider__WEBPACK_IMPORTED_MODULE_1__.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
            }
            recycleAsyncId(scheduler, id, delay = 0) {
              var _a;
              if (delay != null ? delay > 0 : this.delay > 0) {
                return super.recycleAsyncId(scheduler, id, delay);
              }
              const {
                actions
              } = scheduler;
              if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
                _immediateProvider__WEBPACK_IMPORTED_MODULE_1__.immediateProvider.clearImmediate(id);
                if (scheduler._scheduled === id) {
                  scheduler._scheduled = undefined;
                }
              }
              return undefined;
            }
          }
          
          /***/ }),
          
          /***/ 9835:
          /*!************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js ***!
            \************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AsapScheduler: () => (/* binding */ AsapScheduler)
          /* harmony export */ });
          /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ 2400);
          
          class AsapScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__.AsyncScheduler {
            flush(action) {
              this._active = true;
              const flushId = this._scheduled;
              this._scheduled = undefined;
              const {
                actions
              } = this;
              let error;
              action = action || actions.shift();
              do {
                if (error = action.execute(action.state, action.delay)) {
                  break;
                }
              } while ((action = actions[0]) && action.id === flushId && actions.shift());
              this._active = false;
              if (error) {
                while ((action = actions[0]) && action.id === flushId && actions.shift()) {
                  action.unsubscribe();
                }
                throw error;
              }
            }
          }
          
          /***/ }),
          
          /***/ 2083:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AsyncAction: () => (/* binding */ AsyncAction)
          /* harmony export */ });
          /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Action */ 9103);
          /* harmony import */ var _intervalProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intervalProvider */ 8113);
          /* harmony import */ var _util_arrRemove__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/arrRemove */ 967);
          
          
          
          class AsyncAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
            constructor(scheduler, work) {
              super(scheduler, work);
              this.scheduler = scheduler;
              this.work = work;
              this.pending = false;
            }
            schedule(state, delay = 0) {
              var _a;
              if (this.closed) {
                return this;
              }
              this.state = state;
              const id = this.id;
              const scheduler = this.scheduler;
              if (id != null) {
                this.id = this.recycleAsyncId(scheduler, id, delay);
              }
              this.pending = true;
              this.delay = delay;
              this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
              return this;
            }
            requestAsyncId(scheduler, _id, delay = 0) {
              return _intervalProvider__WEBPACK_IMPORTED_MODULE_1__.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
            }
            recycleAsyncId(_scheduler, id, delay = 0) {
              if (delay != null && this.delay === delay && this.pending === false) {
                return id;
              }
              if (id != null) {
                _intervalProvider__WEBPACK_IMPORTED_MODULE_1__.intervalProvider.clearInterval(id);
              }
              return undefined;
            }
            execute(state, delay) {
              if (this.closed) {
                return new Error('executing a cancelled action');
              }
              this.pending = false;
              const error = this._execute(state, delay);
              if (error) {
                return error;
              } else if (this.pending === false && this.id != null) {
                this.id = this.recycleAsyncId(this.scheduler, this.id, null);
              }
            }
            _execute(state, _delay) {
              let errored = false;
              let errorValue;
              try {
                this.work(state);
              } catch (e) {
                errored = true;
                errorValue = e ? e : new Error('Scheduled action threw falsy error');
              }
              if (errored) {
                this.unsubscribe();
                return errorValue;
              }
            }
            unsubscribe() {
              if (!this.closed) {
                const {
                  id,
                  scheduler
                } = this;
                const {
                  actions
                } = scheduler;
                this.work = this.state = this.scheduler = null;
                this.pending = false;
                (0,_util_arrRemove__WEBPACK_IMPORTED_MODULE_2__.arrRemove)(actions, this);
                if (id != null) {
                  this.id = this.recycleAsyncId(scheduler, id, null);
                }
                this.delay = null;
                super.unsubscribe();
              }
            }
          }
          
          /***/ }),
          
          /***/ 2400:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AsyncScheduler: () => (/* binding */ AsyncScheduler)
          /* harmony export */ });
          /* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Scheduler */ 1962);
          
          class AsyncScheduler extends _Scheduler__WEBPACK_IMPORTED_MODULE_0__.Scheduler {
            constructor(SchedulerAction, now = _Scheduler__WEBPACK_IMPORTED_MODULE_0__.Scheduler.now) {
              super(SchedulerAction, now);
              this.actions = [];
              this._active = false;
            }
            flush(action) {
              const {
                actions
              } = this;
              if (this._active) {
                actions.push(action);
                return;
              }
              let error;
              this._active = true;
              do {
                if (error = action.execute(action.state, action.delay)) {
                  break;
                }
              } while (action = actions.shift());
              this._active = false;
              if (error) {
                while (action = actions.shift()) {
                  action.unsubscribe();
                }
                throw error;
              }
            }
          }
          
          /***/ }),
          
          /***/ 614:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   animationFrame: () => (/* binding */ animationFrame),
          /* harmony export */   animationFrameScheduler: () => (/* binding */ animationFrameScheduler)
          /* harmony export */ });
          /* harmony import */ var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnimationFrameAction */ 1860);
          /* harmony import */ var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AnimationFrameScheduler */ 4909);
          
          
          const animationFrameScheduler = new _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_0__.AnimationFrameScheduler(_AnimationFrameAction__WEBPACK_IMPORTED_MODULE_1__.AnimationFrameAction);
          const animationFrame = animationFrameScheduler;
          
          /***/ }),
          
          /***/ 5571:
          /*!*********************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js ***!
            \*********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   animationFrameProvider: () => (/* binding */ animationFrameProvider)
          /* harmony export */ });
          /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ 2510);
          
          const animationFrameProvider = {
            schedule(callback) {
              let request = requestAnimationFrame;
              let cancel = cancelAnimationFrame;
              const {
                delegate
              } = animationFrameProvider;
              if (delegate) {
                request = delegate.requestAnimationFrame;
                cancel = delegate.cancelAnimationFrame;
              }
              const handle = request(timestamp => {
                cancel = undefined;
                callback(timestamp);
              });
              return new _Subscription__WEBPACK_IMPORTED_MODULE_0__.Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle));
            },
            requestAnimationFrame(...args) {
              const {
                delegate
              } = animationFrameProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args);
            },
            cancelAnimationFrame(...args) {
              const {
                delegate
              } = animationFrameProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args);
            },
            delegate: undefined
          };
          
          /***/ }),
          
          /***/ 7180:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/asap.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   asap: () => (/* binding */ asap),
          /* harmony export */   asapScheduler: () => (/* binding */ asapScheduler)
          /* harmony export */ });
          /* harmony import */ var _AsapAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsapAction */ 8206);
          /* harmony import */ var _AsapScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsapScheduler */ 9835);
          
          
          const asapScheduler = new _AsapScheduler__WEBPACK_IMPORTED_MODULE_0__.AsapScheduler(_AsapAction__WEBPACK_IMPORTED_MODULE_1__.AsapAction);
          const asap = asapScheduler;
          
          /***/ }),
          
          /***/ 8473:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/async.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   async: () => (/* binding */ async),
          /* harmony export */   asyncScheduler: () => (/* binding */ asyncScheduler)
          /* harmony export */ });
          /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncAction */ 2083);
          /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ 2400);
          
          
          const asyncScheduler = new _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__.AsyncScheduler(_AsyncAction__WEBPACK_IMPORTED_MODULE_1__.AsyncAction);
          const async = asyncScheduler;
          
          /***/ }),
          
          /***/ 5152:
          /*!********************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js ***!
            \********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   dateTimestampProvider: () => (/* binding */ dateTimestampProvider)
          /* harmony export */ });
          const dateTimestampProvider = {
            now() {
              return (dateTimestampProvider.delegate || Date).now();
            },
            delegate: undefined
          };
          
          /***/ }),
          
          /***/ 3701:
          /*!****************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js ***!
            \****************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   immediateProvider: () => (/* binding */ immediateProvider)
          /* harmony export */ });
          /* harmony import */ var _util_Immediate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/Immediate */ 733);
          
          const {
            setImmediate,
            clearImmediate
          } = _util_Immediate__WEBPACK_IMPORTED_MODULE_0__.Immediate;
          const immediateProvider = {
            setImmediate(...args) {
              const {
                delegate
              } = immediateProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate)(...args);
            },
            clearImmediate(handle) {
              const {
                delegate
              } = immediateProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);
            },
            delegate: undefined
          };
          
          /***/ }),
          
          /***/ 8113:
          /*!***************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js ***!
            \***************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   intervalProvider: () => (/* binding */ intervalProvider)
          /* harmony export */ });
          const intervalProvider = {
            setInterval(handler, timeout, ...args) {
              const {
                delegate
              } = intervalProvider;
              if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
                return delegate.setInterval(handler, timeout, ...args);
              }
              return setInterval(handler, timeout, ...args);
            },
            clearInterval(handle) {
              const {
                delegate
              } = intervalProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);
            },
            delegate: undefined
          };
          
          /***/ }),
          
          /***/ 9603:
          /*!**************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js ***!
            \**************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   timeoutProvider: () => (/* binding */ timeoutProvider)
          /* harmony export */ });
          const timeoutProvider = {
            setTimeout(handler, timeout, ...args) {
              const {
                delegate
              } = timeoutProvider;
              if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
                return delegate.setTimeout(handler, timeout, ...args);
              }
              return setTimeout(handler, timeout, ...args);
            },
            clearTimeout(handle) {
              const {
                delegate
              } = timeoutProvider;
              return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
            },
            delegate: undefined
          };
          
          /***/ }),
          
          /***/ 2476:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/symbol/iterator.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   getSymbolIterator: () => (/* binding */ getSymbolIterator),
          /* harmony export */   iterator: () => (/* binding */ iterator)
          /* harmony export */ });
          function getSymbolIterator() {
            if (typeof Symbol !== 'function' || !Symbol.iterator) {
              return '@@iterator';
            }
            return Symbol.iterator;
          }
          const iterator = getSymbolIterator();
          
          /***/ }),
          
          /***/ 4127:
          /*!******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/symbol/observable.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   observable: () => (/* binding */ observable)
          /* harmony export */ });
          const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();
          
          /***/ }),
          
          /***/ 3335:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/EmptyError.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   EmptyError: () => (/* binding */ EmptyError)
          /* harmony export */ });
          /* harmony import */ var _createErrorClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createErrorClass */ 2384);
          
          const EmptyError = (0,_createErrorClass__WEBPACK_IMPORTED_MODULE_0__.createErrorClass)(_super => function EmptyErrorImpl() {
            _super(this);
            this.name = 'EmptyError';
            this.message = 'no elements in sequence';
          });
          
          /***/ }),
          
          /***/ 733:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/Immediate.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   Immediate: () => (/* binding */ Immediate),
          /* harmony export */   TestTools: () => (/* binding */ TestTools)
          /* harmony export */ });
          let nextHandle = 1;
          let resolved;
          const activeHandles = {};
          function findAndClearHandle(handle) {
            if (handle in activeHandles) {
              delete activeHandles[handle];
              return true;
            }
            return false;
          }
          const Immediate = {
            setImmediate(cb) {
              const handle = nextHandle++;
              activeHandles[handle] = true;
              if (!resolved) {
                resolved = Promise.resolve();
              }
              resolved.then(() => findAndClearHandle(handle) && cb());
              return handle;
            },
            clearImmediate(handle) {
              findAndClearHandle(handle);
            }
          };
          const TestTools = {
            pending() {
              return Object.keys(activeHandles).length;
            }
          };
          
          /***/ }),
          
          /***/ 1910:
          /*!*****************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js ***!
            \*****************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ObjectUnsubscribedError: () => (/* binding */ ObjectUnsubscribedError)
          /* harmony export */ });
          /* harmony import */ var _createErrorClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createErrorClass */ 2384);
          
          const ObjectUnsubscribedError = (0,_createErrorClass__WEBPACK_IMPORTED_MODULE_0__.createErrorClass)(_super => function ObjectUnsubscribedErrorImpl() {
            _super(this);
            this.name = 'ObjectUnsubscribedError';
            this.message = 'object unsubscribed';
          });
          
          /***/ }),
          
          /***/ 2540:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   UnsubscriptionError: () => (/* binding */ UnsubscriptionError)
          /* harmony export */ });
          /* harmony import */ var _createErrorClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createErrorClass */ 2384);
          
          const UnsubscriptionError = (0,_createErrorClass__WEBPACK_IMPORTED_MODULE_0__.createErrorClass)(_super => function UnsubscriptionErrorImpl(errors) {
            _super(this);
            this.message = errors ? `${errors.length} errors occurred during unsubscription:
          ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n  ')}` : '';
            this.name = 'UnsubscriptionError';
            this.errors = errors;
          });
          
          /***/ }),
          
          /***/ 4083:
          /*!**********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/args.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   popNumber: () => (/* binding */ popNumber),
          /* harmony export */   popResultSelector: () => (/* binding */ popResultSelector),
          /* harmony export */   popScheduler: () => (/* binding */ popScheduler)
          /* harmony export */ });
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          /* harmony import */ var _isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isScheduler */ 9397);
          
          
          function last(arr) {
            return arr[arr.length - 1];
          }
          function popResultSelector(args) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(last(args)) ? args.pop() : undefined;
          }
          function popScheduler(args) {
            return (0,_isScheduler__WEBPACK_IMPORTED_MODULE_1__.isScheduler)(last(args)) ? args.pop() : undefined;
          }
          function popNumber(args, defaultValue) {
            return typeof last(args) === 'number' ? args.pop() : defaultValue;
          }
          
          /***/ }),
          
          /***/ 7808:
          /*!**************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js ***!
            \**************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   argsArgArrayOrObject: () => (/* binding */ argsArgArrayOrObject)
          /* harmony export */ });
          const {
            isArray
          } = Array;
          const {
            getPrototypeOf,
            prototype: objectProto,
            keys: getKeys
          } = Object;
          function argsArgArrayOrObject(args) {
            if (args.length === 1) {
              const first = args[0];
              if (isArray(first)) {
                return {
                  args: first,
                  keys: null
                };
              }
              if (isPOJO(first)) {
                const keys = getKeys(first);
                return {
                  args: keys.map(key => first[key]),
                  keys
                };
              }
            }
            return {
              args: args,
              keys: null
            };
          }
          function isPOJO(obj) {
            return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;
          }
          
          /***/ }),
          
          /***/ 967:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/arrRemove.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   arrRemove: () => (/* binding */ arrRemove)
          /* harmony export */ });
          function arrRemove(arr, item) {
            if (arr) {
              const index = arr.indexOf(item);
              0 <= index && arr.splice(index, 1);
            }
          }
          
          /***/ }),
          
          /***/ 2384:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/createErrorClass.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   createErrorClass: () => (/* binding */ createErrorClass)
          /* harmony export */ });
          function createErrorClass(createImpl) {
            const _super = instance => {
              Error.call(instance);
              instance.stack = new Error().stack;
            };
            const ctorFunc = createImpl(_super);
            ctorFunc.prototype = Object.create(Error.prototype);
            ctorFunc.prototype.constructor = ctorFunc;
            return ctorFunc;
          }
          
          /***/ }),
          
          /***/ 6813:
          /*!******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/createObject.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   createObject: () => (/* binding */ createObject)
          /* harmony export */ });
          function createObject(keys, values) {
            return keys.reduce((result, key, i) => (result[key] = values[i], result), {});
          }
          
          /***/ }),
          
          /***/ 23:
          /*!******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/errorContext.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   captureError: () => (/* binding */ captureError),
          /* harmony export */   errorContext: () => (/* binding */ errorContext)
          /* harmony export */ });
          /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config */ 2213);
          
          let context = null;
          function errorContext(cb) {
            if (_config__WEBPACK_IMPORTED_MODULE_0__.config.useDeprecatedSynchronousErrorHandling) {
              const isRoot = !context;
              if (isRoot) {
                context = {
                  errorThrown: false,
                  error: null
                };
              }
              cb();
              if (isRoot) {
                const {
                  errorThrown,
                  error
                } = context;
                context = null;
                if (errorThrown) {
                  throw error;
                }
              }
            } else {
              cb();
            }
          }
          function captureError(err) {
            if (_config__WEBPACK_IMPORTED_MODULE_0__.config.useDeprecatedSynchronousErrorHandling && context) {
              context.errorThrown = true;
              context.error = err;
            }
          }
          
          /***/ }),
          
          /***/ 310:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/executeSchedule.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   executeSchedule: () => (/* binding */ executeSchedule)
          /* harmony export */ });
          function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {
            const scheduleSubscription = scheduler.schedule(function () {
              work();
              if (repeat) {
                parentSubscription.add(this.schedule(null, delay));
              } else {
                this.unsubscribe();
              }
            }, delay);
            parentSubscription.add(scheduleSubscription);
            if (!repeat) {
              return scheduleSubscription;
            }
          }
          
          /***/ }),
          
          /***/ 1440:
          /*!**************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/identity.js ***!
            \**************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   identity: () => (/* binding */ identity)
          /* harmony export */ });
          function identity(x) {
            return x;
          }
          
          /***/ }),
          
          /***/ 8830:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isArrayLike.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isArrayLike: () => (/* binding */ isArrayLike)
          /* harmony export */ });
          const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';
          
          /***/ }),
          
          /***/ 4558:
          /*!*********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isAsyncIterable: () => (/* binding */ isAsyncIterable)
          /* harmony export */ });
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          function isAsyncIterable(obj) {
            return Symbol.asyncIterator && (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
          }
          
          /***/ }),
          
          /***/ 5602:
          /*!************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isDate.js ***!
            \************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isValidDate: () => (/* binding */ isValidDate)
          /* harmony export */ });
          function isValidDate(value) {
            return value instanceof Date && !isNaN(value);
          }
          
          /***/ }),
          
          /***/ 1530:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isFunction.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isFunction: () => (/* binding */ isFunction)
          /* harmony export */ });
          function isFunction(value) {
            return typeof value === 'function';
          }
          
          /***/ }),
          
          /***/ 1516:
          /*!*************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isInteropObservable: () => (/* binding */ isInteropObservable)
          /* harmony export */ });
          /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../symbol/observable */ 4127);
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          
          function isInteropObservable(input) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(input[_symbol_observable__WEBPACK_IMPORTED_MODULE_1__.observable]);
          }
          
          /***/ }),
          
          /***/ 528:
          /*!****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isIterable.js ***!
            \****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isIterable: () => (/* binding */ isIterable)
          /* harmony export */ });
          /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../symbol/iterator */ 2476);
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          
          function isIterable(input) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(input === null || input === void 0 ? void 0 : input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_1__.iterator]);
          }
          
          /***/ }),
          
          /***/ 2551:
          /*!******************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isObservable.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isObservable: () => (/* binding */ isObservable)
          /* harmony export */ });
          /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ 3942);
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          
          function isObservable(obj) {
            return !!obj && (obj instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__.Observable || (0,_isFunction__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj.lift) && (0,_isFunction__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj.subscribe));
          }
          
          /***/ }),
          
          /***/ 1117:
          /*!***************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isPromise.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isPromise: () => (/* binding */ isPromise)
          /* harmony export */ });
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          function isPromise(value) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(value === null || value === void 0 ? void 0 : value.then);
          }
          
          /***/ }),
          
          /***/ 3233:
          /*!**************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js ***!
            \**************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isReadableStreamLike: () => (/* binding */ isReadableStreamLike),
          /* harmony export */   readableStreamLikeToAsyncGenerator: () => (/* binding */ readableStreamLikeToAsyncGenerator)
          /* harmony export */ });
          /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 4398);
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          
          function readableStreamLikeToAsyncGenerator(readableStream) {
            return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__asyncGenerator)(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {
              const reader = readableStream.getReader();
              try {
                while (true) {
                  const {
                    value,
                    done
                  } = yield (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__await)(reader.read());
                  if (done) {
                    return yield (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__await)(void 0);
                  }
                  yield yield (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__await)(value);
                }
              } finally {
                reader.releaseLock();
              }
            });
          }
          function isReadableStreamLike(obj) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_1__.isFunction)(obj === null || obj === void 0 ? void 0 : obj.getReader);
          }
          
          /***/ }),
          
          /***/ 9397:
          /*!*****************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/isScheduler.js ***!
            \*****************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   isScheduler: () => (/* binding */ isScheduler)
          /* harmony export */ });
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          function isScheduler(value) {
            return value && (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(value.schedule);
          }
          
          /***/ }),
          
          /***/ 6057:
          /*!**********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/lift.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   hasLift: () => (/* binding */ hasLift),
          /* harmony export */   operate: () => (/* binding */ operate)
          /* harmony export */ });
          /* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isFunction */ 1530);
          
          function hasLift(source) {
            return (0,_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(source === null || source === void 0 ? void 0 : source.lift);
          }
          function operate(init) {
            return source => {
              if (hasLift(source)) {
                return source.lift(function (liftedSource) {
                  try {
                    return init(liftedSource, this);
                  } catch (err) {
                    this.error(err);
                  }
                });
              }
              throw new TypeError('Unable to lift unknown Observable type');
            };
          }
          
          /***/ }),
          
          /***/ 8067:
          /*!**********************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js ***!
            \**********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   mapOneOrManyArgs: () => (/* binding */ mapOneOrManyArgs)
          /* harmony export */ });
          /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../operators/map */ 271);
          
          const {
            isArray
          } = Array;
          function callOrApply(fn, args) {
            return isArray(args) ? fn(...args) : fn(args);
          }
          function mapOneOrManyArgs(fn) {
            return (0,_operators_map__WEBPACK_IMPORTED_MODULE_0__.map)(args => callOrApply(fn, args));
          }
          
          /***/ }),
          
          /***/ 4318:
          /*!**********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/noop.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   noop: () => (/* binding */ noop)
          /* harmony export */ });
          function noop() {}
          
          /***/ }),
          
          /***/ 5682:
          /*!**********************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/pipe.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   pipe: () => (/* binding */ pipe),
          /* harmony export */   pipeFromArray: () => (/* binding */ pipeFromArray)
          /* harmony export */ });
          /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identity */ 1440);
          
          function pipe(...fns) {
            return pipeFromArray(fns);
          }
          function pipeFromArray(fns) {
            if (fns.length === 0) {
              return _identity__WEBPACK_IMPORTED_MODULE_0__.identity;
            }
            if (fns.length === 1) {
              return fns[0];
            }
            return function piped(input) {
              return fns.reduce((prev, fn) => fn(prev), input);
            };
          }
          
          /***/ }),
          
          /***/ 1411:
          /*!**************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js ***!
            \**************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   reportUnhandledError: () => (/* binding */ reportUnhandledError)
          /* harmony export */ });
          /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config */ 2213);
          /* harmony import */ var _scheduler_timeoutProvider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/timeoutProvider */ 9603);
          
          
          function reportUnhandledError(err) {
            _scheduler_timeoutProvider__WEBPACK_IMPORTED_MODULE_0__.timeoutProvider.setTimeout(() => {
              const {
                onUnhandledError
              } = _config__WEBPACK_IMPORTED_MODULE_1__.config;
              if (onUnhandledError) {
                onUnhandledError(err);
              } else {
                throw err;
              }
            });
          }
          
          /***/ }),
          
          /***/ 1374:
          /*!****************************************************************************!*\
            !*** ./node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js ***!
            \****************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   createInvalidObservableTypeError: () => (/* binding */ createInvalidObservableTypeError)
          /* harmony export */ });
          function createInvalidObservableTypeError(input) {
            return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);
          }
          
          /***/ }),
          
          /***/ 4291:
          /*!***************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/clients/WebSocketClient.js ***!
            \***************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (/* binding */ WebSocketClient)
          /* harmony export */ });
          /* harmony import */ var _utils_log_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/log.js */ 7596);
          function _classCallCheck(instance, Constructor) {
            if (!(instance instanceof Constructor)) {
              throw new TypeError("Cannot call a class as a function");
            }
          }
          function _defineProperties(target, props) {
            for (var i = 0; i < props.length; i++) {
              var descriptor = props[i];
              descriptor.enumerable = descriptor.enumerable || false;
              descriptor.configurable = true;
              if ("value" in descriptor) descriptor.writable = true;
              Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
            }
          }
          function _createClass(Constructor, protoProps, staticProps) {
            if (protoProps) _defineProperties(Constructor.prototype, protoProps);
            if (staticProps) _defineProperties(Constructor, staticProps);
            Object.defineProperty(Constructor, "prototype", {
              writable: false
            });
            return Constructor;
          }
          function _toPropertyKey(arg) {
            var key = _toPrimitive(arg, "string");
            return typeof key === "symbol" ? key : String(key);
          }
          function _toPrimitive(input, hint) {
            if (typeof input !== "object" || input === null) return input;
            var prim = input[Symbol.toPrimitive];
            if (prim !== undefined) {
              var res = prim.call(input, hint || "default");
              if (typeof res !== "object") return res;
              throw new TypeError("@@toPrimitive must return a primitive value.");
            }
            return (hint === "string" ? String : Number)(input);
          }
          
          var WebSocketClient = /*#__PURE__*/function () {
            /**
             * @param {string} url
             */
            function WebSocketClient(url) {
              _classCallCheck(this, WebSocketClient);
              this.client = new WebSocket(url);
              this.client.onerror = function (error) {
                _utils_log_js__WEBPACK_IMPORTED_MODULE_0__.log.error(error);
              };
            }
          
            /**
             * @param {(...args: any[]) => void} f
             */
            _createClass(WebSocketClient, [{
              key: "onOpen",
              value: function onOpen(f) {
                this.client.onopen = f;
              }
          
              /**
               * @param {(...args: any[]) => void} f
               */
            }, {
              key: "onClose",
              value: function onClose(f) {
                this.client.onclose = f;
              }
          
              // call f with the message string as the first argument
              /**
               * @param {(...args: any[]) => void} f
               */
            }, {
              key: "onMessage",
              value: function onMessage(f) {
                this.client.onmessage = function (e) {
                  f(e.data);
                };
              }
            }]);
            return WebSocketClient;
          }();
          
          
          /***/ }),
          
          /***/ 886:
          /*!******************************************************************************************************************************************************************************************************************************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/index.js?protocol=auto%3A&username=&password=&hostname=0.0.0.0&port=0&pathname=%2Fng-cli-ws&logging=info&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%2C%22runtimeErrors%22%3Afalse%7D&reconnect=10&hot=false&live-reload=true ***!
            \******************************************************************************************************************************************************************************************************************************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          var __resourceQuery = "?protocol=auto%3A&username=&password=&hostname=0.0.0.0&port=0&pathname=%2Fng-cli-ws&logging=info&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%2C%22runtimeErrors%22%3Afalse%7D&reconnect=10&hot=false&live-reload=true";
          __webpack_require__.r(__webpack_exports__);
          /* harmony import */ var webpack_hot_log_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! webpack/hot/log.js */ 6366);
          /* harmony import */ var webpack_hot_log_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(webpack_hot_log_js__WEBPACK_IMPORTED_MODULE_0__);
          /* harmony import */ var _utils_stripAnsi_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/stripAnsi.js */ 4675);
          /* harmony import */ var _utils_parseURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/parseURL.js */ 8776);
          /* harmony import */ var _socket_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./socket.js */ 2231);
          /* harmony import */ var _overlay_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./overlay.js */ 1212);
          /* harmony import */ var _utils_log_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/log.js */ 7596);
          /* harmony import */ var _utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/sendMessage.js */ 2975);
          /* harmony import */ var _utils_reloadApp_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/reloadApp.js */ 1190);
          /* harmony import */ var _utils_createSocketURL_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/createSocketURL.js */ 4804);
          function ownKeys(object, enumerableOnly) {
            var keys = Object.keys(object);
            if (Object.getOwnPropertySymbols) {
              var symbols = Object.getOwnPropertySymbols(object);
              enumerableOnly && (symbols = symbols.filter(function (sym) {
                return Object.getOwnPropertyDescriptor(object, sym).enumerable;
              })), keys.push.apply(keys, symbols);
            }
            return keys;
          }
          function _objectSpread(target) {
            for (var i = 1; i < arguments.length; i++) {
              var source = null != arguments[i] ? arguments[i] : {};
              i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
                _defineProperty(target, key, source[key]);
              }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
                Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
              });
            }
            return target;
          }
          function _defineProperty(obj, key, value) {
            key = _toPropertyKey(key);
            if (key in obj) {
              Object.defineProperty(obj, key, {
                value: value,
                enumerable: true,
                configurable: true,
                writable: true
              });
            } else {
              obj[key] = value;
            }
            return obj;
          }
          function _toPropertyKey(arg) {
            var key = _toPrimitive(arg, "string");
            return typeof key === "symbol" ? key : String(key);
          }
          function _toPrimitive(input, hint) {
            if (typeof input !== "object" || input === null) return input;
            var prim = input[Symbol.toPrimitive];
            if (prim !== undefined) {
              var res = prim.call(input, hint || "default");
              if (typeof res !== "object") return res;
              throw new TypeError("@@toPrimitive must return a primitive value.");
            }
            return (hint === "string" ? String : Number)(input);
          }
          /* global __resourceQuery, __webpack_hash__ */
          /// <reference types="webpack/module" />
          
          
          
          
          
          
          
          
          
          
          /**
           * @typedef {Object} OverlayOptions
           * @property {boolean | (error: Error) => boolean} [warnings]
           * @property {boolean | (error: Error) => boolean} [errors]
           * @property {boolean | (error: Error) => boolean} [runtimeErrors]
           * @property {string} [trustedTypesPolicyName]
           */
          
          /**
           * @typedef {Object} Options
           * @property {boolean} hot
           * @property {boolean} liveReload
           * @property {boolean} progress
           * @property {boolean | OverlayOptions} overlay
           * @property {string} [logging]
           * @property {number} [reconnect]
           */
          
          /**
           * @typedef {Object} Status
           * @property {boolean} isUnloading
           * @property {string} currentHash
           * @property {string} [previousHash]
           */
          
          /**
           * @param {boolean | { warnings?: boolean | string; errors?: boolean | string; runtimeErrors?: boolean | string; }} overlayOptions
           */
          var decodeOverlayOptions = function decodeOverlayOptions(overlayOptions) {
            if (typeof overlayOptions === "object") {
              ["warnings", "errors", "runtimeErrors"].forEach(function (property) {
                if (typeof overlayOptions[property] === "string") {
                  var overlayFilterFunctionString = decodeURIComponent(overlayOptions[property]);
          
                  // eslint-disable-next-line no-new-func
                  var overlayFilterFunction = new Function("message", "var callback = ".concat(overlayFilterFunctionString, "\n        return callback(message)"));
                  overlayOptions[property] = overlayFilterFunction;
                }
              });
            }
          };
          
          /**
           * @type {Status}
           */
          var status = {
            isUnloading: false,
            // TODO Workaround for webpack v4, `__webpack_hash__` is not replaced without HotModuleReplacement
            // eslint-disable-next-line camelcase
            currentHash:  true ? __webpack_require__.h() : 0
          };
          
          /** @type {Options} */
          var options = {
            hot: false,
            liveReload: false,
            progress: false,
            overlay: false
          };
          var parsedResourceQuery = (0,_utils_parseURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])(__resourceQuery);
          var enabledFeatures = {
            "Hot Module Replacement": false,
            "Live Reloading": false,
            Progress: false,
            Overlay: false
          };
          if (parsedResourceQuery.hot === "true") {
            options.hot = true;
            enabledFeatures["Hot Module Replacement"] = true;
          }
          if (parsedResourceQuery["live-reload"] === "true") {
            options.liveReload = true;
            enabledFeatures["Live Reloading"] = true;
          }
          if (parsedResourceQuery.progress === "true") {
            options.progress = true;
            enabledFeatures.Progress = true;
          }
          if (parsedResourceQuery.overlay) {
            try {
              options.overlay = JSON.parse(parsedResourceQuery.overlay);
            } catch (e) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.error("Error parsing overlay options from resource query:", e);
            }
          
            // Fill in default "true" params for partially-specified objects.
            if (typeof options.overlay === "object") {
              options.overlay = _objectSpread({
                errors: true,
                warnings: true,
                runtimeErrors: true
              }, options.overlay);
              decodeOverlayOptions(options.overlay);
            }
            enabledFeatures.Overlay = true;
          }
          if (parsedResourceQuery.logging) {
            options.logging = parsedResourceQuery.logging;
          }
          if (typeof parsedResourceQuery.reconnect !== "undefined") {
            options.reconnect = Number(parsedResourceQuery.reconnect);
          }
          
          /**
           * @param {string} level
           */
          function setAllLogLevel(level) {
            // This is needed because the HMR logger operate separately from dev server logger
            webpack_hot_log_js__WEBPACK_IMPORTED_MODULE_0___default().setLogLevel(level === "verbose" || level === "log" ? "info" : level);
            (0,_utils_log_js__WEBPACK_IMPORTED_MODULE_5__.setLogLevel)(level);
          }
          if (options.logging) {
            setAllLogLevel(options.logging);
          }
          (0,_utils_log_js__WEBPACK_IMPORTED_MODULE_5__.logEnabledFeatures)(enabledFeatures);
          self.addEventListener("beforeunload", function () {
            status.isUnloading = true;
          });
          var overlay = typeof window !== "undefined" ? (0,_overlay_js__WEBPACK_IMPORTED_MODULE_4__.createOverlay)(typeof options.overlay === "object" ? {
            trustedTypesPolicyName: options.overlay.trustedTypesPolicyName,
            catchRuntimeError: options.overlay.runtimeErrors
          } : {
            trustedTypesPolicyName: false,
            catchRuntimeError: options.overlay
          }) : {
            send: function send() {}
          };
          var onSocketMessage = {
            hot: function hot() {
              if (parsedResourceQuery.hot === "false") {
                return;
              }
              options.hot = true;
            },
            liveReload: function liveReload() {
              if (parsedResourceQuery["live-reload"] === "false") {
                return;
              }
              options.liveReload = true;
            },
            invalid: function invalid() {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("App updated. Recompiling...");
          
              // Fixes #1042. overlay doesn't clear if errors are fixed but warnings remain.
              if (options.overlay) {
                overlay.send({
                  type: "DISMISS"
                });
              }
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Invalid");
            },
            /**
             * @param {string} hash
             */
            hash: function hash(_hash) {
              status.previousHash = status.currentHash;
              status.currentHash = _hash;
            },
            logging: setAllLogLevel,
            /**
             * @param {boolean} value
             */
            overlay: function overlay(value) {
              if (typeof document === "undefined") {
                return;
              }
              options.overlay = value;
              decodeOverlayOptions(options.overlay);
            },
            /**
             * @param {number} value
             */
            reconnect: function reconnect(value) {
              if (parsedResourceQuery.reconnect === "false") {
                return;
              }
              options.reconnect = value;
            },
            /**
             * @param {boolean} value
             */
            progress: function progress(value) {
              options.progress = value;
            },
            /**
             * @param {{ pluginName?: string, percent: number, msg: string }} data
             */
            "progress-update": function progressUpdate(data) {
              if (options.progress) {
                _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("".concat(data.pluginName ? "[".concat(data.pluginName, "] ") : "").concat(data.percent, "% - ").concat(data.msg, "."));
              }
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Progress", data);
            },
            "still-ok": function stillOk() {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("Nothing changed.");
              if (options.overlay) {
                overlay.send({
                  type: "DISMISS"
                });
              }
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("StillOk");
            },
            ok: function ok() {
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Ok");
              if (options.overlay) {
                overlay.send({
                  type: "DISMISS"
                });
              }
              (0,_utils_reloadApp_js__WEBPACK_IMPORTED_MODULE_7__["default"])(options, status);
            },
            // TODO: remove in v5 in favor of 'static-changed'
            /**
             * @param {string} file
             */
            "content-changed": function contentChanged(file) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("".concat(file ? "\"".concat(file, "\"") : "Content", " from static directory was changed. Reloading..."));
              self.location.reload();
            },
            /**
             * @param {string} file
             */
            "static-changed": function staticChanged(file) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("".concat(file ? "\"".concat(file, "\"") : "Content", " from static directory was changed. Reloading..."));
              self.location.reload();
            },
            /**
             * @param {Error[]} warnings
             * @param {any} params
             */
            warnings: function warnings(_warnings, params) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.warn("Warnings while compiling.");
              var printableWarnings = _warnings.map(function (error) {
                var _formatProblem = (0,_overlay_js__WEBPACK_IMPORTED_MODULE_4__.formatProblem)("warning", error),
                  header = _formatProblem.header,
                  body = _formatProblem.body;
                return "".concat(header, "\n").concat((0,_utils_stripAnsi_js__WEBPACK_IMPORTED_MODULE_1__["default"])(body));
              });
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Warnings", printableWarnings);
              for (var i = 0; i < printableWarnings.length; i++) {
                _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.warn(printableWarnings[i]);
              }
              var overlayWarningsSetting = typeof options.overlay === "boolean" ? options.overlay : options.overlay && options.overlay.warnings;
              if (overlayWarningsSetting) {
                var warningsToDisplay = typeof overlayWarningsSetting === "function" ? _warnings.filter(overlayWarningsSetting) : _warnings;
                if (warningsToDisplay.length) {
                  overlay.send({
                    type: "BUILD_ERROR",
                    level: "warning",
                    messages: _warnings
                  });
                }
              }
              if (params && params.preventReloading) {
                return;
              }
              (0,_utils_reloadApp_js__WEBPACK_IMPORTED_MODULE_7__["default"])(options, status);
            },
            /**
             * @param {Error[]} errors
             */
            errors: function errors(_errors) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.error("Errors while compiling. Reload prevented.");
              var printableErrors = _errors.map(function (error) {
                var _formatProblem2 = (0,_overlay_js__WEBPACK_IMPORTED_MODULE_4__.formatProblem)("error", error),
                  header = _formatProblem2.header,
                  body = _formatProblem2.body;
                return "".concat(header, "\n").concat((0,_utils_stripAnsi_js__WEBPACK_IMPORTED_MODULE_1__["default"])(body));
              });
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Errors", printableErrors);
              for (var i = 0; i < printableErrors.length; i++) {
                _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.error(printableErrors[i]);
              }
              var overlayErrorsSettings = typeof options.overlay === "boolean" ? options.overlay : options.overlay && options.overlay.errors;
              if (overlayErrorsSettings) {
                var errorsToDisplay = typeof overlayErrorsSettings === "function" ? _errors.filter(overlayErrorsSettings) : _errors;
                if (errorsToDisplay.length) {
                  overlay.send({
                    type: "BUILD_ERROR",
                    level: "error",
                    messages: _errors
                  });
                }
              }
            },
            /**
             * @param {Error} error
             */
            error: function error(_error) {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.error(_error);
            },
            close: function close() {
              _utils_log_js__WEBPACK_IMPORTED_MODULE_5__.log.info("Disconnected!");
              if (options.overlay) {
                overlay.send({
                  type: "DISMISS"
                });
              }
              (0,_utils_sendMessage_js__WEBPACK_IMPORTED_MODULE_6__["default"])("Close");
            }
          };
          var socketURL = (0,_utils_createSocketURL_js__WEBPACK_IMPORTED_MODULE_8__["default"])(parsedResourceQuery);
          (0,_socket_js__WEBPACK_IMPORTED_MODULE_3__["default"])(socketURL, onSocketMessage, options.reconnect);
          
          /***/ }),
          
          /***/ 5975:
          /*!************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/modules/logger/index.js ***!
            \************************************************************************/
          /***/ ((__unused_webpack_module, exports) => {
          
          /******/(function () {
            // webpackBootstrap
            /******/
            "use strict";
          
            /******/
            var __webpack_modules__ = {
              /***/"./client-src/modules/logger/SyncBailHookFake.js":
              /*!*******************************************************!*\
                !*** ./client-src/modules/logger/SyncBailHookFake.js ***!
                \*******************************************************/
              /***/
              function (module) {
                /**
                 * Client stub for tapable SyncBailHook
                 */
                module.exports = function clientTapableSyncBailHook() {
                  return {
                    call: function call() {}
                  };
                };
          
                /***/
              },
          
              /***/"./node_modules/webpack/lib/logging/Logger.js":
              /*!****************************************************!*\
                !*** ./node_modules/webpack/lib/logging/Logger.js ***!
                \****************************************************/
              /***/
              function (__unused_webpack_module, exports) {
                /*
                	MIT License http://www.opensource.org/licenses/mit-license.php
                	Author Tobias Koppers @sokra
                */
          
                function _toConsumableArray(arr) {
                  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
                }
                function _nonIterableSpread() {
                  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }
                function _unsupportedIterableToArray(o, minLen) {
                  if (!o) return;
                  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
                  var n = Object.prototype.toString.call(o).slice(8, -1);
                  if (n === "Object" && o.constructor) n = o.constructor.name;
                  if (n === "Map" || n === "Set") return Array.from(o);
                  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
                }
                function _iterableToArray(iter) {
                  if (typeof (typeof Symbol !== "undefined" ? Symbol : function (i) {
                    return i;
                  }) !== "undefined" && iter[(typeof Symbol !== "undefined" ? Symbol : function (i) {
                    return i;
                  }).iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
                }
                function _arrayWithoutHoles(arr) {
                  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
                }
                function _arrayLikeToArray(arr, len) {
                  if (len == null || len > arr.length) len = arr.length;
                  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
                  return arr2;
                }
                function _classCallCheck(instance, Constructor) {
                  if (!(instance instanceof Constructor)) {
                    throw new TypeError("Cannot call a class as a function");
                  }
                }
                function _defineProperties(target, props) {
                  for (var i = 0; i < props.length; i++) {
                    var descriptor = props[i];
                    descriptor.enumerable = descriptor.enumerable || false;
                    descriptor.configurable = true;
                    if ("value" in descriptor) descriptor.writable = true;
                    Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
                  }
                }
                function _createClass(Constructor, protoProps, staticProps) {
                  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
                  if (staticProps) _defineProperties(Constructor, staticProps);
                  Object.defineProperty(Constructor, "prototype", {
                    writable: false
                  });
                  return Constructor;
                }
                function _toPropertyKey(arg) {
                  var key = _toPrimitive(arg, "string");
                  return typeof key === "symbol" ? key : String(key);
                }
                function _toPrimitive(input, hint) {
                  if (typeof input !== "object" || input === null) return input;
                  var prim = input[(typeof Symbol !== "undefined" ? Symbol : function (i) {
                    return i;
                  }).toPrimitive];
                  if (prim !== undefined) {
                    var res = prim.call(input, hint || "default");
                    if (typeof res !== "object") return res;
                    throw new TypeError("@@toPrimitive must return a primitive value.");
                  }
                  return (hint === "string" ? String : Number)(input);
                }
                var LogType = Object.freeze({
                  error: /** @type {"error"} */"error",
                  // message, c style arguments
                  warn: /** @type {"warn"} */"warn",
                  // message, c style arguments
                  info: /** @type {"info"} */"info",
                  // message, c style arguments
                  log: /** @type {"log"} */"log",
                  // message, c style arguments
                  debug: /** @type {"debug"} */"debug",
                  // message, c style arguments
          
                  trace: /** @type {"trace"} */"trace",
                  // no arguments
          
                  group: /** @type {"group"} */"group",
                  // [label]
                  groupCollapsed: /** @type {"groupCollapsed"} */"groupCollapsed",
                  // [label]
                  groupEnd: /** @type {"groupEnd"} */"groupEnd",
                  // [label]
          
                  profile: /** @type {"profile"} */"profile",
                  // [profileName]
                  profileEnd: /** @type {"profileEnd"} */"profileEnd",
                  // [profileName]
          
                  time: /** @type {"time"} */"time",
                  // name, time as [seconds, nanoseconds]
          
                  clear: /** @type {"clear"} */"clear",
                  // no arguments
                  status: /** @type {"status"} */"status" // message, arguments
                });
          
                exports.LogType = LogType;
          
                /** @typedef {typeof LogType[keyof typeof LogType]} LogTypeEnum */
          
                var LOG_SYMBOL = (typeof Symbol !== "undefined" ? Symbol : function (i) {
                  return i;
                })("webpack logger raw log method");
                var TIMERS_SYMBOL = (typeof Symbol !== "undefined" ? Symbol : function (i) {
                  return i;
                })("webpack logger times");
                var TIMERS_AGGREGATES_SYMBOL = (typeof Symbol !== "undefined" ? Symbol : function (i) {
                  return i;
                })("webpack logger aggregated times");
                var WebpackLogger = /*#__PURE__*/function () {
                  /**
                   * @param {function(LogTypeEnum, any[]=): void} log log function
                   * @param {function(string | function(): string): WebpackLogger} getChildLogger function to create child logger
                   */
                  function WebpackLogger(log, getChildLogger) {
                    _classCallCheck(this, WebpackLogger);
                    this[LOG_SYMBOL] = log;
                    this.getChildLogger = getChildLogger;
                  }
                  _createClass(WebpackLogger, [{
                    key: "error",
                    value: function error() {
                      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
                        args[_key] = arguments[_key];
                      }
                      this[LOG_SYMBOL](LogType.error, args);
                    }
                  }, {
                    key: "warn",
                    value: function warn() {
                      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
                        args[_key2] = arguments[_key2];
                      }
                      this[LOG_SYMBOL](LogType.warn, args);
                    }
                  }, {
                    key: "info",
                    value: function info() {
                      for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
                        args[_key3] = arguments[_key3];
                      }
                      this[LOG_SYMBOL](LogType.info, args);
                    }
                  }, {
                    key: "log",
                    value: function log() {
                      for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
                        args[_key4] = arguments[_key4];
                      }
                      this[LOG_SYMBOL](LogType.log, args);
                    }
                  }, {
                    key: "debug",
                    value: function debug() {
                      for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
                        args[_key5] = arguments[_key5];
                      }
                      this[LOG_SYMBOL](LogType.debug, args);
                    }
                  }, {
                    key: "assert",
                    value: function assert(assertion) {
                      if (!assertion) {
                        for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
                          args[_key6 - 1] = arguments[_key6];
                        }
                        this[LOG_SYMBOL](LogType.error, args);
                      }
                    }
                  }, {
                    key: "trace",
                    value: function trace() {
                      this[LOG_SYMBOL](LogType.trace, ["Trace"]);
                    }
                  }, {
                    key: "clear",
                    value: function clear() {
                      this[LOG_SYMBOL](LogType.clear);
                    }
                  }, {
                    key: "status",
                    value: function status() {
                      for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
                        args[_key7] = arguments[_key7];
                      }
                      this[LOG_SYMBOL](LogType.status, args);
                    }
                  }, {
                    key: "group",
                    value: function group() {
                      for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
                        args[_key8] = arguments[_key8];
                      }
                      this[LOG_SYMBOL](LogType.group, args);
                    }
                  }, {
                    key: "groupCollapsed",
                    value: function groupCollapsed() {
                      for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
                        args[_key9] = arguments[_key9];
                      }
                      this[LOG_SYMBOL](LogType.groupCollapsed, args);
                    }
                  }, {
                    key: "groupEnd",
                    value: function groupEnd() {
                      for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
                        args[_key10] = arguments[_key10];
                      }
                      this[LOG_SYMBOL](LogType.groupEnd, args);
                    }
                  }, {
                    key: "profile",
                    value: function profile(label) {
                      this[LOG_SYMBOL](LogType.profile, [label]);
                    }
                  }, {
                    key: "profileEnd",
                    value: function profileEnd(label) {
                      this[LOG_SYMBOL](LogType.profileEnd, [label]);
                    }
                  }, {
                    key: "time",
                    value: function time(label) {
                      this[TIMERS_SYMBOL] = this[TIMERS_SYMBOL] || new Map();
                      this[TIMERS_SYMBOL].set(label, process.hrtime());
                    }
                  }, {
                    key: "timeLog",
                    value: function timeLog(label) {
                      var prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label);
                      if (!prev) {
                        throw new Error("No such label '".concat(label, "' for WebpackLogger.timeLog()"));
                      }
                      var time = process.hrtime(prev);
                      this[LOG_SYMBOL](LogType.time, [label].concat(_toConsumableArray(time)));
                    }
                  }, {
                    key: "timeEnd",
                    value: function timeEnd(label) {
                      var prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label);
                      if (!prev) {
                        throw new Error("No such label '".concat(label, "' for WebpackLogger.timeEnd()"));
                      }
                      var time = process.hrtime(prev);
                      this[TIMERS_SYMBOL].delete(label);
                      this[LOG_SYMBOL](LogType.time, [label].concat(_toConsumableArray(time)));
                    }
                  }, {
                    key: "timeAggregate",
                    value: function timeAggregate(label) {
                      var prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label);
                      if (!prev) {
                        throw new Error("No such label '".concat(label, "' for WebpackLogger.timeAggregate()"));
                      }
                      var time = process.hrtime(prev);
                      this[TIMERS_SYMBOL].delete(label);
                      this[TIMERS_AGGREGATES_SYMBOL] = this[TIMERS_AGGREGATES_SYMBOL] || new Map();
                      var current = this[TIMERS_AGGREGATES_SYMBOL].get(label);
                      if (current !== undefined) {
                        if (time[1] + current[1] > 1e9) {
                          time[0] += current[0] + 1;
                          time[1] = time[1] - 1e9 + current[1];
                        } else {
                          time[0] += current[0];
                          time[1] += current[1];
                        }
                      }
                      this[TIMERS_AGGREGATES_SYMBOL].set(label, time);
                    }
                  }, {
                    key: "timeAggregateEnd",
                    value: function timeAggregateEnd(label) {
                      if (this[TIMERS_AGGREGATES_SYMBOL] === undefined) return;
                      var time = this[TIMERS_AGGREGATES_SYMBOL].get(label);
                      if (time === undefined) return;
                      this[TIMERS_AGGREGATES_SYMBOL].delete(label);
                      this[LOG_SYMBOL](LogType.time, [label].concat(_toConsumableArray(time)));
                    }
                  }]);
                  return WebpackLogger;
                }();
                exports.Logger = WebpackLogger;
          
                /***/
              },
          
              /***/"./node_modules/webpack/lib/logging/createConsoleLogger.js":
              /*!*****************************************************************!*\
                !*** ./node_modules/webpack/lib/logging/createConsoleLogger.js ***!
                \*****************************************************************/
              /***/
              function (module, __unused_webpack_exports, __nested_webpack_require_13155__) {
                /*
                	MIT License http://www.opensource.org/licenses/mit-license.php
                	Author Tobias Koppers @sokra
                */
          
                function _toConsumableArray(arr) {
                  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
                }
                function _nonIterableSpread() {
                  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }
                function _unsupportedIterableToArray(o, minLen) {
                  if (!o) return;
                  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
                  var n = Object.prototype.toString.call(o).slice(8, -1);
                  if (n === "Object" && o.constructor) n = o.constructor.name;
                  if (n === "Map" || n === "Set") return Array.from(o);
                  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
                }
                function _iterableToArray(iter) {
                  if (typeof (typeof Symbol !== "undefined" ? Symbol : function (i) {
                    return i;
                  }) !== "undefined" && iter[(typeof Symbol !== "undefined" ? Symbol : function (i) {
                    return i;
                  }).iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
                }
                function _arrayWithoutHoles(arr) {
                  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
                }
                function _arrayLikeToArray(arr, len) {
                  if (len == null || len > arr.length) len = arr.length;
                  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
                  return arr2;
                }
                var _require = __nested_webpack_require_13155__( /*! ./Logger */"./node_modules/webpack/lib/logging/Logger.js"),
                  LogType = _require.LogType;
          
                /** @typedef {import("../../declarations/WebpackOptions").FilterItemTypes} FilterItemTypes */
                /** @typedef {import("../../declarations/WebpackOptions").FilterTypes} FilterTypes */
                /** @typedef {import("./Logger").LogTypeEnum} LogTypeEnum */
          
                /** @typedef {function(string): boolean} FilterFunction */
          
                /**
                 * @typedef {Object} LoggerConsole
                 * @property {function(): void} clear
                 * @property {function(): void} trace
                 * @property {(...args: any[]) => void} info
                 * @property {(...args: any[]) => void} log
                 * @property {(...args: any[]) => void} warn
                 * @property {(...args: any[]) => void} error
                 * @property {(...args: any[]) => void=} debug
                 * @property {(...args: any[]) => void=} group
                 * @property {(...args: any[]) => void=} groupCollapsed
                 * @property {(...args: any[]) => void=} groupEnd
                 * @property {(...args: any[]) => void=} status
                 * @property {(...args: any[]) => void=} profile
                 * @property {(...args: any[]) => void=} profileEnd
                 * @property {(...args: any[]) => void=} logTime
                 */
          
                /**
                 * @typedef {Object} LoggerOptions
                 * @property {false|true|"none"|"error"|"warn"|"info"|"log"|"verbose"} level loglevel
                 * @property {FilterTypes|boolean} debug filter for debug logging
                 * @property {LoggerConsole} console the console to log to
                 */
          
                /**
                 * @param {FilterItemTypes} item an input item
                 * @returns {FilterFunction} filter function
                 */
                var filterToFunction = function filterToFunction(item) {
                  if (typeof item === "string") {
                    var regExp = new RegExp("[\\\\/]".concat(item.replace(
                    // eslint-disable-next-line no-useless-escape
                    /[-[\]{}()*+?.\\^$|]/g, "\\$&"), "([\\\\/]|$|!|\\?)"));
                    return function (ident) {
                      return regExp.test(ident);
                    };
                  }
                  if (item && typeof item === "object" && typeof item.test === "function") {
                    return function (ident) {
                      return item.test(ident);
                    };
                  }
                  if (typeof item === "function") {
                    return item;
                  }
                  if (typeof item === "boolean") {
                    return function () {
                      return item;
                    };
                  }
                };
          
                /**
                 * @enum {number}
                 */
                var LogLevel = {
                  none: 6,
                  false: 6,
                  error: 5,
                  warn: 4,
                  info: 3,
                  log: 2,
                  true: 2,
                  verbose: 1
                };
          
                /**
                 * @param {LoggerOptions} options options object
                 * @returns {function(string, LogTypeEnum, any[]): void} logging function
                 */
                module.exports = function (_ref) {
                  var _ref$level = _ref.level,
                    level = _ref$level === void 0 ? "info" : _ref$level,
                    _ref$debug = _ref.debug,
                    debug = _ref$debug === void 0 ? false : _ref$debug,
                    console = _ref.console;
                  var debugFilters = typeof debug === "boolean" ? [function () {
                    return debug;
                  }] : /** @type {FilterItemTypes[]} */[].concat(debug).map(filterToFunction);
                  /** @type {number} */
                  var loglevel = LogLevel["".concat(level)] || 0;
          
                  /**
                   * @param {string} name name of the logger
                   * @param {LogTypeEnum} type type of the log entry
                   * @param {any[]} args arguments of the log entry
                   * @returns {void}
                   */
                  var logger = function logger(name, type, args) {
                    var labeledArgs = function labeledArgs() {
                      if (Array.isArray(args)) {
                        if (args.length > 0 && typeof args[0] === "string") {
                          return ["[".concat(name, "] ").concat(args[0])].concat(_toConsumableArray(args.slice(1)));
                        } else {
                          return ["[".concat(name, "]")].concat(_toConsumableArray(args));
                        }
                      } else {
                        return [];
                      }
                    };
                    var debug = debugFilters.some(function (f) {
                      return f(name);
                    });
                    switch (type) {
                      case LogType.debug:
                        if (!debug) return;
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.debug === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.debug.apply(console, _toConsumableArray(labeledArgs()));
                        } else {
                          console.log.apply(console, _toConsumableArray(labeledArgs()));
                        }
                        break;
                      case LogType.log:
                        if (!debug && loglevel > LogLevel.log) return;
                        console.log.apply(console, _toConsumableArray(labeledArgs()));
                        break;
                      case LogType.info:
                        if (!debug && loglevel > LogLevel.info) return;
                        console.info.apply(console, _toConsumableArray(labeledArgs()));
                        break;
                      case LogType.warn:
                        if (!debug && loglevel > LogLevel.warn) return;
                        console.warn.apply(console, _toConsumableArray(labeledArgs()));
                        break;
                      case LogType.error:
                        if (!debug && loglevel > LogLevel.error) return;
                        console.error.apply(console, _toConsumableArray(labeledArgs()));
                        break;
                      case LogType.trace:
                        if (!debug) return;
                        console.trace();
                        break;
                      case LogType.groupCollapsed:
                        if (!debug && loglevel > LogLevel.log) return;
                        if (!debug && loglevel > LogLevel.verbose) {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          if (typeof console.groupCollapsed === "function") {
                            // eslint-disable-next-line node/no-unsupported-features/node-builtins
                            console.groupCollapsed.apply(console, _toConsumableArray(labeledArgs()));
                          } else {
                            console.log.apply(console, _toConsumableArray(labeledArgs()));
                          }
                          break;
                        }
                      // falls through
                      case LogType.group:
                        if (!debug && loglevel > LogLevel.log) return;
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.group === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.group.apply(console, _toConsumableArray(labeledArgs()));
                        } else {
                          console.log.apply(console, _toConsumableArray(labeledArgs()));
                        }
                        break;
                      case LogType.groupEnd:
                        if (!debug && loglevel > LogLevel.log) return;
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.groupEnd === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.groupEnd();
                        }
                        break;
                      case LogType.time:
                        {
                          if (!debug && loglevel > LogLevel.log) return;
                          var ms = args[1] * 1000 + args[2] / 1000000;
                          var msg = "[".concat(name, "] ").concat(args[0], ": ").concat(ms, " ms");
                          if (typeof console.logTime === "function") {
                            console.logTime(msg);
                          } else {
                            console.log(msg);
                          }
                          break;
                        }
                      case LogType.profile:
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.profile === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.profile.apply(console, _toConsumableArray(labeledArgs()));
                        }
                        break;
                      case LogType.profileEnd:
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.profileEnd === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.profileEnd.apply(console, _toConsumableArray(labeledArgs()));
                        }
                        break;
                      case LogType.clear:
                        if (!debug && loglevel > LogLevel.log) return;
                        // eslint-disable-next-line node/no-unsupported-features/node-builtins
                        if (typeof console.clear === "function") {
                          // eslint-disable-next-line node/no-unsupported-features/node-builtins
                          console.clear();
                        }
                        break;
                      case LogType.status:
                        if (!debug && loglevel > LogLevel.info) return;
                        if (typeof console.status === "function") {
                          if (args.length === 0) {
                            console.status();
                          } else {
                            console.status.apply(console, _toConsumableArray(labeledArgs()));
                          }
                        } else {
                          if (args.length !== 0) {
                            console.info.apply(console, _toConsumableArray(labeledArgs()));
                          }
                        }
                        break;
                      default:
                        throw new Error("Unexpected LogType ".concat(type));
                    }
                  };
                  return logger;
                };
          
                /***/
              },
          
              /***/"./node_modules/webpack/lib/logging/runtime.js":
              /*!*****************************************************!*\
                !*** ./node_modules/webpack/lib/logging/runtime.js ***!
                \*****************************************************/
              /***/
              function (__unused_webpack_module, exports, __nested_webpack_require_24769__) {
                /*
                	MIT License http://www.opensource.org/licenses/mit-license.php
                	Author Tobias Koppers @sokra
                */
          
                function _extends() {
                  _extends = Object.assign ? Object.assign.bind() : function (target) {
                    for (var i = 1; i < arguments.length; i++) {
                      var source = arguments[i];
                      for (var key in source) {
                        if (Object.prototype.hasOwnProperty.call(source, key)) {
                          target[key] = source[key];
                        }
                      }
                    }
                    return target;
                  };
                  return _extends.apply(this, arguments);
                }
                var SyncBailHook = __nested_webpack_require_24769__( /*! tapable/lib/SyncBailHook */"./client-src/modules/logger/SyncBailHookFake.js");
                var _require = __nested_webpack_require_24769__( /*! ./Logger */"./node_modules/webpack/lib/logging/Logger.js"),
                  Logger = _require.Logger;
                var createConsoleLogger = __nested_webpack_require_24769__( /*! ./createConsoleLogger */"./node_modules/webpack/lib/logging/createConsoleLogger.js");
          
                /** @type {createConsoleLogger.LoggerOptions} */
                var currentDefaultLoggerOptions = {
                  level: "info",
                  debug: false,
                  console: console
                };
                var currentDefaultLogger = createConsoleLogger(currentDefaultLoggerOptions);
          
                /**
                 * @param {string} name name of the logger
                 * @returns {Logger} a logger
                 */
                exports.getLogger = function (name) {
                  return new Logger(function (type, args) {
                    if (exports.hooks.log.call(name, type, args) === undefined) {
                      currentDefaultLogger(name, type, args);
                    }
                  }, function (childName) {
                    return exports.getLogger("".concat(name, "/").concat(childName));
                  });
                };
          
                /**
                 * @param {createConsoleLogger.LoggerOptions} options new options, merge with old options
                 * @returns {void}
                 */
                exports.configureDefaultLogger = function (options) {
                  _extends(currentDefaultLoggerOptions, options);
                  currentDefaultLogger = createConsoleLogger(currentDefaultLoggerOptions);
                };
                exports.hooks = {
                  log: new SyncBailHook(["origin", "type", "args"])
                };
          
                /***/
              }
          
              /******/
            };
            /************************************************************************/
            /******/ // The module cache
            /******/
            var __webpack_module_cache__ = {};
            /******/
            /******/ // The require function
            /******/
            function __nested_webpack_require_27234__(moduleId) {
              /******/ // Check if module is in cache
              /******/var cachedModule = __webpack_module_cache__[moduleId];
              /******/
              if (cachedModule !== undefined) {
                /******/return cachedModule.exports;
                /******/
              }
              /******/ // Create a new module (and put it into the cache)
              /******/
              var module = __webpack_module_cache__[moduleId] = {
                /******/ // no module.id needed
                /******/ // no module.loaded needed
                /******/exports: {}
                /******/
              };
              /******/
              /******/ // Execute the module function
              /******/
              __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_27234__);
              /******/
              /******/ // Return the exports of the module
              /******/
              return module.exports;
              /******/
            }
            /******/
            /************************************************************************/
            /******/ /* webpack/runtime/define property getters */
            /******/
            !function () {
              /******/ // define getter functions for harmony exports
              /******/__nested_webpack_require_27234__.d = function (exports, definition) {
                /******/for (var key in definition) {
                  /******/if (__nested_webpack_require_27234__.o(definition, key) && !__nested_webpack_require_27234__.o(exports, key)) {
                    /******/Object.defineProperty(exports, key, {
                      enumerable: true,
                      get: definition[key]
                    });
                    /******/
                  }
                  /******/
                }
                /******/
              };
              /******/
            }();
            /******/
            /******/ /* webpack/runtime/hasOwnProperty shorthand */
            /******/
            !function () {
              /******/__nested_webpack_require_27234__.o = function (obj, prop) {
                return Object.prototype.hasOwnProperty.call(obj, prop);
              };
              /******/
            }();
            /******/
            /******/ /* webpack/runtime/make namespace object */
            /******/
            !function () {
              /******/ // define __esModule on exports
              /******/__nested_webpack_require_27234__.r = function (exports) {
                /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
                  /******/Object.defineProperty(exports, Symbol.toStringTag, {
                    value: 'Module'
                  });
                  /******/
                }
                /******/
                Object.defineProperty(exports, '__esModule', {
                  value: true
                });
                /******/
              };
              /******/
            }();
            /******/
            /************************************************************************/
            var __nested_webpack_exports__ = {};
            // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
            !function () {
              /*!********************************************!*\
                !*** ./client-src/modules/logger/index.js ***!
                \********************************************/
              __nested_webpack_require_27234__.r(__nested_webpack_exports__);
              /* harmony export */
              __nested_webpack_require_27234__.d(__nested_webpack_exports__, {
                /* harmony export */"default": function () {
                  return (/* reexport default export from named module */webpack_lib_logging_runtime_js__WEBPACK_IMPORTED_MODULE_0__
                  );
                }
                /* harmony export */
              });
              /* harmony import */
              var webpack_lib_logging_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_27234__( /*! webpack/lib/logging/runtime.js */"./node_modules/webpack/lib/logging/runtime.js");
            }();
            var __webpack_export_target__ = exports;
            for (var i in __nested_webpack_exports__) __webpack_export_target__[i] = __nested_webpack_exports__[i];
            if (__nested_webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", {
              value: true
            });
            /******/
          })();
          
          /***/ }),
          
          /***/ 1212:
          /*!***********************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/overlay.js ***!
            \***********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   createOverlay: () => (/* binding */ createOverlay),
          /* harmony export */   formatProblem: () => (/* binding */ formatProblem)
          /* harmony export */ });
          /* harmony import */ var ansi_html_community__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ansi-html-community */ 6972);
          /* harmony import */ var ansi_html_community__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ansi_html_community__WEBPACK_IMPORTED_MODULE_0__);
          /* harmony import */ var html_entities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! html-entities */ 6924);
          /* harmony import */ var html_entities__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(html_entities__WEBPACK_IMPORTED_MODULE_4__);
          /* harmony import */ var _overlay_runtime_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./overlay/runtime-error.js */ 3200);
          /* harmony import */ var _overlay_state_machine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./overlay/state-machine.js */ 9086);
          /* harmony import */ var _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./overlay/styles.js */ 8141);
          function ownKeys(object, enumerableOnly) {
            var keys = Object.keys(object);
            if (Object.getOwnPropertySymbols) {
              var symbols = Object.getOwnPropertySymbols(object);
              enumerableOnly && (symbols = symbols.filter(function (sym) {
                return Object.getOwnPropertyDescriptor(object, sym).enumerable;
              })), keys.push.apply(keys, symbols);
            }
            return keys;
          }
          function _objectSpread(target) {
            for (var i = 1; i < arguments.length; i++) {
              var source = null != arguments[i] ? arguments[i] : {};
              i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
                _defineProperty(target, key, source[key]);
              }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
                Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
              });
            }
            return target;
          }
          function _defineProperty(obj, key, value) {
            key = _toPropertyKey(key);
            if (key in obj) {
              Object.defineProperty(obj, key, {
                value: value,
                enumerable: true,
                configurable: true,
                writable: true
              });
            } else {
              obj[key] = value;
            }
            return obj;
          }
          function _toPropertyKey(arg) {
            var key = _toPrimitive(arg, "string");
            return typeof key === "symbol" ? key : String(key);
          }
          function _toPrimitive(input, hint) {
            if (typeof input !== "object" || input === null) return input;
            var prim = input[Symbol.toPrimitive];
            if (prim !== undefined) {
              var res = prim.call(input, hint || "default");
              if (typeof res !== "object") return res;
              throw new TypeError("@@toPrimitive must return a primitive value.");
            }
            return (hint === "string" ? String : Number)(input);
          }
          // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
          // They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
          
          
          
          
          
          
          var colors = {
            reset: ["transparent", "transparent"],
            black: "181818",
            red: "E36049",
            green: "B3CB74",
            yellow: "FFD080",
            blue: "7CAFC2",
            magenta: "7FACCA",
            cyan: "C3C2EF",
            lightgrey: "EBE7E3",
            darkgrey: "6D7891"
          };
          ansi_html_community__WEBPACK_IMPORTED_MODULE_0___default().setColors(colors);
          
          /**
           * @param {string} type
           * @param {string  | { file?: string, moduleName?: string, loc?: string, message?: string; stack?: string[] }} item
           * @returns {{ header: string, body: string }}
           */
          function formatProblem(type, item) {
            var header = type === "warning" ? "WARNING" : "ERROR";
            var body = "";
            if (typeof item === "string") {
              body += item;
            } else {
              var file = item.file || "";
              // eslint-disable-next-line no-nested-ternary
              var moduleName = item.moduleName ? item.moduleName.indexOf("!") !== -1 ? "".concat(item.moduleName.replace(/^(\s|\S)*!/, ""), " (").concat(item.moduleName, ")") : "".concat(item.moduleName) : "";
              var loc = item.loc;
              header += "".concat(moduleName || file ? " in ".concat(moduleName ? "".concat(moduleName).concat(file ? " (".concat(file, ")") : "") : file).concat(loc ? " ".concat(loc) : "") : "");
              body += item.message || "";
            }
            if (Array.isArray(item.stack)) {
              item.stack.forEach(function (stack) {
                if (typeof stack === "string") {
                  body += "\r\n".concat(stack);
                }
              });
            }
            return {
              header: header,
              body: body
            };
          }
          
          /**
           * @typedef {Object} CreateOverlayOptions
           * @property {string | null} trustedTypesPolicyName
           * @property {boolean | (error: Error) => void} [catchRuntimeError]
           */
          
          /**
           *
           * @param {CreateOverlayOptions} options
           */
          var createOverlay = function createOverlay(options) {
            /** @type {HTMLIFrameElement | null | undefined} */
            var iframeContainerElement;
            /** @type {HTMLDivElement | null | undefined} */
            var containerElement;
            /** @type {HTMLDivElement | null | undefined} */
            var headerElement;
            /** @type {Array<(element: HTMLDivElement) => void>} */
            var onLoadQueue = [];
            /** @type {TrustedTypePolicy | undefined} */
            var overlayTrustedTypesPolicy;
          
            /**
             *
             * @param {HTMLElement} element
             * @param {CSSStyleDeclaration} style
             */
            function applyStyle(element, style) {
              Object.keys(style).forEach(function (prop) {
                element.style[prop] = style[prop];
              });
            }
          
            /**
             * @param {string | null} trustedTypesPolicyName
             */
            function createContainer(trustedTypesPolicyName) {
              // Enable Trusted Types if they are available in the current browser.
              if (window.trustedTypes) {
                overlayTrustedTypesPolicy = window.trustedTypes.createPolicy(trustedTypesPolicyName || "webpack-dev-server#overlay", {
                  createHTML: function createHTML(value) {
                    return value;
                  }
                });
              }
              iframeContainerElement = document.createElement("iframe");
              iframeContainerElement.id = "webpack-dev-server-client-overlay";
              iframeContainerElement.src = "about:blank";
              applyStyle(iframeContainerElement, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.iframeStyle);
              iframeContainerElement.onload = function () {
                var contentElement = /** @type {Document} */
                /** @type {HTMLIFrameElement} */
                iframeContainerElement.contentDocument.createElement("div");
                containerElement = /** @type {Document} */
                /** @type {HTMLIFrameElement} */
                iframeContainerElement.contentDocument.createElement("div");
                contentElement.id = "webpack-dev-server-client-overlay-div";
                applyStyle(contentElement, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.containerStyle);
                headerElement = document.createElement("div");
                headerElement.innerText = "Compiled with problems:";
                applyStyle(headerElement, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.headerStyle);
                var closeButtonElement = document.createElement("button");
                applyStyle(closeButtonElement, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.dismissButtonStyle);
                closeButtonElement.innerText = "×";
                closeButtonElement.ariaLabel = "Dismiss";
                closeButtonElement.addEventListener("click", function () {
                  // eslint-disable-next-line no-use-before-define
                  overlayService.send({
                    type: "DISMISS"
                  });
                });
                contentElement.appendChild(headerElement);
                contentElement.appendChild(closeButtonElement);
                contentElement.appendChild(containerElement);
          
                /** @type {Document} */
                /** @type {HTMLIFrameElement} */
                iframeContainerElement.contentDocument.body.appendChild(contentElement);
                onLoadQueue.forEach(function (onLoad) {
                  onLoad( /** @type {HTMLDivElement} */contentElement);
                });
                onLoadQueue = [];
          
                /** @type {HTMLIFrameElement} */
                iframeContainerElement.onload = null;
              };
              document.body.appendChild(iframeContainerElement);
            }
          
            /**
             * @param {(element: HTMLDivElement) => void} callback
             * @param {string | null} trustedTypesPolicyName
             */
            function ensureOverlayExists(callback, trustedTypesPolicyName) {
              if (containerElement) {
                containerElement.innerHTML = "";
                // Everything is ready, call the callback right away.
                callback(containerElement);
                return;
              }
              onLoadQueue.push(callback);
              if (iframeContainerElement) {
                return;
              }
              createContainer(trustedTypesPolicyName);
            }
          
            // Successful compilation.
            function hide() {
              if (!iframeContainerElement) {
                return;
              }
          
              // Clean up and reset internal state.
              document.body.removeChild(iframeContainerElement);
              iframeContainerElement = null;
              containerElement = null;
            }
          
            // Compilation with errors (e.g. syntax error or missing modules).
            /**
             * @param {string} type
             * @param {Array<string  | { moduleIdentifier?: string, moduleName?: string, loc?: string, message?: string }>} messages
             * @param {string | null} trustedTypesPolicyName
             * @param {'build' | 'runtime'} messageSource
             */
            function show(type, messages, trustedTypesPolicyName, messageSource) {
              ensureOverlayExists(function () {
                headerElement.innerText = messageSource === "runtime" ? "Uncaught runtime errors:" : "Compiled with problems:";
                messages.forEach(function (message) {
                  var entryElement = document.createElement("div");
                  var msgStyle = type === "warning" ? _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.msgStyles.warning : _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.msgStyles.error;
                  applyStyle(entryElement, _objectSpread(_objectSpread({}, msgStyle), {}, {
                    padding: "1rem 1rem 1.5rem 1rem"
                  }));
                  var typeElement = document.createElement("div");
                  var _formatProblem = formatProblem(type, message),
                    header = _formatProblem.header,
                    body = _formatProblem.body;
                  typeElement.innerText = header;
                  applyStyle(typeElement, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.msgTypeStyle);
                  if (message.moduleIdentifier) {
                    applyStyle(typeElement, {
                      cursor: "pointer"
                    });
                    // element.dataset not supported in IE
                    typeElement.setAttribute("data-can-open", true);
                    typeElement.addEventListener("click", function () {
                      fetch("/webpack-dev-server/open-editor?fileName=".concat(message.moduleIdentifier));
                    });
                  }
          
                  // Make it look similar to our terminal.
                  var text = ansi_html_community__WEBPACK_IMPORTED_MODULE_0___default()((0,html_entities__WEBPACK_IMPORTED_MODULE_4__.encode)(body));
                  var messageTextNode = document.createElement("div");
                  applyStyle(messageTextNode, _overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__.msgTextStyle);
                  messageTextNode.innerHTML = overlayTrustedTypesPolicy ? overlayTrustedTypesPolicy.createHTML(text) : text;
                  entryElement.appendChild(typeElement);
                  entryElement.appendChild(messageTextNode);
          
                  /** @type {HTMLDivElement} */
                  containerElement.appendChild(entryElement);
                });
              }, trustedTypesPolicyName);
            }
            var overlayService = (0,_overlay_state_machine_js__WEBPACK_IMPORTED_MODULE_2__["default"])({
              showOverlay: function showOverlay(_ref) {
                var _ref$level = _ref.level,
                  level = _ref$level === void 0 ? "error" : _ref$level,
                  messages = _ref.messages,
                  messageSource = _ref.messageSource;
                return show(level, messages, options.trustedTypesPolicyName, messageSource);
              },
              hideOverlay: hide
            });
            if (options.catchRuntimeError) {
              /**
               * @param {Error | undefined} error
               * @param {string} fallbackMessage
               */
              var handleError = function handleError(error, fallbackMessage) {
                var errorObject = error instanceof Error ? error : new Error(error || fallbackMessage);
                var shouldDisplay = typeof options.catchRuntimeError === "function" ? options.catchRuntimeError(errorObject) : true;
                if (shouldDisplay) {
                  overlayService.send({
                    type: "RUNTIME_ERROR",
                    messages: [{
                      message: errorObject.message,
                      stack: (0,_overlay_runtime_error_js__WEBPACK_IMPORTED_MODULE_1__.parseErrorToStacks)(errorObject)
                    }]
                  });
                }
              };
              (0,_overlay_runtime_error_js__WEBPACK_IMPORTED_MODULE_1__.listenToRuntimeError)(function (errorEvent) {
                // error property may be empty in older browser like IE
                var error = errorEvent.error,
                  message = errorEvent.message;
                if (!error && !message) {
                  return;
                }
                handleError(error, message);
              });
              (0,_overlay_runtime_error_js__WEBPACK_IMPORTED_MODULE_1__.listenToUnhandledRejection)(function (promiseRejectionEvent) {
                var reason = promiseRejectionEvent.reason;
                handleError(reason, "Unknown promise rejection reason");
              });
            }
            return overlayService;
          };
          
          
          /***/ }),
          
          /***/ 2693:
          /*!***************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/overlay/fsm.js ***!
            \***************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          function ownKeys(object, enumerableOnly) {
            var keys = Object.keys(object);
            if (Object.getOwnPropertySymbols) {
              var symbols = Object.getOwnPropertySymbols(object);
              enumerableOnly && (symbols = symbols.filter(function (sym) {
                return Object.getOwnPropertyDescriptor(object, sym).enumerable;
              })), keys.push.apply(keys, symbols);
            }
            return keys;
          }
          function _objectSpread(target) {
            for (var i = 1; i < arguments.length; i++) {
              var source = null != arguments[i] ? arguments[i] : {};
              i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
                _defineProperty(target, key, source[key]);
              }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
                Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
              });
            }
            return target;
          }
          function _defineProperty(obj, key, value) {
            key = _toPropertyKey(key);
            if (key in obj) {
              Object.defineProperty(obj, key, {
                value: value,
                enumerable: true,
                configurable: true,
                writable: true
              });
            } else {
              obj[key] = value;
            }
            return obj;
          }
          function _toPropertyKey(arg) {
            var key = _toPrimitive(arg, "string");
            return typeof key === "symbol" ? key : String(key);
          }
          function _toPrimitive(input, hint) {
            if (typeof input !== "object" || input === null) return input;
            var prim = input[Symbol.toPrimitive];
            if (prim !== undefined) {
              var res = prim.call(input, hint || "default");
              if (typeof res !== "object") return res;
              throw new TypeError("@@toPrimitive must return a primitive value.");
            }
            return (hint === "string" ? String : Number)(input);
          }
          /**
           * @typedef {Object} StateDefinitions
           * @property {{[event: string]: { target: string; actions?: Array<string> }}} [on]
           */
          
          /**
           * @typedef {Object} Options
           * @property {{[state: string]: StateDefinitions}} states
           * @property {object} context;
           * @property {string} initial
           */
          
          /**
           * @typedef {Object} Implementation
           * @property {{[actionName: string]: (ctx: object, event: any) => object}} actions
           */
          
          /**
           * A simplified `createMachine` from `@xstate/fsm` with the following differences:
           *
           *  - the returned machine is technically a "service". No `interpret(machine).start()` is needed.
           *  - the state definition only support `on` and target must be declared with { target: 'nextState', actions: [] } explicitly.
           *  - event passed to `send` must be an object with `type` property.
           *  - actions implementation will be [assign action](https://xstate.js.org/docs/guides/context.html#assign-action) if you return any value.
           *  Do not return anything if you just want to invoke side effect.
           *
           * The goal of this custom function is to avoid installing the entire `'xstate/fsm'` package, while enabling modeling using
           * state machine. You can copy the first parameter into the editor at https://stately.ai/viz to visualize the state machine.
           *
           * @param {Options} options
           * @param {Implementation} implementation
           */
          function createMachine(_ref, _ref2) {
            var states = _ref.states,
              context = _ref.context,
              initial = _ref.initial;
            var actions = _ref2.actions;
            var currentState = initial;
            var currentContext = context;
            return {
              send: function send(event) {
                var currentStateOn = states[currentState].on;
                var transitionConfig = currentStateOn && currentStateOn[event.type];
                if (transitionConfig) {
                  currentState = transitionConfig.target;
                  if (transitionConfig.actions) {
                    transitionConfig.actions.forEach(function (actName) {
                      var actionImpl = actions[actName];
                      var nextContextValue = actionImpl && actionImpl(currentContext, event);
                      if (nextContextValue) {
                        currentContext = _objectSpread(_objectSpread({}, currentContext), nextContextValue);
                      }
                    });
                  }
                }
              }
            };
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createMachine);
          
          /***/ }),
          
          /***/ 3200:
          /*!*************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/overlay/runtime-error.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   listenToRuntimeError: () => (/* binding */ listenToRuntimeError),
          /* harmony export */   listenToUnhandledRejection: () => (/* binding */ listenToUnhandledRejection),
          /* harmony export */   parseErrorToStacks: () => (/* binding */ parseErrorToStacks)
          /* harmony export */ });
          /**
           *
           * @param {Error} error
           */
          function parseErrorToStacks(error) {
            if (!error || !(error instanceof Error)) {
              throw new Error("parseErrorToStacks expects Error object");
            }
            if (typeof error.stack === "string") {
              return error.stack.split("\n").filter(function (stack) {
                return stack !== "Error: ".concat(error.message);
              });
            }
          }
          
          /**
           * @callback ErrorCallback
           * @param {ErrorEvent} error
           * @returns {void}
           */
          
          /**
           * @param {ErrorCallback} callback
           */
          function listenToRuntimeError(callback) {
            window.addEventListener("error", callback);
            return function cleanup() {
              window.removeEventListener("error", callback);
            };
          }
          
          /**
           * @callback UnhandledRejectionCallback
           * @param {PromiseRejectionEvent} rejectionEvent
           * @returns {void}
           */
          
          /**
           * @param {UnhandledRejectionCallback} callback
           */
          function listenToUnhandledRejection(callback) {
            window.addEventListener("unhandledrejection", callback);
            return function cleanup() {
              window.removeEventListener("unhandledrejection", callback);
            };
          }
          
          
          /***/ }),
          
          /***/ 9086:
          /*!*************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/overlay/state-machine.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /* harmony import */ var _fsm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fsm.js */ 2693);
          
          
          /**
           * @typedef {Object} ShowOverlayData
           * @property {'warning' | 'error'} level
           * @property {Array<string  | { moduleIdentifier?: string, moduleName?: string, loc?: string, message?: string }>} messages
           * @property {'build' | 'runtime'} messageSource
           */
          
          /**
           * @typedef {Object} CreateOverlayMachineOptions
           * @property {(data: ShowOverlayData) => void} showOverlay
           * @property {() => void} hideOverlay
           */
          
          /**
           * @param {CreateOverlayMachineOptions} options
           */
          var createOverlayMachine = function createOverlayMachine(options) {
            var hideOverlay = options.hideOverlay,
              showOverlay = options.showOverlay;
            var overlayMachine = (0,_fsm_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
              initial: "hidden",
              context: {
                level: "error",
                messages: [],
                messageSource: "build"
              },
              states: {
                hidden: {
                  on: {
                    BUILD_ERROR: {
                      target: "displayBuildError",
                      actions: ["setMessages", "showOverlay"]
                    },
                    RUNTIME_ERROR: {
                      target: "displayRuntimeError",
                      actions: ["setMessages", "showOverlay"]
                    }
                  }
                },
                displayBuildError: {
                  on: {
                    DISMISS: {
                      target: "hidden",
                      actions: ["dismissMessages", "hideOverlay"]
                    },
                    BUILD_ERROR: {
                      target: "displayBuildError",
                      actions: ["appendMessages", "showOverlay"]
                    }
                  }
                },
                displayRuntimeError: {
                  on: {
                    DISMISS: {
                      target: "hidden",
                      actions: ["dismissMessages", "hideOverlay"]
                    },
                    RUNTIME_ERROR: {
                      target: "displayRuntimeError",
                      actions: ["appendMessages", "showOverlay"]
                    },
                    BUILD_ERROR: {
                      target: "displayBuildError",
                      actions: ["setMessages", "showOverlay"]
                    }
                  }
                }
              }
            }, {
              actions: {
                dismissMessages: function dismissMessages() {
                  return {
                    messages: [],
                    level: "error",
                    messageSource: "build"
                  };
                },
                appendMessages: function appendMessages(context, event) {
                  return {
                    messages: context.messages.concat(event.messages),
                    level: event.level || context.level,
                    messageSource: event.type === "RUNTIME_ERROR" ? "runtime" : "build"
                  };
                },
                setMessages: function setMessages(context, event) {
                  return {
                    messages: event.messages,
                    level: event.level || context.level,
                    messageSource: event.type === "RUNTIME_ERROR" ? "runtime" : "build"
                  };
                },
                hideOverlay: hideOverlay,
                showOverlay: showOverlay
              }
            });
            return overlayMachine;
          };
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createOverlayMachine);
          
          /***/ }),
          
          /***/ 8141:
          /*!******************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/overlay/styles.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   containerStyle: () => (/* binding */ containerStyle),
          /* harmony export */   dismissButtonStyle: () => (/* binding */ dismissButtonStyle),
          /* harmony export */   headerStyle: () => (/* binding */ headerStyle),
          /* harmony export */   iframeStyle: () => (/* binding */ iframeStyle),
          /* harmony export */   msgStyles: () => (/* binding */ msgStyles),
          /* harmony export */   msgTextStyle: () => (/* binding */ msgTextStyle),
          /* harmony export */   msgTypeStyle: () => (/* binding */ msgTypeStyle)
          /* harmony export */ });
          // styles are inspired by `react-error-overlay`
          
          var msgStyles = {
            error: {
              backgroundColor: "rgba(206, 17, 38, 0.1)",
              color: "#fccfcf"
            },
            warning: {
              backgroundColor: "rgba(251, 245, 180, 0.1)",
              color: "#fbf5b4"
            }
          };
          var iframeStyle = {
            position: "fixed",
            top: 0,
            left: 0,
            right: 0,
            bottom: 0,
            width: "100vw",
            height: "100vh",
            border: "none",
            "z-index": 9999999999
          };
          var containerStyle = {
            position: "fixed",
            boxSizing: "border-box",
            left: 0,
            top: 0,
            right: 0,
            bottom: 0,
            width: "100vw",
            height: "100vh",
            fontSize: "large",
            padding: "2rem 2rem 4rem 2rem",
            lineHeight: "1.2",
            whiteSpace: "pre-wrap",
            overflow: "auto",
            backgroundColor: "rgba(0, 0, 0, 0.9)",
            color: "white"
          };
          var headerStyle = {
            color: "#e83b46",
            fontSize: "2em",
            whiteSpace: "pre-wrap",
            fontFamily: "sans-serif",
            margin: "0 2rem 2rem 0",
            flex: "0 0 auto",
            maxHeight: "50%",
            overflow: "auto"
          };
          var dismissButtonStyle = {
            color: "#ffffff",
            lineHeight: "1rem",
            fontSize: "1.5rem",
            padding: "1rem",
            cursor: "pointer",
            position: "absolute",
            right: 0,
            top: 0,
            backgroundColor: "transparent",
            border: "none"
          };
          var msgTypeStyle = {
            color: "#e83b46",
            fontSize: "1.2em",
            marginBottom: "1rem",
            fontFamily: "sans-serif"
          };
          var msgTextStyle = {
            lineHeight: "1.5",
            fontSize: "1rem",
            fontFamily: "Menlo, Consolas, monospace"
          };
          
          
          /***/ }),
          
          /***/ 2231:
          /*!**********************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/socket.js ***!
            \**********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   client: () => (/* binding */ client),
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /* harmony import */ var _clients_WebSocketClient_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./clients/WebSocketClient.js */ 4291);
          /* harmony import */ var _utils_log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/log.js */ 7596);
          /* provided dependency */ var __webpack_dev_server_client__ = __webpack_require__(/*! ./node_modules/webpack-dev-server/client/clients/WebSocketClient.js */ 4291);
          /* global __webpack_dev_server_client__ */
          
          
          
          
          // this WebsocketClient is here as a default fallback, in case the client is not injected
          /* eslint-disable camelcase */
          var Client =
          // eslint-disable-next-line no-nested-ternary
          typeof __webpack_dev_server_client__ !== "undefined" ? typeof __webpack_dev_server_client__.default !== "undefined" ? __webpack_dev_server_client__.default : __webpack_dev_server_client__ : _clients_WebSocketClient_js__WEBPACK_IMPORTED_MODULE_0__["default"];
          /* eslint-enable camelcase */
          
          var retries = 0;
          var maxRetries = 10;
          
          // Initialized client is exported so external consumers can utilize the same instance
          // It is mutable to enforce singleton
          // eslint-disable-next-line import/no-mutable-exports
          var client = null;
          
          /**
           * @param {string} url
           * @param {{ [handler: string]: (data?: any, params?: any) => any }} handlers
           * @param {number} [reconnect]
           */
          var socket = function initSocket(url, handlers, reconnect) {
            client = new Client(url);
            client.onOpen(function () {
              retries = 0;
              if (typeof reconnect !== "undefined") {
                maxRetries = reconnect;
              }
            });
            client.onClose(function () {
              if (retries === 0) {
                handlers.close();
              }
          
              // Try to reconnect.
              client = null;
          
              // After 10 retries stop trying, to prevent logspam.
              if (retries < maxRetries) {
                // Exponentially increase timeout to reconnect.
                // Respectfully copied from the package `got`.
                // eslint-disable-next-line no-restricted-properties
                var retryInMs = 1000 * Math.pow(2, retries) + Math.random() * 100;
                retries += 1;
                _utils_log_js__WEBPACK_IMPORTED_MODULE_1__.log.info("Trying to reconnect...");
                setTimeout(function () {
                  socket(url, handlers, reconnect);
                }, retryInMs);
              }
            });
            client.onMessage(
            /**
             * @param {any} data
             */
            function (data) {
              var message = JSON.parse(data);
              if (handlers[message.type]) {
                handlers[message.type](message.data, message.params);
              }
            });
          };
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (socket);
          
          /***/ }),
          
          /***/ 4804:
          /*!*************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/createSocketURL.js ***!
            \*************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /**
           * @param {{ protocol?: string, auth?: string, hostname?: string, port?: string, pathname?: string, search?: string, hash?: string, slashes?: boolean }} objURL
           * @returns {string}
           */
          function format(objURL) {
            var protocol = objURL.protocol || "";
            if (protocol && protocol.substr(-1) !== ":") {
              protocol += ":";
            }
            var auth = objURL.auth || "";
            if (auth) {
              auth = encodeURIComponent(auth);
              auth = auth.replace(/%3A/i, ":");
              auth += "@";
            }
            var host = "";
            if (objURL.hostname) {
              host = auth + (objURL.hostname.indexOf(":") === -1 ? objURL.hostname : "[".concat(objURL.hostname, "]"));
              if (objURL.port) {
                host += ":".concat(objURL.port);
              }
            }
            var pathname = objURL.pathname || "";
            if (objURL.slashes) {
              host = "//".concat(host || "");
              if (pathname && pathname.charAt(0) !== "/") {
                pathname = "/".concat(pathname);
              }
            } else if (!host) {
              host = "";
            }
            var search = objURL.search || "";
            if (search && search.charAt(0) !== "?") {
              search = "?".concat(search);
            }
            var hash = objURL.hash || "";
            if (hash && hash.charAt(0) !== "#") {
              hash = "#".concat(hash);
            }
            pathname = pathname.replace(/[?#]/g,
            /**
             * @param {string} match
             * @returns {string}
             */
            function (match) {
              return encodeURIComponent(match);
            });
            search = search.replace("#", "%23");
            return "".concat(protocol).concat(host).concat(pathname).concat(search).concat(hash);
          }
          
          /**
           * @param {URL & { fromCurrentScript?: boolean }} parsedURL
           * @returns {string}
           */
          function createSocketURL(parsedURL) {
            var hostname = parsedURL.hostname;
          
            // Node.js module parses it as `::`
            // `new URL(urlString, [baseURLString])` parses it as '[::]'
            var isInAddrAny = hostname === "0.0.0.0" || hostname === "::" || hostname === "[::]";
          
            // why do we need this check?
            // hostname n/a for file protocol (example, when using electron, ionic)
            // see: https://github.com/webpack/webpack-dev-server/pull/384
            if (isInAddrAny && self.location.hostname && self.location.protocol.indexOf("http") === 0) {
              hostname = self.location.hostname;
            }
            var socketURLProtocol = parsedURL.protocol || self.location.protocol;
          
            // When https is used in the app, secure web sockets are always necessary because the browser doesn't accept non-secure web sockets.
            if (socketURLProtocol === "auto:" || hostname && isInAddrAny && self.location.protocol === "https:") {
              socketURLProtocol = self.location.protocol;
            }
            socketURLProtocol = socketURLProtocol.replace(/^(?:http|.+-extension|file)/i, "ws");
            var socketURLAuth = "";
          
            // `new URL(urlString, [baseURLstring])` doesn't have `auth` property
            // Parse authentication credentials in case we need them
            if (parsedURL.username) {
              socketURLAuth = parsedURL.username;
          
              // Since HTTP basic authentication does not allow empty username,
              // we only include password if the username is not empty.
              if (parsedURL.password) {
                // Result: <username>:<password>
                socketURLAuth = socketURLAuth.concat(":", parsedURL.password);
              }
            }
          
            // In case the host is a raw IPv6 address, it can be enclosed in
            // the brackets as the brackets are needed in the final URL string.
            // Need to remove those as url.format blindly adds its own set of brackets
            // if the host string contains colons. That would lead to non-working
            // double brackets (e.g. [[::]]) host
            //
            // All of these web socket url params are optionally passed in through resourceQuery,
            // so we need to fall back to the default if they are not provided
            var socketURLHostname = (hostname || self.location.hostname || "localhost").replace(/^\[(.*)\]$/, "$1");
            var socketURLPort = parsedURL.port;
            if (!socketURLPort || socketURLPort === "0") {
              socketURLPort = self.location.port;
            }
          
            // If path is provided it'll be passed in via the resourceQuery as a
            // query param so it has to be parsed out of the querystring in order for the
            // client to open the socket to the correct location.
            var socketURLPathname = "/ws";
            if (parsedURL.pathname && !parsedURL.fromCurrentScript) {
              socketURLPathname = parsedURL.pathname;
            }
            return format({
              protocol: socketURLProtocol,
              auth: socketURLAuth,
              hostname: socketURLHostname,
              port: socketURLPort,
              pathname: socketURLPathname,
              slashes: true
            });
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createSocketURL);
          
          /***/ }),
          
          /***/ 815:
          /*!********************************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/getCurrentScriptSource.js ***!
            \********************************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /**
           * @returns {string}
           */
          function getCurrentScriptSource() {
            // `document.currentScript` is the most accurate way to find the current script,
            // but is not supported in all browsers.
            if (document.currentScript) {
              return document.currentScript.getAttribute("src");
            }
          
            // Fallback to getting all scripts running in the document.
            var scriptElements = document.scripts || [];
            var scriptElementsWithSrc = Array.prototype.filter.call(scriptElements, function (element) {
              return element.getAttribute("src");
            });
            if (scriptElementsWithSrc.length > 0) {
              var currentScript = scriptElementsWithSrc[scriptElementsWithSrc.length - 1];
              return currentScript.getAttribute("src");
            }
          
            // Fail as there was no script to use.
            throw new Error("[webpack-dev-server] Failed to get current script source.");
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getCurrentScriptSource);
          
          /***/ }),
          
          /***/ 7596:
          /*!*************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/log.js ***!
            \*************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   log: () => (/* binding */ log),
          /* harmony export */   logEnabledFeatures: () => (/* binding */ logEnabledFeatures),
          /* harmony export */   setLogLevel: () => (/* binding */ setLogLevel)
          /* harmony export */ });
          /* harmony import */ var _modules_logger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/logger/index.js */ 5975);
          /* harmony import */ var _modules_logger_index_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_modules_logger_index_js__WEBPACK_IMPORTED_MODULE_0__);
          
          var name = "webpack-dev-server";
          // default level is set on the client side, so it does not need
          // to be set by the CLI or API
          var defaultLevel = "info";
          
          // options new options, merge with old options
          /**
           * @param {false | true | "none" | "error" | "warn" | "info" | "log" | "verbose"} level
           * @returns {void}
           */
          function setLogLevel(level) {
            _modules_logger_index_js__WEBPACK_IMPORTED_MODULE_0___default().configureDefaultLogger({
              level: level
            });
          }
          setLogLevel(defaultLevel);
          var log = _modules_logger_index_js__WEBPACK_IMPORTED_MODULE_0___default().getLogger(name);
          var logEnabledFeatures = function logEnabledFeatures(features) {
            var enabledFeatures = Object.keys(features);
            if (!features || enabledFeatures.length === 0) {
              return;
            }
            var logString = "Server started:";
          
            // Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
            for (var i = 0; i < enabledFeatures.length; i++) {
              var key = enabledFeatures[i];
              logString += " ".concat(key, " ").concat(features[key] ? "enabled" : "disabled", ",");
            }
            // replace last comma with a period
            logString = logString.slice(0, -1).concat(".");
            log.info(logString);
          };
          
          
          /***/ }),
          
          /***/ 8776:
          /*!******************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/parseURL.js ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /* harmony import */ var _getCurrentScriptSource_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getCurrentScriptSource.js */ 815);
          
          
          /**
           * @param {string} resourceQuery
           * @returns {{ [key: string]: string | boolean }}
           */
          function parseURL(resourceQuery) {
            /** @type {{ [key: string]: string }} */
            var options = {};
            if (typeof resourceQuery === "string" && resourceQuery !== "") {
              var searchParams = resourceQuery.slice(1).split("&");
              for (var i = 0; i < searchParams.length; i++) {
                var pair = searchParams[i].split("=");
                options[pair[0]] = decodeURIComponent(pair[1]);
              }
            } else {
              // Else, get the url from the <script> this file was called with.
              var scriptSource = (0,_getCurrentScriptSource_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
              var scriptSourceURL;
              try {
                // The placeholder `baseURL` with `window.location.href`,
                // is to allow parsing of path-relative or protocol-relative URLs,
                // and will have no effect if `scriptSource` is a fully valid URL.
                scriptSourceURL = new URL(scriptSource, self.location.href);
              } catch (error) {
                // URL parsing failed, do nothing.
                // We will still proceed to see if we can recover using `resourceQuery`
              }
              if (scriptSourceURL) {
                options = scriptSourceURL;
                options.fromCurrentScript = true;
              }
            }
            return options;
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parseURL);
          
          /***/ }),
          
          /***/ 1190:
          /*!*******************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/reloadApp.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /* harmony import */ var webpack_hot_emitter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! webpack/hot/emitter.js */ 7202);
          /* harmony import */ var webpack_hot_emitter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(webpack_hot_emitter_js__WEBPACK_IMPORTED_MODULE_0__);
          /* harmony import */ var _log_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./log.js */ 7596);
          
          
          
          /** @typedef {import("../index").Options} Options
          /** @typedef {import("../index").Status} Status
          
          /**
           * @param {Options} options
           * @param {Status} status
           */
          function reloadApp(_ref, status) {
            var hot = _ref.hot,
              liveReload = _ref.liveReload;
            if (status.isUnloading) {
              return;
            }
            var currentHash = status.currentHash,
              previousHash = status.previousHash;
            var isInitial = currentHash.indexOf( /** @type {string} */previousHash) >= 0;
            if (isInitial) {
              return;
            }
          
            /**
             * @param {Window} rootWindow
             * @param {number} intervalId
             */
            function applyReload(rootWindow, intervalId) {
              clearInterval(intervalId);
              _log_js__WEBPACK_IMPORTED_MODULE_1__.log.info("App updated. Reloading...");
              rootWindow.location.reload();
            }
            var search = self.location.search.toLowerCase();
            var allowToHot = search.indexOf("webpack-dev-server-hot=false") === -1;
            var allowToLiveReload = search.indexOf("webpack-dev-server-live-reload=false") === -1;
            if (hot && allowToHot) {
              _log_js__WEBPACK_IMPORTED_MODULE_1__.log.info("App hot update...");
              webpack_hot_emitter_js__WEBPACK_IMPORTED_MODULE_0___default().emit("webpackHotUpdate", status.currentHash);
              if (typeof self !== "undefined" && self.window) {
                // broadcast update to window
                self.postMessage("webpackHotUpdate".concat(status.currentHash), "*");
              }
            }
            // allow refreshing the page only if liveReload isn't disabled
            else if (liveReload && allowToLiveReload) {
              var rootWindow = self;
          
              // use parent window for reload (in case we're in an iframe with no valid src)
              var intervalId = self.setInterval(function () {
                if (rootWindow.location.protocol !== "about:") {
                  // reload immediately if protocol is valid
                  applyReload(rootWindow, intervalId);
                } else {
                  rootWindow = rootWindow.parent;
                  if (rootWindow.parent === rootWindow) {
                    // if parent equals current window we've reached the root which would continue forever, so trigger a reload anyways
                    applyReload(rootWindow, intervalId);
                  }
                }
              });
            }
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reloadApp);
          
          /***/ }),
          
          /***/ 2975:
          /*!*********************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/sendMessage.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /* global __resourceQuery WorkerGlobalScope */
          
          // Send messages to the outside, so plugins can consume it.
          /**
           * @param {string} type
           * @param {any} [data]
           */
          function sendMsg(type, data) {
            if (typeof self !== "undefined" && (typeof WorkerGlobalScope === "undefined" || !(self instanceof WorkerGlobalScope))) {
              self.postMessage({
                type: "webpack".concat(type),
                data: data
              }, "*");
            }
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sendMsg);
          
          /***/ }),
          
          /***/ 4675:
          /*!*******************************************************************!*\
            !*** ./node_modules/webpack-dev-server/client/utils/stripAnsi.js ***!
            \*******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          var ansiRegex = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"), "g");
          
          /**
           *
           * Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
           * Adapted from code originally released by Sindre Sorhus
           * Licensed the MIT License
           *
           * @param {string} string
           * @return {string}
           */
          function stripAnsi(string) {
            if (typeof string !== "string") {
              throw new TypeError("Expected a `string`, got `".concat(typeof string, "`"));
            }
            return string.replace(ansiRegex, "");
          }
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stripAnsi);
          
          /***/ }),
          
          /***/ 7202:
          /*!*********************************************!*\
            !*** ./node_modules/webpack/hot/emitter.js ***!
            \*********************************************/
          /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
          
          var EventEmitter = __webpack_require__(/*! events */ 4339);
          module.exports = new EventEmitter();
          
          /***/ }),
          
          /***/ 6366:
          /*!*****************************************!*\
            !*** ./node_modules/webpack/hot/log.js ***!
            \*****************************************/
          /***/ ((module) => {
          
          /** @typedef {"info" | "warning" | "error"} LogLevel */
          
          /** @type {LogLevel} */
          var logLevel = "info";
          function dummy() {}
          
          /**
           * @param {LogLevel} level log level
           * @returns {boolean} true, if should log
           */
          function shouldLog(level) {
            var shouldLog = logLevel === "info" && level === "info" || ["info", "warning"].indexOf(logLevel) >= 0 && level === "warning" || ["info", "warning", "error"].indexOf(logLevel) >= 0 && level === "error";
            return shouldLog;
          }
          
          /**
           * @param {(msg?: string) => void} logFn log function
           * @returns {(level: LogLevel, msg?: string) => void} function that logs when log level is sufficient
           */
          function logGroup(logFn) {
            return function (level, msg) {
              if (shouldLog(level)) {
                logFn(msg);
              }
            };
          }
          
          /**
           * @param {LogLevel} level log level
           * @param {string|Error} msg message
           */
          module.exports = function (level, msg) {
            if (shouldLog(level)) {
              if (level === "info") {
                console.log(msg);
              } else if (level === "warning") {
                console.warn(msg);
              } else if (level === "error") {
                console.error(msg);
              }
            }
          };
          var group = console.group || dummy;
          var groupCollapsed = console.groupCollapsed || dummy;
          var groupEnd = console.groupEnd || dummy;
          module.exports.group = logGroup(group);
          module.exports.groupCollapsed = logGroup(groupCollapsed);
          module.exports.groupEnd = logGroup(groupEnd);
          
          /**
           * @param {LogLevel} level log level
           */
          module.exports.setLogLevel = function (level) {
            logLevel = level;
          };
          
          /**
           * @param {Error} err error
           * @returns {string} formatted error
           */
          module.exports.formatError = function (err) {
            var message = err.message;
            var stack = err.stack;
            if (!stack) {
              return message;
            } else if (stack.indexOf(message) < 0) {
              return message + "\n" + stack;
            }
            return stack;
          };
          
          /***/ }),
          
          /***/ 7172:
          /*!******************************************************************!*\
            !*** ./node_modules/@angular/animations/fesm2022/animations.mjs ***!
            \******************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AUTO_STYLE: () => (/* binding */ AUTO_STYLE),
          /* harmony export */   AnimationBuilder: () => (/* binding */ AnimationBuilder),
          /* harmony export */   AnimationFactory: () => (/* binding */ AnimationFactory),
          /* harmony export */   NoopAnimationPlayer: () => (/* binding */ NoopAnimationPlayer),
          /* harmony export */   animate: () => (/* binding */ animate),
          /* harmony export */   animateChild: () => (/* binding */ animateChild),
          /* harmony export */   animation: () => (/* binding */ animation),
          /* harmony export */   group: () => (/* binding */ group),
          /* harmony export */   keyframes: () => (/* binding */ keyframes),
          /* harmony export */   query: () => (/* binding */ query),
          /* harmony export */   sequence: () => (/* binding */ sequence),
          /* harmony export */   stagger: () => (/* binding */ stagger),
          /* harmony export */   state: () => (/* binding */ state),
          /* harmony export */   style: () => (/* binding */ style),
          /* harmony export */   transition: () => (/* binding */ transition),
          /* harmony export */   trigger: () => (/* binding */ trigger),
          /* harmony export */   useAnimation: () => (/* binding */ useAnimation),
          /* harmony export */   "ɵAnimationGroupPlayer": () => (/* binding */ AnimationGroupPlayer),
          /* harmony export */   "ɵPRE_STYLE": () => (/* binding */ ɵPRE_STYLE)
          /* harmony export */ });
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          /**
           * An injectable service that produces an animation sequence programmatically within an
           * Angular component or directive.
           * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
           *
           * @usageNotes
           *
           * To use this service, add it to your component or directive as a dependency.
           * The service is instantiated along with your component.
           *
           * Apps do not typically need to create their own animation players, but if you
           * do need to, follow these steps:
           *
           * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method
           * to create a programmatic animation. The method returns an `AnimationFactory` instance.
           *
           * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
           *
           * 3. Use the player object to control the animation programmatically.
           *
           * For example:
           *
           * ```ts
           * // import the service from BrowserAnimationsModule
           * import {AnimationBuilder} from '@angular/animations';
           * // require the service as a dependency
           * class MyCmp {
           *   constructor(private _builder: AnimationBuilder) {}
           *
           *   makeAnimation(element: any) {
           *     // first define a reusable animation
           *     const myAnimation = this._builder.build([
           *       style({ width: 0 }),
           *       animate(1000, style({ width: '100px' }))
           *     ]);
           *
           *     // use the returned factory object to create a player
           *     const player = myAnimation.create(element);
           *
           *     player.play();
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class AnimationBuilder {}
          /**
           * A factory object returned from the
           * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
           * method.
           *
           * @publicApi
           */
          class AnimationFactory {}
          
          /**
           * Specifies automatic styling.
           *
           * @publicApi
           */
          const AUTO_STYLE = '*';
          /**
           * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)
           * and `transition()` entries to be evaluated when the expression
           * bound to the trigger changes.
           *
           * @param name An identifying string.
           * @param definitions  An animation definition object, containing an array of
           * [`state()`](api/animations/state) and `transition()` declarations.
           *
           * @return An object that encapsulates the trigger data.
           *
           * @usageNotes
           * Define an animation trigger in the `animations` section of `@Component` metadata.
           * In the template, reference the trigger by name and bind it to a trigger expression that
           * evaluates to a defined animation state, using the following format:
           *
           * `[@triggerName]="expression"`
           *
           * Animation trigger bindings convert all values to strings, and then match the
           * previous and current values against any linked transitions.
           * Booleans can be specified as `1` or `true` and `0` or `false`.
           *
           * ### Usage Example
           *
           * The following example creates an animation trigger reference based on the provided
           * name value.
           * The provided animation value is expected to be an array consisting of state and
           * transition declarations.
           *
           * ```typescript
           * @Component({
           *   selector: "my-component",
           *   templateUrl: "my-component-tpl.html",
           *   animations: [
           *     trigger("myAnimationTrigger", [
           *       state(...),
           *       state(...),
           *       transition(...),
           *       transition(...)
           *     ])
           *   ]
           * })
           * class MyComponent {
           *   myStatusExp = "something";
           * }
           * ```
           *
           * The template associated with this component makes use of the defined trigger
           * by binding to an element within its template code.
           *
           * ```html
           * <!-- somewhere inside of my-component-tpl.html -->
           * <div [@myAnimationTrigger]="myStatusExp">...</div>
           * ```
           *
           * ### Using an inline function
           * The `transition` animation method also supports reading an inline function which can decide
           * if its associated animation should be run.
           *
           * ```typescript
           * // this method is run each time the `myAnimationTrigger` trigger value changes.
           * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
           string]: any}): boolean {
           *   // notice that `element` and `params` are also available here
           *   return toState == 'yes-please-animate';
           * }
           *
           * @Component({
           *   selector: 'my-component',
           *   templateUrl: 'my-component-tpl.html',
           *   animations: [
           *     trigger('myAnimationTrigger', [
           *       transition(myInlineMatcherFn, [
           *         // the animation sequence code
           *       ]),
           *     ])
           *   ]
           * })
           * class MyComponent {
           *   myStatusExp = "yes-please-animate";
           * }
           * ```
           *
           * ### Disabling Animations
           * When true, the special animation control binding `@.disabled` binding prevents
           * all animations from rendering.
           * Place the  `@.disabled` binding on an element to disable
           * animations on the element itself, as well as any inner animation triggers
           * within the element.
           *
           * The following example shows how to use this feature:
           *
           * ```typescript
           * @Component({
           *   selector: 'my-component',
           *   template: `
           *     <div [@.disabled]="isDisabled">
           *       <div [@childAnimation]="exp"></div>
           *     </div>
           *   `,
           *   animations: [
           *     trigger("childAnimation", [
           *       // ...
           *     ])
           *   ]
           * })
           * class MyComponent {
           *   isDisabled = true;
           *   exp = '...';
           * }
           * ```
           *
           * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
           * along with any inner animations.
           *
           * ### Disable animations application-wide
           * When an area of the template is set to have animations disabled,
           * **all** inner components have their animations disabled as well.
           * This means that you can disable all animations for an app
           * by placing a host binding set on `@.disabled` on the topmost Angular component.
           *
           * ```typescript
           * import {Component, HostBinding} from '@angular/core';
           *
           * @Component({
           *   selector: 'app-component',
           *   templateUrl: 'app.component.html',
           * })
           * class AppComponent {
           *   @HostBinding('@.disabled')
           *   public animationsDisabled = true;
           * }
           * ```
           *
           * ### Overriding disablement of inner animations
           * Despite inner animations being disabled, a parent animation can `query()`
           * for inner elements located in disabled areas of the template and still animate
           * them if needed. This is also the case for when a sub animation is
           * queried by a parent and then later animated using `animateChild()`.
           *
           * ### Detecting when an animation is disabled
           * If a region of the DOM (or the entire application) has its animations disabled, the animation
           * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
           * an instance of an `AnimationEvent`. If animations are disabled,
           * the `.disabled` flag on the event is true.
           *
           * @publicApi
           */
          function trigger(name, definitions) {
            return {
              type: 7 /* AnimationMetadataType.Trigger */,
              name,
              definitions,
              options: {}
            };
          }
          /**
           * Defines an animation step that combines styling information with timing information.
           *
           * @param timings Sets `AnimateTimings` for the parent animation.
           * A string in the format "duration [delay] [easing]".
           *  - Duration and delay are expressed as a number and optional time unit,
           * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
           * The default unit is milliseconds.
           *  - The easing value controls how the animation accelerates and decelerates
           * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,
           * `ease-in-out`, or a `cubic-bezier()` function call.
           * If not supplied, no easing is applied.
           *
           * For example, the string "1s 100ms ease-out" specifies a duration of
           * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
           * which decelerates near the end of the duration.
           * @param styles Sets AnimationStyles for the parent animation.
           * A function call to either `style()` or `keyframes()`
           * that returns a collection of CSS style entries to be applied to the parent animation.
           * When null, uses the styles from the destination state.
           * This is useful when describing an animation step that will complete an animation;
           * see "Animating to the final state" in `transitions()`.
           * @returns An object that encapsulates the animation step.
           *
           * @usageNotes
           * Call within an animation `sequence()`, `{@link animations/group group()}`, or
           * `transition()` call to specify an animation step
           * that applies given style data to the parent animation for a given amount of time.
           *
           * ### Syntax Examples
           * **Timing examples**
           *
           * The following examples show various `timings` specifications.
           * - `animate(500)` : Duration is 500 milliseconds.
           * - `animate("1s")` : Duration is 1000 milliseconds.
           * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
           * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
           * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
           * milliseconds, easing according to a bezier curve.
           *
           * **Style examples**
           *
           * The following example calls `style()` to set a single CSS style.
           * ```typescript
           * animate(500, style({ background: "red" }))
           * ```
           * The following example calls `keyframes()` to set a CSS style
           * to different values for successive keyframes.
           * ```typescript
           * animate(500, keyframes(
           *  [
           *   style({ background: "blue" }),
           *   style({ background: "red" })
           *  ])
           * ```
           *
           * @publicApi
           */
          function animate(timings, styles = null) {
            return {
              type: 4 /* AnimationMetadataType.Animate */,
              styles,
              timings
            };
          }
          /**
           * @description Defines a list of animation steps to be run in parallel.
           *
           * @param steps An array of animation step objects.
           * - When steps are defined by `style()` or `animate()`
           * function calls, each call within the group is executed instantly.
           * - To specify offset styles to be applied at a later time, define steps with
           * `keyframes()`, or use `animate()` calls with a delay value.
           * For example:
           *
           * ```typescript
           * group([
           *   animate("1s", style({ background: "black" })),
           *   animate("2s", style({ color: "white" }))
           * ])
           * ```
           *
           * @param options An options object containing a delay and
           * developer-defined parameters that provide styling defaults and
           * can be overridden on invocation.
           *
           * @return An object that encapsulates the group data.
           *
           * @usageNotes
           * Grouped animations are useful when a series of styles must be
           * animated at different starting times and closed off at different ending times.
           *
           * When called within a `sequence()` or a
           * `transition()` call, does not continue to the next
           * instruction until all of the inner animation steps have completed.
           *
           * @publicApi
           */
          function group(steps, options = null) {
            return {
              type: 3 /* AnimationMetadataType.Group */,
              steps,
              options
            };
          }
          /**
           * Defines a list of animation steps to be run sequentially, one by one.
           *
           * @param steps An array of animation step objects.
           * - Steps defined by `style()` calls apply the styling data immediately.
           * - Steps defined by `animate()` calls apply the styling data over time
           *   as specified by the timing data.
           *
           * ```typescript
           * sequence([
           *   style({ opacity: 0 }),
           *   animate("1s", style({ opacity: 1 }))
           * ])
           * ```
           *
           * @param options An options object containing a delay and
           * developer-defined parameters that provide styling defaults and
           * can be overridden on invocation.
           *
           * @return An object that encapsulates the sequence data.
           *
           * @usageNotes
           * When you pass an array of steps to a
           * `transition()` call, the steps run sequentially by default.
           * Compare this to the `{@link animations/group group()}` call, which runs animation steps in
           *parallel.
           *
           * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,
           * execution continues to the next instruction only after each of the inner animation
           * steps have completed.
           *
           * @publicApi
           **/
          function sequence(steps, options = null) {
            return {
              type: 2 /* AnimationMetadataType.Sequence */,
              steps,
              options
            };
          }
          /**
           * Declares a key/value object containing CSS properties/styles that
           * can then be used for an animation [`state`](api/animations/state), within an animation
           *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
           *
           * @param tokens A set of CSS styles or HTML styles associated with an animation state.
           * The value can be any of the following:
           * - A key-value style pair associating a CSS property with a value.
           * - An array of key-value style pairs.
           * - An asterisk (*), to use auto-styling, where styles are derived from the element
           * being animated and applied to the animation when it starts.
           *
           * Auto-styling can be used to define a state that depends on layout or other
           * environmental factors.
           *
           * @return An object that encapsulates the style data.
           *
           * @usageNotes
           * The following examples create animation styles that collect a set of
           * CSS property values:
           *
           * ```typescript
           * // string values for CSS properties
           * style({ background: "red", color: "blue" })
           *
           * // numerical pixel values
           * style({ width: 100, height: 0 })
           * ```
           *
           * The following example uses auto-styling to allow an element to animate from
           * a height of 0 up to its full height:
           *
           * ```
           * style({ height: 0 }),
           * animate("1s", style({ height: "*" }))
           * ```
           *
           * @publicApi
           **/
          function style(tokens) {
            return {
              type: 6 /* AnimationMetadataType.Style */,
              styles: tokens,
              offset: null
            };
          }
          /**
           * Declares an animation state within a trigger attached to an element.
           *
           * @param name One or more names for the defined state in a comma-separated string.
           * The following reserved state names can be supplied to define a style for specific use
           * cases:
           *
           * - `void` You can associate styles with this name to be used when
           * the element is detached from the application. For example, when an `ngIf` evaluates
           * to false, the state of the associated element is void.
           *  - `*` (asterisk) Indicates the default state. You can associate styles with this name
           * to be used as the fallback when the state that is being animated is not declared
           * within the trigger.
           *
           * @param styles A set of CSS styles associated with this state, created using the
           * `style()` function.
           * This set of styles persists on the element once the state has been reached.
           * @param options Parameters that can be passed to the state when it is invoked.
           * 0 or more key-value pairs.
           * @return An object that encapsulates the new state data.
           *
           * @usageNotes
           * Use the `trigger()` function to register states to an animation trigger.
           * Use the `transition()` function to animate between states.
           * When a state is active within a component, its associated styles persist on the element,
           * even when the animation ends.
           *
           * @publicApi
           **/
          function state(name, styles, options) {
            return {
              type: 0 /* AnimationMetadataType.State */,
              name,
              styles,
              options
            };
          }
          /**
           * Defines a set of animation styles, associating each style with an optional `offset` value.
           *
           * @param steps A set of animation styles with optional offset data.
           * The optional `offset` value for a style specifies a percentage of the total animation
           * time at which that style is applied.
           * @returns An object that encapsulates the keyframes data.
           *
           * @usageNotes
           * Use with the `animate()` call. Instead of applying animations
           * from the current state
           * to the destination state, keyframes describe how each style entry is applied and at what point
           * within the animation arc.
           * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
           *
           * ### Usage
           *
           * In the following example, the offset values describe
           * when each `backgroundColor` value is applied. The color is red at the start, and changes to
           * blue when 20% of the total time has elapsed.
           *
           * ```typescript
           * // the provided offset values
           * animate("5s", keyframes([
           *   style({ backgroundColor: "red", offset: 0 }),
           *   style({ backgroundColor: "blue", offset: 0.2 }),
           *   style({ backgroundColor: "orange", offset: 0.3 }),
           *   style({ backgroundColor: "black", offset: 1 })
           * ]))
           * ```
           *
           * If there are no `offset` values specified in the style entries, the offsets
           * are calculated automatically.
           *
           * ```typescript
           * animate("5s", keyframes([
           *   style({ backgroundColor: "red" }) // offset = 0
           *   style({ backgroundColor: "blue" }) // offset = 0.33
           *   style({ backgroundColor: "orange" }) // offset = 0.66
           *   style({ backgroundColor: "black" }) // offset = 1
           * ]))
           *```
          
           * @publicApi
           */
          function keyframes(steps) {
            return {
              type: 5 /* AnimationMetadataType.Keyframes */,
              steps
            };
          }
          /**
           * Declares an animation transition which is played when a certain specified condition is met.
           *
           * @param stateChangeExpr A string with a specific format or a function that specifies when the
           * animation transition should occur (see [State Change Expression](#state-change-expression)).
           *
           * @param steps One or more animation objects that represent the animation's instructions.
           *
           * @param options An options object that can be used to specify a delay for the animation or provide
           * custom parameters for it.
           *
           * @returns An object that encapsulates the transition data.
           *
           * @usageNotes
           *
           * ### State Change Expression
           *
           * The State Change Expression instructs Angular when to run the transition's animations, it can
           *either be
           *  - a string with a specific syntax
           *  - or a function that compares the previous and current state (value of the expression bound to
           *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise
           *
           * The string format can be:
           *  - `fromState => toState`, which indicates that the transition's animations should occur then the
           *    expression bound to the trigger's element goes from `fromState` to `toState`
           *
           *    _Example:_
           *      ```typescript
           *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
           *      ```
           *
           *  - `fromState <=> toState`, which indicates that the transition's animations should occur then
           *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
           *
           *    _Example:_
           *      ```typescript
           *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
           *      ```
           *
           *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
           *    element enters or exists the DOM
           *
           *    _Example:_
           *      ```typescript
           *        transition(':enter', [
           *          style({ opacity: 0 }),
           *          animate('500ms', style({ opacity: 1 }))
           *        ])
           *      ```
           *
           *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
           *    the numerical expression bound to the trigger's element has increased in value or decreased
           *
           *    _Example:_
           *      ```typescript
           *        transition(':increment', query('@counter', animateChild()))
           *      ```
           *
           *  - a sequence of any of the above divided by commas, which indicates that transition's animations
           *    should occur whenever one of the state change expressions matches
           *
           *    _Example:_
           *      ```typescript
           *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
           *          style({ transform: 'scale(1)', offset: 0}),
           *          style({ transform: 'scale(1.1)', offset: 0.7}),
           *          style({ transform: 'scale(1)', offset: 1})
           *        ]))),
           *      ```
           *
           * Also note that in such context:
           *  - `void` can be used to indicate the absence of the element
           *  - asterisks can be used as wildcards that match any state
           *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
           *    equivalent to `:leave`)
           *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
           *    _truthy_ and _falsy_ values)
           *
           * <div class="alert is-helpful">
           *
           *  Be careful about entering end leaving elements as their transitions present a common
           *  pitfall for developers.
           *
           *  Note that when an element with a trigger enters the DOM its `:enter` transition always
           *  gets executed, but its `:leave` transition will not be executed if the element is removed
           *  alongside its parent (as it will be removed "without warning" before its transition has
           *  a chance to be executed, the only way that such transition can occur is if the element
           *  is exiting the DOM on its own).
           *
           *
           * </div>
           *
           * ### Animating to a Final State
           *
           * If the final step in a transition is a call to `animate()` that uses a timing value
           * with no `style` data, that step is automatically considered the final animation arc,
           * for the element to reach the final state, in such case Angular automatically adds or removes
           * CSS styles to ensure that the element is in the correct final state.
           *
           *
           * ### Usage Examples
           *
           *  - Transition animations applied based on
           *    the trigger's expression value
           *
           *   ```HTML
           *   <div [@myAnimationTrigger]="myStatusExp">
           *    ...
           *   </div>
           *   ```
           *
           *   ```typescript
           *   trigger("myAnimationTrigger", [
           *     ..., // states
           *     transition("on => off, open => closed", animate(500)),
           *     transition("* <=> error", query('.indicator', animateChild()))
           *   ])
           *   ```
           *
           *  - Transition animations applied based on custom logic dependent
           *    on the trigger's expression value and provided parameters
           *
           *    ```HTML
           *    <div [@myAnimationTrigger]="{
           *     value: stepName,
           *     params: { target: currentTarget }
           *    }">
           *     ...
           *    </div>
           *    ```
           *
           *    ```typescript
           *    trigger("myAnimationTrigger", [
           *      ..., // states
           *      transition(
           *        (fromState, toState, _element, params) =>
           *          ['firststep', 'laststep'].includes(fromState.toLowerCase())
           *          && toState === params?.['target'],
           *        animate('1s')
           *      )
           *    ])
           *    ```
           *
           * @publicApi
           **/
          function transition(stateChangeExpr, steps, options = null) {
            return {
              type: 1 /* AnimationMetadataType.Transition */,
              expr: stateChangeExpr,
              animation: steps,
              options
            };
          }
          /**
           * Produces a reusable animation that can be invoked in another animation or sequence,
           * by calling the `useAnimation()` function.
           *
           * @param steps One or more animation objects, as returned by the `animate()`
           * or `sequence()` function, that form a transformation from one state to another.
           * A sequence is used by default when you pass an array.
           * @param options An options object that can contain a delay value for the start of the
           * animation, and additional developer-defined parameters.
           * Provided values for additional parameters are used as defaults,
           * and override values can be passed to the caller on invocation.
           * @returns An object that encapsulates the animation data.
           *
           * @usageNotes
           * The following example defines a reusable animation, providing some default parameter
           * values.
           *
           * ```typescript
           * var fadeAnimation = animation([
           *   style({ opacity: '{{ start }}' }),
           *   animate('{{ time }}',
           *   style({ opacity: '{{ end }}'}))
           *   ],
           *   { params: { time: '1000ms', start: 0, end: 1 }});
           * ```
           *
           * The following invokes the defined animation with a call to `useAnimation()`,
           * passing in override parameter values.
           *
           * ```js
           * useAnimation(fadeAnimation, {
           *   params: {
           *     time: '2s',
           *     start: 1,
           *     end: 0
           *   }
           * })
           * ```
           *
           * If any of the passed-in parameter values are missing from this call,
           * the default values are used. If one or more parameter values are missing before a step is
           * animated, `useAnimation()` throws an error.
           *
           * @publicApi
           */
          function animation(steps, options = null) {
            return {
              type: 8 /* AnimationMetadataType.Reference */,
              animation: steps,
              options
            };
          }
          /**
           * Executes a queried inner animation element within an animation sequence.
           *
           * @param options An options object that can contain a delay value for the start of the
           * animation, and additional override values for developer-defined parameters.
           * @return An object that encapsulates the child animation data.
           *
           * @usageNotes
           * Each time an animation is triggered in Angular, the parent animation
           * has priority and any child animations are blocked. In order
           * for a child animation to run, the parent animation must query each of the elements
           * containing child animations, and run them using this function.
           *
           * Note that this feature is designed to be used with `query()` and it will only work
           * with animations that are assigned using the Angular animation library. CSS keyframes
           * and transitions are not handled by this API.
           *
           * @publicApi
           */
          function animateChild(options = null) {
            return {
              type: 9 /* AnimationMetadataType.AnimateChild */,
              options
            };
          }
          /**
           * Starts a reusable animation that is created using the `animation()` function.
           *
           * @param animation The reusable animation to start.
           * @param options An options object that can contain a delay value for the start of
           * the animation, and additional override values for developer-defined parameters.
           * @return An object that contains the animation parameters.
           *
           * @publicApi
           */
          function useAnimation(animation, options = null) {
            return {
              type: 10 /* AnimationMetadataType.AnimateRef */,
              animation,
              options
            };
          }
          /**
           * Finds one or more inner elements within the current element that is
           * being animated within a sequence. Use with `animate()`.
           *
           * @param selector The element to query, or a set of elements that contain Angular-specific
           * characteristics, specified with one or more of the following tokens.
           *  - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
           *     all elements can be queried via these tokens, see
           *     [Entering and Leaving Elements](#entering-and-leaving-elements))
           *  - `query(":animating")` : Query all currently animating elements.
           *  - `query("@triggerName")` : Query elements that contain an animation trigger.
           *  - `query("@*")` : Query all elements that contain an animation triggers.
           *  - `query(":self")` : Include the current element into the animation sequence.
           *
           * @param animation One or more animation steps to apply to the queried element or elements.
           * An array is treated as an animation sequence.
           * @param options An options object. Use the 'limit' field to limit the total number of
           * items to collect.
           * @return An object that encapsulates the query data.
           *
           * @usageNotes
           *
           * ### Multiple Tokens
           *
           * Tokens can be merged into a combined query selector string. For example:
           *
           * ```typescript
           *  query(':self, .record:enter, .record:leave, @subTrigger', [...])
           * ```
           *
           * The `query()` function collects multiple elements and works internally by using
           * `element.querySelectorAll`. Use the `limit` field of an options object to limit
           * the total number of items to be collected. For example:
           *
           * ```js
           * query('div', [
           *   animate(...),
           *   animate(...)
           * ], { limit: 1 })
           * ```
           *
           * By default, throws an error when zero items are found. Set the
           * `optional` flag to ignore this error. For example:
           *
           * ```js
           * query('.some-element-that-may-not-be-there', [
           *   animate(...),
           *   animate(...)
           * ], { optional: true })
           * ```
           *
           * ### Entering and Leaving Elements
           *
           * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
           * that can are those that Angular assumes can enter/leave based on their own logic
           * (if their insertion/removal is simply a consequence of that of their parent they
           * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
           *
           * The only elements Angular assumes can enter/leave based on their own logic (thus the only
           * ones that can be queried via the `:enter` and `:leave` tokens) are:
           *  - Those inserted dynamically (via `ViewContainerRef`)
           *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)
           *
           * <div class="alert is-helpful">
           *
           *  Note that elements will be successfully queried via `:enter`/`:leave` even if their
           *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
           *  directive (e.g. they enter/exit alongside their parent).
           *
           * </div>
           *
           * <div class="alert is-important">
           *
           *  There is an exception to what previously mentioned, besides elements entering/leaving based on
           *  their own logic, elements with an animation trigger can always be queried via `:leave` when
           * their parent is also leaving.
           *
           * </div>
           *
           * ### Usage Example
           *
           * The following example queries for inner elements and animates them
           * individually using `animate()`.
           *
           * ```typescript
           * @Component({
           *   selector: 'inner',
           *   template: `
           *     <div [@queryAnimation]="exp">
           *       <h1>Title</h1>
           *       <div class="content">
           *         Blah blah blah
           *       </div>
           *     </div>
           *   `,
           *   animations: [
           *    trigger('queryAnimation', [
           *      transition('* => goAnimate', [
           *        // hide the inner elements
           *        query('h1', style({ opacity: 0 })),
           *        query('.content', style({ opacity: 0 })),
           *
           *        // animate the inner elements in, one by one
           *        query('h1', animate(1000, style({ opacity: 1 }))),
           *        query('.content', animate(1000, style({ opacity: 1 }))),
           *      ])
           *    ])
           *  ]
           * })
           * class Cmp {
           *   exp = '';
           *
           *   goAnimate() {
           *     this.exp = 'goAnimate';
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          function query(selector, animation, options = null) {
            return {
              type: 11 /* AnimationMetadataType.Query */,
              selector,
              animation,
              options
            };
          }
          /**
           * Use within an animation `query()` call to issue a timing gap after
           * each queried item is animated.
           *
           * @param timings A delay value.
           * @param animation One ore more animation steps.
           * @returns An object that encapsulates the stagger data.
           *
           * @usageNotes
           * In the following example, a container element wraps a list of items stamped out
           * by an `ngFor`. The container element contains an animation trigger that will later be set
           * to query for each of the inner items.
           *
           * Each time items are added, the opacity fade-in animation runs,
           * and each removed item is faded out.
           * When either of these animations occur, the stagger effect is
           * applied after each item's animation is started.
           *
           * ```html
           * <!-- list.component.html -->
           * <button (click)="toggle()">Show / Hide Items</button>
           * <hr />
           * <div [@listAnimation]="items.length">
           *   <div *ngFor="let item of items">
           *     {{ item }}
           *   </div>
           * </div>
           * ```
           *
           * Here is the component code:
           *
           * ```typescript
           * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
           * @Component({
           *   templateUrl: 'list.component.html',
           *   animations: [
           *     trigger('listAnimation', [
           *     ...
           *     ])
           *   ]
           * })
           * class ListComponent {
           *   items = [];
           *
           *   showItems() {
           *     this.items = [0,1,2,3,4];
           *   }
           *
           *   hideItems() {
           *     this.items = [];
           *   }
           *
           *   toggle() {
           *     this.items.length ? this.hideItems() : this.showItems();
           *    }
           *  }
           * ```
           *
           * Here is the animation trigger code:
           *
           * ```typescript
           * trigger('listAnimation', [
           *   transition('* => *', [ // each time the binding value changes
           *     query(':leave', [
           *       stagger(100, [
           *         animate('0.5s', style({ opacity: 0 }))
           *       ])
           *     ]),
           *     query(':enter', [
           *       style({ opacity: 0 }),
           *       stagger(100, [
           *         animate('0.5s', style({ opacity: 1 }))
           *       ])
           *     ])
           *   ])
           * ])
           * ```
           *
           * @publicApi
           */
          function stagger(timings, animation) {
            return {
              type: 12 /* AnimationMetadataType.Stagger */,
              timings,
              animation
            };
          }
          
          /**
           * An empty programmatic controller for reusable animations.
           * Used internally when animations are disabled, to avoid
           * checking for the null case when an animation player is expected.
           *
           * @see {@link animate}
           * @see {@link AnimationPlayer}
           * @see {@link ɵAnimationGroupPlayer AnimationGroupPlayer}
           *
           * @publicApi
           */
          class NoopAnimationPlayer {
            constructor(duration = 0, delay = 0) {
              this._onDoneFns = [];
              this._onStartFns = [];
              this._onDestroyFns = [];
              this._originalOnDoneFns = [];
              this._originalOnStartFns = [];
              this._started = false;
              this._destroyed = false;
              this._finished = false;
              this._position = 0;
              this.parentPlayer = null;
              this.totalTime = duration + delay;
            }
            _onFinish() {
              if (!this._finished) {
                this._finished = true;
                this._onDoneFns.forEach(fn => fn());
                this._onDoneFns = [];
              }
            }
            onStart(fn) {
              this._originalOnStartFns.push(fn);
              this._onStartFns.push(fn);
            }
            onDone(fn) {
              this._originalOnDoneFns.push(fn);
              this._onDoneFns.push(fn);
            }
            onDestroy(fn) {
              this._onDestroyFns.push(fn);
            }
            hasStarted() {
              return this._started;
            }
            init() {}
            play() {
              if (!this.hasStarted()) {
                this._onStart();
                this.triggerMicrotask();
              }
              this._started = true;
            }
            /** @internal */
            triggerMicrotask() {
              queueMicrotask(() => this._onFinish());
            }
            _onStart() {
              this._onStartFns.forEach(fn => fn());
              this._onStartFns = [];
            }
            pause() {}
            restart() {}
            finish() {
              this._onFinish();
            }
            destroy() {
              if (!this._destroyed) {
                this._destroyed = true;
                if (!this.hasStarted()) {
                  this._onStart();
                }
                this.finish();
                this._onDestroyFns.forEach(fn => fn());
                this._onDestroyFns = [];
              }
            }
            reset() {
              this._started = false;
              this._finished = false;
              this._onStartFns = this._originalOnStartFns;
              this._onDoneFns = this._originalOnDoneFns;
            }
            setPosition(position) {
              this._position = this.totalTime ? position * this.totalTime : 1;
            }
            getPosition() {
              return this.totalTime ? this._position / this.totalTime : 1;
            }
            /** @internal */
            triggerCallback(phaseName) {
              const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
              methods.forEach(fn => fn());
              methods.length = 0;
            }
          }
          
          /**
           * A programmatic controller for a group of reusable animations.
           * Used internally to control animations.
           *
           * @see {@link AnimationPlayer}
           * @see {@link animations/group group}
           *
           */
          class AnimationGroupPlayer {
            constructor(_players) {
              this._onDoneFns = [];
              this._onStartFns = [];
              this._finished = false;
              this._started = false;
              this._destroyed = false;
              this._onDestroyFns = [];
              this.parentPlayer = null;
              this.totalTime = 0;
              this.players = _players;
              let doneCount = 0;
              let destroyCount = 0;
              let startCount = 0;
              const total = this.players.length;
              if (total == 0) {
                queueMicrotask(() => this._onFinish());
              } else {
                this.players.forEach(player => {
                  player.onDone(() => {
                    if (++doneCount == total) {
                      this._onFinish();
                    }
                  });
                  player.onDestroy(() => {
                    if (++destroyCount == total) {
                      this._onDestroy();
                    }
                  });
                  player.onStart(() => {
                    if (++startCount == total) {
                      this._onStart();
                    }
                  });
                });
              }
              this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);
            }
            _onFinish() {
              if (!this._finished) {
                this._finished = true;
                this._onDoneFns.forEach(fn => fn());
                this._onDoneFns = [];
              }
            }
            init() {
              this.players.forEach(player => player.init());
            }
            onStart(fn) {
              this._onStartFns.push(fn);
            }
            _onStart() {
              if (!this.hasStarted()) {
                this._started = true;
                this._onStartFns.forEach(fn => fn());
                this._onStartFns = [];
              }
            }
            onDone(fn) {
              this._onDoneFns.push(fn);
            }
            onDestroy(fn) {
              this._onDestroyFns.push(fn);
            }
            hasStarted() {
              return this._started;
            }
            play() {
              if (!this.parentPlayer) {
                this.init();
              }
              this._onStart();
              this.players.forEach(player => player.play());
            }
            pause() {
              this.players.forEach(player => player.pause());
            }
            restart() {
              this.players.forEach(player => player.restart());
            }
            finish() {
              this._onFinish();
              this.players.forEach(player => player.finish());
            }
            destroy() {
              this._onDestroy();
            }
            _onDestroy() {
              if (!this._destroyed) {
                this._destroyed = true;
                this._onFinish();
                this.players.forEach(player => player.destroy());
                this._onDestroyFns.forEach(fn => fn());
                this._onDestroyFns = [];
              }
            }
            reset() {
              this.players.forEach(player => player.reset());
              this._destroyed = false;
              this._finished = false;
              this._started = false;
            }
            setPosition(p) {
              const timeAtPosition = p * this.totalTime;
              this.players.forEach(player => {
                const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;
                player.setPosition(position);
              });
            }
            getPosition() {
              const longestPlayer = this.players.reduce((longestSoFar, player) => {
                const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;
                return newPlayerIsLongest ? player : longestSoFar;
              }, null);
              return longestPlayer != null ? longestPlayer.getPosition() : 0;
            }
            beforeDestroy() {
              this.players.forEach(player => {
                if (player.beforeDestroy) {
                  player.beforeDestroy();
                }
              });
            }
            /** @internal */
            triggerCallback(phaseName) {
              const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
              methods.forEach(fn => fn());
              methods.length = 0;
            }
          }
          const ɵPRE_STYLE = '!';
          
          /**
           * @module
           * @description
           * Entry point for all animation APIs of the animation package.
           */
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 2102:
          /*!*****************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/a11y.mjs ***!
            \*****************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   A11yModule: () => (/* binding */ A11yModule),
          /* harmony export */   ActiveDescendantKeyManager: () => (/* binding */ ActiveDescendantKeyManager),
          /* harmony export */   AriaDescriber: () => (/* binding */ AriaDescriber),
          /* harmony export */   CDK_DESCRIBEDBY_HOST_ATTRIBUTE: () => (/* binding */ CDK_DESCRIBEDBY_HOST_ATTRIBUTE),
          /* harmony export */   CDK_DESCRIBEDBY_ID_PREFIX: () => (/* binding */ CDK_DESCRIBEDBY_ID_PREFIX),
          /* harmony export */   CdkAriaLive: () => (/* binding */ CdkAriaLive),
          /* harmony export */   CdkMonitorFocus: () => (/* binding */ CdkMonitorFocus),
          /* harmony export */   CdkTrapFocus: () => (/* binding */ CdkTrapFocus),
          /* harmony export */   ConfigurableFocusTrap: () => (/* binding */ ConfigurableFocusTrap),
          /* harmony export */   ConfigurableFocusTrapFactory: () => (/* binding */ ConfigurableFocusTrapFactory),
          /* harmony export */   EventListenerFocusTrapInertStrategy: () => (/* binding */ EventListenerFocusTrapInertStrategy),
          /* harmony export */   FOCUS_MONITOR_DEFAULT_OPTIONS: () => (/* binding */ FOCUS_MONITOR_DEFAULT_OPTIONS),
          /* harmony export */   FOCUS_TRAP_INERT_STRATEGY: () => (/* binding */ FOCUS_TRAP_INERT_STRATEGY),
          /* harmony export */   FocusKeyManager: () => (/* binding */ FocusKeyManager),
          /* harmony export */   FocusMonitor: () => (/* binding */ FocusMonitor),
          /* harmony export */   FocusTrap: () => (/* binding */ FocusTrap),
          /* harmony export */   FocusTrapFactory: () => (/* binding */ FocusTrapFactory),
          /* harmony export */   HighContrastModeDetector: () => (/* binding */ HighContrastModeDetector),
          /* harmony export */   INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS: () => (/* binding */ INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS),
          /* harmony export */   INPUT_MODALITY_DETECTOR_OPTIONS: () => (/* binding */ INPUT_MODALITY_DETECTOR_OPTIONS),
          /* harmony export */   InputModalityDetector: () => (/* binding */ InputModalityDetector),
          /* harmony export */   InteractivityChecker: () => (/* binding */ InteractivityChecker),
          /* harmony export */   IsFocusableConfig: () => (/* binding */ IsFocusableConfig),
          /* harmony export */   LIVE_ANNOUNCER_DEFAULT_OPTIONS: () => (/* binding */ LIVE_ANNOUNCER_DEFAULT_OPTIONS),
          /* harmony export */   LIVE_ANNOUNCER_ELEMENT_TOKEN: () => (/* binding */ LIVE_ANNOUNCER_ELEMENT_TOKEN),
          /* harmony export */   LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY: () => (/* binding */ LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY),
          /* harmony export */   ListKeyManager: () => (/* binding */ ListKeyManager),
          /* harmony export */   LiveAnnouncer: () => (/* binding */ LiveAnnouncer),
          /* harmony export */   MESSAGES_CONTAINER_ID: () => (/* binding */ MESSAGES_CONTAINER_ID),
          /* harmony export */   addAriaReferencedId: () => (/* binding */ addAriaReferencedId),
          /* harmony export */   getAriaReferenceIds: () => (/* binding */ getAriaReferenceIds),
          /* harmony export */   isFakeMousedownFromScreenReader: () => (/* binding */ isFakeMousedownFromScreenReader),
          /* harmony export */   isFakeTouchstartFromScreenReader: () => (/* binding */ isFakeTouchstartFromScreenReader),
          /* harmony export */   removeAriaReferencedId: () => (/* binding */ removeAriaReferencedId)
          /* harmony export */ });
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ 5797);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 8764);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 2575);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 271);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 7470);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 1817);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/cdk/observers */ 9539);
          /* harmony import */ var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/cdk/layout */ 7912);
          
          
          
          
          
          
          
          
          
          
          
          
          
          /** IDs are delimited by an empty space, as per the spec. */
          const ID_DELIMITER = ' ';
          /**
           * Adds the given ID to the specified ARIA attribute on an element.
           * Used for attributes such as aria-labelledby, aria-owns, etc.
           */
          function addAriaReferencedId(el, attr, id) {
            const ids = getAriaReferenceIds(el, attr);
            if (ids.some(existingId => existingId.trim() == id.trim())) {
              return;
            }
            ids.push(id.trim());
            el.setAttribute(attr, ids.join(ID_DELIMITER));
          }
          /**
           * Removes the given ID from the specified ARIA attribute on an element.
           * Used for attributes such as aria-labelledby, aria-owns, etc.
           */
          function removeAriaReferencedId(el, attr, id) {
            const ids = getAriaReferenceIds(el, attr);
            const filteredIds = ids.filter(val => val != id.trim());
            if (filteredIds.length) {
              el.setAttribute(attr, filteredIds.join(ID_DELIMITER));
            } else {
              el.removeAttribute(attr);
            }
          }
          /**
           * Gets the list of IDs referenced by the given ARIA attribute on an element.
           * Used for attributes such as aria-labelledby, aria-owns, etc.
           */
          function getAriaReferenceIds(el, attr) {
            // Get string array of all individual ids (whitespace delimited) in the attribute value
            return (el.getAttribute(attr) || '').match(/\S+/g) || [];
          }
          
          /**
           * ID used for the body container where all messages are appended.
           * @deprecated No longer being used. To be removed.
           * @breaking-change 14.0.0
           */
          const MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';
          /**
           * ID prefix used for each created message element.
           * @deprecated To be turned into a private variable.
           * @breaking-change 14.0.0
           */
          const CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';
          /**
           * Attribute given to each host element that is described by a message element.
           * @deprecated To be turned into a private variable.
           * @breaking-change 14.0.0
           */
          const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';
          /** Global incremental identifier for each registered message element. */
          let nextId = 0;
          /**
           * Utility that creates visually hidden elements with a message content. Useful for elements that
           * want to use aria-describedby to further describe themselves without adding additional visual
           * content.
           */
          class AriaDescriber {
            constructor(_document,
            /**
             * @deprecated To be turned into a required parameter.
             * @breaking-change 14.0.0
             */
            _platform) {
              this._platform = _platform;
              /** Map of all registered message elements that have been placed into the document. */
              this._messageRegistry = new Map();
              /** Container for all registered messages. */
              this._messagesContainer = null;
              /** Unique ID for the service. */
              this._id = `${nextId++}`;
              this._document = _document;
              this._id = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.APP_ID) + '-' + nextId++;
            }
            describe(hostElement, message, role) {
              if (!this._canBeDescribed(hostElement, message)) {
                return;
              }
              const key = getKey(message, role);
              if (typeof message !== 'string') {
                // We need to ensure that the element has an ID.
                setMessageId(message, this._id);
                this._messageRegistry.set(key, {
                  messageElement: message,
                  referenceCount: 0
                });
              } else if (!this._messageRegistry.has(key)) {
                this._createMessageElement(message, role);
              }
              if (!this._isElementDescribedByMessage(hostElement, key)) {
                this._addMessageReference(hostElement, key);
              }
            }
            removeDescription(hostElement, message, role) {
              if (!message || !this._isElementNode(hostElement)) {
                return;
              }
              const key = getKey(message, role);
              if (this._isElementDescribedByMessage(hostElement, key)) {
                this._removeMessageReference(hostElement, key);
              }
              // If the message is a string, it means that it's one that we created for the
              // consumer so we can remove it safely, otherwise we should leave it in place.
              if (typeof message === 'string') {
                const registeredMessage = this._messageRegistry.get(key);
                if (registeredMessage && registeredMessage.referenceCount === 0) {
                  this._deleteMessageElement(key);
                }
              }
              if (this._messagesContainer?.childNodes.length === 0) {
                this._messagesContainer.remove();
                this._messagesContainer = null;
              }
            }
            /** Unregisters all created message elements and removes the message container. */
            ngOnDestroy() {
              const describedElements = this._document.querySelectorAll(`[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}="${this._id}"]`);
              for (let i = 0; i < describedElements.length; i++) {
                this._removeCdkDescribedByReferenceIds(describedElements[i]);
                describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
              }
              this._messagesContainer?.remove();
              this._messagesContainer = null;
              this._messageRegistry.clear();
            }
            /**
             * Creates a new element in the visually hidden message container element with the message
             * as its content and adds it to the message registry.
             */
            _createMessageElement(message, role) {
              const messageElement = this._document.createElement('div');
              setMessageId(messageElement, this._id);
              messageElement.textContent = message;
              if (role) {
                messageElement.setAttribute('role', role);
              }
              this._createMessagesContainer();
              this._messagesContainer.appendChild(messageElement);
              this._messageRegistry.set(getKey(message, role), {
                messageElement,
                referenceCount: 0
              });
            }
            /** Deletes the message element from the global messages container. */
            _deleteMessageElement(key) {
              this._messageRegistry.get(key)?.messageElement?.remove();
              this._messageRegistry.delete(key);
            }
            /** Creates the global container for all aria-describedby messages. */
            _createMessagesContainer() {
              if (this._messagesContainer) {
                return;
              }
              const containerClassName = 'cdk-describedby-message-container';
              const serverContainers = this._document.querySelectorAll(`.${containerClassName}[platform="server"]`);
              for (let i = 0; i < serverContainers.length; i++) {
                // When going from the server to the client, we may end up in a situation where there's
                // already a container on the page, but we don't have a reference to it. Clear the
                // old container so we don't get duplicates. Doing this, instead of emptying the previous
                // container, should be slightly faster.
                serverContainers[i].remove();
              }
              const messagesContainer = this._document.createElement('div');
              // We add `visibility: hidden` in order to prevent text in this container from
              // being searchable by the browser's Ctrl + F functionality.
              // Screen-readers will still read the description for elements with aria-describedby even
              // when the description element is not visible.
              messagesContainer.style.visibility = 'hidden';
              // Even though we use `visibility: hidden`, we still apply `cdk-visually-hidden` so that
              // the description element doesn't impact page layout.
              messagesContainer.classList.add(containerClassName);
              messagesContainer.classList.add('cdk-visually-hidden');
              // @breaking-change 14.0.0 Remove null check for `_platform`.
              if (this._platform && !this._platform.isBrowser) {
                messagesContainer.setAttribute('platform', 'server');
              }
              this._document.body.appendChild(messagesContainer);
              this._messagesContainer = messagesContainer;
            }
            /** Removes all cdk-describedby messages that are hosted through the element. */
            _removeCdkDescribedByReferenceIds(element) {
              // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX
              const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
              element.setAttribute('aria-describedby', originalReferenceIds.join(' '));
            }
            /**
             * Adds a message reference to the element using aria-describedby and increments the registered
             * message's reference count.
             */
            _addMessageReference(element, key) {
              const registeredMessage = this._messageRegistry.get(key);
              // Add the aria-describedby reference and set the
              // describedby_host attribute to mark the element.
              addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);
              element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, this._id);
              registeredMessage.referenceCount++;
            }
            /**
             * Removes a message reference from the element using aria-describedby
             * and decrements the registered message's reference count.
             */
            _removeMessageReference(element, key) {
              const registeredMessage = this._messageRegistry.get(key);
              registeredMessage.referenceCount--;
              removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);
              element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
            }
            /** Returns true if the element has been described by the provided message ID. */
            _isElementDescribedByMessage(element, key) {
              const referenceIds = getAriaReferenceIds(element, 'aria-describedby');
              const registeredMessage = this._messageRegistry.get(key);
              const messageId = registeredMessage && registeredMessage.messageElement.id;
              return !!messageId && referenceIds.indexOf(messageId) != -1;
            }
            /** Determines whether a message can be described on a particular element. */
            _canBeDescribed(element, message) {
              if (!this._isElementNode(element)) {
                return false;
              }
              if (message && typeof message === 'object') {
                // We'd have to make some assumptions about the description element's text, if the consumer
                // passed in an element. Assume that if an element is passed in, the consumer has verified
                // that it can be used as a description.
                return true;
              }
              const trimmedMessage = message == null ? '' : `${message}`.trim();
              const ariaLabel = element.getAttribute('aria-label');
              // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the
              // element, because screen readers will end up reading out the same text twice in a row.
              return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;
            }
            /** Checks whether a node is an Element node. */
            _isElementNode(element) {
              return element.nodeType === this._document.ELEMENT_NODE;
            }
            static {
              this.ɵfac = function AriaDescriber_Factory(t) {
                return new (t || AriaDescriber)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: AriaDescriber,
                factory: AriaDescriber.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AriaDescriber, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }];
            }, null);
          })();
          /** Gets a key that can be used to look messages up in the registry. */
          function getKey(message, role) {
            return typeof message === 'string' ? `${role || ''}/${message}` : message;
          }
          /** Assigns a unique ID to an element, if it doesn't have one already. */
          function setMessageId(element, serviceId) {
            if (!element.id) {
              element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`;
            }
          }
          
          /**
           * This class manages keyboard events for selectable lists. If you pass it a query list
           * of items, it will set the active item correctly when arrow events occur.
           */
          class ListKeyManager {
            constructor(_items) {
              this._items = _items;
              this._activeItemIndex = -1;
              this._activeItem = null;
              this._wrap = false;
              this._letterKeyStream = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              this._typeaheadSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__.Subscription.EMPTY;
              this._vertical = true;
              this._allowedModifierKeys = [];
              this._homeAndEnd = false;
              this._pageUpAndDown = {
                enabled: false,
                delta: 10
              };
              /**
               * Predicate function that can be used to check whether an item should be skipped
               * by the key manager. By default, disabled items are skipped.
               */
              this._skipPredicateFn = item => item.disabled;
              // Buffer for the letters that the user has pressed when the typeahead option is turned on.
              this._pressedLetters = [];
              /**
               * Stream that emits any time the TAB key is pressed, so components can react
               * when focus is shifted off of the list.
               */
              this.tabOut = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              /** Stream that emits whenever the active item of the list manager changes. */
              this.change = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              // We allow for the items to be an array because, in some cases, the consumer may
              // not have access to a QueryList of the items they want to manage (e.g. when the
              // items aren't being collected via `ViewChildren` or `ContentChildren`).
              if (_items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList) {
                this._itemChangesSubscription = _items.changes.subscribe(newItems => {
                  if (this._activeItem) {
                    const itemArray = newItems.toArray();
                    const newIndex = itemArray.indexOf(this._activeItem);
                    if (newIndex > -1 && newIndex !== this._activeItemIndex) {
                      this._activeItemIndex = newIndex;
                    }
                  }
                });
              }
            }
            /**
             * Sets the predicate function that determines which items should be skipped by the
             * list key manager.
             * @param predicate Function that determines whether the given item should be skipped.
             */
            skipPredicate(predicate) {
              this._skipPredicateFn = predicate;
              return this;
            }
            /**
             * Configures wrapping mode, which determines whether the active item will wrap to
             * the other end of list when there are no more items in the given direction.
             * @param shouldWrap Whether the list should wrap when reaching the end.
             */
            withWrap(shouldWrap = true) {
              this._wrap = shouldWrap;
              return this;
            }
            /**
             * Configures whether the key manager should be able to move the selection vertically.
             * @param enabled Whether vertical selection should be enabled.
             */
            withVerticalOrientation(enabled = true) {
              this._vertical = enabled;
              return this;
            }
            /**
             * Configures the key manager to move the selection horizontally.
             * Passing in `null` will disable horizontal movement.
             * @param direction Direction in which the selection can be moved.
             */
            withHorizontalOrientation(direction) {
              this._horizontal = direction;
              return this;
            }
            /**
             * Modifier keys which are allowed to be held down and whose default actions will be prevented
             * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
             */
            withAllowedModifierKeys(keys) {
              this._allowedModifierKeys = keys;
              return this;
            }
            /**
             * Turns on typeahead mode which allows users to set the active item by typing.
             * @param debounceInterval Time to wait after the last keystroke before setting the active item.
             */
            withTypeAhead(debounceInterval = 200) {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._items.length && this._items.some(item => typeof item.getLabel !== 'function')) {
                throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
              }
              this._typeaheadSubscription.unsubscribe();
              // Debounce the presses of non-navigational keys, collect the ones that correspond to letters
              // and convert those letters back into a string. Afterwards find the first item that starts
              // with that string and select it.
              this._typeaheadSubscription = this._letterKeyStream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.tap)(letter => this._pressedLetters.push(letter)), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.debounceTime)(debounceInterval), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.filter)(() => this._pressedLetters.length > 0), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.map)(() => this._pressedLetters.join(''))).subscribe(inputString => {
                const items = this._getItemsArray();
                // Start at 1 because we want to start searching at the item immediately
                // following the current active item.
                for (let i = 1; i < items.length + 1; i++) {
                  const index = (this._activeItemIndex + i) % items.length;
                  const item = items[index];
                  if (!this._skipPredicateFn(item) && item.getLabel().toUpperCase().trim().indexOf(inputString) === 0) {
                    this.setActiveItem(index);
                    break;
                  }
                }
                this._pressedLetters = [];
              });
              return this;
            }
            /** Cancels the current typeahead sequence. */
            cancelTypeahead() {
              this._pressedLetters = [];
              return this;
            }
            /**
             * Configures the key manager to activate the first and last items
             * respectively when the Home or End key is pressed.
             * @param enabled Whether pressing the Home or End key activates the first/last item.
             */
            withHomeAndEnd(enabled = true) {
              this._homeAndEnd = enabled;
              return this;
            }
            /**
             * Configures the key manager to activate every 10th, configured or first/last element in up/down direction
             * respectively when the Page-Up or Page-Down key is pressed.
             * @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item.
             * @param delta Whether pressing the Home or End key activates the first/last item.
             */
            withPageUpDown(enabled = true, delta = 10) {
              this._pageUpAndDown = {
                enabled,
                delta
              };
              return this;
            }
            setActiveItem(item) {
              const previousActiveItem = this._activeItem;
              this.updateActiveItem(item);
              if (this._activeItem !== previousActiveItem) {
                this.change.next(this._activeItemIndex);
              }
            }
            /**
             * Sets the active item depending on the key event passed in.
             * @param event Keyboard event to be used for determining which element should be active.
             */
            onKeydown(event) {
              const keyCode = event.keyCode;
              const modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];
              const isModifierAllowed = modifiers.every(modifier => {
                return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;
              });
              switch (keyCode) {
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.TAB:
                  this.tabOut.next();
                  return;
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.DOWN_ARROW:
                  if (this._vertical && isModifierAllowed) {
                    this.setNextItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.UP_ARROW:
                  if (this._vertical && isModifierAllowed) {
                    this.setPreviousItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.RIGHT_ARROW:
                  if (this._horizontal && isModifierAllowed) {
                    this._horizontal === 'rtl' ? this.setPreviousItemActive() : this.setNextItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.LEFT_ARROW:
                  if (this._horizontal && isModifierAllowed) {
                    this._horizontal === 'rtl' ? this.setNextItemActive() : this.setPreviousItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.HOME:
                  if (this._homeAndEnd && isModifierAllowed) {
                    this.setFirstItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.END:
                  if (this._homeAndEnd && isModifierAllowed) {
                    this.setLastItemActive();
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.PAGE_UP:
                  if (this._pageUpAndDown.enabled && isModifierAllowed) {
                    const targetIndex = this._activeItemIndex - this._pageUpAndDown.delta;
                    this._setActiveItemByIndex(targetIndex > 0 ? targetIndex : 0, 1);
                    break;
                  } else {
                    return;
                  }
                case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.PAGE_DOWN:
                  if (this._pageUpAndDown.enabled && isModifierAllowed) {
                    const targetIndex = this._activeItemIndex + this._pageUpAndDown.delta;
                    const itemsLength = this._getItemsArray().length;
                    this._setActiveItemByIndex(targetIndex < itemsLength ? targetIndex : itemsLength - 1, -1);
                    break;
                  } else {
                    return;
                  }
                default:
                  if (isModifierAllowed || (0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.hasModifierKey)(event, 'shiftKey')) {
                    // Attempt to use the `event.key` which also maps it to the user's keyboard language,
                    // otherwise fall back to resolving alphanumeric characters via the keyCode.
                    if (event.key && event.key.length === 1) {
                      this._letterKeyStream.next(event.key.toLocaleUpperCase());
                    } else if (keyCode >= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.A && keyCode <= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.Z || keyCode >= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.ZERO && keyCode <= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.NINE) {
                      this._letterKeyStream.next(String.fromCharCode(keyCode));
                    }
                  }
                  // Note that we return here, in order to avoid preventing
                  // the default action of non-navigational keys.
                  return;
              }
              this._pressedLetters = [];
              event.preventDefault();
            }
            /** Index of the currently active item. */
            get activeItemIndex() {
              return this._activeItemIndex;
            }
            /** The active item. */
            get activeItem() {
              return this._activeItem;
            }
            /** Gets whether the user is currently typing into the manager using the typeahead feature. */
            isTyping() {
              return this._pressedLetters.length > 0;
            }
            /** Sets the active item to the first enabled item in the list. */
            setFirstItemActive() {
              this._setActiveItemByIndex(0, 1);
            }
            /** Sets the active item to the last enabled item in the list. */
            setLastItemActive() {
              this._setActiveItemByIndex(this._items.length - 1, -1);
            }
            /** Sets the active item to the next enabled item in the list. */
            setNextItemActive() {
              this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);
            }
            /** Sets the active item to a previous enabled item in the list. */
            setPreviousItemActive() {
              this._activeItemIndex < 0 && this._wrap ? this.setLastItemActive() : this._setActiveItemByDelta(-1);
            }
            updateActiveItem(item) {
              const itemArray = this._getItemsArray();
              const index = typeof item === 'number' ? item : itemArray.indexOf(item);
              const activeItem = itemArray[index];
              // Explicitly check for `null` and `undefined` because other falsy values are valid.
              this._activeItem = activeItem == null ? null : activeItem;
              this._activeItemIndex = index;
            }
            /** Cleans up the key manager. */
            destroy() {
              this._typeaheadSubscription.unsubscribe();
              this._itemChangesSubscription?.unsubscribe();
              this._letterKeyStream.complete();
              this.tabOut.complete();
              this.change.complete();
              this._pressedLetters = [];
            }
            /**
             * This method sets the active item, given a list of items and the delta between the
             * currently active item and the new active item. It will calculate differently
             * depending on whether wrap mode is turned on.
             */
            _setActiveItemByDelta(delta) {
              this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);
            }
            /**
             * Sets the active item properly given "wrap" mode. In other words, it will continue to move
             * down the list until it finds an item that is not disabled, and it will wrap if it
             * encounters either end of the list.
             */
            _setActiveInWrapMode(delta) {
              const items = this._getItemsArray();
              for (let i = 1; i <= items.length; i++) {
                const index = (this._activeItemIndex + delta * i + items.length) % items.length;
                const item = items[index];
                if (!this._skipPredicateFn(item)) {
                  this.setActiveItem(index);
                  return;
                }
              }
            }
            /**
             * Sets the active item properly given the default mode. In other words, it will
             * continue to move down the list until it finds an item that is not disabled. If
             * it encounters either end of the list, it will stop and not wrap.
             */
            _setActiveInDefaultMode(delta) {
              this._setActiveItemByIndex(this._activeItemIndex + delta, delta);
            }
            /**
             * Sets the active item to the first enabled item starting at the index specified. If the
             * item is disabled, it will move in the fallbackDelta direction until it either
             * finds an enabled item or encounters the end of the list.
             */
            _setActiveItemByIndex(index, fallbackDelta) {
              const items = this._getItemsArray();
              if (!items[index]) {
                return;
              }
              while (this._skipPredicateFn(items[index])) {
                index += fallbackDelta;
                if (!items[index]) {
                  return;
                }
              }
              this.setActiveItem(index);
            }
            /** Returns the items as an array. */
            _getItemsArray() {
              return this._items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList ? this._items.toArray() : this._items;
            }
          }
          class ActiveDescendantKeyManager extends ListKeyManager {
            setActiveItem(index) {
              if (this.activeItem) {
                this.activeItem.setInactiveStyles();
              }
              super.setActiveItem(index);
              if (this.activeItem) {
                this.activeItem.setActiveStyles();
              }
            }
          }
          class FocusKeyManager extends ListKeyManager {
            constructor() {
              super(...arguments);
              this._origin = 'program';
            }
            /**
             * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
             * @param origin Focus origin to be used when focusing items.
             */
            setFocusOrigin(origin) {
              this._origin = origin;
              return this;
            }
            setActiveItem(item) {
              super.setActiveItem(item);
              if (this.activeItem) {
                this.activeItem.focus(this._origin);
              }
            }
          }
          
          /**
           * Configuration for the isFocusable method.
           */
          class IsFocusableConfig {
            constructor() {
              /**
               * Whether to count an element as focusable even if it is not currently visible.
               */
              this.ignoreVisibility = false;
            }
          }
          // The InteractivityChecker leans heavily on the ally.js accessibility utilities.
          // Methods like `isTabbable` are only covering specific edge-cases for the browsers which are
          // supported.
          /**
           * Utility for checking the interactivity of an element, such as whether it is focusable or
           * tabbable.
           */
          class InteractivityChecker {
            constructor(_platform) {
              this._platform = _platform;
            }
            /**
             * Gets whether an element is disabled.
             *
             * @param element Element to be checked.
             * @returns Whether the element is disabled.
             */
            isDisabled(element) {
              // This does not capture some cases, such as a non-form control with a disabled attribute or
              // a form control inside of a disabled form, but should capture the most common cases.
              return element.hasAttribute('disabled');
            }
            /**
             * Gets whether an element is visible for the purposes of interactivity.
             *
             * This will capture states like `display: none` and `visibility: hidden`, but not things like
             * being clipped by an `overflow: hidden` parent or being outside the viewport.
             *
             * @returns Whether the element is visible.
             */
            isVisible(element) {
              return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';
            }
            /**
             * Gets whether an element can be reached via Tab key.
             * Assumes that the element has already been checked with isFocusable.
             *
             * @param element Element to be checked.
             * @returns Whether the element is tabbable.
             */
            isTabbable(element) {
              // Nothing is tabbable on the server 😎
              if (!this._platform.isBrowser) {
                return false;
              }
              const frameElement = getFrameElement(getWindow(element));
              if (frameElement) {
                // Frame elements inherit their tabindex onto all child elements.
                if (getTabIndexValue(frameElement) === -1) {
                  return false;
                }
                // Browsers disable tabbing to an element inside of an invisible frame.
                if (!this.isVisible(frameElement)) {
                  return false;
                }
              }
              let nodeName = element.nodeName.toLowerCase();
              let tabIndexValue = getTabIndexValue(element);
              if (element.hasAttribute('contenteditable')) {
                return tabIndexValue !== -1;
              }
              if (nodeName === 'iframe' || nodeName === 'object') {
                // The frame or object's content may be tabbable depending on the content, but it's
                // not possibly to reliably detect the content of the frames. We always consider such
                // elements as non-tabbable.
                return false;
              }
              // In iOS, the browser only considers some specific elements as tabbable.
              if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {
                return false;
              }
              if (nodeName === 'audio') {
                // Audio elements without controls enabled are never tabbable, regardless
                // of the tabindex attribute explicitly being set.
                if (!element.hasAttribute('controls')) {
                  return false;
                }
                // Audio elements with controls are by default tabbable unless the
                // tabindex attribute is set to `-1` explicitly.
                return tabIndexValue !== -1;
              }
              if (nodeName === 'video') {
                // For all video elements, if the tabindex attribute is set to `-1`, the video
                // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`
                // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The
                // tabindex attribute is the source of truth here.
                if (tabIndexValue === -1) {
                  return false;
                }
                // If the tabindex is explicitly set, and not `-1` (as per check before), the
                // video element is always tabbable (regardless of whether it has controls or not).
                if (tabIndexValue !== null) {
                  return true;
                }
                // Otherwise (when no explicit tabindex is set), a video is only tabbable if it
                // has controls enabled. Firefox is special as videos are always tabbable regardless
                // of whether there are controls or not.
                return this._platform.FIREFOX || element.hasAttribute('controls');
              }
              return element.tabIndex >= 0;
            }
            /**
             * Gets whether an element can be focused by the user.
             *
             * @param element Element to be checked.
             * @param config The config object with options to customize this method's behavior
             * @returns Whether the element is focusable.
             */
            isFocusable(element, config) {
              // Perform checks in order of left to most expensive.
              // Again, naive approach that does not capture many edge cases and browser quirks.
              return isPotentiallyFocusable(element) && !this.isDisabled(element) && (config?.ignoreVisibility || this.isVisible(element));
            }
            static {
              this.ɵfac = function InteractivityChecker_Factory(t) {
                return new (t || InteractivityChecker)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: InteractivityChecker,
                factory: InteractivityChecker.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InteractivityChecker, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }];
            }, null);
          })();
          /**
           * Returns the frame element from a window object. Since browsers like MS Edge throw errors if
           * the frameElement property is being accessed from a different host address, this property
           * should be accessed carefully.
           */
          function getFrameElement(window) {
            try {
              return window.frameElement;
            } catch {
              return null;
            }
          }
          /** Checks whether the specified element has any geometry / rectangles. */
          function hasGeometry(element) {
            // Use logic from jQuery to check for an invisible element.
            // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
            return !!(element.offsetWidth || element.offsetHeight || typeof element.getClientRects === 'function' && element.getClientRects().length);
          }
          /** Gets whether an element's  */
          function isNativeFormElement(element) {
            let nodeName = element.nodeName.toLowerCase();
            return nodeName === 'input' || nodeName === 'select' || nodeName === 'button' || nodeName === 'textarea';
          }
          /** Gets whether an element is an `<input type="hidden">`. */
          function isHiddenInput(element) {
            return isInputElement(element) && element.type == 'hidden';
          }
          /** Gets whether an element is an anchor that has an href attribute. */
          function isAnchorWithHref(element) {
            return isAnchorElement(element) && element.hasAttribute('href');
          }
          /** Gets whether an element is an input element. */
          function isInputElement(element) {
            return element.nodeName.toLowerCase() == 'input';
          }
          /** Gets whether an element is an anchor element. */
          function isAnchorElement(element) {
            return element.nodeName.toLowerCase() == 'a';
          }
          /** Gets whether an element has a valid tabindex. */
          function hasValidTabIndex(element) {
            if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {
              return false;
            }
            let tabIndex = element.getAttribute('tabindex');
            return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));
          }
          /**
           * Returns the parsed tabindex from the element attributes instead of returning the
           * evaluated tabindex from the browsers defaults.
           */
          function getTabIndexValue(element) {
            if (!hasValidTabIndex(element)) {
              return null;
            }
            // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
            const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);
            return isNaN(tabIndex) ? -1 : tabIndex;
          }
          /** Checks whether the specified element is potentially tabbable on iOS */
          function isPotentiallyTabbableIOS(element) {
            let nodeName = element.nodeName.toLowerCase();
            let inputType = nodeName === 'input' && element.type;
            return inputType === 'text' || inputType === 'password' || nodeName === 'select' || nodeName === 'textarea';
          }
          /**
           * Gets whether an element is potentially focusable without taking current visible/disabled state
           * into account.
           */
          function isPotentiallyFocusable(element) {
            // Inputs are potentially focusable *unless* they're type="hidden".
            if (isHiddenInput(element)) {
              return false;
            }
            return isNativeFormElement(element) || isAnchorWithHref(element) || element.hasAttribute('contenteditable') || hasValidTabIndex(element);
          }
          /** Gets the parent window of a DOM node with regards of being inside of an iframe. */
          function getWindow(node) {
            // ownerDocument is null if `node` itself *is* a document.
            return node.ownerDocument && node.ownerDocument.defaultView || window;
          }
          
          /**
           * Class that allows for trapping focus within a DOM element.
           *
           * This class currently uses a relatively simple approach to focus trapping.
           * It assumes that the tab order is the same as DOM order, which is not necessarily true.
           * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.
           *
           * @deprecated Use `ConfigurableFocusTrap` instead.
           * @breaking-change 11.0.0
           */
          class FocusTrap {
            /** Whether the focus trap is active. */
            get enabled() {
              return this._enabled;
            }
            set enabled(value) {
              this._enabled = value;
              if (this._startAnchor && this._endAnchor) {
                this._toggleAnchorTabIndex(value, this._startAnchor);
                this._toggleAnchorTabIndex(value, this._endAnchor);
              }
            }
            constructor(_element, _checker, _ngZone, _document, deferAnchors = false) {
              this._element = _element;
              this._checker = _checker;
              this._ngZone = _ngZone;
              this._document = _document;
              this._hasAttached = false;
              // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.
              this.startAnchorListener = () => this.focusLastTabbableElement();
              this.endAnchorListener = () => this.focusFirstTabbableElement();
              this._enabled = true;
              if (!deferAnchors) {
                this.attachAnchors();
              }
            }
            /** Destroys the focus trap by cleaning up the anchors. */
            destroy() {
              const startAnchor = this._startAnchor;
              const endAnchor = this._endAnchor;
              if (startAnchor) {
                startAnchor.removeEventListener('focus', this.startAnchorListener);
                startAnchor.remove();
              }
              if (endAnchor) {
                endAnchor.removeEventListener('focus', this.endAnchorListener);
                endAnchor.remove();
              }
              this._startAnchor = this._endAnchor = null;
              this._hasAttached = false;
            }
            /**
             * Inserts the anchors into the DOM. This is usually done automatically
             * in the constructor, but can be deferred for cases like directives with `*ngIf`.
             * @returns Whether the focus trap managed to attach successfully. This may not be the case
             * if the target element isn't currently in the DOM.
             */
            attachAnchors() {
              // If we're not on the browser, there can be no focus to trap.
              if (this._hasAttached) {
                return true;
              }
              this._ngZone.runOutsideAngular(() => {
                if (!this._startAnchor) {
                  this._startAnchor = this._createAnchor();
                  this._startAnchor.addEventListener('focus', this.startAnchorListener);
                }
                if (!this._endAnchor) {
                  this._endAnchor = this._createAnchor();
                  this._endAnchor.addEventListener('focus', this.endAnchorListener);
                }
              });
              if (this._element.parentNode) {
                this._element.parentNode.insertBefore(this._startAnchor, this._element);
                this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);
                this._hasAttached = true;
              }
              return this._hasAttached;
            }
            /**
             * Waits for the zone to stabilize, then focuses the first tabbable element.
             * @returns Returns a promise that resolves with a boolean, depending
             * on whether focus was moved successfully.
             */
            focusInitialElementWhenReady(options) {
              return new Promise(resolve => {
                this._executeOnStable(() => resolve(this.focusInitialElement(options)));
              });
            }
            /**
             * Waits for the zone to stabilize, then focuses
             * the first tabbable element within the focus trap region.
             * @returns Returns a promise that resolves with a boolean, depending
             * on whether focus was moved successfully.
             */
            focusFirstTabbableElementWhenReady(options) {
              return new Promise(resolve => {
                this._executeOnStable(() => resolve(this.focusFirstTabbableElement(options)));
              });
            }
            /**
             * Waits for the zone to stabilize, then focuses
             * the last tabbable element within the focus trap region.
             * @returns Returns a promise that resolves with a boolean, depending
             * on whether focus was moved successfully.
             */
            focusLastTabbableElementWhenReady(options) {
              return new Promise(resolve => {
                this._executeOnStable(() => resolve(this.focusLastTabbableElement(options)));
              });
            }
            /**
             * Get the specified boundary element of the trapped region.
             * @param bound The boundary to get (start or end of trapped region).
             * @returns The boundary element.
             */
            _getRegionBoundary(bound) {
              // Contains the deprecated version of selector, for temporary backwards comparability.
              const markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                for (let i = 0; i < markers.length; i++) {
                  // @breaking-change 8.0.0
                  if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {
                    console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated ` + `attribute will be removed in 8.0.0.`, markers[i]);
                  } else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {
                    console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` + `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` + `will be removed in 8.0.0.`, markers[i]);
                  }
                }
              }
              if (bound == 'start') {
                return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
              }
              return markers.length ? markers[markers.length - 1] : this._getLastTabbableElement(this._element);
            }
            /**
             * Focuses the element that should be focused when the focus trap is initialized.
             * @returns Whether focus was moved successfully.
             */
            focusInitialElement(options) {
              // Contains the deprecated version of selector, for temporary backwards comparability.
              const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);
              if (redirectToElement) {
                // @breaking-change 8.0.0
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && redirectToElement.hasAttribute(`cdk-focus-initial`)) {
                  console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` + `use 'cdkFocusInitial' instead. The deprecated attribute ` + `will be removed in 8.0.0`, redirectToElement);
                }
                // Warn the consumer if the element they've pointed to
                // isn't focusable, when not in production mode.
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._checker.isFocusable(redirectToElement)) {
                  console.warn(`Element matching '[cdkFocusInitial]' is not focusable.`, redirectToElement);
                }
                if (!this._checker.isFocusable(redirectToElement)) {
                  const focusableChild = this._getFirstTabbableElement(redirectToElement);
                  focusableChild?.focus(options);
                  return !!focusableChild;
                }
                redirectToElement.focus(options);
                return true;
              }
              return this.focusFirstTabbableElement(options);
            }
            /**
             * Focuses the first tabbable element within the focus trap region.
             * @returns Whether focus was moved successfully.
             */
            focusFirstTabbableElement(options) {
              const redirectToElement = this._getRegionBoundary('start');
              if (redirectToElement) {
                redirectToElement.focus(options);
              }
              return !!redirectToElement;
            }
            /**
             * Focuses the last tabbable element within the focus trap region.
             * @returns Whether focus was moved successfully.
             */
            focusLastTabbableElement(options) {
              const redirectToElement = this._getRegionBoundary('end');
              if (redirectToElement) {
                redirectToElement.focus(options);
              }
              return !!redirectToElement;
            }
            /**
             * Checks whether the focus trap has successfully been attached.
             */
            hasAttached() {
              return this._hasAttached;
            }
            /** Get the first tabbable element from a DOM subtree (inclusive). */
            _getFirstTabbableElement(root) {
              if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
                return root;
              }
              const children = root.children;
              for (let i = 0; i < children.length; i++) {
                const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getFirstTabbableElement(children[i]) : null;
                if (tabbableChild) {
                  return tabbableChild;
                }
              }
              return null;
            }
            /** Get the last tabbable element from a DOM subtree (inclusive). */
            _getLastTabbableElement(root) {
              if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
                return root;
              }
              // Iterate in reverse DOM order.
              const children = root.children;
              for (let i = children.length - 1; i >= 0; i--) {
                const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getLastTabbableElement(children[i]) : null;
                if (tabbableChild) {
                  return tabbableChild;
                }
              }
              return null;
            }
            /** Creates an anchor element. */
            _createAnchor() {
              const anchor = this._document.createElement('div');
              this._toggleAnchorTabIndex(this._enabled, anchor);
              anchor.classList.add('cdk-visually-hidden');
              anchor.classList.add('cdk-focus-trap-anchor');
              anchor.setAttribute('aria-hidden', 'true');
              return anchor;
            }
            /**
             * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
             * @param isEnabled Whether the focus trap is enabled.
             * @param anchor Anchor on which to toggle the tabindex.
             */
            _toggleAnchorTabIndex(isEnabled, anchor) {
              // Remove the tabindex completely, rather than setting it to -1, because if the
              // element has a tabindex, the user might still hit it when navigating with the arrow keys.
              isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');
            }
            /**
             * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
             * @param enabled: Whether the anchors should trap Tab.
             */
            toggleAnchors(enabled) {
              if (this._startAnchor && this._endAnchor) {
                this._toggleAnchorTabIndex(enabled, this._startAnchor);
                this._toggleAnchorTabIndex(enabled, this._endAnchor);
              }
            }
            /** Executes a function when the zone is stable. */
            _executeOnStable(fn) {
              if (this._ngZone.isStable) {
                fn();
              } else {
                this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.take)(1)).subscribe(fn);
              }
            }
          }
          /**
           * Factory that allows easy instantiation of focus traps.
           * @deprecated Use `ConfigurableFocusTrapFactory` instead.
           * @breaking-change 11.0.0
           */
          class FocusTrapFactory {
            constructor(_checker, _ngZone, _document) {
              this._checker = _checker;
              this._ngZone = _ngZone;
              this._document = _document;
            }
            /**
             * Creates a focus-trapped region around the given element.
             * @param element The element around which focus will be trapped.
             * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
             *     manually by the user.
             * @returns The created focus trap instance.
             */
            create(element, deferCaptureElements = false) {
              return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
            }
            static {
              this.ɵfac = function FocusTrapFactory_Factory(t) {
                return new (t || FocusTrapFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](InteractivityChecker), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: FocusTrapFactory,
                factory: FocusTrapFactory.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FocusTrapFactory, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: InteractivityChecker
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          /** Directive for trapping focus within a region. */
          class CdkTrapFocus {
            /** Whether the focus trap is active. */
            get enabled() {
              return this.focusTrap.enabled;
            }
            set enabled(value) {
              this.focusTrap.enabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceBooleanProperty)(value);
            }
            /**
             * Whether the directive should automatically move focus into the trapped region upon
             * initialization and return focus to the previous activeElement upon destruction.
             */
            get autoCapture() {
              return this._autoCapture;
            }
            set autoCapture(value) {
              this._autoCapture = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceBooleanProperty)(value);
            }
            constructor(_elementRef, _focusTrapFactory,
            /**
             * @deprecated No longer being used. To be removed.
             * @breaking-change 13.0.0
             */
            _document) {
              this._elementRef = _elementRef;
              this._focusTrapFactory = _focusTrapFactory;
              /** Previously focused element to restore focus to upon destroy when using autoCapture. */
              this._previouslyFocusedElement = null;
              this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
            }
            ngOnDestroy() {
              this.focusTrap.destroy();
              // If we stored a previously focused element when using autoCapture, return focus to that
              // element now that the trapped region is being destroyed.
              if (this._previouslyFocusedElement) {
                this._previouslyFocusedElement.focus();
                this._previouslyFocusedElement = null;
              }
            }
            ngAfterContentInit() {
              this.focusTrap.attachAnchors();
              if (this.autoCapture) {
                this._captureFocus();
              }
            }
            ngDoCheck() {
              if (!this.focusTrap.hasAttached()) {
                this.focusTrap.attachAnchors();
              }
            }
            ngOnChanges(changes) {
              const autoCaptureChange = changes['autoCapture'];
              if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture && this.focusTrap.hasAttached()) {
                this._captureFocus();
              }
            }
            _captureFocus() {
              this._previouslyFocusedElement = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getFocusedElementPierceShadowDom)();
              this.focusTrap.focusInitialElementWhenReady();
            }
            static {
              this.ɵfac = function CdkTrapFocus_Factory(t) {
                return new (t || CdkTrapFocus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FocusTrapFactory), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkTrapFocus,
                selectors: [["", "cdkTrapFocus", ""]],
                inputs: {
                  enabled: ["cdkTrapFocus", "enabled"],
                  autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"]
                },
                exportAs: ["cdkTrapFocus"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkTrapFocus, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkTrapFocus]',
                exportAs: 'cdkTrapFocus'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: FocusTrapFactory
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }];
            }, {
              enabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['cdkTrapFocus']
              }],
              autoCapture: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['cdkTrapFocusAutoCapture']
              }]
            });
          })();
          
          /**
           * Class that allows for trapping focus within a DOM element.
           *
           * This class uses a strategy pattern that determines how it traps focus.
           * See FocusTrapInertStrategy.
           */
          class ConfigurableFocusTrap extends FocusTrap {
            /** Whether the FocusTrap is enabled. */
            get enabled() {
              return this._enabled;
            }
            set enabled(value) {
              this._enabled = value;
              if (this._enabled) {
                this._focusTrapManager.register(this);
              } else {
                this._focusTrapManager.deregister(this);
              }
            }
            constructor(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config) {
              super(_element, _checker, _ngZone, _document, config.defer);
              this._focusTrapManager = _focusTrapManager;
              this._inertStrategy = _inertStrategy;
              this._focusTrapManager.register(this);
            }
            /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
            destroy() {
              this._focusTrapManager.deregister(this);
              super.destroy();
            }
            /** @docs-private Implemented as part of ManagedFocusTrap. */
            _enable() {
              this._inertStrategy.preventFocus(this);
              this.toggleAnchors(true);
            }
            /** @docs-private Implemented as part of ManagedFocusTrap. */
            _disable() {
              this._inertStrategy.allowFocus(this);
              this.toggleAnchors(false);
            }
          }
          
          /** The injection token used to specify the inert strategy. */
          const FOCUS_TRAP_INERT_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('FOCUS_TRAP_INERT_STRATEGY');
          
          /**
           * Lightweight FocusTrapInertStrategy that adds a document focus event
           * listener to redirect focus back inside the FocusTrap.
           */
          class EventListenerFocusTrapInertStrategy {
            constructor() {
              /** Focus event handler. */
              this._listener = null;
            }
            /** Adds a document event listener that keeps focus inside the FocusTrap. */
            preventFocus(focusTrap) {
              // Ensure there's only one listener per document
              if (this._listener) {
                focusTrap._document.removeEventListener('focus', this._listener, true);
              }
              this._listener = e => this._trapFocus(focusTrap, e);
              focusTrap._ngZone.runOutsideAngular(() => {
                focusTrap._document.addEventListener('focus', this._listener, true);
              });
            }
            /** Removes the event listener added in preventFocus. */
            allowFocus(focusTrap) {
              if (!this._listener) {
                return;
              }
              focusTrap._document.removeEventListener('focus', this._listener, true);
              this._listener = null;
            }
            /**
             * Refocuses the first element in the FocusTrap if the focus event target was outside
             * the FocusTrap.
             *
             * This is an event listener callback. The event listener is added in runOutsideAngular,
             * so all this code runs outside Angular as well.
             */
            _trapFocus(focusTrap, event) {
              const target = event.target;
              const focusTrapRoot = focusTrap._element;
              // Don't refocus if target was in an overlay, because the overlay might be associated
              // with an element inside the FocusTrap, ex. mat-select.
              if (target && !focusTrapRoot.contains(target) && !target.closest?.('div.cdk-overlay-pane')) {
                // Some legacy FocusTrap usages have logic that focuses some element on the page
                // just before FocusTrap is destroyed. For backwards compatibility, wait
                // to be sure FocusTrap is still enabled before refocusing.
                setTimeout(() => {
                  // Check whether focus wasn't put back into the focus trap while the timeout was pending.
                  if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {
                    focusTrap.focusFirstTabbableElement();
                  }
                });
              }
            }
          }
          
          /** Injectable that ensures only the most recently enabled FocusTrap is active. */
          class FocusTrapManager {
            constructor() {
              // A stack of the FocusTraps on the page. Only the FocusTrap at the
              // top of the stack is active.
              this._focusTrapStack = [];
            }
            /**
             * Disables the FocusTrap at the top of the stack, and then pushes
             * the new FocusTrap onto the stack.
             */
            register(focusTrap) {
              // Dedupe focusTraps that register multiple times.
              this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);
              let stack = this._focusTrapStack;
              if (stack.length) {
                stack[stack.length - 1]._disable();
              }
              stack.push(focusTrap);
              focusTrap._enable();
            }
            /**
             * Removes the FocusTrap from the stack, and activates the
             * FocusTrap that is the new top of the stack.
             */
            deregister(focusTrap) {
              focusTrap._disable();
              const stack = this._focusTrapStack;
              const i = stack.indexOf(focusTrap);
              if (i !== -1) {
                stack.splice(i, 1);
                if (stack.length) {
                  stack[stack.length - 1]._enable();
                }
              }
            }
            static {
              this.ɵfac = function FocusTrapManager_Factory(t) {
                return new (t || FocusTrapManager)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: FocusTrapManager,
                factory: FocusTrapManager.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FocusTrapManager, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /** Factory that allows easy instantiation of configurable focus traps. */
          class ConfigurableFocusTrapFactory {
            constructor(_checker, _ngZone, _focusTrapManager, _document, _inertStrategy) {
              this._checker = _checker;
              this._ngZone = _ngZone;
              this._focusTrapManager = _focusTrapManager;
              this._document = _document;
              // TODO split up the strategies into different modules, similar to DateAdapter.
              this._inertStrategy = _inertStrategy || new EventListenerFocusTrapInertStrategy();
            }
            create(element, config = {
              defer: false
            }) {
              let configObject;
              if (typeof config === 'boolean') {
                configObject = {
                  defer: config
                };
              } else {
                configObject = config;
              }
              return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);
            }
            static {
              this.ɵfac = function ConfigurableFocusTrapFactory_Factory(t) {
                return new (t || ConfigurableFocusTrapFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](InteractivityChecker), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](FocusTrapManager), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](FOCUS_TRAP_INERT_STRATEGY, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ConfigurableFocusTrapFactory,
                factory: ConfigurableFocusTrapFactory.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConfigurableFocusTrapFactory, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: InteractivityChecker
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: FocusTrapManager
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [FOCUS_TRAP_INERT_STRATEGY]
                }]
              }];
            }, null);
          })();
          
          /** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */
          function isFakeMousedownFromScreenReader(event) {
            // Some screen readers will dispatch a fake `mousedown` event when pressing enter or space on
            // a clickable element. We can distinguish these events when `event.buttons` is zero, or
            // `event.detail` is zero depending on the browser:
            // - `event.buttons` works on Firefox, but fails on Chrome.
            // - `detail` works on Chrome, but fails on Firefox.
            return event.buttons === 0 || event.detail === 0;
          }
          /** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */
          function isFakeTouchstartFromScreenReader(event) {
            const touch = event.touches && event.touches[0] || event.changedTouches && event.changedTouches[0];
            // A fake `touchstart` can be distinguished from a real one by looking at the `identifier`
            // which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe,
            // we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10
            // device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88.
            return !!touch && touch.identifier === -1 && (touch.radiusX == null || touch.radiusX === 1) && (touch.radiusY == null || touch.radiusY === 1);
          }
          
          /**
           * Injectable options for the InputModalityDetector. These are shallowly merged with the default
           * options.
           */
          const INPUT_MODALITY_DETECTOR_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('cdk-input-modality-detector-options');
          /**
           * Default options for the InputModalityDetector.
           *
           * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect
           * keyboard input modality) for two reasons:
           *
           * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open
           *    in new tab', and are thus less representative of actual keyboard interaction.
           * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but
           *    confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore
           *    these keys so as to not update the input modality.
           *
           * Note that we do not by default ignore the right Meta key on Safari because it has the same key
           * code as the ContextMenu key on other browsers. When we switch to using event.key, we can
           * distinguish between the two.
           */
          const INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = {
            ignoreKeys: [_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.ALT, _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.CONTROL, _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.MAC_META, _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.META, _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__.SHIFT]
          };
          /**
           * The amount of time needed to pass after a touchstart event in order for a subsequent mousedown
           * event to be attributed as mouse and not touch.
           *
           * This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found
           * that a value of around 650ms seems appropriate.
           */
          const TOUCH_BUFFER_MS = 650;
          /**
           * Event listener options that enable capturing and also mark the listener as passive if the browser
           * supports it.
           */
          const modalityEventListenerOptions = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.normalizePassiveListenerOptions)({
            passive: true,
            capture: true
          });
          /**
           * Service that detects the user's input modality.
           *
           * This service does not update the input modality when a user navigates with a screen reader
           * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC
           * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not
           * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a
           * screen reader is akin to visually scanning a page, and should not be interpreted as actual user
           * input interaction.
           *
           * When a user is not navigating but *interacting* with a screen reader, this service attempts to
           * update the input modality to keyboard, but in general this service's behavior is largely
           * undefined.
           */
          class InputModalityDetector {
            /** The most recently detected input modality. */
            get mostRecentModality() {
              return this._modality.value;
            }
            constructor(_platform, ngZone, document, options) {
              this._platform = _platform;
              /**
               * The most recently detected input modality event target. Is null if no input modality has been
               * detected or if the associated event target is null for some unknown reason.
               */
              this._mostRecentTarget = null;
              /** The underlying BehaviorSubject that emits whenever an input modality is detected. */
              this._modality = new rxjs__WEBPACK_IMPORTED_MODULE_12__.BehaviorSubject(null);
              /**
               * The timestamp of the last touch input modality. Used to determine whether mousedown events
               * should be attributed to mouse or touch.
               */
              this._lastTouchMs = 0;
              /**
               * Handles keydown events. Must be an arrow function in order to preserve the context when it gets
               * bound.
               */
              this._onKeydown = event => {
                // If this is one of the keys we should ignore, then ignore it and don't update the input
                // modality to keyboard.
                if (this._options?.ignoreKeys?.some(keyCode => keyCode === event.keyCode)) {
                  return;
                }
                this._modality.next('keyboard');
                this._mostRecentTarget = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)(event);
              };
              /**
               * Handles mousedown events. Must be an arrow function in order to preserve the context when it
               * gets bound.
               */
              this._onMousedown = event => {
                // Touches trigger both touch and mouse events, so we need to distinguish between mouse events
                // that were triggered via mouse vs touch. To do so, check if the mouse event occurs closely
                // after the previous touch event.
                if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) {
                  return;
                }
                // Fake mousedown events are fired by some screen readers when controls are activated by the
                // screen reader. Attribute them to keyboard input modality.
                this._modality.next(isFakeMousedownFromScreenReader(event) ? 'keyboard' : 'mouse');
                this._mostRecentTarget = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)(event);
              };
              /**
               * Handles touchstart events. Must be an arrow function in order to preserve the context when it
               * gets bound.
               */
              this._onTouchstart = event => {
                // Same scenario as mentioned in _onMousedown, but on touch screen devices, fake touchstart
                // events are fired. Again, attribute to keyboard input modality.
                if (isFakeTouchstartFromScreenReader(event)) {
                  this._modality.next('keyboard');
                  return;
                }
                // Store the timestamp of this touch event, as it's used to distinguish between mouse events
                // triggered via mouse vs touch.
                this._lastTouchMs = Date.now();
                this._modality.next('touch');
                this._mostRecentTarget = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)(event);
              };
              this._options = {
                ...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,
                ...options
              };
              // Skip the first emission as it's null.
              this.modalityDetected = this._modality.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.skip)(1));
              this.modalityChanged = this.modalityDetected.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.distinctUntilChanged)());
              // If we're not in a browser, this service should do nothing, as there's no relevant input
              // modality to detect.
              if (_platform.isBrowser) {
                ngZone.runOutsideAngular(() => {
                  document.addEventListener('keydown', this._onKeydown, modalityEventListenerOptions);
                  document.addEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);
                  document.addEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);
                });
              }
            }
            ngOnDestroy() {
              this._modality.complete();
              if (this._platform.isBrowser) {
                document.removeEventListener('keydown', this._onKeydown, modalityEventListenerOptions);
                document.removeEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);
                document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);
              }
            }
            static {
              this.ɵfac = function InputModalityDetector_Factory(t) {
                return new (t || InputModalityDetector)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](INPUT_MODALITY_DETECTOR_OPTIONS, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: InputModalityDetector,
                factory: InputModalityDetector.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InputModalityDetector, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: Document,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [INPUT_MODALITY_DETECTOR_OPTIONS]
                }]
              }];
            }, null);
          })();
          const LIVE_ANNOUNCER_ELEMENT_TOKEN = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('liveAnnouncerElement', {
            providedIn: 'root',
            factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY
          });
          /** @docs-private */
          function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {
            return null;
          }
          /** Injection token that can be used to configure the default options for the LiveAnnouncer. */
          const LIVE_ANNOUNCER_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('LIVE_ANNOUNCER_DEFAULT_OPTIONS');
          let uniqueIds = 0;
          class LiveAnnouncer {
            constructor(elementToken, _ngZone, _document, _defaultOptions) {
              this._ngZone = _ngZone;
              this._defaultOptions = _defaultOptions;
              // We inject the live element and document as `any` because the constructor signature cannot
              // reference browser globals (HTMLElement, Document) on non-browser environments, since having
              // a class decorator causes TypeScript to preserve the constructor signature types.
              this._document = _document;
              this._liveElement = elementToken || this._createLiveElement();
            }
            announce(message, ...args) {
              const defaultOptions = this._defaultOptions;
              let politeness;
              let duration;
              if (args.length === 1 && typeof args[0] === 'number') {
                duration = args[0];
              } else {
                [politeness, duration] = args;
              }
              this.clear();
              clearTimeout(this._previousTimeout);
              if (!politeness) {
                politeness = defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';
              }
              if (duration == null && defaultOptions) {
                duration = defaultOptions.duration;
              }
              // TODO: ensure changing the politeness works on all environments we support.
              this._liveElement.setAttribute('aria-live', politeness);
              if (this._liveElement.id) {
                this._exposeAnnouncerToModals(this._liveElement.id);
              }
              // This 100ms timeout is necessary for some browser + screen-reader combinations:
              // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.
              // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a
              //   second time without clearing and then using a non-zero delay.
              // (using JAWS 17 at time of this writing).
              return this._ngZone.runOutsideAngular(() => {
                if (!this._currentPromise) {
                  this._currentPromise = new Promise(resolve => this._currentResolve = resolve);
                }
                clearTimeout(this._previousTimeout);
                this._previousTimeout = setTimeout(() => {
                  this._liveElement.textContent = message;
                  if (typeof duration === 'number') {
                    this._previousTimeout = setTimeout(() => this.clear(), duration);
                  }
                  this._currentResolve();
                  this._currentPromise = this._currentResolve = undefined;
                }, 100);
                return this._currentPromise;
              });
            }
            /**
             * Clears the current text from the announcer element. Can be used to prevent
             * screen readers from reading the text out again while the user is going
             * through the page landmarks.
             */
            clear() {
              if (this._liveElement) {
                this._liveElement.textContent = '';
              }
            }
            ngOnDestroy() {
              clearTimeout(this._previousTimeout);
              this._liveElement?.remove();
              this._liveElement = null;
              this._currentResolve?.();
              this._currentPromise = this._currentResolve = undefined;
            }
            _createLiveElement() {
              const elementClass = 'cdk-live-announcer-element';
              const previousElements = this._document.getElementsByClassName(elementClass);
              const liveEl = this._document.createElement('div');
              // Remove any old containers. This can happen when coming in from a server-side-rendered page.
              for (let i = 0; i < previousElements.length; i++) {
                previousElements[i].remove();
              }
              liveEl.classList.add(elementClass);
              liveEl.classList.add('cdk-visually-hidden');
              liveEl.setAttribute('aria-atomic', 'true');
              liveEl.setAttribute('aria-live', 'polite');
              liveEl.id = `cdk-live-announcer-${uniqueIds++}`;
              this._document.body.appendChild(liveEl);
              return liveEl;
            }
            /**
             * Some browsers won't expose the accessibility node of the live announcer element if there is an
             * `aria-modal` and the live announcer is outside of it. This method works around the issue by
             * pointing the `aria-owns` of all modals to the live announcer element.
             */
            _exposeAnnouncerToModals(id) {
              // TODO(http://github.com/angular/components/issues/26853): consider de-duplicating this with
              // the `SnakBarContainer` and other usages.
              //
              // Note that the selector here is limited to CDK overlays at the moment in order to reduce the
              // section of the DOM we need to look through. This should cover all the cases we support, but
              // the selector can be expanded if it turns out to be too narrow.
              const modals = this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');
              for (let i = 0; i < modals.length; i++) {
                const modal = modals[i];
                const ariaOwns = modal.getAttribute('aria-owns');
                if (!ariaOwns) {
                  modal.setAttribute('aria-owns', id);
                } else if (ariaOwns.indexOf(id) === -1) {
                  modal.setAttribute('aria-owns', ariaOwns + ' ' + id);
                }
              }
            }
            static {
              this.ɵfac = function LiveAnnouncer_Factory(t) {
                return new (t || LiveAnnouncer)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LIVE_ANNOUNCER_ELEMENT_TOKEN, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LIVE_ANNOUNCER_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: LiveAnnouncer,
                factory: LiveAnnouncer.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LiveAnnouncer, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          /**
           * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
           * with a wider range of browsers and screen readers.
           */
          class CdkAriaLive {
            /** The aria-live politeness level to use when announcing messages. */
            get politeness() {
              return this._politeness;
            }
            set politeness(value) {
              this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';
              if (this._politeness === 'off') {
                if (this._subscription) {
                  this._subscription.unsubscribe();
                  this._subscription = null;
                }
              } else if (!this._subscription) {
                this._subscription = this._ngZone.runOutsideAngular(() => {
                  return this._contentObserver.observe(this._elementRef).subscribe(() => {
                    // Note that we use textContent here, rather than innerText, in order to avoid a reflow.
                    const elementText = this._elementRef.nativeElement.textContent;
                    // The `MutationObserver` fires also for attribute
                    // changes which we don't want to announce.
                    if (elementText !== this._previousAnnouncedText) {
                      this._liveAnnouncer.announce(elementText, this._politeness, this.duration);
                      this._previousAnnouncedText = elementText;
                    }
                  });
                });
              }
            }
            constructor(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) {
              this._elementRef = _elementRef;
              this._liveAnnouncer = _liveAnnouncer;
              this._contentObserver = _contentObserver;
              this._ngZone = _ngZone;
              this._politeness = 'polite';
            }
            ngOnDestroy() {
              if (this._subscription) {
                this._subscription.unsubscribe();
              }
            }
            static {
              this.ɵfac = function CdkAriaLive_Factory(t) {
                return new (t || CdkAriaLive)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](LiveAnnouncer), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ContentObserver), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkAriaLive,
                selectors: [["", "cdkAriaLive", ""]],
                inputs: {
                  politeness: ["cdkAriaLive", "politeness"],
                  duration: ["cdkAriaLiveDuration", "duration"]
                },
                exportAs: ["cdkAriaLive"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkAriaLive, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkAriaLive]',
                exportAs: 'cdkAriaLive'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: LiveAnnouncer
              }, {
                type: _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ContentObserver
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, {
              politeness: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['cdkAriaLive']
              }],
              duration: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['cdkAriaLiveDuration']
              }]
            });
          })();
          
          /** InjectionToken for FocusMonitorOptions. */
          const FOCUS_MONITOR_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('cdk-focus-monitor-default-options');
          /**
           * Event listener options that enable capturing and also
           * mark the listener as passive if the browser supports it.
           */
          const captureEventListenerOptions = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.normalizePassiveListenerOptions)({
            passive: true,
            capture: true
          });
          /** Monitors mouse and keyboard events to determine the cause of focus events. */
          class FocusMonitor {
            constructor(_ngZone, _platform, _inputModalityDetector, /** @breaking-change 11.0.0 make document required */
            document, options) {
              this._ngZone = _ngZone;
              this._platform = _platform;
              this._inputModalityDetector = _inputModalityDetector;
              /** The focus origin that the next focus event is a result of. */
              this._origin = null;
              /** Whether the window has just been focused. */
              this._windowFocused = false;
              /**
               * Whether the origin was determined via a touch interaction. Necessary as properly attributing
               * focus events to touch interactions requires special logic.
               */
              this._originFromTouchInteraction = false;
              /** Map of elements being monitored to their info. */
              this._elementInfo = new Map();
              /** The number of elements currently being monitored. */
              this._monitoredElementCount = 0;
              /**
               * Keeps track of the root nodes to which we've currently bound a focus/blur handler,
               * as well as the number of monitored elements that they contain. We have to treat focus/blur
               * handlers differently from the rest of the events, because the browser won't emit events
               * to the document when focus moves inside of a shadow root.
               */
              this._rootNodeFocusListenerCount = new Map();
              /**
               * Event listener for `focus` events on the window.
               * Needs to be an arrow function in order to preserve the context when it gets bound.
               */
              this._windowFocusListener = () => {
                // Make a note of when the window regains focus, so we can
                // restore the origin info for the focused element.
                this._windowFocused = true;
                this._windowFocusTimeoutId = window.setTimeout(() => this._windowFocused = false);
              };
              /** Subject for stopping our InputModalityDetector subscription. */
              this._stopInputModalityDetector = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              /**
               * Event listener for `focus` and 'blur' events on the document.
               * Needs to be an arrow function in order to preserve the context when it gets bound.
               */
              this._rootNodeFocusAndBlurListener = event => {
                const target = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)(event);
                // We need to walk up the ancestor chain in order to support `checkChildren`.
                for (let element = target; element; element = element.parentElement) {
                  if (event.type === 'focus') {
                    this._onFocus(event, element);
                  } else {
                    this._onBlur(event, element);
                  }
                }
              };
              this._document = document;
              this._detectionMode = options?.detectionMode || 0 /* FocusMonitorDetectionMode.IMMEDIATE */;
            }
          
            monitor(element, checkChildren = false) {
              const nativeElement = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)(element);
              // Do nothing if we're not on the browser platform or the passed in node isn't an element.
              if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {
                // Note: we don't want the observable to emit at all so we don't pass any parameters.
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_16__.of)();
              }
              // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to
              // the shadow root, rather than the `document`, because the browser won't emit focus events
              // to the `document`, if focus is moving within the same shadow root.
              const rootNode = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getShadowRoot)(nativeElement) || this._getDocument();
              const cachedInfo = this._elementInfo.get(nativeElement);
              // Check if we're already monitoring this element.
              if (cachedInfo) {
                if (checkChildren) {
                  // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren
                  // observers into ones that behave as if `checkChildren` was turned on. We need a more
                  // robust solution.
                  cachedInfo.checkChildren = true;
                }
                return cachedInfo.subject;
              }
              // Create monitored element info.
              const info = {
                checkChildren: checkChildren,
                subject: new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject(),
                rootNode
              };
              this._elementInfo.set(nativeElement, info);
              this._registerGlobalListeners(info);
              return info.subject;
            }
            stopMonitoring(element) {
              const nativeElement = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)(element);
              const elementInfo = this._elementInfo.get(nativeElement);
              if (elementInfo) {
                elementInfo.subject.complete();
                this._setClasses(nativeElement);
                this._elementInfo.delete(nativeElement);
                this._removeGlobalListeners(elementInfo);
              }
            }
            focusVia(element, origin, options) {
              const nativeElement = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__.coerceElement)(element);
              const focusedElement = this._getDocument().activeElement;
              // If the element is focused already, calling `focus` again won't trigger the event listener
              // which means that the focus classes won't be updated. If that's the case, update the classes
              // directly without waiting for an event.
              if (nativeElement === focusedElement) {
                this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
              } else {
                this._setOrigin(origin);
                // `focus` isn't available on the server
                if (typeof nativeElement.focus === 'function') {
                  nativeElement.focus(options);
                }
              }
            }
            ngOnDestroy() {
              this._elementInfo.forEach((_info, element) => this.stopMonitoring(element));
            }
            /** Access injected document if available or fallback to global document reference */
            _getDocument() {
              return this._document || document;
            }
            /** Use defaultView of injected document if available or fallback to global window reference */
            _getWindow() {
              const doc = this._getDocument();
              return doc.defaultView || window;
            }
            _getFocusOrigin(focusEventTarget) {
              if (this._origin) {
                // If the origin was realized via a touch interaction, we need to perform additional checks
                // to determine whether the focus origin should be attributed to touch or program.
                if (this._originFromTouchInteraction) {
                  return this._shouldBeAttributedToTouch(focusEventTarget) ? 'touch' : 'program';
                } else {
                  return this._origin;
                }
              }
              // If the window has just regained focus, we can restore the most recent origin from before the
              // window blurred. Otherwise, we've reached the point where we can't identify the source of the
              // focus. This typically means one of two things happened:
              //
              // 1) The element was programmatically focused, or
              // 2) The element was focused via screen reader navigation (which generally doesn't fire
              //    events).
              //
              // Because we can't distinguish between these two cases, we default to setting `program`.
              if (this._windowFocused && this._lastFocusOrigin) {
                return this._lastFocusOrigin;
              }
              // If the interaction is coming from an input label, we consider it a mouse interactions.
              // This is a special case where focus moves on `click`, rather than `mousedown` which breaks
              // our detection, because all our assumptions are for `mousedown`. We need to handle this
              // special case, because it's very common for checkboxes and radio buttons.
              if (focusEventTarget && this._isLastInteractionFromInputLabel(focusEventTarget)) {
                return 'mouse';
              }
              return 'program';
            }
            /**
             * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
             * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we
             * handle a focus event following a touch interaction, we need to determine whether (1) the focus
             * event was directly caused by the touch interaction or (2) the focus event was caused by a
             * subsequent programmatic focus call triggered by the touch interaction.
             * @param focusEventTarget The target of the focus event under examination.
             */
            _shouldBeAttributedToTouch(focusEventTarget) {
              // Please note that this check is not perfect. Consider the following edge case:
              //
              // <div #parent tabindex="0">
              //   <div #child tabindex="0" (click)="#parent.focus()"></div>
              // </div>
              //
              // Suppose there is a FocusMonitor in IMMEDIATE mode attached to #parent. When the user touches
              // #child, #parent is programmatically focused. This code will attribute the focus to touch
              // instead of program. This is a relatively minor edge-case that can be worked around by using
              // focusVia(parent, 'program') to focus #parent.
              return this._detectionMode === 1 /* FocusMonitorDetectionMode.EVENTUAL */ || !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget);
            }
            /**
             * Sets the focus classes on the element based on the given focus origin.
             * @param element The element to update the classes on.
             * @param origin The focus origin.
             */
            _setClasses(element, origin) {
              element.classList.toggle('cdk-focused', !!origin);
              element.classList.toggle('cdk-touch-focused', origin === 'touch');
              element.classList.toggle('cdk-keyboard-focused', origin === 'keyboard');
              element.classList.toggle('cdk-mouse-focused', origin === 'mouse');
              element.classList.toggle('cdk-program-focused', origin === 'program');
            }
            /**
             * Updates the focus origin. If we're using immediate detection mode, we schedule an async
             * function to clear the origin at the end of a timeout. The duration of the timeout depends on
             * the origin being set.
             * @param origin The origin to set.
             * @param isFromInteraction Whether we are setting the origin from an interaction event.
             */
            _setOrigin(origin, isFromInteraction = false) {
              this._ngZone.runOutsideAngular(() => {
                this._origin = origin;
                this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;
                // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms
                // for a touch event). We reset the origin at the next tick because Firefox focuses one tick
                // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for
                // a touch event because when a touch event is fired, the associated focus event isn't yet in
                // the event queue. Before doing so, clear any pending timeouts.
                if (this._detectionMode === 0 /* FocusMonitorDetectionMode.IMMEDIATE */) {
                  clearTimeout(this._originTimeoutId);
                  const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;
                  this._originTimeoutId = setTimeout(() => this._origin = null, ms);
                }
              });
            }
            /**
             * Handles focus events on a registered element.
             * @param event The focus event.
             * @param element The monitored element.
             */
            _onFocus(event, element) {
              // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent
              // focus event affecting the monitored element. If we want to use the origin of the first event
              // instead we should check for the cdk-focused class here and return if the element already has
              // it. (This only matters for elements that have includesChildren = true).
              // If we are not counting child-element-focus as focused, make sure that the event target is the
              // monitored element itself.
              const elementInfo = this._elementInfo.get(element);
              const focusEventTarget = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__._getEventTarget)(event);
              if (!elementInfo || !elementInfo.checkChildren && element !== focusEventTarget) {
                return;
              }
              this._originChanged(element, this._getFocusOrigin(focusEventTarget), elementInfo);
            }
            /**
             * Handles blur events on a registered element.
             * @param event The blur event.
             * @param element The monitored element.
             */
            _onBlur(event, element) {
              // If we are counting child-element-focus as focused, make sure that we aren't just blurring in
              // order to focus another child of the monitored element.
              const elementInfo = this._elementInfo.get(element);
              if (!elementInfo || elementInfo.checkChildren && event.relatedTarget instanceof Node && element.contains(event.relatedTarget)) {
                return;
              }
              this._setClasses(element);
              this._emitOrigin(elementInfo, null);
            }
            _emitOrigin(info, origin) {
              if (info.subject.observers.length) {
                this._ngZone.run(() => info.subject.next(origin));
              }
            }
            _registerGlobalListeners(elementInfo) {
              if (!this._platform.isBrowser) {
                return;
              }
              const rootNode = elementInfo.rootNode;
              const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;
              if (!rootNodeFocusListeners) {
                this._ngZone.runOutsideAngular(() => {
                  rootNode.addEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                  rootNode.addEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                });
              }
              this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1);
              // Register global listeners when first element is monitored.
              if (++this._monitoredElementCount === 1) {
                // Note: we listen to events in the capture phase so we
                // can detect them even if the user stops propagation.
                this._ngZone.runOutsideAngular(() => {
                  const window = this._getWindow();
                  window.addEventListener('focus', this._windowFocusListener);
                });
                // The InputModalityDetector is also just a collection of global listeners.
                this._inputModalityDetector.modalityDetected.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.takeUntil)(this._stopInputModalityDetector)).subscribe(modality => {
                  this._setOrigin(modality, true /* isFromInteraction */);
                });
              }
            }
          
            _removeGlobalListeners(elementInfo) {
              const rootNode = elementInfo.rootNode;
              if (this._rootNodeFocusListenerCount.has(rootNode)) {
                const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);
                if (rootNodeFocusListeners > 1) {
                  this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);
                } else {
                  rootNode.removeEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                  rootNode.removeEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                  this._rootNodeFocusListenerCount.delete(rootNode);
                }
              }
              // Unregister global listeners when last element is unmonitored.
              if (! --this._monitoredElementCount) {
                const window = this._getWindow();
                window.removeEventListener('focus', this._windowFocusListener);
                // Equivalently, stop our InputModalityDetector subscription.
                this._stopInputModalityDetector.next();
                // Clear timeouts for all potentially pending timeouts to prevent the leaks.
                clearTimeout(this._windowFocusTimeoutId);
                clearTimeout(this._originTimeoutId);
              }
            }
            /** Updates all the state on an element once its focus origin has changed. */
            _originChanged(element, origin, elementInfo) {
              this._setClasses(element, origin);
              this._emitOrigin(elementInfo, origin);
              this._lastFocusOrigin = origin;
            }
            /**
             * Collects the `MonitoredElementInfo` of a particular element and
             * all of its ancestors that have enabled `checkChildren`.
             * @param element Element from which to start the search.
             */
            _getClosestElementsInfo(element) {
              const results = [];
              this._elementInfo.forEach((info, currentElement) => {
                if (currentElement === element || info.checkChildren && currentElement.contains(element)) {
                  results.push([currentElement, info]);
                }
              });
              return results;
            }
            /**
             * Returns whether an interaction is likely to have come from the user clicking the `label` of
             * an `input` or `textarea` in order to focus it.
             * @param focusEventTarget Target currently receiving focus.
             */
            _isLastInteractionFromInputLabel(focusEventTarget) {
              const {
                _mostRecentTarget: mostRecentTarget,
                mostRecentModality
              } = this._inputModalityDetector;
              // If the last interaction used the mouse on an element contained by one of the labels
              // of an `input`/`textarea` that is currently focused, it is very likely that the
              // user redirected focus using the label.
              if (mostRecentModality !== 'mouse' || !mostRecentTarget || mostRecentTarget === focusEventTarget || focusEventTarget.nodeName !== 'INPUT' && focusEventTarget.nodeName !== 'TEXTAREA' || focusEventTarget.disabled) {
                return false;
              }
              const labels = focusEventTarget.labels;
              if (labels) {
                for (let i = 0; i < labels.length; i++) {
                  if (labels[i].contains(mostRecentTarget)) {
                    return true;
                  }
                }
              }
              return false;
            }
            static {
              this.ɵfac = function FocusMonitor_Factory(t) {
                return new (t || FocusMonitor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](InputModalityDetector), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](FOCUS_MONITOR_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: FocusMonitor,
                factory: FocusMonitor.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FocusMonitor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }, {
                type: InputModalityDetector
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [FOCUS_MONITOR_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          /**
           * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
           * programmatically) and adds corresponding classes to the element.
           *
           * There are two variants of this directive:
           * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is
           *    focused.
           * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
           */
          class CdkMonitorFocus {
            constructor(_elementRef, _focusMonitor) {
              this._elementRef = _elementRef;
              this._focusMonitor = _focusMonitor;
              this._focusOrigin = null;
              this.cdkFocusChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
            }
            get focusOrigin() {
              return this._focusOrigin;
            }
            ngAfterViewInit() {
              const element = this._elementRef.nativeElement;
              this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus')).subscribe(origin => {
                this._focusOrigin = origin;
                this.cdkFocusChange.emit(origin);
              });
            }
            ngOnDestroy() {
              this._focusMonitor.stopMonitoring(this._elementRef);
              if (this._monitorSubscription) {
                this._monitorSubscription.unsubscribe();
              }
            }
            static {
              this.ɵfac = function CdkMonitorFocus_Factory(t) {
                return new (t || CdkMonitorFocus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FocusMonitor));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkMonitorFocus,
                selectors: [["", "cdkMonitorElementFocus", ""], ["", "cdkMonitorSubtreeFocus", ""]],
                outputs: {
                  cdkFocusChange: "cdkFocusChange"
                },
                exportAs: ["cdkMonitorFocus"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkMonitorFocus, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
                exportAs: 'cdkMonitorFocus'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: FocusMonitor
              }];
            }, {
              cdkFocusChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }]
            });
          })();
          
          /** CSS class applied to the document body when in black-on-white high-contrast mode. */
          const BLACK_ON_WHITE_CSS_CLASS = 'cdk-high-contrast-black-on-white';
          /** CSS class applied to the document body when in white-on-black high-contrast mode. */
          const WHITE_ON_BLACK_CSS_CLASS = 'cdk-high-contrast-white-on-black';
          /** CSS class applied to the document body when in high-contrast mode. */
          const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';
          /**
           * Service to determine whether the browser is currently in a high-contrast-mode environment.
           *
           * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
           * changes the appearance of all applications, including web applications, to dramatically increase
           * contrast.
           *
           * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
           * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
           * browser extension.
           */
          class HighContrastModeDetector {
            constructor(_platform, document) {
              this._platform = _platform;
              this._document = document;
              this._breakpointSubscription = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_18__.BreakpointObserver).observe('(forced-colors: active)').subscribe(() => {
                if (this._hasCheckedHighContrastMode) {
                  this._hasCheckedHighContrastMode = false;
                  this._applyBodyHighContrastModeCssClasses();
                }
              });
            }
            /** Gets the current high-contrast-mode for the page. */
            getHighContrastMode() {
              if (!this._platform.isBrowser) {
                return 0 /* HighContrastMode.NONE */;
              }
              // Create a test element with an arbitrary background-color that is neither black nor
              // white; high-contrast mode will coerce the color to either black or white. Also ensure that
              // appending the test element to the DOM does not affect layout by absolutely positioning it
              const testElement = this._document.createElement('div');
              testElement.style.backgroundColor = 'rgb(1,2,3)';
              testElement.style.position = 'absolute';
              this._document.body.appendChild(testElement);
              // Get the computed style for the background color, collapsing spaces to normalize between
              // browsers. Once we get this color, we no longer need the test element. Access the `window`
              // via the document so we can fake it in tests. Note that we have extra null checks, because
              // this logic will likely run during app bootstrap and throwing can break the entire app.
              const documentWindow = this._document.defaultView || window;
              const computedStyle = documentWindow && documentWindow.getComputedStyle ? documentWindow.getComputedStyle(testElement) : null;
              const computedColor = (computedStyle && computedStyle.backgroundColor || '').replace(/ /g, '');
              testElement.remove();
              switch (computedColor) {
                // Pre Windows 11 dark theme.
                case 'rgb(0,0,0)':
                // Windows 11 dark themes.
                case 'rgb(45,50,54)':
                case 'rgb(32,32,32)':
                  return 2 /* HighContrastMode.WHITE_ON_BLACK */;
                // Pre Windows 11 light theme.
                case 'rgb(255,255,255)':
                // Windows 11 light theme.
                case 'rgb(255,250,239)':
                  return 1 /* HighContrastMode.BLACK_ON_WHITE */;
              }
          
              return 0 /* HighContrastMode.NONE */;
            }
          
            ngOnDestroy() {
              this._breakpointSubscription.unsubscribe();
            }
            /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
            _applyBodyHighContrastModeCssClasses() {
              if (!this._hasCheckedHighContrastMode && this._platform.isBrowser && this._document.body) {
                const bodyClasses = this._document.body.classList;
                bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);
                this._hasCheckedHighContrastMode = true;
                const mode = this.getHighContrastMode();
                if (mode === 1 /* HighContrastMode.BLACK_ON_WHITE */) {
                  bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, BLACK_ON_WHITE_CSS_CLASS);
                } else if (mode === 2 /* HighContrastMode.WHITE_ON_BLACK */) {
                  bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS, WHITE_ON_BLACK_CSS_CLASS);
                }
              }
            }
            static {
              this.ɵfac = function HighContrastModeDetector_Factory(t) {
                return new (t || HighContrastModeDetector)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: HighContrastModeDetector,
                factory: HighContrastModeDetector.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HighContrastModeDetector, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          class A11yModule {
            constructor(highContrastModeDetector) {
              highContrastModeDetector._applyBodyHighContrastModeCssClasses();
            }
            static {
              this.ɵfac = function A11yModule_Factory(t) {
                return new (t || A11yModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HighContrastModeDetector));
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: A11yModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ObserversModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](A11yModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_15__.ObserversModule],
                declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
                exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]
              }]
            }], function () {
              return [{
                type: HighContrastModeDetector
              }];
            }, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 3680:
          /*!*****************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/bidi.mjs ***!
            \*****************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BidiModule: () => (/* binding */ BidiModule),
          /* harmony export */   DIR_DOCUMENT: () => (/* binding */ DIR_DOCUMENT),
          /* harmony export */   Dir: () => (/* binding */ Dir),
          /* harmony export */   Directionality: () => (/* binding */ Directionality)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 316);
          
          
          
          
          /**
           * Injection token used to inject the document into Directionality.
           * This is used so that the value can be faked in tests.
           *
           * We can't use the real document in tests because changing the real `dir` causes geometry-based
           * tests in Safari to fail.
           *
           * We also can't re-provide the DOCUMENT token from platform-browser because the unit tests
           * themselves use things like `querySelector` in test code.
           *
           * This token is defined in a separate file from Directionality as a workaround for
           * https://github.com/angular/angular/issues/22559
           *
           * @docs-private
           */
          const DIR_DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('cdk-dir-doc', {
            providedIn: 'root',
            factory: DIR_DOCUMENT_FACTORY
          });
          /** @docs-private */
          function DIR_DOCUMENT_FACTORY() {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT);
          }
          
          /** Regex that matches locales with an RTL script. Taken from `goog.i18n.bidi.isRtlLanguage`. */
          const RTL_LOCALE_PATTERN = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;
          /** Resolves a string value to a specific direction. */
          function _resolveDirectionality(rawValue) {
            const value = rawValue?.toLowerCase() || '';
            if (value === 'auto' && typeof navigator !== 'undefined' && navigator?.language) {
              return RTL_LOCALE_PATTERN.test(navigator.language) ? 'rtl' : 'ltr';
            }
            return value === 'rtl' ? 'rtl' : 'ltr';
          }
          /**
           * The directionality (LTR / RTL) context for the application (or a subtree of it).
           * Exposes the current direction and a stream of direction changes.
           */
          class Directionality {
            constructor(_document) {
              /** The current 'ltr' or 'rtl' value. */
              this.value = 'ltr';
              /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */
              this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              if (_document) {
                const bodyDir = _document.body ? _document.body.dir : null;
                const htmlDir = _document.documentElement ? _document.documentElement.dir : null;
                this.value = _resolveDirectionality(bodyDir || htmlDir || 'ltr');
              }
            }
            ngOnDestroy() {
              this.change.complete();
            }
            static {
              this.ɵfac = function Directionality_Factory(t) {
                return new (t || Directionality)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DIR_DOCUMENT, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: Directionality,
                factory: Directionality.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Directionality, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [DIR_DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Directive to listen for changes of direction of part of the DOM.
           *
           * Provides itself as Directionality such that descendant directives only need to ever inject
           * Directionality to get the closest direction.
           */
          class Dir {
            constructor() {
              /** Normalized direction that accounts for invalid/unsupported values. */
              this._dir = 'ltr';
              /** Whether the `value` has been set to its initial value. */
              this._isInitialized = false;
              /** Event emitted when the direction changes. */
              this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
            }
            /** @docs-private */
            get dir() {
              return this._dir;
            }
            set dir(value) {
              const previousValue = this._dir;
              // Note: `_resolveDirectionality` resolves the language based on the browser's language,
              // whereas the browser does it based on the content of the element. Since doing so based
              // on the content can be expensive, for now we're doing the simpler matching.
              this._dir = _resolveDirectionality(value);
              this._rawDir = value;
              if (previousValue !== this._dir && this._isInitialized) {
                this.change.emit(this._dir);
              }
            }
            /** Current layout direction of the element. */
            get value() {
              return this.dir;
            }
            /** Initialize once default value has been set. */
            ngAfterContentInit() {
              this._isInitialized = true;
            }
            ngOnDestroy() {
              this.change.complete();
            }
            static {
              this.ɵfac = function Dir_Factory(t) {
                return new (t || Dir)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: Dir,
                selectors: [["", "dir", ""]],
                hostVars: 1,
                hostBindings: function Dir_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("dir", ctx._rawDir);
                  }
                },
                inputs: {
                  dir: "dir"
                },
                outputs: {
                  change: "dirChange"
                },
                exportAs: ["dir"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: Directionality,
                  useExisting: Dir
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Dir, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[dir]',
                providers: [{
                  provide: Directionality,
                  useExisting: Dir
                }],
                host: {
                  '[attr.dir]': '_rawDir'
                },
                exportAs: 'dir'
              }]
            }], null, {
              change: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['dirChange']
              }],
              dir: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class BidiModule {
            static {
              this.ɵfac = function BidiModule_Factory(t) {
                return new (t || BidiModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: BidiModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BidiModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                exports: [Dir],
                declarations: [Dir]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 1398:
          /*!****************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/cdk.mjs ***!
            \****************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   VERSION: () => (/* binding */ VERSION)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          
          /** Current version of the Angular Component Development Kit. */
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version('16.2.14');
          
          
          /***/ }),
          
          /***/ 2814:
          /*!*********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/coercion.mjs ***!
            \*********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   _isNumberValue: () => (/* binding */ _isNumberValue),
          /* harmony export */   coerceArray: () => (/* binding */ coerceArray),
          /* harmony export */   coerceBooleanProperty: () => (/* binding */ coerceBooleanProperty),
          /* harmony export */   coerceCssPixelValue: () => (/* binding */ coerceCssPixelValue),
          /* harmony export */   coerceElement: () => (/* binding */ coerceElement),
          /* harmony export */   coerceNumberProperty: () => (/* binding */ coerceNumberProperty),
          /* harmony export */   coerceStringArray: () => (/* binding */ coerceStringArray)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          
          /** Coerces a data-bound value (typically a string) to a boolean. */
          function coerceBooleanProperty(value) {
            return value != null && `${value}` !== 'false';
          }
          function coerceNumberProperty(value, fallbackValue = 0) {
            return _isNumberValue(value) ? Number(value) : fallbackValue;
          }
          /**
           * Whether the provided value is considered a number.
           * @docs-private
           */
          function _isNumberValue(value) {
            // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,
            // and other non-number values as NaN, where Number just uses 0) but it considers the string
            // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.
            return !isNaN(parseFloat(value)) && !isNaN(Number(value));
          }
          function coerceArray(value) {
            return Array.isArray(value) ? value : [value];
          }
          
          /** Coerces a value to a CSS pixel value. */
          function coerceCssPixelValue(value) {
            if (value == null) {
              return '';
            }
            return typeof value === 'string' ? value : `${value}px`;
          }
          
          /**
           * Coerces an ElementRef or an Element into an element.
           * Useful for APIs that can accept either a ref or the native element itself.
           */
          function coerceElement(elementOrRef) {
            return elementOrRef instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef ? elementOrRef.nativeElement : elementOrRef;
          }
          
          /**
           * Coerces a value to an array of trimmed non-empty strings.
           * Any input that is not an array, `null` or `undefined` will be turned into a string
           * via `toString()` and subsequently split with the given separator.
           * `null` and `undefined` will result in an empty array.
           * This results in the following outcomes:
           * - `null` -&gt; `[]`
           * - `[null]` -&gt; `["null"]`
           * - `["a", "b ", " "]` -&gt; `["a", "b"]`
           * - `[1, [2, 3]]` -&gt; `["1", "2,3"]`
           * - `[{ a: 0 }]` -&gt; `["[object Object]"]`
           * - `{ a: 0 }` -&gt; `["[object", "Object]"]`
           *
           * Useful for defining CSS classes or table columns.
           * @param value the value to coerce into an array of strings
           * @param separator split-separator if value isn't an array
           */
          function coerceStringArray(value, separator = /\s+/) {
            const result = [];
            if (value != null) {
              const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator);
              for (const sourceValue of sourceValues) {
                const trimmedString = `${sourceValue}`.trim();
                if (trimmedString) {
                  result.push(trimmedString);
                }
              }
            }
            return result;
          }
          
          
          /***/ }),
          
          /***/ 7989:
          /*!************************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/collections.mjs ***!
            \************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ArrayDataSource: () => (/* binding */ ArrayDataSource),
          /* harmony export */   DataSource: () => (/* binding */ DataSource),
          /* harmony export */   SelectionModel: () => (/* binding */ SelectionModel),
          /* harmony export */   UniqueSelectionDispatcher: () => (/* binding */ UniqueSelectionDispatcher),
          /* harmony export */   _DisposeViewRepeaterStrategy: () => (/* binding */ _DisposeViewRepeaterStrategy),
          /* harmony export */   _RecycleViewRepeaterStrategy: () => (/* binding */ _RecycleViewRepeaterStrategy),
          /* harmony export */   _VIEW_REPEATER_STRATEGY: () => (/* binding */ _VIEW_REPEATER_STRATEGY),
          /* harmony export */   getMultipleValuesInSingleSelectionError: () => (/* binding */ getMultipleValuesInSingleSelectionError),
          /* harmony export */   isDataSource: () => (/* binding */ isDataSource)
          /* harmony export */ });
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 4982);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 2551);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 7580);
          
          
          
          class DataSource {}
          /** Checks whether an object is a data source. */
          function isDataSource(value) {
            // Check if the value is a DataSource by observing if it has a connect function. Cannot
            // be checked as an `instanceof DataSource` since people could create their own sources
            // that match the interface, but don't extend DataSource. We also can't use `isObservable`
            // here, because of some internal apps.
            return value && typeof value.connect === 'function' && !(value instanceof rxjs__WEBPACK_IMPORTED_MODULE_0__.ConnectableObservable);
          }
          
          /** DataSource wrapper for a native array. */
          class ArrayDataSource extends DataSource {
            constructor(_data) {
              super();
              this._data = _data;
            }
            connect() {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.isObservable)(this._data) ? this._data : (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.of)(this._data);
            }
            disconnect() {}
          }
          
          /**
           * A repeater that destroys views when they are removed from a
           * {@link ViewContainerRef}. When new items are inserted into the container,
           * the repeater will always construct a new embedded view for each item.
           *
           * @template T The type for the embedded view's $implicit property.
           * @template R The type for the item in each IterableDiffer change record.
           * @template C The type for the context passed to each embedded view.
           */
          class _DisposeViewRepeaterStrategy {
            applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {
              changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {
                let view;
                let operation;
                if (record.previousIndex == null) {
                  const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);
                  view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index);
                  operation = 1 /* _ViewRepeaterOperation.INSERTED */;
                } else if (currentIndex == null) {
                  viewContainerRef.remove(adjustedPreviousIndex);
                  operation = 3 /* _ViewRepeaterOperation.REMOVED */;
                } else {
                  view = viewContainerRef.get(adjustedPreviousIndex);
                  viewContainerRef.move(view, currentIndex);
                  operation = 2 /* _ViewRepeaterOperation.MOVED */;
                }
          
                if (itemViewChanged) {
                  itemViewChanged({
                    context: view?.context,
                    operation,
                    record
                  });
                }
              });
            }
            detach() {}
          }
          
          /**
           * A repeater that caches views when they are removed from a
           * {@link ViewContainerRef}. When new items are inserted into the container,
           * the repeater will reuse one of the cached views instead of creating a new
           * embedded view. Recycling cached views reduces the quantity of expensive DOM
           * inserts.
           *
           * @template T The type for the embedded view's $implicit property.
           * @template R The type for the item in each IterableDiffer change record.
           * @template C The type for the context passed to each embedded view.
           */
          class _RecycleViewRepeaterStrategy {
            constructor() {
              /**
               * The size of the cache used to store unused views.
               * Setting the cache size to `0` will disable caching. Defaults to 20 views.
               */
              this.viewCacheSize = 20;
              /**
               * View cache that stores embedded view instances that have been previously stamped out,
               * but don't are not currently rendered. The view repeater will reuse these views rather than
               * creating brand new ones.
               *
               * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.
               */
              this._viewCache = [];
            }
            /** Apply changes to the DOM. */
            applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {
              // Rearrange the views to put them in the right location.
              changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {
                let view;
                let operation;
                if (record.previousIndex == null) {
                  // Item added.
                  const viewArgsFactory = () => itemContextFactory(record, adjustedPreviousIndex, currentIndex);
                  view = this._insertView(viewArgsFactory, currentIndex, viewContainerRef, itemValueResolver(record));
                  operation = view ? 1 /* _ViewRepeaterOperation.INSERTED */ : 0 /* _ViewRepeaterOperation.REPLACED */;
                } else if (currentIndex == null) {
                  // Item removed.
                  this._detachAndCacheView(adjustedPreviousIndex, viewContainerRef);
                  operation = 3 /* _ViewRepeaterOperation.REMOVED */;
                } else {
                  // Item moved.
                  view = this._moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, itemValueResolver(record));
                  operation = 2 /* _ViewRepeaterOperation.MOVED */;
                }
          
                if (itemViewChanged) {
                  itemViewChanged({
                    context: view?.context,
                    operation,
                    record
                  });
                }
              });
            }
            detach() {
              for (const view of this._viewCache) {
                view.destroy();
              }
              this._viewCache = [];
            }
            /**
             * Inserts a view for a new item, either from the cache or by creating a new
             * one. Returns `undefined` if the item was inserted into a cached view.
             */
            _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) {
              const cachedView = this._insertViewFromCache(currentIndex, viewContainerRef);
              if (cachedView) {
                cachedView.context.$implicit = value;
                return undefined;
              }
              const viewArgs = viewArgsFactory();
              return viewContainerRef.createEmbeddedView(viewArgs.templateRef, viewArgs.context, viewArgs.index);
            }
            /** Detaches the view at the given index and inserts into the view cache. */
            _detachAndCacheView(index, viewContainerRef) {
              const detachedView = viewContainerRef.detach(index);
              this._maybeCacheView(detachedView, viewContainerRef);
            }
            /** Moves view at the previous index to the current index. */
            _moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, value) {
              const view = viewContainerRef.get(adjustedPreviousIndex);
              viewContainerRef.move(view, currentIndex);
              view.context.$implicit = value;
              return view;
            }
            /**
             * Cache the given detached view. If the cache is full, the view will be
             * destroyed.
             */
            _maybeCacheView(view, viewContainerRef) {
              if (this._viewCache.length < this.viewCacheSize) {
                this._viewCache.push(view);
              } else {
                const index = viewContainerRef.indexOf(view);
                // The host component could remove views from the container outside of
                // the view repeater. It's unlikely this will occur, but just in case,
                // destroy the view on its own, otherwise destroy it through the
                // container to ensure that all the references are removed.
                if (index === -1) {
                  view.destroy();
                } else {
                  viewContainerRef.remove(index);
                }
              }
            }
            /** Inserts a recycled view from the cache at the given index. */
            _insertViewFromCache(index, viewContainerRef) {
              const cachedView = this._viewCache.pop();
              if (cachedView) {
                viewContainerRef.insert(cachedView, index);
              }
              return cachedView || null;
            }
          }
          
          /**
           * Class to be used to power selecting one or more options from a list.
           */
          class SelectionModel {
            /** Selected values. */
            get selected() {
              if (!this._selected) {
                this._selected = Array.from(this._selection.values());
              }
              return this._selected;
            }
            constructor(_multiple = false, initiallySelectedValues, _emitChanges = true, compareWith) {
              this._multiple = _multiple;
              this._emitChanges = _emitChanges;
              this.compareWith = compareWith;
              /** Currently-selected values. */
              this._selection = new Set();
              /** Keeps track of the deselected options that haven't been emitted by the change event. */
              this._deselectedToEmit = [];
              /** Keeps track of the selected options that haven't been emitted by the change event. */
              this._selectedToEmit = [];
              /** Event emitted when the value has changed. */
              this.changed = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              if (initiallySelectedValues && initiallySelectedValues.length) {
                if (_multiple) {
                  initiallySelectedValues.forEach(value => this._markSelected(value));
                } else {
                  this._markSelected(initiallySelectedValues[0]);
                }
                // Clear the array in order to avoid firing the change event for preselected values.
                this._selectedToEmit.length = 0;
              }
            }
            /**
             * Selects a value or an array of values.
             * @param values The values to select
             * @return Whether the selection changed as a result of this call
             * @breaking-change 16.0.0 make return type boolean
             */
            select(...values) {
              this._verifyValueAssignment(values);
              values.forEach(value => this._markSelected(value));
              const changed = this._hasQueuedChanges();
              this._emitChangeEvent();
              return changed;
            }
            /**
             * Deselects a value or an array of values.
             * @param values The values to deselect
             * @return Whether the selection changed as a result of this call
             * @breaking-change 16.0.0 make return type boolean
             */
            deselect(...values) {
              this._verifyValueAssignment(values);
              values.forEach(value => this._unmarkSelected(value));
              const changed = this._hasQueuedChanges();
              this._emitChangeEvent();
              return changed;
            }
            /**
             * Sets the selected values
             * @param values The new selected values
             * @return Whether the selection changed as a result of this call
             * @breaking-change 16.0.0 make return type boolean
             */
            setSelection(...values) {
              this._verifyValueAssignment(values);
              const oldValues = this.selected;
              const newSelectedSet = new Set(values);
              values.forEach(value => this._markSelected(value));
              oldValues.filter(value => !newSelectedSet.has(value)).forEach(value => this._unmarkSelected(value));
              const changed = this._hasQueuedChanges();
              this._emitChangeEvent();
              return changed;
            }
            /**
             * Toggles a value between selected and deselected.
             * @param value The value to toggle
             * @return Whether the selection changed as a result of this call
             * @breaking-change 16.0.0 make return type boolean
             */
            toggle(value) {
              return this.isSelected(value) ? this.deselect(value) : this.select(value);
            }
            /**
             * Clears all of the selected values.
             * @param flushEvent Whether to flush the changes in an event.
             *   If false, the changes to the selection will be flushed along with the next event.
             * @return Whether the selection changed as a result of this call
             * @breaking-change 16.0.0 make return type boolean
             */
            clear(flushEvent = true) {
              this._unmarkAll();
              const changed = this._hasQueuedChanges();
              if (flushEvent) {
                this._emitChangeEvent();
              }
              return changed;
            }
            /**
             * Determines whether a value is selected.
             */
            isSelected(value) {
              return this._selection.has(this._getConcreteValue(value));
            }
            /**
             * Determines whether the model does not have a value.
             */
            isEmpty() {
              return this._selection.size === 0;
            }
            /**
             * Determines whether the model has a value.
             */
            hasValue() {
              return !this.isEmpty();
            }
            /**
             * Sorts the selected values based on a predicate function.
             */
            sort(predicate) {
              if (this._multiple && this.selected) {
                this._selected.sort(predicate);
              }
            }
            /**
             * Gets whether multiple values can be selected.
             */
            isMultipleSelection() {
              return this._multiple;
            }
            /** Emits a change event and clears the records of selected and deselected values. */
            _emitChangeEvent() {
              // Clear the selected values so they can be re-cached.
              this._selected = null;
              if (this._selectedToEmit.length || this._deselectedToEmit.length) {
                this.changed.next({
                  source: this,
                  added: this._selectedToEmit,
                  removed: this._deselectedToEmit
                });
                this._deselectedToEmit = [];
                this._selectedToEmit = [];
              }
            }
            /** Selects a value. */
            _markSelected(value) {
              value = this._getConcreteValue(value);
              if (!this.isSelected(value)) {
                if (!this._multiple) {
                  this._unmarkAll();
                }
                if (!this.isSelected(value)) {
                  this._selection.add(value);
                }
                if (this._emitChanges) {
                  this._selectedToEmit.push(value);
                }
              }
            }
            /** Deselects a value. */
            _unmarkSelected(value) {
              value = this._getConcreteValue(value);
              if (this.isSelected(value)) {
                this._selection.delete(value);
                if (this._emitChanges) {
                  this._deselectedToEmit.push(value);
                }
              }
            }
            /** Clears out the selected values. */
            _unmarkAll() {
              if (!this.isEmpty()) {
                this._selection.forEach(value => this._unmarkSelected(value));
              }
            }
            /**
             * Verifies the value assignment and throws an error if the specified value array is
             * including multiple values while the selection model is not supporting multiple values.
             */
            _verifyValueAssignment(values) {
              if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMultipleValuesInSingleSelectionError();
              }
            }
            /** Whether there are queued up change to be emitted. */
            _hasQueuedChanges() {
              return !!(this._deselectedToEmit.length || this._selectedToEmit.length);
            }
            /** Returns a value that is comparable to inputValue by applying compareWith function, returns the same inputValue otherwise. */
            _getConcreteValue(inputValue) {
              if (!this.compareWith) {
                return inputValue;
              } else {
                for (let selectedValue of this._selection) {
                  if (this.compareWith(inputValue, selectedValue)) {
                    return selectedValue;
                  }
                }
                return inputValue;
              }
            }
          }
          /**
           * Returns an error that reports that multiple values are passed into a selection model
           * with a single value.
           * @docs-private
           */
          function getMultipleValuesInSingleSelectionError() {
            return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
          }
          
          /**
           * Class to coordinate unique selection based on name.
           * Intended to be consumed as an Angular service.
           * This service is needed because native radio change events are only fired on the item currently
           * being selected, and we still need to uncheck the previous selection.
           *
           * This service does not *store* any IDs and names because they may change at any time, so it is
           * less error-prone if they are simply passed through when the events occur.
           */
          class UniqueSelectionDispatcher {
            constructor() {
              this._listeners = [];
            }
            /**
             * Notify other items that selection for the given name has been set.
             * @param id ID of the item.
             * @param name Name of the item.
             */
            notify(id, name) {
              for (let listener of this._listeners) {
                listener(id, name);
              }
            }
            /**
             * Listen for future changes to item selection.
             * @return Function used to deregister listener
             */
            listen(listener) {
              this._listeners.push(listener);
              return () => {
                this._listeners = this._listeners.filter(registered => {
                  return listener !== registered;
                });
              };
            }
            ngOnDestroy() {
              this._listeners = [];
            }
            static {
              this.ɵfac = function UniqueSelectionDispatcher_Factory(t) {
                return new (t || UniqueSelectionDispatcher)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: UniqueSelectionDispatcher,
                factory: UniqueSelectionDispatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](UniqueSelectionDispatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
           * @docs-private
           */
          const _VIEW_REPEATER_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.InjectionToken('_ViewRepeater');
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4879:
          /*!*********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/keycodes.mjs ***!
            \*********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   A: () => (/* binding */ A),
          /* harmony export */   ALT: () => (/* binding */ ALT),
          /* harmony export */   APOSTROPHE: () => (/* binding */ APOSTROPHE),
          /* harmony export */   AT_SIGN: () => (/* binding */ AT_SIGN),
          /* harmony export */   B: () => (/* binding */ B),
          /* harmony export */   BACKSLASH: () => (/* binding */ BACKSLASH),
          /* harmony export */   BACKSPACE: () => (/* binding */ BACKSPACE),
          /* harmony export */   C: () => (/* binding */ C),
          /* harmony export */   CAPS_LOCK: () => (/* binding */ CAPS_LOCK),
          /* harmony export */   CLOSE_SQUARE_BRACKET: () => (/* binding */ CLOSE_SQUARE_BRACKET),
          /* harmony export */   COMMA: () => (/* binding */ COMMA),
          /* harmony export */   CONTEXT_MENU: () => (/* binding */ CONTEXT_MENU),
          /* harmony export */   CONTROL: () => (/* binding */ CONTROL),
          /* harmony export */   D: () => (/* binding */ D),
          /* harmony export */   DASH: () => (/* binding */ DASH),
          /* harmony export */   DELETE: () => (/* binding */ DELETE),
          /* harmony export */   DOWN_ARROW: () => (/* binding */ DOWN_ARROW),
          /* harmony export */   E: () => (/* binding */ E),
          /* harmony export */   EIGHT: () => (/* binding */ EIGHT),
          /* harmony export */   END: () => (/* binding */ END),
          /* harmony export */   ENTER: () => (/* binding */ ENTER),
          /* harmony export */   EQUALS: () => (/* binding */ EQUALS),
          /* harmony export */   ESCAPE: () => (/* binding */ ESCAPE),
          /* harmony export */   F: () => (/* binding */ F),
          /* harmony export */   F1: () => (/* binding */ F1),
          /* harmony export */   F10: () => (/* binding */ F10),
          /* harmony export */   F11: () => (/* binding */ F11),
          /* harmony export */   F12: () => (/* binding */ F12),
          /* harmony export */   F2: () => (/* binding */ F2),
          /* harmony export */   F3: () => (/* binding */ F3),
          /* harmony export */   F4: () => (/* binding */ F4),
          /* harmony export */   F5: () => (/* binding */ F5),
          /* harmony export */   F6: () => (/* binding */ F6),
          /* harmony export */   F7: () => (/* binding */ F7),
          /* harmony export */   F8: () => (/* binding */ F8),
          /* harmony export */   F9: () => (/* binding */ F9),
          /* harmony export */   FF_EQUALS: () => (/* binding */ FF_EQUALS),
          /* harmony export */   FF_MINUS: () => (/* binding */ FF_MINUS),
          /* harmony export */   FF_MUTE: () => (/* binding */ FF_MUTE),
          /* harmony export */   FF_SEMICOLON: () => (/* binding */ FF_SEMICOLON),
          /* harmony export */   FF_VOLUME_DOWN: () => (/* binding */ FF_VOLUME_DOWN),
          /* harmony export */   FF_VOLUME_UP: () => (/* binding */ FF_VOLUME_UP),
          /* harmony export */   FIRST_MEDIA: () => (/* binding */ FIRST_MEDIA),
          /* harmony export */   FIVE: () => (/* binding */ FIVE),
          /* harmony export */   FOUR: () => (/* binding */ FOUR),
          /* harmony export */   G: () => (/* binding */ G),
          /* harmony export */   H: () => (/* binding */ H),
          /* harmony export */   HOME: () => (/* binding */ HOME),
          /* harmony export */   I: () => (/* binding */ I),
          /* harmony export */   INSERT: () => (/* binding */ INSERT),
          /* harmony export */   J: () => (/* binding */ J),
          /* harmony export */   K: () => (/* binding */ K),
          /* harmony export */   L: () => (/* binding */ L),
          /* harmony export */   LAST_MEDIA: () => (/* binding */ LAST_MEDIA),
          /* harmony export */   LEFT_ARROW: () => (/* binding */ LEFT_ARROW),
          /* harmony export */   M: () => (/* binding */ M),
          /* harmony export */   MAC_ENTER: () => (/* binding */ MAC_ENTER),
          /* harmony export */   MAC_META: () => (/* binding */ MAC_META),
          /* harmony export */   MAC_WK_CMD_LEFT: () => (/* binding */ MAC_WK_CMD_LEFT),
          /* harmony export */   MAC_WK_CMD_RIGHT: () => (/* binding */ MAC_WK_CMD_RIGHT),
          /* harmony export */   META: () => (/* binding */ META),
          /* harmony export */   MUTE: () => (/* binding */ MUTE),
          /* harmony export */   N: () => (/* binding */ N),
          /* harmony export */   NINE: () => (/* binding */ NINE),
          /* harmony export */   NUMPAD_DIVIDE: () => (/* binding */ NUMPAD_DIVIDE),
          /* harmony export */   NUMPAD_EIGHT: () => (/* binding */ NUMPAD_EIGHT),
          /* harmony export */   NUMPAD_FIVE: () => (/* binding */ NUMPAD_FIVE),
          /* harmony export */   NUMPAD_FOUR: () => (/* binding */ NUMPAD_FOUR),
          /* harmony export */   NUMPAD_MINUS: () => (/* binding */ NUMPAD_MINUS),
          /* harmony export */   NUMPAD_MULTIPLY: () => (/* binding */ NUMPAD_MULTIPLY),
          /* harmony export */   NUMPAD_NINE: () => (/* binding */ NUMPAD_NINE),
          /* harmony export */   NUMPAD_ONE: () => (/* binding */ NUMPAD_ONE),
          /* harmony export */   NUMPAD_PERIOD: () => (/* binding */ NUMPAD_PERIOD),
          /* harmony export */   NUMPAD_PLUS: () => (/* binding */ NUMPAD_PLUS),
          /* harmony export */   NUMPAD_SEVEN: () => (/* binding */ NUMPAD_SEVEN),
          /* harmony export */   NUMPAD_SIX: () => (/* binding */ NUMPAD_SIX),
          /* harmony export */   NUMPAD_THREE: () => (/* binding */ NUMPAD_THREE),
          /* harmony export */   NUMPAD_TWO: () => (/* binding */ NUMPAD_TWO),
          /* harmony export */   NUMPAD_ZERO: () => (/* binding */ NUMPAD_ZERO),
          /* harmony export */   NUM_CENTER: () => (/* binding */ NUM_CENTER),
          /* harmony export */   NUM_LOCK: () => (/* binding */ NUM_LOCK),
          /* harmony export */   O: () => (/* binding */ O),
          /* harmony export */   ONE: () => (/* binding */ ONE),
          /* harmony export */   OPEN_SQUARE_BRACKET: () => (/* binding */ OPEN_SQUARE_BRACKET),
          /* harmony export */   P: () => (/* binding */ P),
          /* harmony export */   PAGE_DOWN: () => (/* binding */ PAGE_DOWN),
          /* harmony export */   PAGE_UP: () => (/* binding */ PAGE_UP),
          /* harmony export */   PAUSE: () => (/* binding */ PAUSE),
          /* harmony export */   PERIOD: () => (/* binding */ PERIOD),
          /* harmony export */   PLUS_SIGN: () => (/* binding */ PLUS_SIGN),
          /* harmony export */   PRINT_SCREEN: () => (/* binding */ PRINT_SCREEN),
          /* harmony export */   Q: () => (/* binding */ Q),
          /* harmony export */   QUESTION_MARK: () => (/* binding */ QUESTION_MARK),
          /* harmony export */   R: () => (/* binding */ R),
          /* harmony export */   RIGHT_ARROW: () => (/* binding */ RIGHT_ARROW),
          /* harmony export */   S: () => (/* binding */ S),
          /* harmony export */   SCROLL_LOCK: () => (/* binding */ SCROLL_LOCK),
          /* harmony export */   SEMICOLON: () => (/* binding */ SEMICOLON),
          /* harmony export */   SEVEN: () => (/* binding */ SEVEN),
          /* harmony export */   SHIFT: () => (/* binding */ SHIFT),
          /* harmony export */   SINGLE_QUOTE: () => (/* binding */ SINGLE_QUOTE),
          /* harmony export */   SIX: () => (/* binding */ SIX),
          /* harmony export */   SLASH: () => (/* binding */ SLASH),
          /* harmony export */   SPACE: () => (/* binding */ SPACE),
          /* harmony export */   T: () => (/* binding */ T),
          /* harmony export */   TAB: () => (/* binding */ TAB),
          /* harmony export */   THREE: () => (/* binding */ THREE),
          /* harmony export */   TILDE: () => (/* binding */ TILDE),
          /* harmony export */   TWO: () => (/* binding */ TWO),
          /* harmony export */   U: () => (/* binding */ U),
          /* harmony export */   UP_ARROW: () => (/* binding */ UP_ARROW),
          /* harmony export */   V: () => (/* binding */ V),
          /* harmony export */   VOLUME_DOWN: () => (/* binding */ VOLUME_DOWN),
          /* harmony export */   VOLUME_UP: () => (/* binding */ VOLUME_UP),
          /* harmony export */   W: () => (/* binding */ W),
          /* harmony export */   X: () => (/* binding */ X),
          /* harmony export */   Y: () => (/* binding */ Y),
          /* harmony export */   Z: () => (/* binding */ Z),
          /* harmony export */   ZERO: () => (/* binding */ ZERO),
          /* harmony export */   hasModifierKey: () => (/* binding */ hasModifierKey)
          /* harmony export */ });
          const MAC_ENTER = 3;
          const BACKSPACE = 8;
          const TAB = 9;
          const NUM_CENTER = 12;
          const ENTER = 13;
          const SHIFT = 16;
          const CONTROL = 17;
          const ALT = 18;
          const PAUSE = 19;
          const CAPS_LOCK = 20;
          const ESCAPE = 27;
          const SPACE = 32;
          const PAGE_UP = 33;
          const PAGE_DOWN = 34;
          const END = 35;
          const HOME = 36;
          const LEFT_ARROW = 37;
          const UP_ARROW = 38;
          const RIGHT_ARROW = 39;
          const DOWN_ARROW = 40;
          const PLUS_SIGN = 43;
          const PRINT_SCREEN = 44;
          const INSERT = 45;
          const DELETE = 46;
          const ZERO = 48;
          const ONE = 49;
          const TWO = 50;
          const THREE = 51;
          const FOUR = 52;
          const FIVE = 53;
          const SIX = 54;
          const SEVEN = 55;
          const EIGHT = 56;
          const NINE = 57;
          const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186
          const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187
          const QUESTION_MARK = 63;
          const AT_SIGN = 64;
          const A = 65;
          const B = 66;
          const C = 67;
          const D = 68;
          const E = 69;
          const F = 70;
          const G = 71;
          const H = 72;
          const I = 73;
          const J = 74;
          const K = 75;
          const L = 76;
          const M = 77;
          const N = 78;
          const O = 79;
          const P = 80;
          const Q = 81;
          const R = 82;
          const S = 83;
          const T = 84;
          const U = 85;
          const V = 86;
          const W = 87;
          const X = 88;
          const Y = 89;
          const Z = 90;
          const META = 91; // WIN_KEY_LEFT
          const MAC_WK_CMD_LEFT = 91;
          const MAC_WK_CMD_RIGHT = 93;
          const CONTEXT_MENU = 93;
          const NUMPAD_ZERO = 96;
          const NUMPAD_ONE = 97;
          const NUMPAD_TWO = 98;
          const NUMPAD_THREE = 99;
          const NUMPAD_FOUR = 100;
          const NUMPAD_FIVE = 101;
          const NUMPAD_SIX = 102;
          const NUMPAD_SEVEN = 103;
          const NUMPAD_EIGHT = 104;
          const NUMPAD_NINE = 105;
          const NUMPAD_MULTIPLY = 106;
          const NUMPAD_PLUS = 107;
          const NUMPAD_MINUS = 109;
          const NUMPAD_PERIOD = 110;
          const NUMPAD_DIVIDE = 111;
          const F1 = 112;
          const F2 = 113;
          const F3 = 114;
          const F4 = 115;
          const F5 = 116;
          const F6 = 117;
          const F7 = 118;
          const F8 = 119;
          const F9 = 120;
          const F10 = 121;
          const F11 = 122;
          const F12 = 123;
          const NUM_LOCK = 144;
          const SCROLL_LOCK = 145;
          const FIRST_MEDIA = 166;
          const FF_MINUS = 173;
          const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE
          const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN
          const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP
          const FF_MUTE = 181;
          const FF_VOLUME_DOWN = 182;
          const LAST_MEDIA = 183;
          const FF_VOLUME_UP = 183;
          const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON
          const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS
          const COMMA = 188;
          const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS
          const PERIOD = 190;
          const SLASH = 191;
          const APOSTROPHE = 192;
          const TILDE = 192;
          const OPEN_SQUARE_BRACKET = 219;
          const BACKSLASH = 220;
          const CLOSE_SQUARE_BRACKET = 221;
          const SINGLE_QUOTE = 222;
          const MAC_META = 224;
          
          /**
           * Checks whether a modifier key is pressed.
           * @param event Event to be checked.
           */
          function hasModifierKey(event, ...modifiers) {
            if (modifiers.length) {
              return modifiers.some(modifier => event[modifier]);
            }
            return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
          }
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 7912:
          /*!*******************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/layout.mjs ***!
            \*******************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BreakpointObserver: () => (/* binding */ BreakpointObserver),
          /* harmony export */   Breakpoints: () => (/* binding */ Breakpoints),
          /* harmony export */   LayoutModule: () => (/* binding */ LayoutModule),
          /* harmony export */   MediaMatcher: () => (/* binding */ MediaMatcher)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 9999);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 4665);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 7470);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 2575);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 271);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 3037);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          
          
          
          
          
          
          class LayoutModule {
            static {
              this.ɵfac = function LayoutModule_Factory(t) {
                return new (t || LayoutModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: LayoutModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{}]
            }], null, null);
          })();
          
          /** Global registry for all dynamically-created, injected media queries. */
          const mediaQueriesForWebkitCompatibility = new Set();
          /** Style tag that holds all of the dynamically-created media queries. */
          let mediaQueryStyleNode;
          /** A utility for calling matchMedia queries. */
          class MediaMatcher {
            constructor(_platform, _nonce) {
              this._platform = _platform;
              this._nonce = _nonce;
              this._matchMedia = this._platform.isBrowser && window.matchMedia ?
              // matchMedia is bound to the window scope intentionally as it is an illegal invocation to
              // call it from a different scope.
              window.matchMedia.bind(window) : noopMatchMedia;
            }
            /**
             * Evaluates the given media query and returns the native MediaQueryList from which results
             * can be retrieved.
             * Confirms the layout engine will trigger for the selector query provided and returns the
             * MediaQueryList for the query provided.
             */
            matchMedia(query) {
              if (this._platform.WEBKIT || this._platform.BLINK) {
                createEmptyStyleRule(query, this._nonce);
              }
              return this._matchMedia(query);
            }
            static {
              this.ɵfac = function MediaMatcher_Factory(t) {
                return new (t || MediaMatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.CSP_NONCE, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: MediaMatcher,
                factory: MediaMatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MediaMatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.CSP_NONCE]
                }]
              }];
            }, null);
          })();
          /**
           * Creates an empty stylesheet that is used to work around browser inconsistencies related to
           * `matchMedia`. At the time of writing, it handles the following cases:
           * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia`
           * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration.
           * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules
           * inside the `@media` match existing elements on the page. We work around it by having one rule
           * targeting the `body`. See https://github.com/angular/components/issues/23546.
           */
          function createEmptyStyleRule(query, nonce) {
            if (mediaQueriesForWebkitCompatibility.has(query)) {
              return;
            }
            try {
              if (!mediaQueryStyleNode) {
                mediaQueryStyleNode = document.createElement('style');
                if (nonce) {
                  mediaQueryStyleNode.nonce = nonce;
                }
                mediaQueryStyleNode.setAttribute('type', 'text/css');
                document.head.appendChild(mediaQueryStyleNode);
              }
              if (mediaQueryStyleNode.sheet) {
                mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);
                mediaQueriesForWebkitCompatibility.add(query);
              }
            } catch (e) {
              console.error(e);
            }
          }
          /** No-op matchMedia replacement for non-browser platforms. */
          function noopMatchMedia(query) {
            // Use `as any` here to avoid adding additional necessary properties for
            // the noop matcher.
            return {
              matches: query === 'all' || query === '',
              media: query,
              addListener: () => {},
              removeListener: () => {}
            };
          }
          
          /** Utility for checking the matching state of @media queries. */
          class BreakpointObserver {
            constructor(_mediaMatcher, _zone) {
              this._mediaMatcher = _mediaMatcher;
              this._zone = _zone;
              /**  A map of all media queries currently being listened for. */
              this._queries = new Map();
              /** A subject for all other observables to takeUntil based on. */
              this._destroySubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject();
            }
            /** Completes the active subject, signalling to all other observables to complete. */
            ngOnDestroy() {
              this._destroySubject.next();
              this._destroySubject.complete();
            }
            /**
             * Whether one or more media queries match the current viewport size.
             * @param value One or more media queries to check.
             * @returns Whether any of the media queries match.
             */
            isMatched(value) {
              const queries = splitQueries((0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceArray)(value));
              return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);
            }
            /**
             * Gets an observable of results for the given queries that will emit new results for any changes
             * in matching of the given queries.
             * @param value One or more media queries to check.
             * @returns A stream of matches for the given queries.
             */
            observe(value) {
              const queries = splitQueries((0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceArray)(value));
              const observables = queries.map(query => this._registerQuery(query).observable);
              let stateObservable = (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.combineLatest)(observables);
              // Emit the first state immediately, and then debounce the subsequent emissions.
              stateObservable = (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.concat)(stateObservable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1)), stateObservable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.skip)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.debounceTime)(0)));
              return stateObservable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.map)(breakpointStates => {
                const response = {
                  matches: false,
                  breakpoints: {}
                };
                breakpointStates.forEach(({
                  matches,
                  query
                }) => {
                  response.matches = response.matches || matches;
                  response.breakpoints[query] = matches;
                });
                return response;
              }));
            }
            /** Registers a specific query to be listened for. */
            _registerQuery(query) {
              // Only set up a new MediaQueryList if it is not already being listened for.
              if (this._queries.has(query)) {
                return this._queries.get(query);
              }
              const mql = this._mediaMatcher.matchMedia(query);
              // Create callback for match changes and add it is as a listener.
              const queryObservable = new rxjs__WEBPACK_IMPORTED_MODULE_10__.Observable(observer => {
                // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed
                // back into the zone because matchMedia is only included in Zone.js by loading the
                // webapis-media-query.js file alongside the zone.js file.  Additionally, some browsers do not
                // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js
                // patches it.
                const handler = e => this._zone.run(() => observer.next(e));
                mql.addListener(handler);
                return () => {
                  mql.removeListener(handler);
                };
              }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.startWith)(mql), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.map)(({
                matches
              }) => ({
                query,
                matches
              })), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.takeUntil)(this._destroySubject));
              // Add the MediaQueryList to the set of queries.
              const output = {
                observable: queryObservable,
                mql
              };
              this._queries.set(query, output);
              return output;
            }
            static {
              this.ɵfac = function BreakpointObserver_Factory(t) {
                return new (t || BreakpointObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MediaMatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: BreakpointObserver,
                factory: BreakpointObserver.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BreakpointObserver, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: MediaMatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, null);
          })();
          /**
           * Split each query string into separate query strings if two queries are provided as comma
           * separated.
           */
          function splitQueries(queries) {
            return queries.map(query => query.split(',')).reduce((a1, a2) => a1.concat(a2)).map(query => query.trim());
          }
          
          // PascalCase is being used as Breakpoints is used like an enum.
          // tslint:disable-next-line:variable-name
          const Breakpoints = {
            XSmall: '(max-width: 599.98px)',
            Small: '(min-width: 600px) and (max-width: 959.98px)',
            Medium: '(min-width: 960px) and (max-width: 1279.98px)',
            Large: '(min-width: 1280px) and (max-width: 1919.98px)',
            XLarge: '(min-width: 1920px)',
            Handset: '(max-width: 599.98px) and (orientation: portrait), ' + '(max-width: 959.98px) and (orientation: landscape)',
            Tablet: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), ' + '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',
            Web: '(min-width: 840px) and (orientation: portrait), ' + '(min-width: 1280px) and (orientation: landscape)',
            HandsetPortrait: '(max-width: 599.98px) and (orientation: portrait)',
            TabletPortrait: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)',
            WebPortrait: '(min-width: 840px) and (orientation: portrait)',
            HandsetLandscape: '(max-width: 959.98px) and (orientation: landscape)',
            TabletLandscape: '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',
            WebLandscape: '(min-width: 1280px) and (orientation: landscape)'
          };
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 9539:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/observers.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   CdkObserveContent: () => (/* binding */ CdkObserveContent),
          /* harmony export */   ContentObserver: () => (/* binding */ ContentObserver),
          /* harmony export */   MutationObserverFactory: () => (/* binding */ MutationObserverFactory),
          /* harmony export */   ObserversModule: () => (/* binding */ ObserversModule)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 2575);
          
          
          
          
          
          
          /**
           * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
           * @docs-private
           */
          class MutationObserverFactory {
            create(callback) {
              return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
            }
            static {
              this.ɵfac = function MutationObserverFactory_Factory(t) {
                return new (t || MutationObserverFactory)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: MutationObserverFactory,
                factory: MutationObserverFactory.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MutationObserverFactory, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /** An injectable service that allows watching elements for changes to their content. */
          class ContentObserver {
            constructor(_mutationObserverFactory) {
              this._mutationObserverFactory = _mutationObserverFactory;
              /** Keeps track of the existing MutationObservers so they can be reused. */
              this._observedElements = new Map();
            }
            ngOnDestroy() {
              this._observedElements.forEach((_, element) => this._cleanupObserver(element));
            }
            observe(elementOrRef) {
              const element = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceElement)(elementOrRef);
              return new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
                const stream = this._observeElement(element);
                const subscription = stream.subscribe(observer);
                return () => {
                  subscription.unsubscribe();
                  this._unobserveElement(element);
                };
              });
            }
            /**
             * Observes the given element by using the existing MutationObserver if available, or creating a
             * new one if not.
             */
            _observeElement(element) {
              if (!this._observedElements.has(element)) {
                const stream = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
                const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));
                if (observer) {
                  observer.observe(element, {
                    characterData: true,
                    childList: true,
                    subtree: true
                  });
                }
                this._observedElements.set(element, {
                  observer,
                  stream,
                  count: 1
                });
              } else {
                this._observedElements.get(element).count++;
              }
              return this._observedElements.get(element).stream;
            }
            /**
             * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
             * observing this element.
             */
            _unobserveElement(element) {
              if (this._observedElements.has(element)) {
                this._observedElements.get(element).count--;
                if (!this._observedElements.get(element).count) {
                  this._cleanupObserver(element);
                }
              }
            }
            /** Clean up the underlying MutationObserver for the specified element. */
            _cleanupObserver(element) {
              if (this._observedElements.has(element)) {
                const {
                  observer,
                  stream
                } = this._observedElements.get(element);
                if (observer) {
                  observer.disconnect();
                }
                stream.complete();
                this._observedElements.delete(element);
              }
            }
            static {
              this.ɵfac = function ContentObserver_Factory(t) {
                return new (t || ContentObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MutationObserverFactory));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ContentObserver,
                factory: ContentObserver.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ContentObserver, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: MutationObserverFactory
              }];
            }, null);
          })();
          /**
           * Directive that triggers a callback whenever the content of
           * its associated element has changed.
           */
          class CdkObserveContent {
            /**
             * Whether observing content is disabled. This option can be used
             * to disconnect the underlying MutationObserver until it is needed.
             */
            get disabled() {
              return this._disabled;
            }
            set disabled(value) {
              this._disabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)(value);
              this._disabled ? this._unsubscribe() : this._subscribe();
            }
            /** Debounce interval for emitting the changes. */
            get debounce() {
              return this._debounce;
            }
            set debounce(value) {
              this._debounce = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceNumberProperty)(value);
              this._subscribe();
            }
            constructor(_contentObserver, _elementRef, _ngZone) {
              this._contentObserver = _contentObserver;
              this._elementRef = _elementRef;
              this._ngZone = _ngZone;
              /** Event emitted for each change in the element's content. */
              this.event = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this._disabled = false;
              this._currentSubscription = null;
            }
            ngAfterContentInit() {
              if (!this._currentSubscription && !this.disabled) {
                this._subscribe();
              }
            }
            ngOnDestroy() {
              this._unsubscribe();
            }
            _subscribe() {
              this._unsubscribe();
              const stream = this._contentObserver.observe(this._elementRef);
              // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.
              // Consider brining it back inside the zone next time we're making breaking changes.
              // Bringing it back inside can cause things like infinite change detection loops and changed
              // after checked errors if people's code isn't handling it properly.
              this._ngZone.runOutsideAngular(() => {
                this._currentSubscription = (this.debounce ? stream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.debounceTime)(this.debounce)) : stream).subscribe(this.event);
              });
            }
            _unsubscribe() {
              this._currentSubscription?.unsubscribe();
            }
            static {
              this.ɵfac = function CdkObserveContent_Factory(t) {
                return new (t || CdkObserveContent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ContentObserver), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkObserveContent,
                selectors: [["", "cdkObserveContent", ""]],
                inputs: {
                  disabled: ["cdkObserveContentDisabled", "disabled"],
                  debounce: "debounce"
                },
                outputs: {
                  event: "cdkObserveContent"
                },
                exportAs: ["cdkObserveContent"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkObserveContent, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkObserveContent]',
                exportAs: 'cdkObserveContent'
              }]
            }], function () {
              return [{
                type: ContentObserver
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, {
              event: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['cdkObserveContent']
              }],
              disabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['cdkObserveContentDisabled']
              }],
              debounce: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class ObserversModule {
            static {
              this.ɵfac = function ObserversModule_Factory(t) {
                return new (t || ObserversModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: ObserversModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [MutationObserverFactory]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ObserversModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                exports: [CdkObserveContent],
                declarations: [CdkObserveContent],
                providers: [MutationObserverFactory]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 8615:
          /*!******************************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/observers/private.mjs ***!
            \******************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   SharedResizeObserver: () => (/* binding */ SharedResizeObserver)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 6301);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 3900);
          
          
          
          
          
          /**
           * Handler that logs "ResizeObserver loop limit exceeded" errors.
           * These errors are not shown in the Chrome console, so we log them to ensure developers are aware.
           * @param e The error
           */
          const loopLimitExceededErrorHandler = e => {
            if (e instanceof Error && e.message === 'ResizeObserver loop limit exceeded') {
              console.error(`${e.message}. This could indicate a performance issue with your app. See https://github.com/WICG/resize-observer/blob/master/explainer.md#error-handling`);
            }
          };
          /**
           * A shared ResizeObserver to be used for a particular box type (content-box, border-box, or
           * device-pixel-content-box)
           */
          class SingleBoxSharedResizeObserver {
            constructor( /** The box type to observe for resizes. */
            _box) {
              this._box = _box;
              /** Stream that emits when the shared observer is destroyed. */
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();
              /** Stream of all events from the ResizeObserver. */
              this._resizeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();
              /** A map of elements to streams of their resize events. */
              this._elementObservables = new Map();
              if (typeof ResizeObserver !== 'undefined') {
                this._resizeObserver = new ResizeObserver(entries => this._resizeSubject.next(entries));
              }
            }
            /**
             * Gets a stream of resize events for the given element.
             * @param target The element to observe.
             * @return The stream of resize events for the element.
             */
            observe(target) {
              if (!this._elementObservables.has(target)) {
                this._elementObservables.set(target, new rxjs__WEBPACK_IMPORTED_MODULE_1__.Observable(observer => {
                  const subscription = this._resizeSubject.subscribe(observer);
                  this._resizeObserver?.observe(target, {
                    box: this._box
                  });
                  return () => {
                    this._resizeObserver?.unobserve(target);
                    subscription.unsubscribe();
                    this._elementObservables.delete(target);
                  };
                }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)(entries => entries.some(entry => entry.target === target)),
                // Share a replay of the last event so that subsequent calls to observe the same element
                // receive initial sizing info like the first one. Also enable ref counting so the
                // element will be automatically unobserved when there are no more subscriptions.
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.shareReplay)({
                  bufferSize: 1,
                  refCount: true
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._destroyed)));
              }
              return this._elementObservables.get(target);
            }
            /** Destroys this instance. */
            destroy() {
              this._destroyed.next();
              this._destroyed.complete();
              this._resizeSubject.complete();
              this._elementObservables.clear();
            }
          }
          /**
           * Allows observing resize events on multiple elements using a shared set of ResizeObserver.
           * Sharing a ResizeObserver instance is recommended for better performance (see
           * https://github.com/WICG/resize-observer/issues/59).
           *
           * Rather than share a single `ResizeObserver`, this class creates one `ResizeObserver` per type
           * of observed box ('content-box', 'border-box', and 'device-pixel-content-box'). This avoids
           * later calls to `observe` with a different box type from influencing the events dispatched to
           * earlier calls.
           */
          class SharedResizeObserver {
            constructor() {
              /** Map of box type to shared resize observer. */
              this._observers = new Map();
              /** The Angular zone. */
              this._ngZone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgZone);
              if (typeof ResizeObserver !== 'undefined' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                this._ngZone.runOutsideAngular(() => {
                  window.addEventListener('error', loopLimitExceededErrorHandler);
                });
              }
            }
            ngOnDestroy() {
              for (const [, observer] of this._observers) {
                observer.destroy();
              }
              this._observers.clear();
              if (typeof ResizeObserver !== 'undefined' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                window.removeEventListener('error', loopLimitExceededErrorHandler);
              }
            }
            /**
             * Gets a stream of resize events for the given target element and box type.
             * @param target The element to observe for resizes.
             * @param options Options to pass to the `ResizeObserver`
             * @return The stream of resize events for the element.
             */
            observe(target, options) {
              const box = options?.box || 'content-box';
              if (!this._observers.has(box)) {
                this._observers.set(box, new SingleBoxSharedResizeObserver(box));
              }
              return this._observers.get(box).observe(target);
            }
            static {
              this.ɵfac = function SharedResizeObserver_Factory(t) {
                return new (t || SharedResizeObserver)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: SharedResizeObserver,
                factory: SharedResizeObserver.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](SharedResizeObserver, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 1570:
          /*!********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/overlay.mjs ***!
            \********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BlockScrollStrategy: () => (/* binding */ BlockScrollStrategy),
          /* harmony export */   CdkConnectedOverlay: () => (/* binding */ CdkConnectedOverlay),
          /* harmony export */   CdkOverlayOrigin: () => (/* binding */ CdkOverlayOrigin),
          /* harmony export */   CdkScrollable: () => (/* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.CdkScrollable),
          /* harmony export */   CloseScrollStrategy: () => (/* binding */ CloseScrollStrategy),
          /* harmony export */   ConnectedOverlayPositionChange: () => (/* binding */ ConnectedOverlayPositionChange),
          /* harmony export */   ConnectionPositionPair: () => (/* binding */ ConnectionPositionPair),
          /* harmony export */   FlexibleConnectedPositionStrategy: () => (/* binding */ FlexibleConnectedPositionStrategy),
          /* harmony export */   FullscreenOverlayContainer: () => (/* binding */ FullscreenOverlayContainer),
          /* harmony export */   GlobalPositionStrategy: () => (/* binding */ GlobalPositionStrategy),
          /* harmony export */   NoopScrollStrategy: () => (/* binding */ NoopScrollStrategy),
          /* harmony export */   Overlay: () => (/* binding */ Overlay),
          /* harmony export */   OverlayConfig: () => (/* binding */ OverlayConfig),
          /* harmony export */   OverlayContainer: () => (/* binding */ OverlayContainer),
          /* harmony export */   OverlayKeyboardDispatcher: () => (/* binding */ OverlayKeyboardDispatcher),
          /* harmony export */   OverlayModule: () => (/* binding */ OverlayModule),
          /* harmony export */   OverlayOutsideClickDispatcher: () => (/* binding */ OverlayOutsideClickDispatcher),
          /* harmony export */   OverlayPositionBuilder: () => (/* binding */ OverlayPositionBuilder),
          /* harmony export */   OverlayRef: () => (/* binding */ OverlayRef),
          /* harmony export */   RepositionScrollStrategy: () => (/* binding */ RepositionScrollStrategy),
          /* harmony export */   STANDARD_DROPDOWN_ADJACENT_POSITIONS: () => (/* binding */ STANDARD_DROPDOWN_ADJACENT_POSITIONS),
          /* harmony export */   STANDARD_DROPDOWN_BELOW_POSITIONS: () => (/* binding */ STANDARD_DROPDOWN_BELOW_POSITIONS),
          /* harmony export */   ScrollDispatcher: () => (/* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher),
          /* harmony export */   ScrollStrategyOptions: () => (/* binding */ ScrollStrategyOptions),
          /* harmony export */   ScrollingVisibility: () => (/* binding */ ScrollingVisibility),
          /* harmony export */   ViewportRuler: () => (/* reexport safe */ _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler),
          /* harmony export */   validateHorizontalPosition: () => (/* binding */ validateHorizontalPosition),
          /* harmony export */   validateVerticalPosition: () => (/* binding */ validateVerticalPosition)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/scrolling */ 9975);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 1249);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/portal */ 9168);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          const scrollBehaviorSupported = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.supportsScrollBehavior)();
          /**
           * Strategy that will prevent the user from scrolling while the overlay is visible.
           */
          class BlockScrollStrategy {
            constructor(_viewportRuler, document) {
              this._viewportRuler = _viewportRuler;
              this._previousHTMLStyles = {
                top: '',
                left: ''
              };
              this._isEnabled = false;
              this._document = document;
            }
            /** Attaches this scroll strategy to an overlay. */
            attach() {}
            /** Blocks page-level scroll while the attached overlay is open. */
            enable() {
              if (this._canBeEnabled()) {
                const root = this._document.documentElement;
                this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition();
                // Cache the previous inline styles in case the user had set them.
                this._previousHTMLStyles.left = root.style.left || '';
                this._previousHTMLStyles.top = root.style.top || '';
                // Note: we're using the `html` node, instead of the `body`, because the `body` may
                // have the user agent margin, whereas the `html` is guaranteed not to have one.
                root.style.left = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(-this._previousScrollPosition.left);
                root.style.top = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(-this._previousScrollPosition.top);
                root.classList.add('cdk-global-scrollblock');
                this._isEnabled = true;
              }
            }
            /** Unblocks page-level scroll while the attached overlay is open. */
            disable() {
              if (this._isEnabled) {
                const html = this._document.documentElement;
                const body = this._document.body;
                const htmlStyle = html.style;
                const bodyStyle = body.style;
                const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';
                const previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';
                this._isEnabled = false;
                htmlStyle.left = this._previousHTMLStyles.left;
                htmlStyle.top = this._previousHTMLStyles.top;
                html.classList.remove('cdk-global-scrollblock');
                // Disable user-defined smooth scrolling temporarily while we restore the scroll position.
                // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
                // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`,
                // because it can throw off feature detections in `supportsScrollBehavior` which
                // checks for `'scrollBehavior' in documentElement.style`.
                if (scrollBehaviorSupported) {
                  htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';
                }
                window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);
                if (scrollBehaviorSupported) {
                  htmlStyle.scrollBehavior = previousHtmlScrollBehavior;
                  bodyStyle.scrollBehavior = previousBodyScrollBehavior;
                }
              }
            }
            _canBeEnabled() {
              // Since the scroll strategies can't be singletons, we have to use a global CSS class
              // (`cdk-global-scrollblock`) to make sure that we don't try to disable global
              // scrolling multiple times.
              const html = this._document.documentElement;
              if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {
                return false;
              }
              const body = this._document.body;
              const viewport = this._viewportRuler.getViewportSize();
              return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;
            }
          }
          
          /**
           * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
           */
          function getMatScrollStrategyAlreadyAttachedError() {
            return Error(`Scroll strategy has already been attached.`);
          }
          
          /**
           * Strategy that will close the overlay as soon as the user starts scrolling.
           */
          class CloseScrollStrategy {
            constructor(_scrollDispatcher, _ngZone, _viewportRuler, _config) {
              this._scrollDispatcher = _scrollDispatcher;
              this._ngZone = _ngZone;
              this._viewportRuler = _viewportRuler;
              this._config = _config;
              this._scrollSubscription = null;
              /** Detaches the overlay ref and disables the scroll strategy. */
              this._detach = () => {
                this.disable();
                if (this._overlayRef.hasAttached()) {
                  this._ngZone.run(() => this._overlayRef.detach());
                }
              };
            }
            /** Attaches this scroll strategy to an overlay. */
            attach(overlayRef) {
              if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatScrollStrategyAlreadyAttachedError();
              }
              this._overlayRef = overlayRef;
            }
            /** Enables the closing of the attached overlay on scroll. */
            enable() {
              if (this._scrollSubscription) {
                return;
              }
              const stream = this._scrollDispatcher.scrolled(0).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.filter)(scrollable => {
                return !scrollable || !this._overlayRef.overlayElement.contains(scrollable.getElementRef().nativeElement);
              }));
              if (this._config && this._config.threshold && this._config.threshold > 1) {
                this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;
                this._scrollSubscription = stream.subscribe(() => {
                  const scrollPosition = this._viewportRuler.getViewportScrollPosition().top;
                  if (Math.abs(scrollPosition - this._initialScrollPosition) > this._config.threshold) {
                    this._detach();
                  } else {
                    this._overlayRef.updatePosition();
                  }
                });
              } else {
                this._scrollSubscription = stream.subscribe(this._detach);
              }
            }
            /** Disables the closing the attached overlay on scroll. */
            disable() {
              if (this._scrollSubscription) {
                this._scrollSubscription.unsubscribe();
                this._scrollSubscription = null;
              }
            }
            detach() {
              this.disable();
              this._overlayRef = null;
            }
          }
          
          /** Scroll strategy that doesn't do anything. */
          class NoopScrollStrategy {
            /** Does nothing, as this scroll strategy is a no-op. */
            enable() {}
            /** Does nothing, as this scroll strategy is a no-op. */
            disable() {}
            /** Does nothing, as this scroll strategy is a no-op. */
            attach() {}
          }
          
          /**
           * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.
           * @param element Dimensions of the element (from getBoundingClientRect)
           * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)
           * @returns Whether the element is scrolled out of view
           * @docs-private
           */
          function isElementScrolledOutsideView(element, scrollContainers) {
            return scrollContainers.some(containerBounds => {
              const outsideAbove = element.bottom < containerBounds.top;
              const outsideBelow = element.top > containerBounds.bottom;
              const outsideLeft = element.right < containerBounds.left;
              const outsideRight = element.left > containerBounds.right;
              return outsideAbove || outsideBelow || outsideLeft || outsideRight;
            });
          }
          /**
           * Gets whether an element is clipped by any of its scrolling containers.
           * @param element Dimensions of the element (from getBoundingClientRect)
           * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)
           * @returns Whether the element is clipped
           * @docs-private
           */
          function isElementClippedByScrolling(element, scrollContainers) {
            return scrollContainers.some(scrollContainerRect => {
              const clippedAbove = element.top < scrollContainerRect.top;
              const clippedBelow = element.bottom > scrollContainerRect.bottom;
              const clippedLeft = element.left < scrollContainerRect.left;
              const clippedRight = element.right > scrollContainerRect.right;
              return clippedAbove || clippedBelow || clippedLeft || clippedRight;
            });
          }
          
          /**
           * Strategy that will update the element position as the user is scrolling.
           */
          class RepositionScrollStrategy {
            constructor(_scrollDispatcher, _viewportRuler, _ngZone, _config) {
              this._scrollDispatcher = _scrollDispatcher;
              this._viewportRuler = _viewportRuler;
              this._ngZone = _ngZone;
              this._config = _config;
              this._scrollSubscription = null;
            }
            /** Attaches this scroll strategy to an overlay. */
            attach(overlayRef) {
              if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatScrollStrategyAlreadyAttachedError();
              }
              this._overlayRef = overlayRef;
            }
            /** Enables repositioning of the attached overlay on scroll. */
            enable() {
              if (!this._scrollSubscription) {
                const throttle = this._config ? this._config.scrollThrottle : 0;
                this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(() => {
                  this._overlayRef.updatePosition();
                  // TODO(crisbeto): make `close` on by default once all components can handle it.
                  if (this._config && this._config.autoClose) {
                    const overlayRect = this._overlayRef.overlayElement.getBoundingClientRect();
                    const {
                      width,
                      height
                    } = this._viewportRuler.getViewportSize();
                    // TODO(crisbeto): include all ancestor scroll containers here once
                    // we have a way of exposing the trigger element to the scroll strategy.
                    const parentRects = [{
                      width,
                      height,
                      bottom: height,
                      right: width,
                      top: 0,
                      left: 0
                    }];
                    if (isElementScrolledOutsideView(overlayRect, parentRects)) {
                      this.disable();
                      this._ngZone.run(() => this._overlayRef.detach());
                    }
                  }
                });
              }
            }
            /** Disables repositioning of the attached overlay on scroll. */
            disable() {
              if (this._scrollSubscription) {
                this._scrollSubscription.unsubscribe();
                this._scrollSubscription = null;
              }
            }
            detach() {
              this.disable();
              this._overlayRef = null;
            }
          }
          
          /**
           * Options for how an overlay will handle scrolling.
           *
           * Users can provide a custom value for `ScrollStrategyOptions` to replace the default
           * behaviors. This class primarily acts as a factory for ScrollStrategy instances.
           */
          class ScrollStrategyOptions {
            constructor(_scrollDispatcher, _viewportRuler, _ngZone, document) {
              this._scrollDispatcher = _scrollDispatcher;
              this._viewportRuler = _viewportRuler;
              this._ngZone = _ngZone;
              /** Do nothing on scroll. */
              this.noop = () => new NoopScrollStrategy();
              /**
               * Close the overlay as soon as the user scrolls.
               * @param config Configuration to be used inside the scroll strategy.
               */
              this.close = config => new CloseScrollStrategy(this._scrollDispatcher, this._ngZone, this._viewportRuler, config);
              /** Block scrolling. */
              this.block = () => new BlockScrollStrategy(this._viewportRuler, this._document);
              /**
               * Update the overlay's position on scroll.
               * @param config Configuration to be used inside the scroll strategy.
               * Allows debouncing the reposition calls.
               */
              this.reposition = config => new RepositionScrollStrategy(this._scrollDispatcher, this._viewportRuler, this._ngZone, config);
              this._document = document;
            }
            static {
              this.ɵfac = function ScrollStrategyOptions_Factory(t) {
                return new (t || ScrollStrategyOptions)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: ScrollStrategyOptions,
                factory: ScrollStrategyOptions.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](ScrollStrategyOptions, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollDispatcher
              }, {
                type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /** Initial configuration used when creating an overlay. */
          class OverlayConfig {
            constructor(config) {
              /** Strategy to be used when handling scroll events while the overlay is open. */
              this.scrollStrategy = new NoopScrollStrategy();
              /** Custom class to add to the overlay pane. */
              this.panelClass = '';
              /** Whether the overlay has a backdrop. */
              this.hasBackdrop = false;
              /** Custom class to add to the backdrop */
              this.backdropClass = 'cdk-overlay-dark-backdrop';
              /**
               * Whether the overlay should be disposed of when the user goes backwards/forwards in history.
               * Note that this usually doesn't include clicking on links (unless the user is using
               * the `HashLocationStrategy`).
               */
              this.disposeOnNavigation = false;
              if (config) {
                // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
                // loses the array generic type in the `for of`. But we *also* have to use `Array` because
                // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`
                const configKeys = Object.keys(config);
                for (const key of configKeys) {
                  if (config[key] !== undefined) {
                    // TypeScript, as of version 3.5, sees the left-hand-side of this expression
                    // as "I don't know *which* key this is, so the only valid value is the intersection
                    // of all the possible values." In this case, that happens to be `undefined`. TypeScript
                    // is not smart enough to see that the right-hand-side is actually an access of the same
                    // exact type with the same exact key, meaning that the value type must be identical.
                    // So we use `any` to work around this.
                    this[key] = config[key];
                  }
                }
              }
            }
          }
          
          /** The points of the origin element and the overlay element to connect. */
          class ConnectionPositionPair {
            constructor(origin, overlay, /** Offset along the X axis. */
            offsetX, /** Offset along the Y axis. */
            offsetY, /** Class(es) to be applied to the panel while this position is active. */
            panelClass) {
              this.offsetX = offsetX;
              this.offsetY = offsetY;
              this.panelClass = panelClass;
              this.originX = origin.originX;
              this.originY = origin.originY;
              this.overlayX = overlay.overlayX;
              this.overlayY = overlay.overlayY;
            }
          }
          /**
           * Set of properties regarding the position of the origin and overlay relative to the viewport
           * with respect to the containing Scrollable elements.
           *
           * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the
           * bounds of any one of the strategy's Scrollable's bounding client rectangle.
           *
           * The overlay and origin are outside view if there is no overlap between their bounding client
           * rectangle and any one of the strategy's Scrollable's bounding client rectangle.
           *
           *       -----------                    -----------
           *       | outside |                    | clipped |
           *       |  view   |              --------------------------
           *       |         |              |     |         |        |
           *       ----------               |     -----------        |
           *  --------------------------    |                        |
           *  |                        |    |      Scrollable        |
           *  |                        |    |                        |
           *  |                        |     --------------------------
           *  |      Scrollable        |
           *  |                        |
           *  --------------------------
           *
           *  @docs-private
           */
          class ScrollingVisibility {}
          /** The change event emitted by the strategy when a fallback position is used. */
          class ConnectedOverlayPositionChange {
            constructor( /** The position used as a result of this change. */
            connectionPair, /** @docs-private */
            scrollableViewProperties) {
              this.connectionPair = connectionPair;
              this.scrollableViewProperties = scrollableViewProperties;
            }
          }
          /**
           * Validates whether a vertical position property matches the expected values.
           * @param property Name of the property being validated.
           * @param value Value of the property being validated.
           * @docs-private
           */
          function validateVerticalPosition(property, value) {
            if (value !== 'top' && value !== 'bottom' && value !== 'center') {
              throw Error(`ConnectedPosition: Invalid ${property} "${value}". ` + `Expected "top", "bottom" or "center".`);
            }
          }
          /**
           * Validates whether a horizontal position property matches the expected values.
           * @param property Name of the property being validated.
           * @param value Value of the property being validated.
           * @docs-private
           */
          function validateHorizontalPosition(property, value) {
            if (value !== 'start' && value !== 'end' && value !== 'center') {
              throw Error(`ConnectedPosition: Invalid ${property} "${value}". ` + `Expected "start", "end" or "center".`);
            }
          }
          
          /**
           * Service for dispatching events that land on the body to appropriate overlay ref,
           * if any. It maintains a list of attached overlays to determine best suited overlay based
           * on event target and order of overlay opens.
           */
          class BaseOverlayDispatcher {
            constructor(document) {
              /** Currently attached overlays in the order they were attached. */
              this._attachedOverlays = [];
              this._document = document;
            }
            ngOnDestroy() {
              this.detach();
            }
            /** Add a new overlay to the list of attached overlay refs. */
            add(overlayRef) {
              // Ensure that we don't get the same overlay multiple times.
              this.remove(overlayRef);
              this._attachedOverlays.push(overlayRef);
            }
            /** Remove an overlay from the list of attached overlay refs. */
            remove(overlayRef) {
              const index = this._attachedOverlays.indexOf(overlayRef);
              if (index > -1) {
                this._attachedOverlays.splice(index, 1);
              }
              // Remove the global listener once there are no more overlays.
              if (this._attachedOverlays.length === 0) {
                this.detach();
              }
            }
            static {
              this.ɵfac = function BaseOverlayDispatcher_Factory(t) {
                return new (t || BaseOverlayDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: BaseOverlayDispatcher,
                factory: BaseOverlayDispatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](BaseOverlayDispatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Service for dispatching keyboard events that land on the body to appropriate overlay ref,
           * if any. It maintains a list of attached overlays to determine best suited overlay based
           * on event target and order of overlay opens.
           */
          class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
            constructor(document, /** @breaking-change 14.0.0 _ngZone will be required. */
            _ngZone) {
              super(document);
              this._ngZone = _ngZone;
              /** Keyboard event listener that will be attached to the body. */
              this._keydownListener = event => {
                const overlays = this._attachedOverlays;
                for (let i = overlays.length - 1; i > -1; i--) {
                  // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.
                  // We want to target the most recent overlay, rather than trying to match where the event came
                  // from, because some components might open an overlay, but keep focus on a trigger element
                  // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,
                  // because we don't want overlays that don't handle keyboard events to block the ones below
                  // them that do.
                  if (overlays[i]._keydownEvents.observers.length > 0) {
                    const keydownEvents = overlays[i]._keydownEvents;
                    /** @breaking-change 14.0.0 _ngZone will be required. */
                    if (this._ngZone) {
                      this._ngZone.run(() => keydownEvents.next(event));
                    } else {
                      keydownEvents.next(event);
                    }
                    break;
                  }
                }
              };
            }
            /** Add a new overlay to the list of attached overlay refs. */
            add(overlayRef) {
              super.add(overlayRef);
              // Lazily start dispatcher once first overlay is added
              if (!this._isAttached) {
                /** @breaking-change 14.0.0 _ngZone will be required. */
                if (this._ngZone) {
                  this._ngZone.runOutsideAngular(() => this._document.body.addEventListener('keydown', this._keydownListener));
                } else {
                  this._document.body.addEventListener('keydown', this._keydownListener);
                }
                this._isAttached = true;
              }
            }
            /** Detaches the global keyboard event listener. */
            detach() {
              if (this._isAttached) {
                this._document.body.removeEventListener('keydown', this._keydownListener);
                this._isAttached = false;
              }
            }
            static {
              this.ɵfac = function OverlayKeyboardDispatcher_Factory(t) {
                return new (t || OverlayKeyboardDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: OverlayKeyboardDispatcher,
                factory: OverlayKeyboardDispatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](OverlayKeyboardDispatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Optional
                }]
              }];
            }, null);
          })();
          
          /**
           * Service for dispatching mouse click events that land on the body to appropriate overlay ref,
           * if any. It maintains a list of attached overlays to determine best suited overlay based
           * on event target and order of overlay opens.
           */
          class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
            constructor(document, _platform, /** @breaking-change 14.0.0 _ngZone will be required. */
            _ngZone) {
              super(document);
              this._platform = _platform;
              this._ngZone = _ngZone;
              this._cursorStyleIsSet = false;
              /** Store pointerdown event target to track origin of click. */
              this._pointerDownListener = event => {
                this._pointerDownEventTarget = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._getEventTarget)(event);
              };
              /** Click event listener that will be attached to the body propagate phase. */
              this._clickListener = event => {
                const target = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._getEventTarget)(event);
                // In case of a click event, we want to check the origin of the click
                // (e.g. in case where a user starts a click inside the overlay and
                // releases the click outside of it).
                // This is done by using the event target of the preceding pointerdown event.
                // Every click event caused by a pointer device has a preceding pointerdown
                // event, unless the click was programmatically triggered (e.g. in a unit test).
                const origin = event.type === 'click' && this._pointerDownEventTarget ? this._pointerDownEventTarget : target;
                // Reset the stored pointerdown event target, to avoid having it interfere
                // in subsequent events.
                this._pointerDownEventTarget = null;
                // We copy the array because the original may be modified asynchronously if the
                // outsidePointerEvents listener decides to detach overlays resulting in index errors inside
                // the for loop.
                const overlays = this._attachedOverlays.slice();
                // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.
                // We want to target all overlays for which the click could be considered as outside click.
                // As soon as we reach an overlay for which the click is not outside click we break off
                // the loop.
                for (let i = overlays.length - 1; i > -1; i--) {
                  const overlayRef = overlays[i];
                  if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {
                    continue;
                  }
                  // If it's a click inside the overlay, just break - we should do nothing
                  // If it's an outside click (both origin and target of the click) dispatch the mouse event,
                  // and proceed with the next overlay
                  if (overlayRef.overlayElement.contains(target) || overlayRef.overlayElement.contains(origin)) {
                    break;
                  }
                  const outsidePointerEvents = overlayRef._outsidePointerEvents;
                  /** @breaking-change 14.0.0 _ngZone will be required. */
                  if (this._ngZone) {
                    this._ngZone.run(() => outsidePointerEvents.next(event));
                  } else {
                    outsidePointerEvents.next(event);
                  }
                }
              };
            }
            /** Add a new overlay to the list of attached overlay refs. */
            add(overlayRef) {
              super.add(overlayRef);
              // Safari on iOS does not generate click events for non-interactive
              // elements. However, we want to receive a click for any element outside
              // the overlay. We can force a "clickable" state by setting
              // `cursor: pointer` on the document body. See:
              // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile
              // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
              if (!this._isAttached) {
                const body = this._document.body;
                /** @breaking-change 14.0.0 _ngZone will be required. */
                if (this._ngZone) {
                  this._ngZone.runOutsideAngular(() => this._addEventListeners(body));
                } else {
                  this._addEventListeners(body);
                }
                // click event is not fired on iOS. To make element "clickable" we are
                // setting the cursor to pointer
                if (this._platform.IOS && !this._cursorStyleIsSet) {
                  this._cursorOriginalValue = body.style.cursor;
                  body.style.cursor = 'pointer';
                  this._cursorStyleIsSet = true;
                }
                this._isAttached = true;
              }
            }
            /** Detaches the global keyboard event listener. */
            detach() {
              if (this._isAttached) {
                const body = this._document.body;
                body.removeEventListener('pointerdown', this._pointerDownListener, true);
                body.removeEventListener('click', this._clickListener, true);
                body.removeEventListener('auxclick', this._clickListener, true);
                body.removeEventListener('contextmenu', this._clickListener, true);
                if (this._platform.IOS && this._cursorStyleIsSet) {
                  body.style.cursor = this._cursorOriginalValue;
                  this._cursorStyleIsSet = false;
                }
                this._isAttached = false;
              }
            }
            _addEventListeners(body) {
              body.addEventListener('pointerdown', this._pointerDownListener, true);
              body.addEventListener('click', this._clickListener, true);
              body.addEventListener('auxclick', this._clickListener, true);
              body.addEventListener('contextmenu', this._clickListener, true);
            }
            static {
              this.ɵfac = function OverlayOutsideClickDispatcher_Factory(t) {
                return new (t || OverlayOutsideClickDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: OverlayOutsideClickDispatcher,
                factory: OverlayOutsideClickDispatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](OverlayOutsideClickDispatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Optional
                }]
              }];
            }, null);
          })();
          
          /** Container inside which all overlays will render. */
          class OverlayContainer {
            constructor(document, _platform) {
              this._platform = _platform;
              this._document = document;
            }
            ngOnDestroy() {
              this._containerElement?.remove();
            }
            /**
             * This method returns the overlay container element. It will lazily
             * create the element the first time it is called to facilitate using
             * the container in non-browser environments.
             * @returns the container element
             */
            getContainerElement() {
              if (!this._containerElement) {
                this._createContainer();
              }
              return this._containerElement;
            }
            /**
             * Create the overlay container element, which is simply a div
             * with the 'cdk-overlay-container' class on the document body.
             */
            _createContainer() {
              const containerClass = 'cdk-overlay-container';
              // TODO(crisbeto): remove the testing check once we have an overlay testing
              // module or Angular starts tearing down the testing `NgModule`. See:
              // https://github.com/angular/angular/issues/18831
              if (this._platform.isBrowser || (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._isTestEnvironment)()) {
                const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform="server"], ` + `.${containerClass}[platform="test"]`);
                // Remove any old containers from the opposite platform.
                // This can happen when transitioning from the server to the client.
                for (let i = 0; i < oppositePlatformContainers.length; i++) {
                  oppositePlatformContainers[i].remove();
                }
              }
              const container = this._document.createElement('div');
              container.classList.add(containerClass);
              // A long time ago we kept adding new overlay containers whenever a new app was instantiated,
              // but at some point we added logic which clears the duplicate ones in order to avoid leaks.
              // The new logic was a little too aggressive since it was breaking some legitimate use cases.
              // To mitigate the problem we made it so that only containers from a different platform are
              // cleared, but the side-effect was that people started depending on the overly-aggressive
              // logic to clean up their tests for them. Until we can introduce an overlay-specific testing
              // module which does the cleanup, we try to detect that we're in a test environment and we
              // always clear the container. See #17006.
              // TODO(crisbeto): remove the test environment check once we have an overlay testing module.
              if ((0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._isTestEnvironment)()) {
                container.setAttribute('platform', 'test');
              } else if (!this._platform.isBrowser) {
                container.setAttribute('platform', 'server');
              }
              this._document.body.appendChild(container);
              this._containerElement = container;
            }
            static {
              this.ɵfac = function OverlayContainer_Factory(t) {
                return new (t || OverlayContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: OverlayContainer,
                factory: OverlayContainer.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](OverlayContainer, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }];
            }, null);
          })();
          
          /**
           * Reference to an overlay that has been created with the Overlay service.
           * Used to manipulate or dispose of said overlay.
           */
          class OverlayRef {
            constructor(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher, _animationsDisabled = false) {
              this._portalOutlet = _portalOutlet;
              this._host = _host;
              this._pane = _pane;
              this._config = _config;
              this._ngZone = _ngZone;
              this._keyboardDispatcher = _keyboardDispatcher;
              this._document = _document;
              this._location = _location;
              this._outsideClickDispatcher = _outsideClickDispatcher;
              this._animationsDisabled = _animationsDisabled;
              this._backdropElement = null;
              this._backdropClick = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              this._attachments = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              this._detachments = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              this._locationChanges = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              this._backdropClickHandler = event => this._backdropClick.next(event);
              this._backdropTransitionendHandler = event => {
                this._disposeBackdrop(event.target);
              };
              /** Stream of keydown events dispatched to this overlay. */
              this._keydownEvents = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              /** Stream of mouse outside events dispatched to this overlay. */
              this._outsidePointerEvents = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              if (_config.scrollStrategy) {
                this._scrollStrategy = _config.scrollStrategy;
                this._scrollStrategy.attach(this);
              }
              this._positionStrategy = _config.positionStrategy;
            }
            /** The overlay's HTML element */
            get overlayElement() {
              return this._pane;
            }
            /** The overlay's backdrop HTML element. */
            get backdropElement() {
              return this._backdropElement;
            }
            /**
             * Wrapper around the panel element. Can be used for advanced
             * positioning where a wrapper with specific styling is
             * required around the overlay pane.
             */
            get hostElement() {
              return this._host;
            }
            /**
             * Attaches content, given via a Portal, to the overlay.
             * If the overlay is configured to have a backdrop, it will be created.
             *
             * @param portal Portal instance to which to attach the overlay.
             * @returns The portal attachment result.
             */
            attach(portal) {
              // Insert the host into the DOM before attaching the portal, otherwise
              // the animations module will skip animations on repeat attachments.
              if (!this._host.parentElement && this._previousHostParent) {
                this._previousHostParent.appendChild(this._host);
              }
              const attachResult = this._portalOutlet.attach(portal);
              if (this._positionStrategy) {
                this._positionStrategy.attach(this);
              }
              this._updateStackingOrder();
              this._updateElementSize();
              this._updateElementDirection();
              if (this._scrollStrategy) {
                this._scrollStrategy.enable();
              }
              // Update the position once the zone is stable so that the overlay will be fully rendered
              // before attempting to position it, as the position may depend on the size of the rendered
              // content.
              this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.take)(1)).subscribe(() => {
                // The overlay could've been detached before the zone has stabilized.
                if (this.hasAttached()) {
                  this.updatePosition();
                }
              });
              // Enable pointer events for the overlay pane element.
              this._togglePointerEvents(true);
              if (this._config.hasBackdrop) {
                this._attachBackdrop();
              }
              if (this._config.panelClass) {
                this._toggleClasses(this._pane, this._config.panelClass, true);
              }
              // Only emit the `attachments` event once all other setup is done.
              this._attachments.next();
              // Track this overlay by the keyboard dispatcher
              this._keyboardDispatcher.add(this);
              if (this._config.disposeOnNavigation) {
                this._locationChanges = this._location.subscribe(() => this.dispose());
              }
              this._outsideClickDispatcher.add(this);
              // TODO(crisbeto): the null check is here, because the portal outlet returns `any`.
              // We should be guaranteed for the result to be `ComponentRef | EmbeddedViewRef`, but
              // `instanceof EmbeddedViewRef` doesn't appear to work at the moment.
              if (typeof attachResult?.onDestroy === 'function') {
                // In most cases we control the portal and we know when it is being detached so that
                // we can finish the disposal process. The exception is if the user passes in a custom
                // `ViewContainerRef` that isn't destroyed through the overlay API. Note that we use
                // `detach` here instead of `dispose`, because we don't know if the user intends to
                // reattach the overlay at a later point. It also has the advantage of waiting for animations.
                attachResult.onDestroy(() => {
                  if (this.hasAttached()) {
                    // We have to delay the `detach` call, because detaching immediately prevents
                    // other destroy hooks from running. This is likely a framework bug similar to
                    // https://github.com/angular/angular/issues/46119
                    this._ngZone.runOutsideAngular(() => Promise.resolve().then(() => this.detach()));
                  }
                });
              }
              return attachResult;
            }
            /**
             * Detaches an overlay from a portal.
             * @returns The portal detachment result.
             */
            detach() {
              if (!this.hasAttached()) {
                return;
              }
              this.detachBackdrop();
              // When the overlay is detached, the pane element should disable pointer events.
              // This is necessary because otherwise the pane element will cover the page and disable
              // pointer events therefore. Depends on the position strategy and the applied pane boundaries.
              this._togglePointerEvents(false);
              if (this._positionStrategy && this._positionStrategy.detach) {
                this._positionStrategy.detach();
              }
              if (this._scrollStrategy) {
                this._scrollStrategy.disable();
              }
              const detachmentResult = this._portalOutlet.detach();
              // Only emit after everything is detached.
              this._detachments.next();
              // Remove this overlay from keyboard dispatcher tracking.
              this._keyboardDispatcher.remove(this);
              // Keeping the host element in the DOM can cause scroll jank, because it still gets
              // rendered, even though it's transparent and unclickable which is why we remove it.
              this._detachContentWhenStable();
              this._locationChanges.unsubscribe();
              this._outsideClickDispatcher.remove(this);
              return detachmentResult;
            }
            /** Cleans up the overlay from the DOM. */
            dispose() {
              const isAttached = this.hasAttached();
              if (this._positionStrategy) {
                this._positionStrategy.dispose();
              }
              this._disposeScrollStrategy();
              this._disposeBackdrop(this._backdropElement);
              this._locationChanges.unsubscribe();
              this._keyboardDispatcher.remove(this);
              this._portalOutlet.dispose();
              this._attachments.complete();
              this._backdropClick.complete();
              this._keydownEvents.complete();
              this._outsidePointerEvents.complete();
              this._outsideClickDispatcher.remove(this);
              this._host?.remove();
              this._previousHostParent = this._pane = this._host = null;
              if (isAttached) {
                this._detachments.next();
              }
              this._detachments.complete();
            }
            /** Whether the overlay has attached content. */
            hasAttached() {
              return this._portalOutlet.hasAttached();
            }
            /** Gets an observable that emits when the backdrop has been clicked. */
            backdropClick() {
              return this._backdropClick;
            }
            /** Gets an observable that emits when the overlay has been attached. */
            attachments() {
              return this._attachments;
            }
            /** Gets an observable that emits when the overlay has been detached. */
            detachments() {
              return this._detachments;
            }
            /** Gets an observable of keydown events targeted to this overlay. */
            keydownEvents() {
              return this._keydownEvents;
            }
            /** Gets an observable of pointer events targeted outside this overlay. */
            outsidePointerEvents() {
              return this._outsidePointerEvents;
            }
            /** Gets the current overlay configuration, which is immutable. */
            getConfig() {
              return this._config;
            }
            /** Updates the position of the overlay based on the position strategy. */
            updatePosition() {
              if (this._positionStrategy) {
                this._positionStrategy.apply();
              }
            }
            /** Switches to a new position strategy and updates the overlay position. */
            updatePositionStrategy(strategy) {
              if (strategy === this._positionStrategy) {
                return;
              }
              if (this._positionStrategy) {
                this._positionStrategy.dispose();
              }
              this._positionStrategy = strategy;
              if (this.hasAttached()) {
                strategy.attach(this);
                this.updatePosition();
              }
            }
            /** Update the size properties of the overlay. */
            updateSize(sizeConfig) {
              this._config = {
                ...this._config,
                ...sizeConfig
              };
              this._updateElementSize();
            }
            /** Sets the LTR/RTL direction for the overlay. */
            setDirection(dir) {
              this._config = {
                ...this._config,
                direction: dir
              };
              this._updateElementDirection();
            }
            /** Add a CSS class or an array of classes to the overlay pane. */
            addPanelClass(classes) {
              if (this._pane) {
                this._toggleClasses(this._pane, classes, true);
              }
            }
            /** Remove a CSS class or an array of classes from the overlay pane. */
            removePanelClass(classes) {
              if (this._pane) {
                this._toggleClasses(this._pane, classes, false);
              }
            }
            /**
             * Returns the layout direction of the overlay panel.
             */
            getDirection() {
              const direction = this._config.direction;
              if (!direction) {
                return 'ltr';
              }
              return typeof direction === 'string' ? direction : direction.value;
            }
            /** Switches to a new scroll strategy. */
            updateScrollStrategy(strategy) {
              if (strategy === this._scrollStrategy) {
                return;
              }
              this._disposeScrollStrategy();
              this._scrollStrategy = strategy;
              if (this.hasAttached()) {
                strategy.attach(this);
                strategy.enable();
              }
            }
            /** Updates the text direction of the overlay panel. */
            _updateElementDirection() {
              this._host.setAttribute('dir', this.getDirection());
            }
            /** Updates the size of the overlay element based on the overlay config. */
            _updateElementSize() {
              if (!this._pane) {
                return;
              }
              const style = this._pane.style;
              style.width = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.width);
              style.height = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.height);
              style.minWidth = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.minWidth);
              style.minHeight = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.minHeight);
              style.maxWidth = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.maxWidth);
              style.maxHeight = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(this._config.maxHeight);
            }
            /** Toggles the pointer events for the overlay pane element. */
            _togglePointerEvents(enablePointer) {
              this._pane.style.pointerEvents = enablePointer ? '' : 'none';
            }
            /** Attaches a backdrop for this overlay. */
            _attachBackdrop() {
              const showingClass = 'cdk-overlay-backdrop-showing';
              this._backdropElement = this._document.createElement('div');
              this._backdropElement.classList.add('cdk-overlay-backdrop');
              if (this._animationsDisabled) {
                this._backdropElement.classList.add('cdk-overlay-backdrop-noop-animation');
              }
              if (this._config.backdropClass) {
                this._toggleClasses(this._backdropElement, this._config.backdropClass, true);
              }
              // Insert the backdrop before the pane in the DOM order,
              // in order to handle stacked overlays properly.
              this._host.parentElement.insertBefore(this._backdropElement, this._host);
              // Forward backdrop clicks such that the consumer of the overlay can perform whatever
              // action desired when such a click occurs (usually closing the overlay).
              this._backdropElement.addEventListener('click', this._backdropClickHandler);
              // Add class to fade-in the backdrop after one frame.
              if (!this._animationsDisabled && typeof requestAnimationFrame !== 'undefined') {
                this._ngZone.runOutsideAngular(() => {
                  requestAnimationFrame(() => {
                    if (this._backdropElement) {
                      this._backdropElement.classList.add(showingClass);
                    }
                  });
                });
              } else {
                this._backdropElement.classList.add(showingClass);
              }
            }
            /**
             * Updates the stacking order of the element, moving it to the top if necessary.
             * This is required in cases where one overlay was detached, while another one,
             * that should be behind it, was destroyed. The next time both of them are opened,
             * the stacking will be wrong, because the detached element's pane will still be
             * in its original DOM position.
             */
            _updateStackingOrder() {
              if (this._host.nextSibling) {
                this._host.parentNode.appendChild(this._host);
              }
            }
            /** Detaches the backdrop (if any) associated with the overlay. */
            detachBackdrop() {
              const backdropToDetach = this._backdropElement;
              if (!backdropToDetach) {
                return;
              }
              if (this._animationsDisabled) {
                this._disposeBackdrop(backdropToDetach);
                return;
              }
              backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');
              this._ngZone.runOutsideAngular(() => {
                backdropToDetach.addEventListener('transitionend', this._backdropTransitionendHandler);
              });
              // If the backdrop doesn't have a transition, the `transitionend` event won't fire.
              // In this case we make it unclickable and we try to remove it after a delay.
              backdropToDetach.style.pointerEvents = 'none';
              // Run this outside the Angular zone because there's nothing that Angular cares about.
              // If it were to run inside the Angular zone, every test that used Overlay would have to be
              // either async or fakeAsync.
              this._backdropTimeout = this._ngZone.runOutsideAngular(() => setTimeout(() => {
                this._disposeBackdrop(backdropToDetach);
              }, 500));
            }
            /** Toggles a single CSS class or an array of classes on an element. */
            _toggleClasses(element, cssClasses, isAdd) {
              const classes = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceArray)(cssClasses || []).filter(c => !!c);
              if (classes.length) {
                isAdd ? element.classList.add(...classes) : element.classList.remove(...classes);
              }
            }
            /** Detaches the overlay content next time the zone stabilizes. */
            _detachContentWhenStable() {
              // Normally we wouldn't have to explicitly run this outside the `NgZone`, however
              // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will
              // be patched to run inside the zone, which will throw us into an infinite loop.
              this._ngZone.runOutsideAngular(() => {
                // We can't remove the host here immediately, because the overlay pane's content
                // might still be animating. This stream helps us avoid interrupting the animation
                // by waiting for the pane to become empty.
                const subscription = this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.takeUntil)((0,rxjs__WEBPACK_IMPORTED_MODULE_10__.merge)(this._attachments, this._detachments))).subscribe(() => {
                  // Needs a couple of checks for the pane and host, because
                  // they may have been removed by the time the zone stabilizes.
                  if (!this._pane || !this._host || this._pane.children.length === 0) {
                    if (this._pane && this._config.panelClass) {
                      this._toggleClasses(this._pane, this._config.panelClass, false);
                    }
                    if (this._host && this._host.parentElement) {
                      this._previousHostParent = this._host.parentElement;
                      this._host.remove();
                    }
                    subscription.unsubscribe();
                  }
                });
              });
            }
            /** Disposes of a scroll strategy. */
            _disposeScrollStrategy() {
              const scrollStrategy = this._scrollStrategy;
              if (scrollStrategy) {
                scrollStrategy.disable();
                if (scrollStrategy.detach) {
                  scrollStrategy.detach();
                }
              }
            }
            /** Removes a backdrop element from the DOM. */
            _disposeBackdrop(backdrop) {
              if (backdrop) {
                backdrop.removeEventListener('click', this._backdropClickHandler);
                backdrop.removeEventListener('transitionend', this._backdropTransitionendHandler);
                backdrop.remove();
                // It is possible that a new portal has been attached to this overlay since we started
                // removing the backdrop. If that is the case, only clear the backdrop reference if it
                // is still the same instance that we started to remove.
                if (this._backdropElement === backdrop) {
                  this._backdropElement = null;
                }
              }
              if (this._backdropTimeout) {
                clearTimeout(this._backdropTimeout);
                this._backdropTimeout = undefined;
              }
            }
          }
          
          // TODO: refactor clipping detection into a separate thing (part of scrolling module)
          // TODO: doesn't handle both flexible width and height when it has to scroll along both axis.
          /** Class to be added to the overlay bounding box. */
          const boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';
          /** Regex used to split a string on its CSS units. */
          const cssUnitPattern = /([A-Za-z%]+)$/;
          /**
           * A strategy for positioning overlays. Using this strategy, an overlay is given an
           * implicit position relative some origin element. The relative position is defined in terms of
           * a point on the origin element that is connected to a point on the overlay element. For example,
           * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
           * of the overlay.
           */
          class FlexibleConnectedPositionStrategy {
            /** Ordered list of preferred positions, from most to least desirable. */
            get positions() {
              return this._preferredPositions;
            }
            constructor(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {
              this._viewportRuler = _viewportRuler;
              this._document = _document;
              this._platform = _platform;
              this._overlayContainer = _overlayContainer;
              /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */
              this._lastBoundingBoxSize = {
                width: 0,
                height: 0
              };
              /** Whether the overlay was pushed in a previous positioning. */
              this._isPushed = false;
              /** Whether the overlay can be pushed on-screen on the initial open. */
              this._canPush = true;
              /** Whether the overlay can grow via flexible width/height after the initial open. */
              this._growAfterOpen = false;
              /** Whether the overlay's width and height can be constrained to fit within the viewport. */
              this._hasFlexibleDimensions = true;
              /** Whether the overlay position is locked. */
              this._positionLocked = false;
              /** Amount of space that must be maintained between the overlay and the edge of the viewport. */
              this._viewportMargin = 0;
              /** The Scrollable containers used to check scrollable view properties on position change. */
              this._scrollables = [];
              /** Ordered list of preferred positions, from most to least desirable. */
              this._preferredPositions = [];
              /** Subject that emits whenever the position changes. */
              this._positionChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__.Subject();
              /** Subscription to viewport size changes. */
              this._resizeSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              /** Default offset for the overlay along the x axis. */
              this._offsetX = 0;
              /** Default offset for the overlay along the y axis. */
              this._offsetY = 0;
              /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */
              this._appliedPanelClasses = [];
              /** Observable sequence of position changes. */
              this.positionChanges = this._positionChanges;
              this.setOrigin(connectedTo);
            }
            /** Attaches this position strategy to an overlay. */
            attach(overlayRef) {
              if (this._overlayRef && overlayRef !== this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error('This position strategy is already attached to an overlay');
              }
              this._validatePositions();
              overlayRef.hostElement.classList.add(boundingBoxClass);
              this._overlayRef = overlayRef;
              this._boundingBox = overlayRef.hostElement;
              this._pane = overlayRef.overlayElement;
              this._isDisposed = false;
              this._isInitialRender = true;
              this._lastPosition = null;
              this._resizeSubscription.unsubscribe();
              this._resizeSubscription = this._viewportRuler.change().subscribe(() => {
                // When the window is resized, we want to trigger the next reposition as if it
                // was an initial render, in order for the strategy to pick a new optimal position,
                // otherwise position locking will cause it to stay at the old one.
                this._isInitialRender = true;
                this.apply();
              });
            }
            /**
             * Updates the position of the overlay element, using whichever preferred position relative
             * to the origin best fits on-screen.
             *
             * The selection of a position goes as follows:
             *  - If any positions fit completely within the viewport as-is,
             *      choose the first position that does so.
             *  - If flexible dimensions are enabled and at least one satisfies the given minimum width/height,
             *      choose the position with the greatest available size modified by the positions' weight.
             *  - If pushing is enabled, take the position that went off-screen the least and push it
             *      on-screen.
             *  - If none of the previous criteria were met, use the position that goes off-screen the least.
             * @docs-private
             */
            apply() {
              // We shouldn't do anything if the strategy was disposed or we're on the server.
              if (this._isDisposed || !this._platform.isBrowser) {
                return;
              }
              // If the position has been applied already (e.g. when the overlay was opened) and the
              // consumer opted into locking in the position, re-use the old position, in order to
              // prevent the overlay from jumping around.
              if (!this._isInitialRender && this._positionLocked && this._lastPosition) {
                this.reapplyLastPosition();
                return;
              }
              this._clearPanelClasses();
              this._resetOverlayElementStyles();
              this._resetBoundingBoxStyles();
              // We need the bounding rects for the origin, the overlay and the container to determine how to position
              // the overlay relative to the origin.
              // We use the viewport rect to determine whether a position would go off-screen.
              this._viewportRect = this._getNarrowedViewportRect();
              this._originRect = this._getOriginRect();
              this._overlayRect = this._pane.getBoundingClientRect();
              this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();
              const originRect = this._originRect;
              const overlayRect = this._overlayRect;
              const viewportRect = this._viewportRect;
              const containerRect = this._containerRect;
              // Positions where the overlay will fit with flexible dimensions.
              const flexibleFits = [];
              // Fallback if none of the preferred positions fit within the viewport.
              let fallback;
              // Go through each of the preferred positions looking for a good fit.
              // If a good fit is found, it will be applied immediately.
              for (let pos of this._preferredPositions) {
                // Get the exact (x, y) coordinate for the point-of-origin on the origin element.
                let originPoint = this._getOriginPoint(originRect, containerRect, pos);
                // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the
                // overlay in this position. We use the top-left corner for calculations and later translate
                // this into an appropriate (top, left, bottom, right) style.
                let overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos);
                // Calculate how well the overlay would fit into the viewport with this point.
                let overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos);
                // If the overlay, without any further work, fits into the viewport, use this position.
                if (overlayFit.isCompletelyWithinViewport) {
                  this._isPushed = false;
                  this._applyPosition(pos, originPoint);
                  return;
                }
                // If the overlay has flexible dimensions, we can use this position
                // so long as there's enough space for the minimum dimensions.
                if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {
                  // Save positions where the overlay will fit with flexible dimensions. We will use these
                  // if none of the positions fit *without* flexible dimensions.
                  flexibleFits.push({
                    position: pos,
                    origin: originPoint,
                    overlayRect,
                    boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)
                  });
                  continue;
                }
                // If the current preferred position does not fit on the screen, remember the position
                // if it has more visible area on-screen than we've seen and move onto the next preferred
                // position.
                if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {
                  fallback = {
                    overlayFit,
                    overlayPoint,
                    originPoint,
                    position: pos,
                    overlayRect
                  };
                }
              }
              // If there are any positions where the overlay would fit with flexible dimensions, choose the
              // one that has the greatest area available modified by the position's weight
              if (flexibleFits.length) {
                let bestFit = null;
                let bestScore = -1;
                for (const fit of flexibleFits) {
                  const score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);
                  if (score > bestScore) {
                    bestScore = score;
                    bestFit = fit;
                  }
                }
                this._isPushed = false;
                this._applyPosition(bestFit.position, bestFit.origin);
                return;
              }
              // When none of the preferred positions fit within the viewport, take the position
              // that went off-screen the least and attempt to push it on-screen.
              if (this._canPush) {
                // TODO(jelbourn): after pushing, the opening "direction" of the overlay might not make sense.
                this._isPushed = true;
                this._applyPosition(fallback.position, fallback.originPoint);
                return;
              }
              // All options for getting the overlay within the viewport have been exhausted, so go with the
              // position that went off-screen the least.
              this._applyPosition(fallback.position, fallback.originPoint);
            }
            detach() {
              this._clearPanelClasses();
              this._lastPosition = null;
              this._previousPushAmount = null;
              this._resizeSubscription.unsubscribe();
            }
            /** Cleanup after the element gets destroyed. */
            dispose() {
              if (this._isDisposed) {
                return;
              }
              // We can't use `_resetBoundingBoxStyles` here, because it resets
              // some properties to zero, rather than removing them.
              if (this._boundingBox) {
                extendStyles(this._boundingBox.style, {
                  top: '',
                  left: '',
                  right: '',
                  bottom: '',
                  height: '',
                  width: '',
                  alignItems: '',
                  justifyContent: ''
                });
              }
              if (this._pane) {
                this._resetOverlayElementStyles();
              }
              if (this._overlayRef) {
                this._overlayRef.hostElement.classList.remove(boundingBoxClass);
              }
              this.detach();
              this._positionChanges.complete();
              this._overlayRef = this._boundingBox = null;
              this._isDisposed = true;
            }
            /**
             * This re-aligns the overlay element with the trigger in its last calculated position,
             * even if a position higher in the "preferred positions" list would now fit. This
             * allows one to re-align the panel without changing the orientation of the panel.
             */
            reapplyLastPosition() {
              if (this._isDisposed || !this._platform.isBrowser) {
                return;
              }
              const lastPosition = this._lastPosition;
              if (lastPosition) {
                this._originRect = this._getOriginRect();
                this._overlayRect = this._pane.getBoundingClientRect();
                this._viewportRect = this._getNarrowedViewportRect();
                this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();
                const originPoint = this._getOriginPoint(this._originRect, this._containerRect, lastPosition);
                this._applyPosition(lastPosition, originPoint);
              } else {
                this.apply();
              }
            }
            /**
             * Sets the list of Scrollable containers that host the origin element so that
             * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
             * Scrollable must be an ancestor element of the strategy's origin element.
             */
            withScrollableContainers(scrollables) {
              this._scrollables = scrollables;
              return this;
            }
            /**
             * Adds new preferred positions.
             * @param positions List of positions options for this overlay.
             */
            withPositions(positions) {
              this._preferredPositions = positions;
              // If the last calculated position object isn't part of the positions anymore, clear
              // it in order to avoid it being picked up if the consumer tries to re-apply.
              if (positions.indexOf(this._lastPosition) === -1) {
                this._lastPosition = null;
              }
              this._validatePositions();
              return this;
            }
            /**
             * Sets a minimum distance the overlay may be positioned to the edge of the viewport.
             * @param margin Required margin between the overlay and the viewport edge in pixels.
             */
            withViewportMargin(margin) {
              this._viewportMargin = margin;
              return this;
            }
            /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */
            withFlexibleDimensions(flexibleDimensions = true) {
              this._hasFlexibleDimensions = flexibleDimensions;
              return this;
            }
            /** Sets whether the overlay can grow after the initial open via flexible width/height. */
            withGrowAfterOpen(growAfterOpen = true) {
              this._growAfterOpen = growAfterOpen;
              return this;
            }
            /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */
            withPush(canPush = true) {
              this._canPush = canPush;
              return this;
            }
            /**
             * Sets whether the overlay's position should be locked in after it is positioned
             * initially. When an overlay is locked in, it won't attempt to reposition itself
             * when the position is re-applied (e.g. when the user scrolls away).
             * @param isLocked Whether the overlay should locked in.
             */
            withLockedPosition(isLocked = true) {
              this._positionLocked = isLocked;
              return this;
            }
            /**
             * Sets the origin, relative to which to position the overlay.
             * Using an element origin is useful for building components that need to be positioned
             * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be
             * used for cases like contextual menus which open relative to the user's pointer.
             * @param origin Reference to the new origin.
             */
            setOrigin(origin) {
              this._origin = origin;
              return this;
            }
            /**
             * Sets the default offset for the overlay's connection point on the x-axis.
             * @param offset New offset in the X axis.
             */
            withDefaultOffsetX(offset) {
              this._offsetX = offset;
              return this;
            }
            /**
             * Sets the default offset for the overlay's connection point on the y-axis.
             * @param offset New offset in the Y axis.
             */
            withDefaultOffsetY(offset) {
              this._offsetY = offset;
              return this;
            }
            /**
             * Configures that the position strategy should set a `transform-origin` on some elements
             * inside the overlay, depending on the current position that is being applied. This is
             * useful for the cases where the origin of an animation can change depending on the
             * alignment of the overlay.
             * @param selector CSS selector that will be used to find the target
             *    elements onto which to set the transform origin.
             */
            withTransformOriginOn(selector) {
              this._transformOriginSelector = selector;
              return this;
            }
            /**
             * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
             */
            _getOriginPoint(originRect, containerRect, pos) {
              let x;
              if (pos.originX == 'center') {
                // Note: when centering we should always use the `left`
                // offset, otherwise the position will be wrong in RTL.
                x = originRect.left + originRect.width / 2;
              } else {
                const startX = this._isRtl() ? originRect.right : originRect.left;
                const endX = this._isRtl() ? originRect.left : originRect.right;
                x = pos.originX == 'start' ? startX : endX;
              }
              // When zooming in Safari the container rectangle contains negative values for the position
              // and we need to re-add them to the calculated coordinates.
              if (containerRect.left < 0) {
                x -= containerRect.left;
              }
              let y;
              if (pos.originY == 'center') {
                y = originRect.top + originRect.height / 2;
              } else {
                y = pos.originY == 'top' ? originRect.top : originRect.bottom;
              }
              // Normally the containerRect's top value would be zero, however when the overlay is attached to an input
              // (e.g. in an autocomplete), mobile browsers will shift everything in order to put the input in the middle
              // of the screen and to make space for the virtual keyboard. We need to account for this offset,
              // otherwise our positioning will be thrown off.
              // Additionally, when zooming in Safari this fixes the vertical position.
              if (containerRect.top < 0) {
                y -= containerRect.top;
              }
              return {
                x,
                y
              };
            }
            /**
             * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and
             * origin point to which the overlay should be connected.
             */
            _getOverlayPoint(originPoint, overlayRect, pos) {
              // Calculate the (overlayStartX, overlayStartY), the start of the
              // potential overlay position relative to the origin point.
              let overlayStartX;
              if (pos.overlayX == 'center') {
                overlayStartX = -overlayRect.width / 2;
              } else if (pos.overlayX === 'start') {
                overlayStartX = this._isRtl() ? -overlayRect.width : 0;
              } else {
                overlayStartX = this._isRtl() ? 0 : -overlayRect.width;
              }
              let overlayStartY;
              if (pos.overlayY == 'center') {
                overlayStartY = -overlayRect.height / 2;
              } else {
                overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;
              }
              // The (x, y) coordinates of the overlay.
              return {
                x: originPoint.x + overlayStartX,
                y: originPoint.y + overlayStartY
              };
            }
            /** Gets how well an overlay at the given point will fit within the viewport. */
            _getOverlayFit(point, rawOverlayRect, viewport, position) {
              // Round the overlay rect when comparing against the
              // viewport, because the viewport is always rounded.
              const overlay = getRoundedBoundingClientRect(rawOverlayRect);
              let {
                x,
                y
              } = point;
              let offsetX = this._getOffset(position, 'x');
              let offsetY = this._getOffset(position, 'y');
              // Account for the offsets since they could push the overlay out of the viewport.
              if (offsetX) {
                x += offsetX;
              }
              if (offsetY) {
                y += offsetY;
              }
              // How much the overlay would overflow at this position, on each side.
              let leftOverflow = 0 - x;
              let rightOverflow = x + overlay.width - viewport.width;
              let topOverflow = 0 - y;
              let bottomOverflow = y + overlay.height - viewport.height;
              // Visible parts of the element on each axis.
              let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);
              let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);
              let visibleArea = visibleWidth * visibleHeight;
              return {
                visibleArea,
                isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,
                fitsInViewportVertically: visibleHeight === overlay.height,
                fitsInViewportHorizontally: visibleWidth == overlay.width
              };
            }
            /**
             * Whether the overlay can fit within the viewport when it may resize either its width or height.
             * @param fit How well the overlay fits in the viewport at some position.
             * @param point The (x, y) coordinates of the overlay at some position.
             * @param viewport The geometry of the viewport.
             */
            _canFitWithFlexibleDimensions(fit, point, viewport) {
              if (this._hasFlexibleDimensions) {
                const availableHeight = viewport.bottom - point.y;
                const availableWidth = viewport.right - point.x;
                const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);
                const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);
                const verticalFit = fit.fitsInViewportVertically || minHeight != null && minHeight <= availableHeight;
                const horizontalFit = fit.fitsInViewportHorizontally || minWidth != null && minWidth <= availableWidth;
                return verticalFit && horizontalFit;
              }
              return false;
            }
            /**
             * Gets the point at which the overlay can be "pushed" on-screen. If the overlay is larger than
             * the viewport, the top-left corner will be pushed on-screen (with overflow occurring on the
             * right and bottom).
             *
             * @param start Starting point from which the overlay is pushed.
             * @param rawOverlayRect Dimensions of the overlay.
             * @param scrollPosition Current viewport scroll position.
             * @returns The point at which to position the overlay after pushing. This is effectively a new
             *     originPoint.
             */
            _pushOverlayOnScreen(start, rawOverlayRect, scrollPosition) {
              // If the position is locked and we've pushed the overlay already, reuse the previous push
              // amount, rather than pushing it again. If we were to continue pushing, the element would
              // remain in the viewport, which goes against the expectations when position locking is enabled.
              if (this._previousPushAmount && this._positionLocked) {
                return {
                  x: start.x + this._previousPushAmount.x,
                  y: start.y + this._previousPushAmount.y
                };
              }
              // Round the overlay rect when comparing against the
              // viewport, because the viewport is always rounded.
              const overlay = getRoundedBoundingClientRect(rawOverlayRect);
              const viewport = this._viewportRect;
              // Determine how much the overlay goes outside the viewport on each
              // side, which we'll use to decide which direction to push it.
              const overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);
              const overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);
              const overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);
              const overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0);
              // Amount by which to push the overlay in each axis such that it remains on-screen.
              let pushX = 0;
              let pushY = 0;
              // If the overlay fits completely within the bounds of the viewport, push it from whichever
              // direction is goes off-screen. Otherwise, push the top-left corner such that its in the
              // viewport and allow for the trailing end of the overlay to go out of bounds.
              if (overlay.width <= viewport.width) {
                pushX = overflowLeft || -overflowRight;
              } else {
                pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;
              }
              if (overlay.height <= viewport.height) {
                pushY = overflowTop || -overflowBottom;
              } else {
                pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;
              }
              this._previousPushAmount = {
                x: pushX,
                y: pushY
              };
              return {
                x: start.x + pushX,
                y: start.y + pushY
              };
            }
            /**
             * Applies a computed position to the overlay and emits a position change.
             * @param position The position preference
             * @param originPoint The point on the origin element where the overlay is connected.
             */
            _applyPosition(position, originPoint) {
              this._setTransformOrigin(position);
              this._setOverlayElementStyles(originPoint, position);
              this._setBoundingBoxStyles(originPoint, position);
              if (position.panelClass) {
                this._addPanelClasses(position.panelClass);
              }
              // Save the last connected position in case the position needs to be re-calculated.
              this._lastPosition = position;
              // Notify that the position has been changed along with its change properties.
              // We only emit if we've got any subscriptions, because the scroll visibility
              // calculations can be somewhat expensive.
              if (this._positionChanges.observers.length) {
                const scrollableViewProperties = this._getScrollVisibility();
                const changeEvent = new ConnectedOverlayPositionChange(position, scrollableViewProperties);
                this._positionChanges.next(changeEvent);
              }
              this._isInitialRender = false;
            }
            /** Sets the transform origin based on the configured selector and the passed-in position.  */
            _setTransformOrigin(position) {
              if (!this._transformOriginSelector) {
                return;
              }
              const elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);
              let xOrigin;
              let yOrigin = position.overlayY;
              if (position.overlayX === 'center') {
                xOrigin = 'center';
              } else if (this._isRtl()) {
                xOrigin = position.overlayX === 'start' ? 'right' : 'left';
              } else {
                xOrigin = position.overlayX === 'start' ? 'left' : 'right';
              }
              for (let i = 0; i < elements.length; i++) {
                elements[i].style.transformOrigin = `${xOrigin} ${yOrigin}`;
              }
            }
            /**
             * Gets the position and size of the overlay's sizing container.
             *
             * This method does no measuring and applies no styles so that we can cheaply compute the
             * bounds for all positions and choose the best fit based on these results.
             */
            _calculateBoundingBoxRect(origin, position) {
              const viewport = this._viewportRect;
              const isRtl = this._isRtl();
              let height, top, bottom;
              if (position.overlayY === 'top') {
                // Overlay is opening "downward" and thus is bound by the bottom viewport edge.
                top = origin.y;
                height = viewport.height - top + this._viewportMargin;
              } else if (position.overlayY === 'bottom') {
                // Overlay is opening "upward" and thus is bound by the top viewport edge. We need to add
                // the viewport margin back in, because the viewport rect is narrowed down to remove the
                // margin, whereas the `origin` position is calculated based on its `ClientRect`.
                bottom = viewport.height - origin.y + this._viewportMargin * 2;
                height = viewport.height - bottom + this._viewportMargin;
              } else {
                // If neither top nor bottom, it means that the overlay is vertically centered on the
                // origin point. Note that we want the position relative to the viewport, rather than
                // the page, which is why we don't use something like `viewport.bottom - origin.y` and
                // `origin.y - viewport.top`.
                const smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);
                const previousHeight = this._lastBoundingBoxSize.height;
                height = smallestDistanceToViewportEdge * 2;
                top = origin.y - smallestDistanceToViewportEdge;
                if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {
                  top = origin.y - previousHeight / 2;
                }
              }
              // The overlay is opening 'right-ward' (the content flows to the right).
              const isBoundedByRightViewportEdge = position.overlayX === 'start' && !isRtl || position.overlayX === 'end' && isRtl;
              // The overlay is opening 'left-ward' (the content flows to the left).
              const isBoundedByLeftViewportEdge = position.overlayX === 'end' && !isRtl || position.overlayX === 'start' && isRtl;
              let width, left, right;
              if (isBoundedByLeftViewportEdge) {
                right = viewport.width - origin.x + this._viewportMargin;
                width = origin.x - this._viewportMargin;
              } else if (isBoundedByRightViewportEdge) {
                left = origin.x;
                width = viewport.right - origin.x;
              } else {
                // If neither start nor end, it means that the overlay is horizontally centered on the
                // origin point. Note that we want the position relative to the viewport, rather than
                // the page, which is why we don't use something like `viewport.right - origin.x` and
                // `origin.x - viewport.left`.
                const smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);
                const previousWidth = this._lastBoundingBoxSize.width;
                width = smallestDistanceToViewportEdge * 2;
                left = origin.x - smallestDistanceToViewportEdge;
                if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {
                  left = origin.x - previousWidth / 2;
                }
              }
              return {
                top: top,
                left: left,
                bottom: bottom,
                right: right,
                width,
                height
              };
            }
            /**
             * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the
             * origin's connection point and stretches to the bounds of the viewport.
             *
             * @param origin The point on the origin element where the overlay is connected.
             * @param position The position preference
             */
            _setBoundingBoxStyles(origin, position) {
              const boundingBoxRect = this._calculateBoundingBoxRect(origin, position);
              // It's weird if the overlay *grows* while scrolling, so we take the last size into account
              // when applying a new size.
              if (!this._isInitialRender && !this._growAfterOpen) {
                boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);
                boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);
              }
              const styles = {};
              if (this._hasExactPosition()) {
                styles.top = styles.left = '0';
                styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';
                styles.width = styles.height = '100%';
              } else {
                const maxHeight = this._overlayRef.getConfig().maxHeight;
                const maxWidth = this._overlayRef.getConfig().maxWidth;
                styles.height = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.height);
                styles.top = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.top);
                styles.bottom = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.bottom);
                styles.width = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.width);
                styles.left = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.left);
                styles.right = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(boundingBoxRect.right);
                // Push the pane content towards the proper direction.
                if (position.overlayX === 'center') {
                  styles.alignItems = 'center';
                } else {
                  styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';
                }
                if (position.overlayY === 'center') {
                  styles.justifyContent = 'center';
                } else {
                  styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';
                }
                if (maxHeight) {
                  styles.maxHeight = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(maxHeight);
                }
                if (maxWidth) {
                  styles.maxWidth = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(maxWidth);
                }
              }
              this._lastBoundingBoxSize = boundingBoxRect;
              extendStyles(this._boundingBox.style, styles);
            }
            /** Resets the styles for the bounding box so that a new positioning can be computed. */
            _resetBoundingBoxStyles() {
              extendStyles(this._boundingBox.style, {
                top: '0',
                left: '0',
                right: '0',
                bottom: '0',
                height: '',
                width: '',
                alignItems: '',
                justifyContent: ''
              });
            }
            /** Resets the styles for the overlay pane so that a new positioning can be computed. */
            _resetOverlayElementStyles() {
              extendStyles(this._pane.style, {
                top: '',
                left: '',
                bottom: '',
                right: '',
                position: '',
                transform: ''
              });
            }
            /** Sets positioning styles to the overlay element. */
            _setOverlayElementStyles(originPoint, position) {
              const styles = {};
              const hasExactPosition = this._hasExactPosition();
              const hasFlexibleDimensions = this._hasFlexibleDimensions;
              const config = this._overlayRef.getConfig();
              if (hasExactPosition) {
                const scrollPosition = this._viewportRuler.getViewportScrollPosition();
                extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));
                extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));
              } else {
                styles.position = 'static';
              }
              // Use a transform to apply the offsets. We do this because the `center` positions rely on
              // being in the normal flex flow and setting a `top` / `left` at all will completely throw
              // off the position. We also can't use margins, because they won't have an effect in some
              // cases where the element doesn't have anything to "push off of". Finally, this works
              // better both with flexible and non-flexible positioning.
              let transformString = '';
              let offsetX = this._getOffset(position, 'x');
              let offsetY = this._getOffset(position, 'y');
              if (offsetX) {
                transformString += `translateX(${offsetX}px) `;
              }
              if (offsetY) {
                transformString += `translateY(${offsetY}px)`;
              }
              styles.transform = transformString.trim();
              // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because
              // we need these values to both be set to "100%" for the automatic flexible sizing to work.
              // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.
              // Note that this doesn't apply when we have an exact position, in which case we do want to
              // apply them because they'll be cleared from the bounding box.
              if (config.maxHeight) {
                if (hasExactPosition) {
                  styles.maxHeight = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(config.maxHeight);
                } else if (hasFlexibleDimensions) {
                  styles.maxHeight = '';
                }
              }
              if (config.maxWidth) {
                if (hasExactPosition) {
                  styles.maxWidth = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(config.maxWidth);
                } else if (hasFlexibleDimensions) {
                  styles.maxWidth = '';
                }
              }
              extendStyles(this._pane.style, styles);
            }
            /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */
            _getExactOverlayY(position, originPoint, scrollPosition) {
              // Reset any existing styles. This is necessary in case the
              // preferred position has changed since the last `apply`.
              let styles = {
                top: '',
                bottom: ''
              };
              let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);
              if (this._isPushed) {
                overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
              }
              // We want to set either `top` or `bottom` based on whether the overlay wants to appear
              // above or below the origin and the direction in which the element will expand.
              if (position.overlayY === 'bottom') {
                // When using `bottom`, we adjust the y position such that it is the distance
                // from the bottom of the viewport rather than the top.
                const documentHeight = this._document.documentElement.clientHeight;
                styles.bottom = `${documentHeight - (overlayPoint.y + this._overlayRect.height)}px`;
              } else {
                styles.top = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(overlayPoint.y);
              }
              return styles;
            }
            /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */
            _getExactOverlayX(position, originPoint, scrollPosition) {
              // Reset any existing styles. This is necessary in case the preferred position has
              // changed since the last `apply`.
              let styles = {
                left: '',
                right: ''
              };
              let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);
              if (this._isPushed) {
                overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
              }
              // We want to set either `left` or `right` based on whether the overlay wants to appear "before"
              // or "after" the origin, which determines the direction in which the element will expand.
              // For the horizontal axis, the meaning of "before" and "after" change based on whether the
              // page is in RTL or LTR.
              let horizontalStyleProperty;
              if (this._isRtl()) {
                horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';
              } else {
                horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';
              }
              // When we're setting `right`, we adjust the x position such that it is the distance
              // from the right edge of the viewport rather than the left edge.
              if (horizontalStyleProperty === 'right') {
                const documentWidth = this._document.documentElement.clientWidth;
                styles.right = `${documentWidth - (overlayPoint.x + this._overlayRect.width)}px`;
              } else {
                styles.left = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceCssPixelValue)(overlayPoint.x);
              }
              return styles;
            }
            /**
             * Gets the view properties of the trigger and overlay, including whether they are clipped
             * or completely outside the view of any of the strategy's scrollables.
             */
            _getScrollVisibility() {
              // Note: needs fresh rects since the position could've changed.
              const originBounds = this._getOriginRect();
              const overlayBounds = this._pane.getBoundingClientRect();
              // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers
              // every time, we should be able to use the scrollTop of the containers if the size of those
              // containers hasn't changed.
              const scrollContainerBounds = this._scrollables.map(scrollable => {
                return scrollable.getElementRef().nativeElement.getBoundingClientRect();
              });
              return {
                isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),
                isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),
                isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),
                isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds)
              };
            }
            /** Subtracts the amount that an element is overflowing on an axis from its length. */
            _subtractOverflows(length, ...overflows) {
              return overflows.reduce((currentValue, currentOverflow) => {
                return currentValue - Math.max(currentOverflow, 0);
              }, length);
            }
            /** Narrows the given viewport rect by the current _viewportMargin. */
            _getNarrowedViewportRect() {
              // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,
              // because we want to use the `clientWidth` and `clientHeight` as the base. The difference
              // being that the client properties don't include the scrollbar, as opposed to `innerWidth`
              // and `innerHeight` that do. This is necessary, because the overlay container uses
              // 100% `width` and `height` which don't include the scrollbar either.
              const width = this._document.documentElement.clientWidth;
              const height = this._document.documentElement.clientHeight;
              const scrollPosition = this._viewportRuler.getViewportScrollPosition();
              return {
                top: scrollPosition.top + this._viewportMargin,
                left: scrollPosition.left + this._viewportMargin,
                right: scrollPosition.left + width - this._viewportMargin,
                bottom: scrollPosition.top + height - this._viewportMargin,
                width: width - 2 * this._viewportMargin,
                height: height - 2 * this._viewportMargin
              };
            }
            /** Whether the we're dealing with an RTL context */
            _isRtl() {
              return this._overlayRef.getDirection() === 'rtl';
            }
            /** Determines whether the overlay uses exact or flexible positioning. */
            _hasExactPosition() {
              return !this._hasFlexibleDimensions || this._isPushed;
            }
            /** Retrieves the offset of a position along the x or y axis. */
            _getOffset(position, axis) {
              if (axis === 'x') {
                // We don't do something like `position['offset' + axis]` in
                // order to avoid breaking minifiers that rename properties.
                return position.offsetX == null ? this._offsetX : position.offsetX;
              }
              return position.offsetY == null ? this._offsetY : position.offsetY;
            }
            /** Validates that the current position match the expected values. */
            _validatePositions() {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (!this._preferredPositions.length) {
                  throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');
                }
                // TODO(crisbeto): remove these once Angular's template type
                // checking is advanced enough to catch these cases.
                this._preferredPositions.forEach(pair => {
                  validateHorizontalPosition('originX', pair.originX);
                  validateVerticalPosition('originY', pair.originY);
                  validateHorizontalPosition('overlayX', pair.overlayX);
                  validateVerticalPosition('overlayY', pair.overlayY);
                });
              }
            }
            /** Adds a single CSS class or an array of classes on the overlay panel. */
            _addPanelClasses(cssClasses) {
              if (this._pane) {
                (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceArray)(cssClasses).forEach(cssClass => {
                  if (cssClass !== '' && this._appliedPanelClasses.indexOf(cssClass) === -1) {
                    this._appliedPanelClasses.push(cssClass);
                    this._pane.classList.add(cssClass);
                  }
                });
              }
            }
            /** Clears the classes that the position strategy has applied from the overlay panel. */
            _clearPanelClasses() {
              if (this._pane) {
                this._appliedPanelClasses.forEach(cssClass => {
                  this._pane.classList.remove(cssClass);
                });
                this._appliedPanelClasses = [];
              }
            }
            /** Returns the ClientRect of the current origin. */
            _getOriginRect() {
              const origin = this._origin;
              if (origin instanceof _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef) {
                return origin.nativeElement.getBoundingClientRect();
              }
              // Check for Element so SVG elements are also supported.
              if (origin instanceof Element) {
                return origin.getBoundingClientRect();
              }
              const width = origin.width || 0;
              const height = origin.height || 0;
              // If the origin is a point, return a client rect as if it was a 0x0 element at the point.
              return {
                top: origin.y,
                bottom: origin.y + height,
                left: origin.x,
                right: origin.x + width,
                height,
                width
              };
            }
          }
          /** Shallow-extends a stylesheet object with another stylesheet object. */
          function extendStyles(destination, source) {
            for (let key in source) {
              if (source.hasOwnProperty(key)) {
                destination[key] = source[key];
              }
            }
            return destination;
          }
          /**
           * Extracts the pixel value as a number from a value, if it's a number
           * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.
           */
          function getPixelValue(input) {
            if (typeof input !== 'number' && input != null) {
              const [value, units] = input.split(cssUnitPattern);
              return !units || units === 'px' ? parseFloat(value) : null;
            }
            return input || null;
          }
          /**
           * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to
           * the nearest pixel. This allows us to account for the cases where there may be sub-pixel
           * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage
           * size, see #21350).
           */
          function getRoundedBoundingClientRect(clientRect) {
            return {
              top: Math.floor(clientRect.top),
              right: Math.floor(clientRect.right),
              bottom: Math.floor(clientRect.bottom),
              left: Math.floor(clientRect.left),
              width: Math.floor(clientRect.width),
              height: Math.floor(clientRect.height)
            };
          }
          const STANDARD_DROPDOWN_BELOW_POSITIONS = [{
            originX: 'start',
            originY: 'bottom',
            overlayX: 'start',
            overlayY: 'top'
          }, {
            originX: 'start',
            originY: 'top',
            overlayX: 'start',
            overlayY: 'bottom'
          }, {
            originX: 'end',
            originY: 'bottom',
            overlayX: 'end',
            overlayY: 'top'
          }, {
            originX: 'end',
            originY: 'top',
            overlayX: 'end',
            overlayY: 'bottom'
          }];
          const STANDARD_DROPDOWN_ADJACENT_POSITIONS = [{
            originX: 'end',
            originY: 'top',
            overlayX: 'start',
            overlayY: 'top'
          }, {
            originX: 'end',
            originY: 'bottom',
            overlayX: 'start',
            overlayY: 'bottom'
          }, {
            originX: 'start',
            originY: 'top',
            overlayX: 'end',
            overlayY: 'top'
          }, {
            originX: 'start',
            originY: 'bottom',
            overlayX: 'end',
            overlayY: 'bottom'
          }];
          
          /** Class to be added to the overlay pane wrapper. */
          const wrapperClass = 'cdk-global-overlay-wrapper';
          /**
           * A strategy for positioning overlays. Using this strategy, an overlay is given an
           * explicit position relative to the browser's viewport. We use flexbox, instead of
           * transforms, in order to avoid issues with subpixel rendering which can cause the
           * element to become blurry.
           */
          class GlobalPositionStrategy {
            constructor() {
              this._cssPosition = 'static';
              this._topOffset = '';
              this._bottomOffset = '';
              this._alignItems = '';
              this._xPosition = '';
              this._xOffset = '';
              this._width = '';
              this._height = '';
              this._isDisposed = false;
            }
            attach(overlayRef) {
              const config = overlayRef.getConfig();
              this._overlayRef = overlayRef;
              if (this._width && !config.width) {
                overlayRef.updateSize({
                  width: this._width
                });
              }
              if (this._height && !config.height) {
                overlayRef.updateSize({
                  height: this._height
                });
              }
              overlayRef.hostElement.classList.add(wrapperClass);
              this._isDisposed = false;
            }
            /**
             * Sets the top position of the overlay. Clears any previously set vertical position.
             * @param value New top offset.
             */
            top(value = '') {
              this._bottomOffset = '';
              this._topOffset = value;
              this._alignItems = 'flex-start';
              return this;
            }
            /**
             * Sets the left position of the overlay. Clears any previously set horizontal position.
             * @param value New left offset.
             */
            left(value = '') {
              this._xOffset = value;
              this._xPosition = 'left';
              return this;
            }
            /**
             * Sets the bottom position of the overlay. Clears any previously set vertical position.
             * @param value New bottom offset.
             */
            bottom(value = '') {
              this._topOffset = '';
              this._bottomOffset = value;
              this._alignItems = 'flex-end';
              return this;
            }
            /**
             * Sets the right position of the overlay. Clears any previously set horizontal position.
             * @param value New right offset.
             */
            right(value = '') {
              this._xOffset = value;
              this._xPosition = 'right';
              return this;
            }
            /**
             * Sets the overlay to the start of the viewport, depending on the overlay direction.
             * This will be to the left in LTR layouts and to the right in RTL.
             * @param offset Offset from the edge of the screen.
             */
            start(value = '') {
              this._xOffset = value;
              this._xPosition = 'start';
              return this;
            }
            /**
             * Sets the overlay to the end of the viewport, depending on the overlay direction.
             * This will be to the right in LTR layouts and to the left in RTL.
             * @param offset Offset from the edge of the screen.
             */
            end(value = '') {
              this._xOffset = value;
              this._xPosition = 'end';
              return this;
            }
            /**
             * Sets the overlay width and clears any previously set width.
             * @param value New width for the overlay
             * @deprecated Pass the `width` through the `OverlayConfig`.
             * @breaking-change 8.0.0
             */
            width(value = '') {
              if (this._overlayRef) {
                this._overlayRef.updateSize({
                  width: value
                });
              } else {
                this._width = value;
              }
              return this;
            }
            /**
             * Sets the overlay height and clears any previously set height.
             * @param value New height for the overlay
             * @deprecated Pass the `height` through the `OverlayConfig`.
             * @breaking-change 8.0.0
             */
            height(value = '') {
              if (this._overlayRef) {
                this._overlayRef.updateSize({
                  height: value
                });
              } else {
                this._height = value;
              }
              return this;
            }
            /**
             * Centers the overlay horizontally with an optional offset.
             * Clears any previously set horizontal position.
             *
             * @param offset Overlay offset from the horizontal center.
             */
            centerHorizontally(offset = '') {
              this.left(offset);
              this._xPosition = 'center';
              return this;
            }
            /**
             * Centers the overlay vertically with an optional offset.
             * Clears any previously set vertical position.
             *
             * @param offset Overlay offset from the vertical center.
             */
            centerVertically(offset = '') {
              this.top(offset);
              this._alignItems = 'center';
              return this;
            }
            /**
             * Apply the position to the element.
             * @docs-private
             */
            apply() {
              // Since the overlay ref applies the strategy asynchronously, it could
              // have been disposed before it ends up being applied. If that is the
              // case, we shouldn't do anything.
              if (!this._overlayRef || !this._overlayRef.hasAttached()) {
                return;
              }
              const styles = this._overlayRef.overlayElement.style;
              const parentStyles = this._overlayRef.hostElement.style;
              const config = this._overlayRef.getConfig();
              const {
                width,
                height,
                maxWidth,
                maxHeight
              } = config;
              const shouldBeFlushHorizontally = (width === '100%' || width === '100vw') && (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');
              const shouldBeFlushVertically = (height === '100%' || height === '100vh') && (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');
              const xPosition = this._xPosition;
              const xOffset = this._xOffset;
              const isRtl = this._overlayRef.getConfig().direction === 'rtl';
              let marginLeft = '';
              let marginRight = '';
              let justifyContent = '';
              if (shouldBeFlushHorizontally) {
                justifyContent = 'flex-start';
              } else if (xPosition === 'center') {
                justifyContent = 'center';
                if (isRtl) {
                  marginRight = xOffset;
                } else {
                  marginLeft = xOffset;
                }
              } else if (isRtl) {
                if (xPosition === 'left' || xPosition === 'end') {
                  justifyContent = 'flex-end';
                  marginLeft = xOffset;
                } else if (xPosition === 'right' || xPosition === 'start') {
                  justifyContent = 'flex-start';
                  marginRight = xOffset;
                }
              } else if (xPosition === 'left' || xPosition === 'start') {
                justifyContent = 'flex-start';
                marginLeft = xOffset;
              } else if (xPosition === 'right' || xPosition === 'end') {
                justifyContent = 'flex-end';
                marginRight = xOffset;
              }
              styles.position = this._cssPosition;
              styles.marginLeft = shouldBeFlushHorizontally ? '0' : marginLeft;
              styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;
              styles.marginBottom = this._bottomOffset;
              styles.marginRight = shouldBeFlushHorizontally ? '0' : marginRight;
              parentStyles.justifyContent = justifyContent;
              parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;
            }
            /**
             * Cleans up the DOM changes from the position strategy.
             * @docs-private
             */
            dispose() {
              if (this._isDisposed || !this._overlayRef) {
                return;
              }
              const styles = this._overlayRef.overlayElement.style;
              const parent = this._overlayRef.hostElement;
              const parentStyles = parent.style;
              parent.classList.remove(wrapperClass);
              parentStyles.justifyContent = parentStyles.alignItems = styles.marginTop = styles.marginBottom = styles.marginLeft = styles.marginRight = styles.position = '';
              this._overlayRef = null;
              this._isDisposed = true;
            }
          }
          
          /** Builder for overlay position strategy. */
          class OverlayPositionBuilder {
            constructor(_viewportRuler, _document, _platform, _overlayContainer) {
              this._viewportRuler = _viewportRuler;
              this._document = _document;
              this._platform = _platform;
              this._overlayContainer = _overlayContainer;
            }
            /**
             * Creates a global position strategy.
             */
            global() {
              return new GlobalPositionStrategy();
            }
            /**
             * Creates a flexible position strategy.
             * @param origin Origin relative to which to position the overlay.
             */
            flexibleConnectedTo(origin) {
              return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);
            }
            static {
              this.ɵfac = function OverlayPositionBuilder_Factory(t) {
                return new (t || OverlayPositionBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](OverlayContainer));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: OverlayPositionBuilder,
                factory: OverlayPositionBuilder.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](OverlayPositionBuilder, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ViewportRuler
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }, {
                type: OverlayContainer
              }];
            }, null);
          })();
          
          /** Next overlay unique ID. */
          let nextUniqueId = 0;
          // Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver
          // which needs to be different depending on where OverlayModule is imported.
          /**
           * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
           * used as a low-level building block for other components. Dialogs, tooltips, menus,
           * selects, etc. can all be built using overlays. The service should primarily be used by authors
           * of re-usable components rather than developers building end-user applications.
           *
           * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
           */
          class Overlay {
            constructor( /** Scrolling strategies that can be used when creating an overlay. */
            scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher, _animationsModuleType) {
              this.scrollStrategies = scrollStrategies;
              this._overlayContainer = _overlayContainer;
              this._componentFactoryResolver = _componentFactoryResolver;
              this._positionBuilder = _positionBuilder;
              this._keyboardDispatcher = _keyboardDispatcher;
              this._injector = _injector;
              this._ngZone = _ngZone;
              this._document = _document;
              this._directionality = _directionality;
              this._location = _location;
              this._outsideClickDispatcher = _outsideClickDispatcher;
              this._animationsModuleType = _animationsModuleType;
            }
            /**
             * Creates an overlay.
             * @param config Configuration applied to the overlay.
             * @returns Reference to the created overlay.
             */
            create(config) {
              const host = this._createHostElement();
              const pane = this._createPaneElement(host);
              const portalOutlet = this._createPortalOutlet(pane);
              const overlayConfig = new OverlayConfig(config);
              overlayConfig.direction = overlayConfig.direction || this._directionality.value;
              return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher, this._animationsModuleType === 'NoopAnimations');
            }
            /**
             * Gets a position builder that can be used, via fluent API,
             * to construct and configure a position strategy.
             * @returns An overlay position builder.
             */
            position() {
              return this._positionBuilder;
            }
            /**
             * Creates the DOM element for an overlay and appends it to the overlay container.
             * @returns Newly-created pane element
             */
            _createPaneElement(host) {
              const pane = this._document.createElement('div');
              pane.id = `cdk-overlay-${nextUniqueId++}`;
              pane.classList.add('cdk-overlay-pane');
              host.appendChild(pane);
              return pane;
            }
            /**
             * Creates the host element that wraps around an overlay
             * and can be used for advanced positioning.
             * @returns Newly-create host element.
             */
            _createHostElement() {
              const host = this._document.createElement('div');
              this._overlayContainer.getContainerElement().appendChild(host);
              return host;
            }
            /**
             * Create a DomPortalOutlet into which the overlay content can be loaded.
             * @param pane The DOM element to turn into a portal outlet.
             * @returns A portal outlet for the given DOM element.
             */
            _createPortalOutlet(pane) {
              // We have to resolve the ApplicationRef later in order to allow people
              // to use overlay-based providers during app initialization.
              if (!this._appRef) {
                this._appRef = this._injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_4__.ApplicationRef);
              }
              return new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__.DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);
            }
            static {
              this.ɵfac = function Overlay_Factory(t) {
                return new (t || Overlay)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](ScrollStrategyOptions), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](OverlayContainer), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ComponentFactoryResolver), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](OverlayPositionBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](OverlayKeyboardDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.Injector), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.Location), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](OverlayOutsideClickDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: Overlay,
                factory: Overlay.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](Overlay, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: ScrollStrategyOptions
              }, {
                type: OverlayContainer
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.ComponentFactoryResolver
              }, {
                type: OverlayPositionBuilder
              }, {
                type: OverlayKeyboardDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injector
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality
              }, {
                type: _angular_common__WEBPACK_IMPORTED_MODULE_5__.Location
              }, {
                type: OverlayOutsideClickDispatcher
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_4__.ANIMATION_MODULE_TYPE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Optional
                }]
              }];
            }, null);
          })();
          
          /** Default set of positions for the overlay. Follows the behavior of a dropdown. */
          const defaultPositionList = [{
            originX: 'start',
            originY: 'bottom',
            overlayX: 'start',
            overlayY: 'top'
          }, {
            originX: 'start',
            originY: 'top',
            overlayX: 'start',
            overlayY: 'bottom'
          }, {
            originX: 'end',
            originY: 'top',
            overlayX: 'end',
            overlayY: 'bottom'
          }, {
            originX: 'end',
            originY: 'bottom',
            overlayX: 'end',
            overlayY: 'top'
          }];
          /** Injection token that determines the scroll handling while the connected overlay is open. */
          const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.InjectionToken('cdk-connected-overlay-scroll-strategy');
          /**
           * Directive applied to an element to make it usable as an origin for an Overlay using a
           * ConnectedPositionStrategy.
           */
          class CdkOverlayOrigin {
            constructor( /** Reference to the element on which the directive is applied. */
            elementRef) {
              this.elementRef = elementRef;
            }
            static {
              this.ɵfac = function CdkOverlayOrigin_Factory(t) {
                return new (t || CdkOverlayOrigin)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
                type: CdkOverlayOrigin,
                selectors: [["", "cdk-overlay-origin", ""], ["", "overlay-origin", ""], ["", "cdkOverlayOrigin", ""]],
                exportAs: ["cdkOverlayOrigin"],
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](CdkOverlayOrigin, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Directive,
              args: [{
                selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',
                exportAs: 'cdkOverlayOrigin',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef
              }];
            }, null);
          })();
          /**
           * Directive to facilitate declarative creation of an
           * Overlay using a FlexibleConnectedPositionStrategy.
           */
          class CdkConnectedOverlay {
            /** The offset in pixels for the overlay connection point on the x-axis */
            get offsetX() {
              return this._offsetX;
            }
            set offsetX(offsetX) {
              this._offsetX = offsetX;
              if (this._position) {
                this._updatePositionStrategy(this._position);
              }
            }
            /** The offset in pixels for the overlay connection point on the y-axis */
            get offsetY() {
              return this._offsetY;
            }
            set offsetY(offsetY) {
              this._offsetY = offsetY;
              if (this._position) {
                this._updatePositionStrategy(this._position);
              }
            }
            /** Whether or not the overlay should attach a backdrop. */
            get hasBackdrop() {
              return this._hasBackdrop;
            }
            set hasBackdrop(value) {
              this._hasBackdrop = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(value);
            }
            /** Whether or not the overlay should be locked when scrolling. */
            get lockPosition() {
              return this._lockPosition;
            }
            set lockPosition(value) {
              this._lockPosition = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(value);
            }
            /** Whether the overlay's width and height can be constrained to fit within the viewport. */
            get flexibleDimensions() {
              return this._flexibleDimensions;
            }
            set flexibleDimensions(value) {
              this._flexibleDimensions = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(value);
            }
            /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */
            get growAfterOpen() {
              return this._growAfterOpen;
            }
            set growAfterOpen(value) {
              this._growAfterOpen = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(value);
            }
            /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */
            get push() {
              return this._push;
            }
            set push(value) {
              this._push = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(value);
            }
            // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.
            constructor(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {
              this._overlay = _overlay;
              this._dir = _dir;
              this._hasBackdrop = false;
              this._lockPosition = false;
              this._growAfterOpen = false;
              this._flexibleDimensions = false;
              this._push = false;
              this._backdropSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              this._attachSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              this._detachSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              this._positionSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__.Subscription.EMPTY;
              /** Margin between the overlay and the viewport edges. */
              this.viewportMargin = 0;
              /** Whether the overlay is open. */
              this.open = false;
              /** Whether the overlay can be closed by user interaction. */
              this.disableClose = false;
              /** Event emitted when the backdrop is clicked. */
              this.backdropClick = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              /** Event emitted when the position has changed. */
              this.positionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              /** Event emitted when the overlay has been attached. */
              this.attach = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              /** Event emitted when the overlay has been detached. */
              this.detach = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              /** Emits when there are keyboard events that are targeted at the overlay. */
              this.overlayKeydown = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              /** Emits when there are mouse outside click events that are targeted at the overlay. */
              this.overlayOutsideClick = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
              this._templatePortal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__.TemplatePortal(templateRef, viewContainerRef);
              this._scrollStrategyFactory = scrollStrategyFactory;
              this.scrollStrategy = this._scrollStrategyFactory();
            }
            /** The associated overlay reference. */
            get overlayRef() {
              return this._overlayRef;
            }
            /** The element's layout direction. */
            get dir() {
              return this._dir ? this._dir.value : 'ltr';
            }
            ngOnDestroy() {
              this._attachSubscription.unsubscribe();
              this._detachSubscription.unsubscribe();
              this._backdropSubscription.unsubscribe();
              this._positionSubscription.unsubscribe();
              if (this._overlayRef) {
                this._overlayRef.dispose();
              }
            }
            ngOnChanges(changes) {
              if (this._position) {
                this._updatePositionStrategy(this._position);
                this._overlayRef.updateSize({
                  width: this.width,
                  minWidth: this.minWidth,
                  height: this.height,
                  minHeight: this.minHeight
                });
                if (changes['origin'] && this.open) {
                  this._position.apply();
                }
              }
              if (changes['open']) {
                this.open ? this._attachOverlay() : this._detachOverlay();
              }
            }
            /** Creates an overlay */
            _createOverlay() {
              if (!this.positions || !this.positions.length) {
                this.positions = defaultPositionList;
              }
              const overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());
              this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());
              this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());
              overlayRef.keydownEvents().subscribe(event => {
                this.overlayKeydown.next(event);
                if (event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_13__.ESCAPE && !this.disableClose && !(0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_13__.hasModifierKey)(event)) {
                  event.preventDefault();
                  this._detachOverlay();
                }
              });
              this._overlayRef.outsidePointerEvents().subscribe(event => {
                this.overlayOutsideClick.next(event);
              });
            }
            /** Builds the overlay config based on the directive's inputs */
            _buildConfig() {
              const positionStrategy = this._position = this.positionStrategy || this._createPositionStrategy();
              const overlayConfig = new OverlayConfig({
                direction: this._dir,
                positionStrategy,
                scrollStrategy: this.scrollStrategy,
                hasBackdrop: this.hasBackdrop
              });
              if (this.width || this.width === 0) {
                overlayConfig.width = this.width;
              }
              if (this.height || this.height === 0) {
                overlayConfig.height = this.height;
              }
              if (this.minWidth || this.minWidth === 0) {
                overlayConfig.minWidth = this.minWidth;
              }
              if (this.minHeight || this.minHeight === 0) {
                overlayConfig.minHeight = this.minHeight;
              }
              if (this.backdropClass) {
                overlayConfig.backdropClass = this.backdropClass;
              }
              if (this.panelClass) {
                overlayConfig.panelClass = this.panelClass;
              }
              return overlayConfig;
            }
            /** Updates the state of a position strategy, based on the values of the directive inputs. */
            _updatePositionStrategy(positionStrategy) {
              const positions = this.positions.map(currentPosition => ({
                originX: currentPosition.originX,
                originY: currentPosition.originY,
                overlayX: currentPosition.overlayX,
                overlayY: currentPosition.overlayY,
                offsetX: currentPosition.offsetX || this.offsetX,
                offsetY: currentPosition.offsetY || this.offsetY,
                panelClass: currentPosition.panelClass || undefined
              }));
              return positionStrategy.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(positions).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector);
            }
            /** Returns the position strategy of the overlay to be set on the overlay config */
            _createPositionStrategy() {
              const strategy = this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());
              this._updatePositionStrategy(strategy);
              return strategy;
            }
            _getFlexibleConnectedPositionStrategyOrigin() {
              if (this.origin instanceof CdkOverlayOrigin) {
                return this.origin.elementRef;
              } else {
                return this.origin;
              }
            }
            /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */
            _attachOverlay() {
              if (!this._overlayRef) {
                this._createOverlay();
              } else {
                // Update the overlay size, in case the directive's inputs have changed
                this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;
              }
              if (!this._overlayRef.hasAttached()) {
                this._overlayRef.attach(this._templatePortal);
              }
              if (this.hasBackdrop) {
                this._backdropSubscription = this._overlayRef.backdropClick().subscribe(event => {
                  this.backdropClick.emit(event);
                });
              } else {
                this._backdropSubscription.unsubscribe();
              }
              this._positionSubscription.unsubscribe();
              // Only subscribe to `positionChanges` if requested, because putting
              // together all the information for it can be expensive.
              if (this.positionChange.observers.length > 0) {
                this._positionSubscription = this._position.positionChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.takeWhile)(() => this.positionChange.observers.length > 0)).subscribe(position => {
                  this.positionChange.emit(position);
                  if (this.positionChange.observers.length === 0) {
                    this._positionSubscription.unsubscribe();
                  }
                });
              }
            }
            /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */
            _detachOverlay() {
              if (this._overlayRef) {
                this._overlayRef.detach();
              }
              this._backdropSubscription.unsubscribe();
              this._positionSubscription.unsubscribe();
            }
            static {
              this.ɵfac = function CdkConnectedOverlay_Factory(t) {
                return new (t || CdkConnectedOverlay)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](Overlay), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
                type: CdkConnectedOverlay,
                selectors: [["", "cdk-connected-overlay", ""], ["", "connected-overlay", ""], ["", "cdkConnectedOverlay", ""]],
                inputs: {
                  origin: ["cdkConnectedOverlayOrigin", "origin"],
                  positions: ["cdkConnectedOverlayPositions", "positions"],
                  positionStrategy: ["cdkConnectedOverlayPositionStrategy", "positionStrategy"],
                  offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"],
                  offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"],
                  width: ["cdkConnectedOverlayWidth", "width"],
                  height: ["cdkConnectedOverlayHeight", "height"],
                  minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"],
                  minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"],
                  backdropClass: ["cdkConnectedOverlayBackdropClass", "backdropClass"],
                  panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"],
                  viewportMargin: ["cdkConnectedOverlayViewportMargin", "viewportMargin"],
                  scrollStrategy: ["cdkConnectedOverlayScrollStrategy", "scrollStrategy"],
                  open: ["cdkConnectedOverlayOpen", "open"],
                  disableClose: ["cdkConnectedOverlayDisableClose", "disableClose"],
                  transformOriginSelector: ["cdkConnectedOverlayTransformOriginOn", "transformOriginSelector"],
                  hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"],
                  lockPosition: ["cdkConnectedOverlayLockPosition", "lockPosition"],
                  flexibleDimensions: ["cdkConnectedOverlayFlexibleDimensions", "flexibleDimensions"],
                  growAfterOpen: ["cdkConnectedOverlayGrowAfterOpen", "growAfterOpen"],
                  push: ["cdkConnectedOverlayPush", "push"]
                },
                outputs: {
                  backdropClick: "backdropClick",
                  positionChange: "positionChange",
                  attach: "attach",
                  detach: "detach",
                  overlayKeydown: "overlayKeydown",
                  overlayOutsideClick: "overlayOutsideClick"
                },
                exportAs: ["cdkConnectedOverlay"],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](CdkConnectedOverlay, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Directive,
              args: [{
                selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',
                exportAs: 'cdkConnectedOverlay',
                standalone: true
              }]
            }], function () {
              return [{
                type: Overlay
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.ViewContainerRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]
                }]
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Optional
                }]
              }];
            }, {
              origin: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayOrigin']
              }],
              positions: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayPositions']
              }],
              positionStrategy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayPositionStrategy']
              }],
              offsetX: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayOffsetX']
              }],
              offsetY: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayOffsetY']
              }],
              width: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayWidth']
              }],
              height: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayHeight']
              }],
              minWidth: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayMinWidth']
              }],
              minHeight: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayMinHeight']
              }],
              backdropClass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayBackdropClass']
              }],
              panelClass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayPanelClass']
              }],
              viewportMargin: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayViewportMargin']
              }],
              scrollStrategy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayScrollStrategy']
              }],
              open: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayOpen']
              }],
              disableClose: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayDisableClose']
              }],
              transformOriginSelector: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayTransformOriginOn']
              }],
              hasBackdrop: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayHasBackdrop']
              }],
              lockPosition: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayLockPosition']
              }],
              flexibleDimensions: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayFlexibleDimensions']
              }],
              growAfterOpen: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayGrowAfterOpen']
              }],
              push: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Input,
                args: ['cdkConnectedOverlayPush']
              }],
              backdropClick: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }],
              positionChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }],
              attach: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }],
              detach: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }],
              overlayKeydown: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }],
              overlayOutsideClick: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Output
              }]
            });
          })();
          /** @docs-private */
          function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
            return () => overlay.scrollStrategies.reposition();
          }
          /** @docs-private */
          const CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
            provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,
            deps: [Overlay],
            useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY
          };
          class OverlayModule {
            static {
              this.ɵfac = function OverlayModule_Factory(t) {
                return new (t || OverlayModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
                type: OverlayModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
                providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__.PortalModule, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](OverlayModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.NgModule,
              args: [{
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__.PortalModule, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule, CdkConnectedOverlay, CdkOverlayOrigin],
                exports: [CdkConnectedOverlay, CdkOverlayOrigin, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__.ScrollingModule],
                providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER]
              }]
            }], null, null);
          })();
          
          /**
           * Alternative to OverlayContainer that supports correct displaying of overlay elements in
           * Fullscreen mode
           * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen
           *
           * Should be provided in the root component.
           */
          class FullscreenOverlayContainer extends OverlayContainer {
            constructor(_document, platform) {
              super(_document, platform);
            }
            ngOnDestroy() {
              super.ngOnDestroy();
              if (this._fullScreenEventName && this._fullScreenListener) {
                this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);
              }
            }
            _createContainer() {
              super._createContainer();
              this._adjustParentForFullscreenChange();
              this._addFullscreenChangeListener(() => this._adjustParentForFullscreenChange());
            }
            _adjustParentForFullscreenChange() {
              if (!this._containerElement) {
                return;
              }
              const fullscreenElement = this.getFullscreenElement();
              const parent = fullscreenElement || this._document.body;
              parent.appendChild(this._containerElement);
            }
            _addFullscreenChangeListener(fn) {
              const eventName = this._getEventName();
              if (eventName) {
                if (this._fullScreenListener) {
                  this._document.removeEventListener(eventName, this._fullScreenListener);
                }
                this._document.addEventListener(eventName, fn);
                this._fullScreenListener = fn;
              }
            }
            _getEventName() {
              if (!this._fullScreenEventName) {
                const _document = this._document;
                if (_document.fullscreenEnabled) {
                  this._fullScreenEventName = 'fullscreenchange';
                } else if (_document.webkitFullscreenEnabled) {
                  this._fullScreenEventName = 'webkitfullscreenchange';
                } else if (_document.mozFullScreenEnabled) {
                  this._fullScreenEventName = 'mozfullscreenchange';
                } else if (_document.msFullscreenEnabled) {
                  this._fullScreenEventName = 'MSFullscreenChange';
                }
              }
              return this._fullScreenEventName;
            }
            /**
             * When the page is put into fullscreen mode, a specific element is specified.
             * Only that element and its children are visible when in fullscreen mode.
             */
            getFullscreenElement() {
              const _document = this._document;
              return _document.fullscreenElement || _document.webkitFullscreenElement || _document.mozFullScreenElement || _document.msFullscreenElement || null;
            }
            static {
              this.ɵfac = function FullscreenOverlayContainer_Factory(t) {
                return new (t || FullscreenOverlayContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
                token: FullscreenOverlayContainer,
                factory: FullscreenOverlayContainer.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](FullscreenOverlayContainer, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_4__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }];
            }, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 7699:
          /*!*********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/platform.mjs ***!
            \*********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   Platform: () => (/* binding */ Platform),
          /* harmony export */   PlatformModule: () => (/* binding */ PlatformModule),
          /* harmony export */   _getEventTarget: () => (/* binding */ _getEventTarget),
          /* harmony export */   _getFocusedElementPierceShadowDom: () => (/* binding */ _getFocusedElementPierceShadowDom),
          /* harmony export */   _getShadowRoot: () => (/* binding */ _getShadowRoot),
          /* harmony export */   _isTestEnvironment: () => (/* binding */ _isTestEnvironment),
          /* harmony export */   _supportsShadowDom: () => (/* binding */ _supportsShadowDom),
          /* harmony export */   getRtlScrollAxisType: () => (/* binding */ getRtlScrollAxisType),
          /* harmony export */   getSupportedInputTypes: () => (/* binding */ getSupportedInputTypes),
          /* harmony export */   normalizePassiveListenerOptions: () => (/* binding */ normalizePassiveListenerOptions),
          /* harmony export */   supportsPassiveEventListeners: () => (/* binding */ supportsPassiveEventListeners),
          /* harmony export */   supportsScrollBehavior: () => (/* binding */ supportsScrollBehavior)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ 316);
          
          
          
          
          // Whether the current platform supports the V8 Break Iterator. The V8 check
          // is necessary to detect all Blink based browsers.
          let hasV8BreakIterator;
          // We need a try/catch around the reference to `Intl`, because accessing it in some cases can
          // cause IE to throw. These cases are tied to particular versions of Windows and can happen if
          // the consumer is providing a polyfilled `Map`. See:
          // https://github.com/Microsoft/ChakraCore/issues/3189
          // https://github.com/angular/components/issues/15687
          try {
            hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;
          } catch {
            hasV8BreakIterator = false;
          }
          /**
           * Service to detect the current platform by comparing the userAgent strings and
           * checking browser-specific global properties.
           */
          class Platform {
            constructor(_platformId) {
              this._platformId = _platformId;
              // We want to use the Angular platform check because if the Document is shimmed
              // without the navigator, the following checks will fail. This is preferred because
              // sometimes the Document may be shimmed without the user's knowledge or intention
              /** Whether the Angular application is being rendered in the browser. */
              this.isBrowser = this._platformId ? (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__.isPlatformBrowser)(this._platformId) : typeof document === 'object' && !!document;
              /** Whether the current browser is Microsoft Edge. */
              this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);
              /** Whether the current rendering engine is Microsoft Trident. */
              this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);
              // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.
              /** Whether the current rendering engine is Blink. */
              this.BLINK = this.isBrowser && !!(window.chrome || hasV8BreakIterator) && typeof CSS !== 'undefined' && !this.EDGE && !this.TRIDENT;
              // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to
              // ensure that Webkit runs standalone and is not used as another engine's base.
              /** Whether the current rendering engine is WebKit. */
              this.WEBKIT = this.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
              /** Whether the current platform is Apple iOS. */
              this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !('MSStream' in window);
              // It's difficult to detect the plain Gecko engine, because most of the browsers identify
              // them self as Gecko-like browsers and modify the userAgent's according to that.
              // Since we only cover one explicit Firefox case, we can simply check for Firefox
              // instead of having an unstable check for Gecko.
              /** Whether the current browser is Firefox. */
              this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);
              /** Whether the current platform is Android. */
              // Trident on mobile adds the android platform to the userAgent to trick detections.
              this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;
              // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake
              // this and just place the Safari keyword in the userAgent. To be more safe about Safari every
              // Safari browser should also use Webkit as its layout engine.
              /** Whether the current browser is Safari. */
              this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;
            }
            static {
              this.ɵfac = function Platform_Factory(t) {
                return new (t || Platform)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: Platform,
                factory: Platform.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Platform, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: Object,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID]
                }]
              }];
            }, null);
          })();
          class PlatformModule {
            static {
              this.ɵfac = function PlatformModule_Factory(t) {
                return new (t || PlatformModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
                type: PlatformModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](PlatformModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule,
              args: [{}]
            }], null, null);
          })();
          
          /** Cached result Set of input types support by the current browser. */
          let supportedInputTypes;
          /** Types of `<input>` that *might* be supported. */
          const candidateInputTypes = [
          // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after
          // first changing it to something else:
          // The specified value "" does not conform to the required format.
          // The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
          'color', 'button', 'checkbox', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'];
          /** @returns The input types supported by this browser. */
          function getSupportedInputTypes() {
            // Result is cached.
            if (supportedInputTypes) {
              return supportedInputTypes;
            }
            // We can't check if an input type is not supported until we're on the browser, so say that
            // everything is supported when not on the browser. We don't use `Platform` here since it's
            // just a helper function and can't inject it.
            if (typeof document !== 'object' || !document) {
              supportedInputTypes = new Set(candidateInputTypes);
              return supportedInputTypes;
            }
            let featureTestInput = document.createElement('input');
            supportedInputTypes = new Set(candidateInputTypes.filter(value => {
              featureTestInput.setAttribute('type', value);
              return featureTestInput.type === value;
            }));
            return supportedInputTypes;
          }
          
          /** Cached result of whether the user's browser supports passive event listeners. */
          let supportsPassiveEvents;
          /**
           * Checks whether the user's browser supports passive event listeners.
           * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
           */
          function supportsPassiveEventListeners() {
            if (supportsPassiveEvents == null && typeof window !== 'undefined') {
              try {
                window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
                  get: () => supportsPassiveEvents = true
                }));
              } finally {
                supportsPassiveEvents = supportsPassiveEvents || false;
              }
            }
            return supportsPassiveEvents;
          }
          /**
           * Normalizes an `AddEventListener` object to something that can be passed
           * to `addEventListener` on any browser, no matter whether it supports the
           * `options` parameter.
           * @param options Object to be normalized.
           */
          function normalizePassiveListenerOptions(options) {
            return supportsPassiveEventListeners() ? options : !!options.capture;
          }
          
          /** Cached result of the way the browser handles the horizontal scroll axis in RTL mode. */
          let rtlScrollAxisType;
          /** Cached result of the check that indicates whether the browser supports scroll behaviors. */
          let scrollBehaviorSupported;
          /** Check whether the browser supports scroll behaviors. */
          function supportsScrollBehavior() {
            if (scrollBehaviorSupported == null) {
              // If we're not in the browser, it can't be supported. Also check for `Element`, because
              // some projects stub out the global `document` during SSR which can throw us off.
              if (typeof document !== 'object' || !document || typeof Element !== 'function' || !Element) {
                scrollBehaviorSupported = false;
                return scrollBehaviorSupported;
              }
              // If the element can have a `scrollBehavior` style, we can be sure that it's supported.
              if ('scrollBehavior' in document.documentElement.style) {
                scrollBehaviorSupported = true;
              } else {
                // At this point we have 3 possibilities: `scrollTo` isn't supported at all, it's
                // supported but it doesn't handle scroll behavior, or it has been polyfilled.
                const scrollToFunction = Element.prototype.scrollTo;
                if (scrollToFunction) {
                  // We can detect if the function has been polyfilled by calling `toString` on it. Native
                  // functions are obfuscated using `[native code]`, whereas if it was overwritten we'd get
                  // the actual function source. Via https://davidwalsh.name/detect-native-function. Consider
                  // polyfilled functions as supporting scroll behavior.
                  scrollBehaviorSupported = !/\{\s*\[native code\]\s*\}/.test(scrollToFunction.toString());
                } else {
                  scrollBehaviorSupported = false;
                }
              }
            }
            return scrollBehaviorSupported;
          }
          /**
           * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
           * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
           */
          function getRtlScrollAxisType() {
            // We can't check unless we're on the browser. Just assume 'normal' if we're not.
            if (typeof document !== 'object' || !document) {
              return 0 /* RtlScrollAxisType.NORMAL */;
            }
          
            if (rtlScrollAxisType == null) {
              // Create a 1px wide scrolling container and a 2px wide content element.
              const scrollContainer = document.createElement('div');
              const containerStyle = scrollContainer.style;
              scrollContainer.dir = 'rtl';
              containerStyle.width = '1px';
              containerStyle.overflow = 'auto';
              containerStyle.visibility = 'hidden';
              containerStyle.pointerEvents = 'none';
              containerStyle.position = 'absolute';
              const content = document.createElement('div');
              const contentStyle = content.style;
              contentStyle.width = '2px';
              contentStyle.height = '1px';
              scrollContainer.appendChild(content);
              document.body.appendChild(scrollContainer);
              rtlScrollAxisType = 0 /* RtlScrollAxisType.NORMAL */;
              // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL
              // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're
              // dealing with one of the other two types of browsers.
              if (scrollContainer.scrollLeft === 0) {
                // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an
                // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by
                // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will
                // return 0 when we read it again.
                scrollContainer.scrollLeft = 1;
                rtlScrollAxisType = scrollContainer.scrollLeft === 0 ? 1 /* RtlScrollAxisType.NEGATED */ : 2 /* RtlScrollAxisType.INVERTED */;
              }
          
              scrollContainer.remove();
            }
            return rtlScrollAxisType;
          }
          let shadowDomIsSupported;
          /** Checks whether the user's browser support Shadow DOM. */
          function _supportsShadowDom() {
            if (shadowDomIsSupported == null) {
              const head = typeof document !== 'undefined' ? document.head : null;
              shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow));
            }
            return shadowDomIsSupported;
          }
          /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
          function _getShadowRoot(element) {
            if (_supportsShadowDom()) {
              const rootNode = element.getRootNode ? element.getRootNode() : null;
              // Note that this should be caught by `_supportsShadowDom`, but some
              // teams have been able to hit this code path on unsupported browsers.
              if (typeof ShadowRoot !== 'undefined' && ShadowRoot && rootNode instanceof ShadowRoot) {
                return rootNode;
              }
            }
            return null;
          }
          /**
           * Gets the currently-focused element on the page while
           * also piercing through Shadow DOM boundaries.
           */
          function _getFocusedElementPierceShadowDom() {
            let activeElement = typeof document !== 'undefined' && document ? document.activeElement : null;
            while (activeElement && activeElement.shadowRoot) {
              const newActiveElement = activeElement.shadowRoot.activeElement;
              if (newActiveElement === activeElement) {
                break;
              } else {
                activeElement = newActiveElement;
              }
            }
            return activeElement;
          }
          /** Gets the target of an event while accounting for Shadow DOM. */
          function _getEventTarget(event) {
            // If an event is bound outside the Shadow DOM, the `event.target` will
            // point to the shadow root so we have to use `composedPath` instead.
            return event.composedPath ? event.composedPath()[0] : event.target;
          }
          
          /** Gets whether the code is currently running in a test environment. */
          function _isTestEnvironment() {
            // We can't use `declare const` because it causes conflicts inside Google with the real typings
            // for these symbols and we can't read them off the global object, because they don't appear to
            // be attached there for some runners like Jest.
            // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)
            return (
              // @ts-ignore
              typeof __karma__ !== 'undefined' && !!__karma__ ||
              // @ts-ignore
              typeof jasmine !== 'undefined' && !!jasmine ||
              // @ts-ignore
              typeof jest !== 'undefined' && !!jest ||
              // @ts-ignore
              typeof Mocha !== 'undefined' && !!Mocha
            );
          }
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 9168:
          /*!*******************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/portal.mjs ***!
            \*******************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BasePortalHost: () => (/* binding */ BasePortalHost),
          /* harmony export */   BasePortalOutlet: () => (/* binding */ BasePortalOutlet),
          /* harmony export */   CdkPortal: () => (/* binding */ CdkPortal),
          /* harmony export */   CdkPortalOutlet: () => (/* binding */ CdkPortalOutlet),
          /* harmony export */   ComponentPortal: () => (/* binding */ ComponentPortal),
          /* harmony export */   DomPortal: () => (/* binding */ DomPortal),
          /* harmony export */   DomPortalHost: () => (/* binding */ DomPortalHost),
          /* harmony export */   DomPortalOutlet: () => (/* binding */ DomPortalOutlet),
          /* harmony export */   Portal: () => (/* binding */ Portal),
          /* harmony export */   PortalHostDirective: () => (/* binding */ PortalHostDirective),
          /* harmony export */   PortalInjector: () => (/* binding */ PortalInjector),
          /* harmony export */   PortalModule: () => (/* binding */ PortalModule),
          /* harmony export */   TemplatePortal: () => (/* binding */ TemplatePortal),
          /* harmony export */   TemplatePortalDirective: () => (/* binding */ TemplatePortalDirective)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 316);
          
          
          
          
          /**
           * Throws an exception when attempting to attach a null portal to a host.
           * @docs-private
           */
          function throwNullPortalError() {
            throw Error('Must provide a portal to attach');
          }
          /**
           * Throws an exception when attempting to attach a portal to a host that is already attached.
           * @docs-private
           */
          function throwPortalAlreadyAttachedError() {
            throw Error('Host already has a portal attached');
          }
          /**
           * Throws an exception when attempting to attach a portal to an already-disposed host.
           * @docs-private
           */
          function throwPortalOutletAlreadyDisposedError() {
            throw Error('This PortalOutlet has already been disposed');
          }
          /**
           * Throws an exception when attempting to attach an unknown portal type.
           * @docs-private
           */
          function throwUnknownPortalTypeError() {
            throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' + 'a ComponentPortal or a TemplatePortal.');
          }
          /**
           * Throws an exception when attempting to attach a portal to a null host.
           * @docs-private
           */
          function throwNullPortalOutletError() {
            throw Error('Attempting to attach a portal to a null PortalOutlet');
          }
          /**
           * Throws an exception when attempting to detach a portal that is not attached.
           * @docs-private
           */
          function throwNoPortalAttachedError() {
            throw Error('Attempting to detach a portal that is not attached to a host');
          }
          
          /**
           * A `Portal` is something that you want to render somewhere else.
           * It can be attach to / detached from a `PortalOutlet`.
           */
          class Portal {
            /** Attach this portal to a host. */
            attach(host) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (host == null) {
                  throwNullPortalOutletError();
                }
                if (host.hasAttached()) {
                  throwPortalAlreadyAttachedError();
                }
              }
              this._attachedHost = host;
              return host.attach(this);
            }
            /** Detach this portal from its host */
            detach() {
              let host = this._attachedHost;
              if (host != null) {
                this._attachedHost = null;
                host.detach();
              } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
                throwNoPortalAttachedError();
              }
            }
            /** Whether this portal is attached to a host. */
            get isAttached() {
              return this._attachedHost != null;
            }
            /**
             * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
             * the PortalOutlet when it is performing an `attach()` or `detach()`.
             */
            setAttachedHost(host) {
              this._attachedHost = host;
            }
          }
          /**
           * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
           */
          class ComponentPortal extends Portal {
            constructor(component, viewContainerRef, injector, componentFactoryResolver, projectableNodes) {
              super();
              this.component = component;
              this.viewContainerRef = viewContainerRef;
              this.injector = injector;
              this.componentFactoryResolver = componentFactoryResolver;
              this.projectableNodes = projectableNodes;
            }
          }
          /**
           * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
           */
          class TemplatePortal extends Portal {
            constructor( /** The embedded template that will be used to instantiate an embedded View in the host. */
            templateRef, /** Reference to the ViewContainer into which the template will be stamped out. */
            viewContainerRef, /** Contextual data to be passed in to the embedded view. */
            context, /** The injector to use for the embedded view. */
            injector) {
              super();
              this.templateRef = templateRef;
              this.viewContainerRef = viewContainerRef;
              this.context = context;
              this.injector = injector;
            }
            get origin() {
              return this.templateRef.elementRef;
            }
            /**
             * Attach the portal to the provided `PortalOutlet`.
             * When a context is provided it will override the `context` property of the `TemplatePortal`
             * instance.
             */
            attach(host, context = this.context) {
              this.context = context;
              return super.attach(host);
            }
            detach() {
              this.context = undefined;
              return super.detach();
            }
          }
          /**
           * A `DomPortal` is a portal whose DOM element will be taken from its current position
           * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
           * will be restored to its original position.
           */
          class DomPortal extends Portal {
            constructor(element) {
              super();
              this.element = element instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef ? element.nativeElement : element;
            }
          }
          /**
           * Partial implementation of PortalOutlet that handles attaching
           * ComponentPortal and TemplatePortal.
           */
          class BasePortalOutlet {
            constructor() {
              /** Whether this host has already been permanently disposed. */
              this._isDisposed = false;
              // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method.
              this.attachDomPortal = null;
            }
            /** Whether this host has an attached portal. */
            hasAttached() {
              return !!this._attachedPortal;
            }
            /** Attaches a portal. */
            attach(portal) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (!portal) {
                  throwNullPortalError();
                }
                if (this.hasAttached()) {
                  throwPortalAlreadyAttachedError();
                }
                if (this._isDisposed) {
                  throwPortalOutletAlreadyDisposedError();
                }
              }
              if (portal instanceof ComponentPortal) {
                this._attachedPortal = portal;
                return this.attachComponentPortal(portal);
              } else if (portal instanceof TemplatePortal) {
                this._attachedPortal = portal;
                return this.attachTemplatePortal(portal);
                // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`.
              } else if (this.attachDomPortal && portal instanceof DomPortal) {
                this._attachedPortal = portal;
                return this.attachDomPortal(portal);
              }
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                throwUnknownPortalTypeError();
              }
            }
            /** Detaches a previously attached portal. */
            detach() {
              if (this._attachedPortal) {
                this._attachedPortal.setAttachedHost(null);
                this._attachedPortal = null;
              }
              this._invokeDisposeFn();
            }
            /** Permanently dispose of this portal host. */
            dispose() {
              if (this.hasAttached()) {
                this.detach();
              }
              this._invokeDisposeFn();
              this._isDisposed = true;
            }
            /** @docs-private */
            setDisposeFn(fn) {
              this._disposeFn = fn;
            }
            _invokeDisposeFn() {
              if (this._disposeFn) {
                this._disposeFn();
                this._disposeFn = null;
              }
            }
          }
          /**
           * @deprecated Use `BasePortalOutlet` instead.
           * @breaking-change 9.0.0
           */
          class BasePortalHost extends BasePortalOutlet {}
          
          /**
           * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
           * application context.
           */
          class DomPortalOutlet extends BasePortalOutlet {
            /**
             * @param outletElement Element into which the content is projected.
             * @param _componentFactoryResolver Used to resolve the component factory.
             *   Only required when attaching component portals.
             * @param _appRef Reference to the application. Only used in component portals when there
             *   is no `ViewContainerRef` available.
             * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
             *   have one. Only used for component portals.
             * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
             *   become a required parameter.
             */
            constructor( /** Element into which the content is projected. */
            outletElement, _componentFactoryResolver, _appRef, _defaultInjector,
            /**
             * @deprecated `_document` Parameter to be made required.
             * @breaking-change 10.0.0
             */
            _document) {
              super();
              this.outletElement = outletElement;
              this._componentFactoryResolver = _componentFactoryResolver;
              this._appRef = _appRef;
              this._defaultInjector = _defaultInjector;
              /**
               * Attaches a DOM portal by transferring its content into the outlet.
               * @param portal Portal to be attached.
               * @deprecated To be turned into a method.
               * @breaking-change 10.0.0
               */
              this.attachDomPortal = portal => {
                // @breaking-change 10.0.0 Remove check and error once the
                // `_document` constructor parameter is required.
                if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw Error('Cannot attach DOM portal without _document constructor parameter');
                }
                const element = portal.element;
                if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw Error('DOM portal content must be attached to a parent node.');
                }
                // Anchor used to save the element's previous position so
                // that we can restore it when the portal is detached.
                const anchorNode = this._document.createComment('dom-portal');
                element.parentNode.insertBefore(anchorNode, element);
                this.outletElement.appendChild(element);
                this._attachedPortal = portal;
                super.setDisposeFn(() => {
                  // We can't use `replaceWith` here because IE doesn't support it.
                  if (anchorNode.parentNode) {
                    anchorNode.parentNode.replaceChild(element, anchorNode);
                  }
                });
              };
              this._document = _document;
            }
            /**
             * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
             * @param portal Portal to be attached
             * @returns Reference to the created component.
             */
            attachComponentPortal(portal) {
              const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && !resolver) {
                throw Error('Cannot attach component portal to outlet without a ComponentFactoryResolver.');
              }
              const componentFactory = resolver.resolveComponentFactory(portal.component);
              let componentRef;
              // If the portal specifies a ViewContainerRef, we will use that as the attachment point
              // for the component (in terms of Angular's component tree, not rendering).
              // When the ViewContainerRef is missing, we use the factory to create the component directly
              // and then manually attach the view to the application.
              if (portal.viewContainerRef) {
                componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.injector, portal.projectableNodes || undefined);
                this.setDisposeFn(() => componentRef.destroy());
              } else {
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._appRef) {
                  throw Error('Cannot attach component portal to outlet without an ApplicationRef.');
                }
                componentRef = componentFactory.create(portal.injector || this._defaultInjector || _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector.NULL);
                this._appRef.attachView(componentRef.hostView);
                this.setDisposeFn(() => {
                  // Verify that the ApplicationRef has registered views before trying to detach a host view.
                  // This check also protects the `detachView` from being called on a destroyed ApplicationRef.
                  if (this._appRef.viewCount > 0) {
                    this._appRef.detachView(componentRef.hostView);
                  }
                  componentRef.destroy();
                });
              }
              // At this point the component has been instantiated, so we move it to the location in the DOM
              // where we want it to be rendered.
              this.outletElement.appendChild(this._getComponentRootNode(componentRef));
              this._attachedPortal = portal;
              return componentRef;
            }
            /**
             * Attaches a template portal to the DOM as an embedded view.
             * @param portal Portal to be attached.
             * @returns Reference to the created embedded view.
             */
            attachTemplatePortal(portal) {
              let viewContainer = portal.viewContainerRef;
              let viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context, {
                injector: portal.injector
              });
              // The method `createEmbeddedView` will add the view as a child of the viewContainer.
              // But for the DomPortalOutlet the view can be added everywhere in the DOM
              // (e.g Overlay Container) To move the view to the specified host element. We just
              // re-append the existing root nodes.
              viewRef.rootNodes.forEach(rootNode => this.outletElement.appendChild(rootNode));
              // Note that we want to detect changes after the nodes have been moved so that
              // any directives inside the portal that are looking at the DOM inside a lifecycle
              // hook won't be invoked too early.
              viewRef.detectChanges();
              this.setDisposeFn(() => {
                let index = viewContainer.indexOf(viewRef);
                if (index !== -1) {
                  viewContainer.remove(index);
                }
              });
              this._attachedPortal = portal;
              // TODO(jelbourn): Return locals from view.
              return viewRef;
            }
            /**
             * Clears out a portal from the DOM.
             */
            dispose() {
              super.dispose();
              this.outletElement.remove();
            }
            /** Gets the root HTMLElement for an instantiated component. */
            _getComponentRootNode(componentRef) {
              return componentRef.hostView.rootNodes[0];
            }
          }
          /**
           * @deprecated Use `DomPortalOutlet` instead.
           * @breaking-change 9.0.0
           */
          class DomPortalHost extends DomPortalOutlet {}
          
          /**
           * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
           * the directive instance itself can be attached to a host, enabling declarative use of portals.
           */
          class CdkPortal extends TemplatePortal {
            constructor(templateRef, viewContainerRef) {
              super(templateRef, viewContainerRef);
            }
            static {
              this.ɵfac = function CdkPortal_Factory(t) {
                return new (t || CdkPortal)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkPortal,
                selectors: [["", "cdkPortal", ""]],
                exportAs: ["cdkPortal"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortal, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkPortal]',
                exportAs: 'cdkPortal'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }];
            }, null);
          })();
          /**
           * @deprecated Use `CdkPortal` instead.
           * @breaking-change 9.0.0
           */
          class TemplatePortalDirective extends CdkPortal {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵTemplatePortalDirective_BaseFactory;
                return function TemplatePortalDirective_Factory(t) {
                  return (ɵTemplatePortalDirective_BaseFactory || (ɵTemplatePortalDirective_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TemplatePortalDirective)))(t || TemplatePortalDirective);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: TemplatePortalDirective,
                selectors: [["", "cdk-portal", ""], ["", "portal", ""]],
                exportAs: ["cdkPortal"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: CdkPortal,
                  useExisting: TemplatePortalDirective
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TemplatePortalDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdk-portal], [portal]',
                exportAs: 'cdkPortal',
                providers: [{
                  provide: CdkPortal,
                  useExisting: TemplatePortalDirective
                }]
              }]
            }], null, null);
          })();
          /**
           * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
           * directly attached to it, enabling declarative use.
           *
           * Usage:
           * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
           */
          class CdkPortalOutlet extends BasePortalOutlet {
            constructor(_componentFactoryResolver, _viewContainerRef,
            /**
             * @deprecated `_document` parameter to be made required.
             * @breaking-change 9.0.0
             */
            _document) {
              super();
              this._componentFactoryResolver = _componentFactoryResolver;
              this._viewContainerRef = _viewContainerRef;
              /** Whether the portal component is initialized. */
              this._isInitialized = false;
              /** Emits when a portal is attached to the outlet. */
              this.attached = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /**
               * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
               * @param portal Portal to be attached.
               * @deprecated To be turned into a method.
               * @breaking-change 10.0.0
               */
              this.attachDomPortal = portal => {
                // @breaking-change 9.0.0 Remove check and error once the
                // `_document` constructor parameter is required.
                if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw Error('Cannot attach DOM portal without _document constructor parameter');
                }
                const element = portal.element;
                if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw Error('DOM portal content must be attached to a parent node.');
                }
                // Anchor used to save the element's previous position so
                // that we can restore it when the portal is detached.
                const anchorNode = this._document.createComment('dom-portal');
                portal.setAttachedHost(this);
                element.parentNode.insertBefore(anchorNode, element);
                this._getRootNode().appendChild(element);
                this._attachedPortal = portal;
                super.setDisposeFn(() => {
                  if (anchorNode.parentNode) {
                    anchorNode.parentNode.replaceChild(element, anchorNode);
                  }
                });
              };
              this._document = _document;
            }
            /** Portal associated with the Portal outlet. */
            get portal() {
              return this._attachedPortal;
            }
            set portal(portal) {
              // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have
              // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`
              // and attach a portal programmatically in the parent component. When Angular does the first CD
              // round, it will fire the setter with empty string, causing the user's content to be cleared.
              if (this.hasAttached() && !portal && !this._isInitialized) {
                return;
              }
              if (this.hasAttached()) {
                super.detach();
              }
              if (portal) {
                super.attach(portal);
              }
              this._attachedPortal = portal || null;
            }
            /** Component or view reference that is attached to the portal. */
            get attachedRef() {
              return this._attachedRef;
            }
            ngOnInit() {
              this._isInitialized = true;
            }
            ngOnDestroy() {
              super.dispose();
              this._attachedRef = this._attachedPortal = null;
            }
            /**
             * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
             *
             * @param portal Portal to be attached to the portal outlet.
             * @returns Reference to the created component.
             */
            attachComponentPortal(portal) {
              portal.setAttachedHost(this);
              // If the portal specifies an origin, use that as the logical location of the component
              // in the application tree. Otherwise use the location of this PortalOutlet.
              const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;
              const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;
              const componentFactory = resolver.resolveComponentFactory(portal.component);
              const ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector, portal.projectableNodes || undefined);
              // If we're using a view container that's different from the injected one (e.g. when the portal
              // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered
              // inside of the alternate view container.
              if (viewContainerRef !== this._viewContainerRef) {
                this._getRootNode().appendChild(ref.hostView.rootNodes[0]);
              }
              super.setDisposeFn(() => ref.destroy());
              this._attachedPortal = portal;
              this._attachedRef = ref;
              this.attached.emit(ref);
              return ref;
            }
            /**
             * Attach the given TemplatePortal to this PortalHost as an embedded View.
             * @param portal Portal to be attached.
             * @returns Reference to the created embedded view.
             */
            attachTemplatePortal(portal) {
              portal.setAttachedHost(this);
              const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context, {
                injector: portal.injector
              });
              super.setDisposeFn(() => this._viewContainerRef.clear());
              this._attachedPortal = portal;
              this._attachedRef = viewRef;
              this.attached.emit(viewRef);
              return viewRef;
            }
            /** Gets the root node of the portal outlet. */
            _getRootNode() {
              const nativeElement = this._viewContainerRef.element.nativeElement;
              // The directive could be set on a template which will result in a comment
              // node being the root. Use the comment's parent node if that is the case.
              return nativeElement.nodeType === nativeElement.ELEMENT_NODE ? nativeElement : nativeElement.parentNode;
            }
            static {
              this.ɵfac = function CdkPortalOutlet_Factory(t) {
                return new (t || CdkPortalOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ComponentFactoryResolver), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkPortalOutlet,
                selectors: [["", "cdkPortalOutlet", ""]],
                inputs: {
                  portal: ["cdkPortalOutlet", "portal"]
                },
                outputs: {
                  attached: "attached"
                },
                exportAs: ["cdkPortalOutlet"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortalOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkPortalOutlet]',
                exportAs: 'cdkPortalOutlet',
                inputs: ['portal: cdkPortalOutlet']
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ComponentFactoryResolver
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
                }]
              }];
            }, {
              attached: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }]
            });
          })();
          /**
           * @deprecated Use `CdkPortalOutlet` instead.
           * @breaking-change 9.0.0
           */
          class PortalHostDirective extends CdkPortalOutlet {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵPortalHostDirective_BaseFactory;
                return function PortalHostDirective_Factory(t) {
                  return (ɵPortalHostDirective_BaseFactory || (ɵPortalHostDirective_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](PortalHostDirective)))(t || PortalHostDirective);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: PortalHostDirective,
                selectors: [["", "cdkPortalHost", ""], ["", "portalHost", ""]],
                inputs: {
                  portal: ["cdkPortalHost", "portal"]
                },
                exportAs: ["cdkPortalHost"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: CdkPortalOutlet,
                  useExisting: PortalHostDirective
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalHostDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkPortalHost], [portalHost]',
                exportAs: 'cdkPortalHost',
                inputs: ['portal: cdkPortalHost'],
                providers: [{
                  provide: CdkPortalOutlet,
                  useExisting: PortalHostDirective
                }]
              }]
            }], null, null);
          })();
          class PortalModule {
            static {
              this.ɵfac = function PortalModule_Factory(t) {
                return new (t || PortalModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: PortalModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
                declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective]
              }]
            }], null, null);
          })();
          
          /**
           * Custom injector to be used when providing custom
           * injection tokens to components inside a portal.
           * @docs-private
           * @deprecated Use `Injector.create` instead.
           * @breaking-change 11.0.0
           */
          class PortalInjector {
            constructor(_parentInjector, _customTokens) {
              this._parentInjector = _parentInjector;
              this._customTokens = _customTokens;
            }
            get(token, notFoundValue) {
              const value = this._customTokens.get(token);
              if (typeof value !== 'undefined') {
                return value;
              }
              return this._parentInjector.get(token, notFoundValue);
            }
          }
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 9975:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/scrolling.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   CdkFixedSizeVirtualScroll: () => (/* binding */ CdkFixedSizeVirtualScroll),
          /* harmony export */   CdkScrollable: () => (/* binding */ CdkScrollable),
          /* harmony export */   CdkScrollableModule: () => (/* binding */ CdkScrollableModule),
          /* harmony export */   CdkVirtualForOf: () => (/* binding */ CdkVirtualForOf),
          /* harmony export */   CdkVirtualScrollViewport: () => (/* binding */ CdkVirtualScrollViewport),
          /* harmony export */   CdkVirtualScrollable: () => (/* binding */ CdkVirtualScrollable),
          /* harmony export */   CdkVirtualScrollableElement: () => (/* binding */ CdkVirtualScrollableElement),
          /* harmony export */   CdkVirtualScrollableWindow: () => (/* binding */ CdkVirtualScrollableWindow),
          /* harmony export */   DEFAULT_RESIZE_TIME: () => (/* binding */ DEFAULT_RESIZE_TIME),
          /* harmony export */   DEFAULT_SCROLL_TIME: () => (/* binding */ DEFAULT_SCROLL_TIME),
          /* harmony export */   FixedSizeVirtualScrollStrategy: () => (/* binding */ FixedSizeVirtualScrollStrategy),
          /* harmony export */   ScrollDispatcher: () => (/* binding */ ScrollDispatcher),
          /* harmony export */   ScrollingModule: () => (/* binding */ ScrollingModule),
          /* harmony export */   VIRTUAL_SCROLLABLE: () => (/* binding */ VIRTUAL_SCROLLABLE),
          /* harmony export */   VIRTUAL_SCROLL_STRATEGY: () => (/* binding */ VIRTUAL_SCROLL_STRATEGY),
          /* harmony export */   ViewportRuler: () => (/* binding */ ViewportRuler),
          /* harmony export */   _fixedSizeVirtualScrollStrategyFactory: () => (/* binding */ _fixedSizeVirtualScrollStrategyFactory)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 8537);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 614);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ 7180);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! rxjs */ 2551);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 1817);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 2351);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs/operators */ 3037);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! rxjs/operators */ 5057);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs/operators */ 6647);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! rxjs/operators */ 6301);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/cdk/collections */ 7989);
          
          
          
          
          
          
          
          
          
          
          
          
          
          /** The injection token used to specify the virtual scrolling strategy. */
          const _c0 = ["contentWrapper"];
          const _c1 = ["*"];
          const VIRTUAL_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('VIRTUAL_SCROLL_STRATEGY');
          
          /** Virtual scrolling strategy for lists with items of known fixed size. */
          class FixedSizeVirtualScrollStrategy {
            /**
             * @param itemSize The size of the items in the virtually scrolling list.
             * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
             * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
             */
            constructor(itemSize, minBufferPx, maxBufferPx) {
              this._scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** @docs-private Implemented as part of VirtualScrollStrategy. */
              this.scrolledIndexChange = this._scrolledIndexChange.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.distinctUntilChanged)());
              /** The attached viewport. */
              this._viewport = null;
              this._itemSize = itemSize;
              this._minBufferPx = minBufferPx;
              this._maxBufferPx = maxBufferPx;
            }
            /**
             * Attaches this scroll strategy to a viewport.
             * @param viewport The viewport to attach this strategy to.
             */
            attach(viewport) {
              this._viewport = viewport;
              this._updateTotalContentSize();
              this._updateRenderedRange();
            }
            /** Detaches this scroll strategy from the currently attached viewport. */
            detach() {
              this._scrolledIndexChange.complete();
              this._viewport = null;
            }
            /**
             * Update the item size and buffer size.
             * @param itemSize The size of the items in the virtually scrolling list.
             * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
             * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
             */
            updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) {
              if (maxBufferPx < minBufferPx && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
              }
              this._itemSize = itemSize;
              this._minBufferPx = minBufferPx;
              this._maxBufferPx = maxBufferPx;
              this._updateTotalContentSize();
              this._updateRenderedRange();
            }
            /** @docs-private Implemented as part of VirtualScrollStrategy. */
            onContentScrolled() {
              this._updateRenderedRange();
            }
            /** @docs-private Implemented as part of VirtualScrollStrategy. */
            onDataLengthChanged() {
              this._updateTotalContentSize();
              this._updateRenderedRange();
            }
            /** @docs-private Implemented as part of VirtualScrollStrategy. */
            onContentRendered() {
              /* no-op */
            }
            /** @docs-private Implemented as part of VirtualScrollStrategy. */
            onRenderedOffsetChanged() {
              /* no-op */
            }
            /**
             * Scroll to the offset for the given index.
             * @param index The index of the element to scroll to.
             * @param behavior The ScrollBehavior to use when scrolling.
             */
            scrollToIndex(index, behavior) {
              if (this._viewport) {
                this._viewport.scrollToOffset(index * this._itemSize, behavior);
              }
            }
            /** Update the viewport's total content size. */
            _updateTotalContentSize() {
              if (!this._viewport) {
                return;
              }
              this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);
            }
            /** Update the viewport's rendered range. */
            _updateRenderedRange() {
              if (!this._viewport) {
                return;
              }
              const renderedRange = this._viewport.getRenderedRange();
              const newRange = {
                start: renderedRange.start,
                end: renderedRange.end
              };
              const viewportSize = this._viewport.getViewportSize();
              const dataLength = this._viewport.getDataLength();
              let scrollOffset = this._viewport.measureScrollOffset();
              // Prevent NaN as result when dividing by zero.
              let firstVisibleIndex = this._itemSize > 0 ? scrollOffset / this._itemSize : 0;
              // If user scrolls to the bottom of the list and data changes to a smaller list
              if (newRange.end > dataLength) {
                // We have to recalculate the first visible index based on new data length and viewport size.
                const maxVisibleItems = Math.ceil(viewportSize / this._itemSize);
                const newVisibleIndex = Math.max(0, Math.min(firstVisibleIndex, dataLength - maxVisibleItems));
                // If first visible index changed we must update scroll offset to handle start/end buffers
                // Current range must also be adjusted to cover the new position (bottom of new list).
                if (firstVisibleIndex != newVisibleIndex) {
                  firstVisibleIndex = newVisibleIndex;
                  scrollOffset = newVisibleIndex * this._itemSize;
                  newRange.start = Math.floor(firstVisibleIndex);
                }
                newRange.end = Math.max(0, Math.min(dataLength, newRange.start + maxVisibleItems));
              }
              const startBuffer = scrollOffset - newRange.start * this._itemSize;
              if (startBuffer < this._minBufferPx && newRange.start != 0) {
                const expandStart = Math.ceil((this._maxBufferPx - startBuffer) / this._itemSize);
                newRange.start = Math.max(0, newRange.start - expandStart);
                newRange.end = Math.min(dataLength, Math.ceil(firstVisibleIndex + (viewportSize + this._minBufferPx) / this._itemSize));
              } else {
                const endBuffer = newRange.end * this._itemSize - (scrollOffset + viewportSize);
                if (endBuffer < this._minBufferPx && newRange.end != dataLength) {
                  const expandEnd = Math.ceil((this._maxBufferPx - endBuffer) / this._itemSize);
                  if (expandEnd > 0) {
                    newRange.end = Math.min(dataLength, newRange.end + expandEnd);
                    newRange.start = Math.max(0, Math.floor(firstVisibleIndex - this._minBufferPx / this._itemSize));
                  }
                }
              }
              this._viewport.setRenderedRange(newRange);
              this._viewport.setRenderedContentOffset(this._itemSize * newRange.start);
              this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
            }
          }
          /**
           * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
           * `FixedSizeVirtualScrollStrategy` from the given directive.
           * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
           *     `FixedSizeVirtualScrollStrategy` from.
           */
          function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
            return fixedSizeDir._scrollStrategy;
          }
          /** A virtual scroll strategy that supports fixed-size items. */
          class CdkFixedSizeVirtualScroll {
            constructor() {
              this._itemSize = 20;
              this._minBufferPx = 100;
              this._maxBufferPx = 200;
              /** The scroll strategy used by this directive. */
              this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);
            }
            /** The size of the items in the list (in pixels). */
            get itemSize() {
              return this._itemSize;
            }
            set itemSize(value) {
              this._itemSize = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
            }
            /**
             * The minimum amount of buffer rendered beyond the viewport (in pixels).
             * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
             */
            get minBufferPx() {
              return this._minBufferPx;
            }
            set minBufferPx(value) {
              this._minBufferPx = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
            }
            /**
             * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
             */
            get maxBufferPx() {
              return this._maxBufferPx;
            }
            set maxBufferPx(value) {
              this._maxBufferPx = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
            }
            ngOnChanges() {
              this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
            }
            static {
              this.ɵfac = function CdkFixedSizeVirtualScroll_Factory(t) {
                return new (t || CdkFixedSizeVirtualScroll)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkFixedSizeVirtualScroll,
                selectors: [["cdk-virtual-scroll-viewport", "itemSize", ""]],
                inputs: {
                  itemSize: "itemSize",
                  minBufferPx: "minBufferPx",
                  maxBufferPx: "maxBufferPx"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: VIRTUAL_SCROLL_STRATEGY,
                  useFactory: _fixedSizeVirtualScrollStrategyFactory,
                  deps: [(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => CdkFixedSizeVirtualScroll)]
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkFixedSizeVirtualScroll, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'cdk-virtual-scroll-viewport[itemSize]',
                standalone: true,
                providers: [{
                  provide: VIRTUAL_SCROLL_STRATEGY,
                  useFactory: _fixedSizeVirtualScrollStrategyFactory,
                  deps: [(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => CdkFixedSizeVirtualScroll)]
                }]
              }]
            }], null, {
              itemSize: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              minBufferPx: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              maxBufferPx: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          
          /** Time in ms to throttle the scrolling events by default. */
          const DEFAULT_SCROLL_TIME = 20;
          /**
           * Service contained all registered Scrollable references and emits an event when any one of the
           * Scrollable references emit a scrolled event.
           */
          class ScrollDispatcher {
            constructor(_ngZone, _platform, document) {
              this._ngZone = _ngZone;
              this._platform = _platform;
              /** Subject for notifying that a registered scrollable reference element has been scrolled. */
              this._scrolled = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** Keeps track of the global `scroll` and `resize` subscriptions. */
              this._globalSubscription = null;
              /** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */
              this._scrolledCount = 0;
              /**
               * Map of all the scrollable references that are registered with the service and their
               * scroll event subscriptions.
               */
              this.scrollContainers = new Map();
              this._document = document;
            }
            /**
             * Registers a scrollable instance with the service and listens for its scrolled events. When the
             * scrollable is scrolled, the service emits the event to its scrolled observable.
             * @param scrollable Scrollable instance to be registered.
             */
            register(scrollable) {
              if (!this.scrollContainers.has(scrollable)) {
                this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(() => this._scrolled.next(scrollable)));
              }
            }
            /**
             * De-registers a Scrollable reference and unsubscribes from its scroll event observable.
             * @param scrollable Scrollable instance to be deregistered.
             */
            deregister(scrollable) {
              const scrollableReference = this.scrollContainers.get(scrollable);
              if (scrollableReference) {
                scrollableReference.unsubscribe();
                this.scrollContainers.delete(scrollable);
              }
            }
            /**
             * Returns an observable that emits an event whenever any of the registered Scrollable
             * references (or window, document, or body) fire a scrolled event. Can provide a time in ms
             * to override the default "throttle" time.
             *
             * **Note:** in order to avoid hitting change detection for every scroll event,
             * all of the events emitted from this stream will be run outside the Angular zone.
             * If you need to update any data bindings as a result of a scroll event, you have
             * to run the callback using `NgZone.run`.
             */
            scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) {
              if (!this._platform.isBrowser) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)();
              }
              return new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable(observer => {
                if (!this._globalSubscription) {
                  this._addGlobalListener();
                }
                // In the case of a 0ms delay, use an observable without auditTime
                // since it does add a perceptible delay in processing overhead.
                const subscription = auditTimeInMs > 0 ? this._scrolled.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)(auditTimeInMs)).subscribe(observer) : this._scrolled.subscribe(observer);
                this._scrolledCount++;
                return () => {
                  subscription.unsubscribe();
                  this._scrolledCount--;
                  if (!this._scrolledCount) {
                    this._removeGlobalListener();
                  }
                };
              });
            }
            ngOnDestroy() {
              this._removeGlobalListener();
              this.scrollContainers.forEach((_, container) => this.deregister(container));
              this._scrolled.complete();
            }
            /**
             * Returns an observable that emits whenever any of the
             * scrollable ancestors of an element are scrolled.
             * @param elementOrElementRef Element whose ancestors to listen for.
             * @param auditTimeInMs Time to throttle the scroll events.
             */
            ancestorScrolled(elementOrElementRef, auditTimeInMs) {
              const ancestors = this.getAncestorScrollContainers(elementOrElementRef);
              return this.scrolled(auditTimeInMs).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.filter)(target => {
                return !target || ancestors.indexOf(target) > -1;
              }));
            }
            /** Returns all registered Scrollables that contain the provided element. */
            getAncestorScrollContainers(elementOrElementRef) {
              const scrollingContainers = [];
              this.scrollContainers.forEach((_subscription, scrollable) => {
                if (this._scrollableContainsElement(scrollable, elementOrElementRef)) {
                  scrollingContainers.push(scrollable);
                }
              });
              return scrollingContainers;
            }
            /** Use defaultView of injected document if available or fallback to global window reference */
            _getWindow() {
              return this._document.defaultView || window;
            }
            /** Returns true if the element is contained within the provided Scrollable. */
            _scrollableContainsElement(scrollable, elementOrElementRef) {
              let element = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceElement)(elementOrElementRef);
              let scrollableElement = scrollable.getElementRef().nativeElement;
              // Traverse through the element parents until we reach null, checking if any of the elements
              // are the scrollable's element.
              do {
                if (element == scrollableElement) {
                  return true;
                }
              } while (element = element.parentElement);
              return false;
            }
            /** Sets up the global scroll listeners. */
            _addGlobalListener() {
              this._globalSubscription = this._ngZone.runOutsideAngular(() => {
                const window = this._getWindow();
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)(window.document, 'scroll').subscribe(() => this._scrolled.next());
              });
            }
            /** Cleans up the global scroll listener. */
            _removeGlobalListener() {
              if (this._globalSubscription) {
                this._globalSubscription.unsubscribe();
                this._globalSubscription = null;
              }
            }
            static {
              this.ɵfac = function ScrollDispatcher_Factory(t) {
                return new (t || ScrollDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ScrollDispatcher,
                factory: ScrollDispatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ScrollDispatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Sends an event when the directive's element is scrolled. Registers itself with the
           * ScrollDispatcher service to include itself as part of its collection of scrolling events that it
           * can be listened to through the service.
           */
          class CdkScrollable {
            constructor(elementRef, scrollDispatcher, ngZone, dir) {
              this.elementRef = elementRef;
              this.scrollDispatcher = scrollDispatcher;
              this.ngZone = ngZone;
              this.dir = dir;
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              this._elementScrolled = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable(observer => this.ngZone.runOutsideAngular(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)(this.elementRef.nativeElement, 'scroll').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._destroyed)).subscribe(observer)));
            }
            ngOnInit() {
              this.scrollDispatcher.register(this);
            }
            ngOnDestroy() {
              this.scrollDispatcher.deregister(this);
              this._destroyed.next();
              this._destroyed.complete();
            }
            /** Returns observable that emits when a scroll event is fired on the host element. */
            elementScrolled() {
              return this._elementScrolled;
            }
            /** Gets the ElementRef for the viewport. */
            getElementRef() {
              return this.elementRef;
            }
            /**
             * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo
             * method, since browsers are not consistent about what scrollLeft means in RTL. For this method
             * left and right always refer to the left and right side of the scrolling container irrespective
             * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
             * in an RTL context.
             * @param options specified the offsets to scroll to.
             */
            scrollTo(options) {
              const el = this.elementRef.nativeElement;
              const isRtl = this.dir && this.dir.value == 'rtl';
              // Rewrite start & end offsets as right or left offsets.
              if (options.left == null) {
                options.left = isRtl ? options.end : options.start;
              }
              if (options.right == null) {
                options.right = isRtl ? options.start : options.end;
              }
              // Rewrite the bottom offset as a top offset.
              if (options.bottom != null) {
                options.top = el.scrollHeight - el.clientHeight - options.bottom;
              }
              // Rewrite the right offset as a left offset.
              if (isRtl && (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() != 0 /* RtlScrollAxisType.NORMAL */) {
                if (options.left != null) {
                  options.right = el.scrollWidth - el.clientWidth - options.left;
                }
                if ((0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == 2 /* RtlScrollAxisType.INVERTED */) {
                  options.left = options.right;
                } else if ((0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == 1 /* RtlScrollAxisType.NEGATED */) {
                  options.left = options.right ? -options.right : options.right;
                }
              } else {
                if (options.right != null) {
                  options.left = el.scrollWidth - el.clientWidth - options.right;
                }
              }
              this._applyScrollToOptions(options);
            }
            _applyScrollToOptions(options) {
              const el = this.elementRef.nativeElement;
              if ((0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.supportsScrollBehavior)()) {
                el.scrollTo(options);
              } else {
                if (options.top != null) {
                  el.scrollTop = options.top;
                }
                if (options.left != null) {
                  el.scrollLeft = options.left;
                }
              }
            }
            /**
             * Measures the scroll offset relative to the specified edge of the viewport. This method can be
             * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent
             * about what scrollLeft means in RTL. The values returned by this method are normalized such that
             * left and right always refer to the left and right side of the scrolling container irrespective
             * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
             * in an RTL context.
             * @param from The edge to measure from.
             */
            measureScrollOffset(from) {
              const LEFT = 'left';
              const RIGHT = 'right';
              const el = this.elementRef.nativeElement;
              if (from == 'top') {
                return el.scrollTop;
              }
              if (from == 'bottom') {
                return el.scrollHeight - el.clientHeight - el.scrollTop;
              }
              // Rewrite start & end as left or right offsets.
              const isRtl = this.dir && this.dir.value == 'rtl';
              if (from == 'start') {
                from = isRtl ? RIGHT : LEFT;
              } else if (from == 'end') {
                from = isRtl ? LEFT : RIGHT;
              }
              if (isRtl && (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == 2 /* RtlScrollAxisType.INVERTED */) {
                // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and
                // 0 when scrolled all the way right.
                if (from == LEFT) {
                  return el.scrollWidth - el.clientWidth - el.scrollLeft;
                } else {
                  return el.scrollLeft;
                }
              } else if (isRtl && (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.getRtlScrollAxisType)() == 1 /* RtlScrollAxisType.NEGATED */) {
                // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and
                // 0 when scrolled all the way right.
                if (from == LEFT) {
                  return el.scrollLeft + el.scrollWidth - el.clientWidth;
                } else {
                  return -el.scrollLeft;
                }
              } else {
                // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and
                // (scrollWidth - clientWidth) when scrolled all the way right.
                if (from == LEFT) {
                  return el.scrollLeft;
                } else {
                  return el.scrollWidth - el.clientWidth - el.scrollLeft;
                }
              }
            }
            static {
              this.ɵfac = function CdkScrollable_Factory(t) {
                return new (t || CdkScrollable)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkScrollable,
                selectors: [["", "cdk-scrollable", ""], ["", "cdkScrollable", ""]],
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkScrollable, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdk-scrollable], [cdkScrollable]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, null);
          })();
          
          /** Time in ms to throttle the resize events by default. */
          const DEFAULT_RESIZE_TIME = 20;
          /**
           * Simple utility for getting the bounds of the browser viewport.
           * @docs-private
           */
          class ViewportRuler {
            constructor(_platform, ngZone, document) {
              this._platform = _platform;
              /** Stream of viewport change events. */
              this._change = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** Event listener that will be used to handle the viewport change events. */
              this._changeListener = event => {
                this._change.next(event);
              };
              this._document = document;
              ngZone.runOutsideAngular(() => {
                if (_platform.isBrowser) {
                  const window = this._getWindow();
                  // Note that bind the events ourselves, rather than going through something like RxJS's
                  // `fromEvent` so that we can ensure that they're bound outside of the NgZone.
                  window.addEventListener('resize', this._changeListener);
                  window.addEventListener('orientationchange', this._changeListener);
                }
                // Clear the cached position so that the viewport is re-measured next time it is required.
                // We don't need to keep track of the subscription, because it is completed on destroy.
                this.change().subscribe(() => this._viewportSize = null);
              });
            }
            ngOnDestroy() {
              if (this._platform.isBrowser) {
                const window = this._getWindow();
                window.removeEventListener('resize', this._changeListener);
                window.removeEventListener('orientationchange', this._changeListener);
              }
              this._change.complete();
            }
            /** Returns the viewport's width and height. */
            getViewportSize() {
              if (!this._viewportSize) {
                this._updateViewportSize();
              }
              const output = {
                width: this._viewportSize.width,
                height: this._viewportSize.height
              };
              // If we're not on a browser, don't cache the size since it'll be mocked out anyway.
              if (!this._platform.isBrowser) {
                this._viewportSize = null;
              }
              return output;
            }
            /** Gets a ClientRect for the viewport's bounds. */
            getViewportRect() {
              // Use the document element's bounding rect rather than the window scroll properties
              // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll
              // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different
              // conceptual viewports. Under most circumstances these viewports are equivalent, but they
              // can disagree when the page is pinch-zoomed (on devices that support touch).
              // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4
              // We use the documentElement instead of the body because, by default (without a css reset)
              // browsers typically give the document body an 8px margin, which is not included in
              // getBoundingClientRect().
              const scrollPosition = this.getViewportScrollPosition();
              const {
                width,
                height
              } = this.getViewportSize();
              return {
                top: scrollPosition.top,
                left: scrollPosition.left,
                bottom: scrollPosition.top + height,
                right: scrollPosition.left + width,
                height,
                width
              };
            }
            /** Gets the (top, left) scroll position of the viewport. */
            getViewportScrollPosition() {
              // While we can get a reference to the fake document
              // during SSR, it doesn't have getBoundingClientRect.
              if (!this._platform.isBrowser) {
                return {
                  top: 0,
                  left: 0
                };
              }
              // The top-left-corner of the viewport is determined by the scroll position of the document
              // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about
              // whether `document.body` or `document.documentElement` is the scrolled element, so reading
              // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of
              // `document.documentElement` works consistently, where the `top` and `left` values will
              // equal negative the scroll position.
              const document = this._document;
              const window = this._getWindow();
              const documentElement = document.documentElement;
              const documentRect = documentElement.getBoundingClientRect();
              const top = -documentRect.top || document.body.scrollTop || window.scrollY || documentElement.scrollTop || 0;
              const left = -documentRect.left || document.body.scrollLeft || window.scrollX || documentElement.scrollLeft || 0;
              return {
                top,
                left
              };
            }
            /**
             * Returns a stream that emits whenever the size of the viewport changes.
             * This stream emits outside of the Angular zone.
             * @param throttleTime Time in milliseconds to throttle the stream.
             */
            change(throttleTime = DEFAULT_RESIZE_TIME) {
              return throttleTime > 0 ? this._change.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)(throttleTime)) : this._change;
            }
            /** Use defaultView of injected document if available or fallback to global window reference */
            _getWindow() {
              return this._document.defaultView || window;
            }
            /** Updates the cached viewport size. */
            _updateViewportSize() {
              const window = this._getWindow();
              this._viewportSize = this._platform.isBrowser ? {
                width: window.innerWidth,
                height: window.innerHeight
              } : {
                width: 0,
                height: 0
              };
            }
            static {
              this.ɵfac = function ViewportRuler_Factory(t) {
                return new (t || ViewportRuler)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ViewportRuler,
                factory: ViewportRuler.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewportRuler, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          const VIRTUAL_SCROLLABLE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('VIRTUAL_SCROLLABLE');
          /**
           * Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.
           */
          class CdkVirtualScrollable extends CdkScrollable {
            constructor(elementRef, scrollDispatcher, ngZone, dir) {
              super(elementRef, scrollDispatcher, ngZone, dir);
            }
            /**
             * Measure the viewport size for the provided orientation.
             *
             * @param orientation The orientation to measure the size from.
             */
            measureViewportSize(orientation) {
              const viewportEl = this.elementRef.nativeElement;
              return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
            }
            static {
              this.ɵfac = function CdkVirtualScrollable_Factory(t) {
                return new (t || CdkVirtualScrollable)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkVirtualScrollable,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkVirtualScrollable, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, null);
          })();
          
          /** Checks if the given ranges are equal. */
          function rangesEqual(r1, r2) {
            return r1.start == r2.start && r1.end == r2.end;
          }
          /**
           * Scheduler to be used for scroll events. Needs to fall back to
           * something that doesn't rely on requestAnimationFrame on environments
           * that don't support it (e.g. server-side rendering).
           */
          const SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? rxjs__WEBPACK_IMPORTED_MODULE_13__.animationFrameScheduler : rxjs__WEBPACK_IMPORTED_MODULE_14__.asapScheduler;
          /** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */
          class CdkVirtualScrollViewport extends CdkVirtualScrollable {
            /** The direction the viewport scrolls. */
            get orientation() {
              return this._orientation;
            }
            set orientation(orientation) {
              if (this._orientation !== orientation) {
                this._orientation = orientation;
                this._calculateSpacerSize();
              }
            }
            /**
             * Whether rendered items should persist in the DOM after scrolling out of view. By default, items
             * will be removed.
             */
            get appendOnly() {
              return this._appendOnly;
            }
            set appendOnly(value) {
              this._appendOnly = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)(value);
            }
            constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, scrollable) {
              super(elementRef, scrollDispatcher, ngZone, dir);
              this.elementRef = elementRef;
              this._changeDetectorRef = _changeDetectorRef;
              this._scrollStrategy = _scrollStrategy;
              this.scrollable = scrollable;
              this._platform = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform);
              /** Emits when the viewport is detached from a CdkVirtualForOf. */
              this._detachedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** Emits when the rendered range changes. */
              this._renderedRangeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              this._orientation = 'vertical';
              this._appendOnly = false;
              // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
              // strategy lazily (i.e. only if the user is actually listening to the events). We do this because
              // depending on how the strategy calculates the scrolled index, it may come at a cost to
              // performance.
              /** Emits when the index of the first element visible in the viewport changes. */
              this.scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable(observer => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));
              /** A stream that emits whenever the rendered range changes. */
              this.renderedRangeStream = this._renderedRangeSubject;
              /**
               * The total size of all content (in pixels), including content that is not currently rendered.
               */
              this._totalContentSize = 0;
              /** A string representing the `style.width` property value to be used for the spacer element. */
              this._totalContentWidth = '';
              /** A string representing the `style.height` property value to be used for the spacer element. */
              this._totalContentHeight = '';
              /** The currently rendered range of indices. */
              this._renderedRange = {
                start: 0,
                end: 0
              };
              /** The length of the data bound to this viewport (in number of items). */
              this._dataLength = 0;
              /** The size of the viewport (in pixels). */
              this._viewportSize = 0;
              /** The last rendered content offset that was set. */
              this._renderedContentOffset = 0;
              /**
               * Whether the last rendered content offset was to the end of the content (and therefore needs to
               * be rewritten as an offset to the start of the content).
               */
              this._renderedContentOffsetNeedsRewrite = false;
              /** Whether there is a pending change detection cycle. */
              this._isChangeDetectionPending = false;
              /** A list of functions to run after the next change detection cycle. */
              this._runAfterChangeDetection = [];
              /** Subscription to changes in the viewport size. */
              this._viewportChanges = rxjs__WEBPACK_IMPORTED_MODULE_15__.Subscription.EMPTY;
              if (!_scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
              }
              this._viewportChanges = viewportRuler.change().subscribe(() => {
                this.checkViewportSize();
              });
              if (!this.scrollable) {
                // No scrollable is provided, so the virtual-scroll-viewport needs to become a scrollable
                this.elementRef.nativeElement.classList.add('cdk-virtual-scrollable');
                this.scrollable = this;
              }
            }
            ngOnInit() {
              // Scrolling depends on the element dimensions which we can't get during SSR.
              if (!this._platform.isBrowser) {
                return;
              }
              if (this.scrollable === this) {
                super.ngOnInit();
              }
              // It's still too early to measure the viewport at this point. Deferring with a promise allows
              // the Viewport to be rendered with the correct size before we measure. We run this outside the
              // zone to avoid causing more change detection cycles. We handle the change detection loop
              // ourselves instead.
              this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
                this._measureViewportSize();
                this._scrollStrategy.attach(this);
                this.scrollable.elementScrolled().pipe(
                // Start off with a fake scroll event so we properly detect our initial position.
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.startWith)(null),
                // Collect multiple events into one until the next animation frame. This way if
                // there are multiple scroll events in the same frame we only need to recheck
                // our layout once.
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.auditTime)(0, SCROLL_SCHEDULER),
                // Usually `elementScrolled` is completed when the scrollable is destroyed, but
                // that may not be the case if a `CdkVirtualScrollableElement` is used so we have
                // to unsubscribe here just in case.
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._destroyed)).subscribe(() => this._scrollStrategy.onContentScrolled());
                this._markChangeDetectionNeeded();
              }));
            }
            ngOnDestroy() {
              this.detach();
              this._scrollStrategy.detach();
              // Complete all subjects
              this._renderedRangeSubject.complete();
              this._detachedSubject.complete();
              this._viewportChanges.unsubscribe();
              super.ngOnDestroy();
            }
            /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
            attach(forOf) {
              if (this._forOf && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error('CdkVirtualScrollViewport is already attached.');
              }
              // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
              // changes. Run outside the zone to avoid triggering change detection, since we're managing the
              // change detection loop ourselves.
              this.ngZone.runOutsideAngular(() => {
                this._forOf = forOf;
                this._forOf.dataStream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._detachedSubject)).subscribe(data => {
                  const newLength = data.length;
                  if (newLength !== this._dataLength) {
                    this._dataLength = newLength;
                    this._scrollStrategy.onDataLengthChanged();
                  }
                  this._doChangeDetection();
                });
              });
            }
            /** Detaches the current `CdkVirtualForOf`. */
            detach() {
              this._forOf = null;
              this._detachedSubject.next();
            }
            /** Gets the length of the data bound to this viewport (in number of items). */
            getDataLength() {
              return this._dataLength;
            }
            /** Gets the size of the viewport (in pixels). */
            getViewportSize() {
              return this._viewportSize;
            }
            // TODO(mmalerba): This is technically out of sync with what's really rendered until a render
            // cycle happens. I'm being careful to only call it after the render cycle is complete and before
            // setting it to something else, but its error prone and should probably be split into
            // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.
            /** Get the current rendered range of items. */
            getRenderedRange() {
              return this._renderedRange;
            }
            measureBoundingClientRectWithScrollOffset(from) {
              return this.getElementRef().nativeElement.getBoundingClientRect()[from];
            }
            /**
             * Sets the total size of all content (in pixels), including content that is not currently
             * rendered.
             */
            setTotalContentSize(size) {
              if (this._totalContentSize !== size) {
                this._totalContentSize = size;
                this._calculateSpacerSize();
                this._markChangeDetectionNeeded();
              }
            }
            /** Sets the currently rendered range of indices. */
            setRenderedRange(range) {
              if (!rangesEqual(this._renderedRange, range)) {
                if (this.appendOnly) {
                  range = {
                    start: 0,
                    end: Math.max(this._renderedRange.end, range.end)
                  };
                }
                this._renderedRangeSubject.next(this._renderedRange = range);
                this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());
              }
            }
            /**
             * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
             */
            getOffsetToRenderedContentStart() {
              return this._renderedContentOffsetNeedsRewrite ? null : this._renderedContentOffset;
            }
            /**
             * Sets the offset from the start of the viewport to either the start or end of the rendered data
             * (in pixels).
             */
            setRenderedContentOffset(offset, to = 'to-start') {
              // In appendOnly, we always start from the top
              offset = this.appendOnly && to === 'to-start' ? 0 : offset;
              // For a horizontal viewport in a right-to-left language we need to translate along the x-axis
              // in the negative direction.
              const isRtl = this.dir && this.dir.value == 'rtl';
              const isHorizontal = this.orientation == 'horizontal';
              const axis = isHorizontal ? 'X' : 'Y';
              const axisDirection = isHorizontal && isRtl ? -1 : 1;
              let transform = `translate${axis}(${Number(axisDirection * offset)}px)`;
              this._renderedContentOffset = offset;
              if (to === 'to-end') {
                transform += ` translate${axis}(-100%)`;
                // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise
                // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would
                // expand upward).
                this._renderedContentOffsetNeedsRewrite = true;
              }
              if (this._renderedContentTransform != transform) {
                // We know this value is safe because we parse `offset` with `Number()` before passing it
                // into the string.
                this._renderedContentTransform = transform;
                this._markChangeDetectionNeeded(() => {
                  if (this._renderedContentOffsetNeedsRewrite) {
                    this._renderedContentOffset -= this.measureRenderedContentSize();
                    this._renderedContentOffsetNeedsRewrite = false;
                    this.setRenderedContentOffset(this._renderedContentOffset);
                  } else {
                    this._scrollStrategy.onRenderedOffsetChanged();
                  }
                });
              }
            }
            /**
             * Scrolls to the given offset from the start of the viewport. Please note that this is not always
             * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
             * direction, this would be the equivalent of setting a fictional `scrollRight` property.
             * @param offset The offset to scroll to.
             * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
             */
            scrollToOffset(offset, behavior = 'auto') {
              const options = {
                behavior
              };
              if (this.orientation === 'horizontal') {
                options.start = offset;
              } else {
                options.top = offset;
              }
              this.scrollable.scrollTo(options);
            }
            /**
             * Scrolls to the offset for the given index.
             * @param index The index of the element to scroll to.
             * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
             */
            scrollToIndex(index, behavior = 'auto') {
              this._scrollStrategy.scrollToIndex(index, behavior);
            }
            /**
             * Gets the current scroll offset from the start of the scrollable (in pixels).
             * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
             *     in horizontal mode.
             */
            measureScrollOffset(from) {
              // This is to break the call cycle
              let measureScrollOffset;
              if (this.scrollable == this) {
                measureScrollOffset = _from => super.measureScrollOffset(_from);
              } else {
                measureScrollOffset = _from => this.scrollable.measureScrollOffset(_from);
              }
              return Math.max(0, measureScrollOffset(from ?? (this.orientation === 'horizontal' ? 'start' : 'top')) - this.measureViewportOffset());
            }
            /**
             * Measures the offset of the viewport from the scrolling container
             * @param from The edge to measure from.
             */
            measureViewportOffset(from) {
              let fromRect;
              const LEFT = 'left';
              const RIGHT = 'right';
              const isRtl = this.dir?.value == 'rtl';
              if (from == 'start') {
                fromRect = isRtl ? RIGHT : LEFT;
              } else if (from == 'end') {
                fromRect = isRtl ? LEFT : RIGHT;
              } else if (from) {
                fromRect = from;
              } else {
                fromRect = this.orientation === 'horizontal' ? 'left' : 'top';
              }
              const scrollerClientRect = this.scrollable.measureBoundingClientRectWithScrollOffset(fromRect);
              const viewportClientRect = this.elementRef.nativeElement.getBoundingClientRect()[fromRect];
              return viewportClientRect - scrollerClientRect;
            }
            /** Measure the combined size of all of the rendered items. */
            measureRenderedContentSize() {
              const contentEl = this._contentWrapper.nativeElement;
              return this.orientation === 'horizontal' ? contentEl.offsetWidth : contentEl.offsetHeight;
            }
            /**
             * Measure the total combined size of the given range. Throws if the range includes items that are
             * not rendered.
             */
            measureRangeSize(range) {
              if (!this._forOf) {
                return 0;
              }
              return this._forOf.measureRangeSize(range, this.orientation);
            }
            /** Update the viewport dimensions and re-render. */
            checkViewportSize() {
              // TODO: Cleanup later when add logic for handling content resize
              this._measureViewportSize();
              this._scrollStrategy.onDataLengthChanged();
            }
            /** Measure the viewport size. */
            _measureViewportSize() {
              this._viewportSize = this.scrollable.measureViewportSize(this.orientation);
            }
            /** Queue up change detection to run. */
            _markChangeDetectionNeeded(runAfter) {
              if (runAfter) {
                this._runAfterChangeDetection.push(runAfter);
              }
              // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
              // properties sequentially we only have to run `_doChangeDetection` once at the end.
              if (!this._isChangeDetectionPending) {
                this._isChangeDetectionPending = true;
                this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
                  this._doChangeDetection();
                }));
              }
            }
            /** Run change detection. */
            _doChangeDetection() {
              this._isChangeDetectionPending = false;
              // Apply the content transform. The transform can't be set via an Angular binding because
              // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
              // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
              // the `Number` function first to coerce it to a numeric value.
              this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;
              // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
              // from the root, since the repeated items are content projected in. Calling `detectChanges`
              // instead does not properly check the projected content.
              this.ngZone.run(() => this._changeDetectorRef.markForCheck());
              const runAfterChangeDetection = this._runAfterChangeDetection;
              this._runAfterChangeDetection = [];
              for (const fn of runAfterChangeDetection) {
                fn();
              }
            }
            /** Calculates the `style.width` and `style.height` for the spacer element. */
            _calculateSpacerSize() {
              this._totalContentHeight = this.orientation === 'horizontal' ? '' : `${this._totalContentSize}px`;
              this._totalContentWidth = this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';
            }
            static {
              this.ɵfac = function CdkVirtualScrollViewport_Factory(t) {
                return new (t || CdkVirtualScrollViewport)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](VIRTUAL_SCROLL_STRATEGY, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ViewportRuler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](VIRTUAL_SCROLLABLE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: CdkVirtualScrollViewport,
                selectors: [["cdk-virtual-scroll-viewport"]],
                viewQuery: function CdkVirtualScrollViewport_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 7);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._contentWrapper = _t.first);
                  }
                },
                hostAttrs: [1, "cdk-virtual-scroll-viewport"],
                hostVars: 4,
                hostBindings: function CdkVirtualScrollViewport_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("cdk-virtual-scroll-orientation-horizontal", ctx.orientation === "horizontal")("cdk-virtual-scroll-orientation-vertical", ctx.orientation !== "horizontal");
                  }
                },
                inputs: {
                  orientation: "orientation",
                  appendOnly: "appendOnly"
                },
                outputs: {
                  scrolledIndexChange: "scrolledIndexChange"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: CdkScrollable,
                  useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,
                  deps: [[new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport]
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵStandaloneFeature"]],
                ngContentSelectors: _c1,
                decls: 4,
                vars: 4,
                consts: [[1, "cdk-virtual-scroll-content-wrapper"], ["contentWrapper", ""], [1, "cdk-virtual-scroll-spacer"]],
                template: function CdkVirtualScrollViewport_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 2);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("width", ctx._totalContentWidth)("height", ctx._totalContentHeight);
                  }
                },
                styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkVirtualScrollViewport, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'cdk-virtual-scroll-viewport',
                host: {
                  'class': 'cdk-virtual-scroll-viewport',
                  '[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === "horizontal"',
                  '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== "horizontal"'
                },
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                standalone: true,
                providers: [{
                  provide: CdkScrollable,
                  useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,
                  deps: [[new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport]
                }],
                template: "<!--\n  Wrap the rendered content in an element that will be used to offset it based on the scroll\n  position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n  <ng-content></ng-content>\n</div>\n<!--\n  Spacer used to force the scrolling container to the correct size for the *total* number of items\n  so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n     [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n",
                styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [VIRTUAL_SCROLL_STRATEGY]
                }]
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: ScrollDispatcher
              }, {
                type: ViewportRuler
              }, {
                type: CdkVirtualScrollable,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [VIRTUAL_SCROLLABLE]
                }]
              }];
            }, {
              orientation: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              appendOnly: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              scrolledIndexChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }],
              _contentWrapper: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['contentWrapper', {
                  static: true
                }]
              }]
            });
          })();
          
          /** Helper to extract the offset of a DOM Node in a certain direction. */
          function getOffset(orientation, direction, node) {
            const el = node;
            if (!el.getBoundingClientRect) {
              return 0;
            }
            const rect = el.getBoundingClientRect();
            if (orientation === 'horizontal') {
              return direction === 'start' ? rect.left : rect.right;
            }
            return direction === 'start' ? rect.top : rect.bottom;
          }
          /**
           * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling
           * container.
           */
          class CdkVirtualForOf {
            /** The DataSource to display. */
            get cdkVirtualForOf() {
              return this._cdkVirtualForOf;
            }
            set cdkVirtualForOf(value) {
              this._cdkVirtualForOf = value;
              if ((0,_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__.isDataSource)(value)) {
                this._dataSourceChanges.next(value);
              } else {
                // If value is an an NgIterable, convert it to an array.
                this._dataSourceChanges.next(new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__.ArrayDataSource((0,rxjs__WEBPACK_IMPORTED_MODULE_18__.isObservable)(value) ? value : Array.from(value || [])));
              }
            }
            /**
             * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and
             * the item and produces a value to be used as the item's identity when tracking changes.
             */
            get cdkVirtualForTrackBy() {
              return this._cdkVirtualForTrackBy;
            }
            set cdkVirtualForTrackBy(fn) {
              this._needsUpdate = true;
              this._cdkVirtualForTrackBy = fn ? (index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item) : undefined;
            }
            /** The template used to stamp out new elements. */
            set cdkVirtualForTemplate(value) {
              if (value) {
                this._needsUpdate = true;
                this._template = value;
              }
            }
            /**
             * The size of the cache used to store templates that are not being used for re-use later.
             * Setting the cache size to `0` will disable caching. Defaults to 20 templates.
             */
            get cdkVirtualForTemplateCacheSize() {
              return this._viewRepeater.viewCacheSize;
            }
            set cdkVirtualForTemplateCacheSize(size) {
              this._viewRepeater.viewCacheSize = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(size);
            }
            constructor( /** The view container to add items to. */
            _viewContainerRef, /** The template to use when stamping out new items. */
            _template, /** The set of available differs. */
            _differs, /** The strategy used to render items in the virtual scroll viewport. */
            _viewRepeater, /** The virtual scrolling viewport that these items are being rendered in. */
            _viewport, ngZone) {
              this._viewContainerRef = _viewContainerRef;
              this._template = _template;
              this._differs = _differs;
              this._viewRepeater = _viewRepeater;
              this._viewport = _viewport;
              /** Emits when the rendered view of the data changes. */
              this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** Subject that emits when a new DataSource instance is given. */
              this._dataSourceChanges = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** Emits whenever the data in the current DataSource changes. */
              this.dataStream = this._dataSourceChanges.pipe(
              // Start off with null `DataSource`.
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.startWith)(null),
              // Bundle up the previous and current data sources so we can work with both.
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.pairwise)(),
              // Use `_changeDataSource` to disconnect from the previous data source and connect to the
              // new one, passing back a stream of data changes which we run through `switchMap` to give
              // us a data stream that emits the latest data from whatever the current `DataSource` is.
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.switchMap)(([prev, cur]) => this._changeDataSource(prev, cur)),
              // Replay the last emitted data when someone subscribes.
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.shareReplay)(1));
              /** The differ used to calculate changes to the data. */
              this._differ = null;
              /** Whether the rendered data should be updated during the next ngDoCheck cycle. */
              this._needsUpdate = false;
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              this.dataStream.subscribe(data => {
                this._data = data;
                this._onRenderedDataChange();
              });
              this._viewport.renderedRangeStream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._destroyed)).subscribe(range => {
                this._renderedRange = range;
                if (this.viewChange.observers.length) {
                  ngZone.run(() => this.viewChange.next(this._renderedRange));
                }
                this._onRenderedDataChange();
              });
              this._viewport.attach(this);
            }
            /**
             * Measures the combined size (width for horizontal orientation, height for vertical) of all items
             * in the specified range. Throws an error if the range includes items that are not currently
             * rendered.
             */
            measureRangeSize(range, orientation) {
              if (range.start >= range.end) {
                return 0;
              }
              if ((range.start < this._renderedRange.start || range.end > this._renderedRange.end) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error(`Error: attempted to measure an item that isn't rendered.`);
              }
              // The index into the list of rendered views for the first item in the range.
              const renderedStartIndex = range.start - this._renderedRange.start;
              // The length of the range we're measuring.
              const rangeLen = range.end - range.start;
              // Loop over all the views, find the first and land node and compute the size by subtracting
              // the top of the first node from the bottom of the last one.
              let firstNode;
              let lastNode;
              // Find the first node by starting from the beginning and going forwards.
              for (let i = 0; i < rangeLen; i++) {
                const view = this._viewContainerRef.get(i + renderedStartIndex);
                if (view && view.rootNodes.length) {
                  firstNode = lastNode = view.rootNodes[0];
                  break;
                }
              }
              // Find the last node by starting from the end and going backwards.
              for (let i = rangeLen - 1; i > -1; i--) {
                const view = this._viewContainerRef.get(i + renderedStartIndex);
                if (view && view.rootNodes.length) {
                  lastNode = view.rootNodes[view.rootNodes.length - 1];
                  break;
                }
              }
              return firstNode && lastNode ? getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode) : 0;
            }
            ngDoCheck() {
              if (this._differ && this._needsUpdate) {
                // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of
                // this list being rendered (can use simpler algorithm) vs needs update due to data actually
                // changing (need to do this diff).
                const changes = this._differ.diff(this._renderedItems);
                if (!changes) {
                  this._updateContext();
                } else {
                  this._applyChanges(changes);
                }
                this._needsUpdate = false;
              }
            }
            ngOnDestroy() {
              this._viewport.detach();
              this._dataSourceChanges.next(undefined);
              this._dataSourceChanges.complete();
              this.viewChange.complete();
              this._destroyed.next();
              this._destroyed.complete();
              this._viewRepeater.detach();
            }
            /** React to scroll state changes in the viewport. */
            _onRenderedDataChange() {
              if (!this._renderedRange) {
                return;
              }
              this._renderedItems = this._data.slice(this._renderedRange.start, this._renderedRange.end);
              if (!this._differ) {
                // Use a wrapper function for the `trackBy` so any new values are
                // picked up automatically without having to recreate the differ.
                this._differ = this._differs.find(this._renderedItems).create((index, item) => {
                  return this.cdkVirtualForTrackBy ? this.cdkVirtualForTrackBy(index, item) : item;
                });
              }
              this._needsUpdate = true;
            }
            /** Swap out one `DataSource` for another. */
            _changeDataSource(oldDs, newDs) {
              if (oldDs) {
                oldDs.disconnect(this);
              }
              this._needsUpdate = true;
              return newDs ? newDs.connect(this) : (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)();
            }
            /** Update the `CdkVirtualForOfContext` for all views. */
            _updateContext() {
              const count = this._data.length;
              let i = this._viewContainerRef.length;
              while (i--) {
                const view = this._viewContainerRef.get(i);
                view.context.index = this._renderedRange.start + i;
                view.context.count = count;
                this._updateComputedContextProperties(view.context);
                view.detectChanges();
              }
            }
            /** Apply changes to the DOM. */
            _applyChanges(changes) {
              this._viewRepeater.applyChanges(changes, this._viewContainerRef, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record, currentIndex), record => record.item);
              // Update $implicit for any items that had an identity change.
              changes.forEachIdentityChange(record => {
                const view = this._viewContainerRef.get(record.currentIndex);
                view.context.$implicit = record.item;
              });
              // Update the context variables on all items.
              const count = this._data.length;
              let i = this._viewContainerRef.length;
              while (i--) {
                const view = this._viewContainerRef.get(i);
                view.context.index = this._renderedRange.start + i;
                view.context.count = count;
                this._updateComputedContextProperties(view.context);
              }
            }
            /** Update the computed properties on the `CdkVirtualForOfContext`. */
            _updateComputedContextProperties(context) {
              context.first = context.index === 0;
              context.last = context.index === context.count - 1;
              context.even = context.index % 2 === 0;
              context.odd = !context.even;
            }
            _getEmbeddedViewArgs(record, index) {
              // Note that it's important that we insert the item directly at the proper index,
              // rather than inserting it and the moving it in place, because if there's a directive
              // on the same node that injects the `ViewContainerRef`, Angular will insert another
              // comment node which can throw off the move when it's being repeated for all items.
              return {
                templateRef: this._template,
                context: {
                  $implicit: record.item,
                  // It's guaranteed that the iterable is not "undefined" or "null" because we only
                  // generate views for elements if the "cdkVirtualForOf" iterable has elements.
                  cdkVirtualForOf: this._cdkVirtualForOf,
                  index: -1,
                  count: -1,
                  first: false,
                  last: false,
                  odd: false,
                  even: false
                },
                index
              };
            }
            static {
              this.ɵfac = function CdkVirtualForOf_Factory(t) {
                return new (t || CdkVirtualForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CdkVirtualScrollViewport, 4), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkVirtualForOf,
                selectors: [["", "cdkVirtualFor", "", "cdkVirtualForOf", ""]],
                inputs: {
                  cdkVirtualForOf: "cdkVirtualForOf",
                  cdkVirtualForTrackBy: "cdkVirtualForTrackBy",
                  cdkVirtualForTemplate: "cdkVirtualForTemplate",
                  cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkVirtualForOf, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkVirtualFor][cdkVirtualForOf]',
                providers: [{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy
                }],
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers
              }, {
                type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._RecycleViewRepeaterStrategy,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_17__._VIEW_REPEATER_STRATEGY]
                }]
              }, {
                type: CdkVirtualScrollViewport,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, {
              cdkVirtualForOf: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              cdkVirtualForTrackBy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              cdkVirtualForTemplate: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              cdkVirtualForTemplateCacheSize: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          
          /**
           * Provides a virtual scrollable for the element it is attached to.
           */
          class CdkVirtualScrollableElement extends CdkVirtualScrollable {
            constructor(elementRef, scrollDispatcher, ngZone, dir) {
              super(elementRef, scrollDispatcher, ngZone, dir);
            }
            measureBoundingClientRectWithScrollOffset(from) {
              return this.getElementRef().nativeElement.getBoundingClientRect()[from] - this.measureScrollOffset(from);
            }
            static {
              this.ɵfac = function CdkVirtualScrollableElement_Factory(t) {
                return new (t || CdkVirtualScrollableElement)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkVirtualScrollableElement,
                selectors: [["", "cdkVirtualScrollingElement", ""]],
                hostAttrs: [1, "cdk-virtual-scrollable"],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: VIRTUAL_SCROLLABLE,
                  useExisting: CdkVirtualScrollableElement
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkVirtualScrollableElement, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[cdkVirtualScrollingElement]',
                providers: [{
                  provide: VIRTUAL_SCROLLABLE,
                  useExisting: CdkVirtualScrollableElement
                }],
                standalone: true,
                host: {
                  'class': 'cdk-virtual-scrollable'
                }
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, null);
          })();
          
          /**
           * Provides as virtual scrollable for the global / window scrollbar.
           */
          class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
            constructor(scrollDispatcher, ngZone, dir) {
              super(new _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef(document.documentElement), scrollDispatcher, ngZone, dir);
              this._elementScrolled = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable(observer => this.ngZone.runOutsideAngular(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.fromEvent)(document, 'scroll').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.takeUntil)(this._destroyed)).subscribe(observer)));
            }
            measureBoundingClientRectWithScrollOffset(from) {
              return this.getElementRef().nativeElement.getBoundingClientRect()[from];
            }
            static {
              this.ɵfac = function CdkVirtualScrollableWindow_Factory(t) {
                return new (t || CdkVirtualScrollableWindow)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CdkVirtualScrollableWindow,
                selectors: [["cdk-virtual-scroll-viewport", "scrollWindow", ""]],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: VIRTUAL_SCROLLABLE,
                  useExisting: CdkVirtualScrollableWindow
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkVirtualScrollableWindow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'cdk-virtual-scroll-viewport[scrollWindow]',
                providers: [{
                  provide: VIRTUAL_SCROLLABLE,
                  useExisting: CdkVirtualScrollableWindow
                }],
                standalone: true
              }]
            }], function () {
              return [{
                type: ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, null);
          })();
          class CdkScrollableModule {
            static {
              this.ɵfac = function CdkScrollableModule_Factory(t) {
                return new (t || CdkScrollableModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: CdkScrollableModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkScrollableModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                exports: [CdkScrollable],
                imports: [CdkScrollable]
              }]
            }], null, null);
          })();
          /**
           * @docs-primary-export
           */
          class ScrollingModule {
            static {
              this.ɵfac = function ScrollingModule_Factory(t) {
                return new (t || ScrollingModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: ScrollingModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, CdkScrollableModule, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, CdkScrollableModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ScrollingModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, CdkScrollableModule, CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollableWindow, CdkVirtualScrollableElement],
                exports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_12__.BidiModule, CdkScrollableModule, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport, CdkVirtualScrollableWindow, CdkVirtualScrollableElement]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 198:
          /*!******************************************************!*\
            !*** ./node_modules/@angular/cdk/fesm2022/table.mjs ***!
            \******************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BaseCdkCell: () => (/* binding */ BaseCdkCell),
          /* harmony export */   BaseRowDef: () => (/* binding */ BaseRowDef),
          /* harmony export */   CDK_ROW_TEMPLATE: () => (/* binding */ CDK_ROW_TEMPLATE),
          /* harmony export */   CDK_TABLE: () => (/* binding */ CDK_TABLE),
          /* harmony export */   CDK_TABLE_TEMPLATE: () => (/* binding */ CDK_TABLE_TEMPLATE),
          /* harmony export */   CdkCell: () => (/* binding */ CdkCell),
          /* harmony export */   CdkCellDef: () => (/* binding */ CdkCellDef),
          /* harmony export */   CdkCellOutlet: () => (/* binding */ CdkCellOutlet),
          /* harmony export */   CdkColumnDef: () => (/* binding */ CdkColumnDef),
          /* harmony export */   CdkFooterCell: () => (/* binding */ CdkFooterCell),
          /* harmony export */   CdkFooterCellDef: () => (/* binding */ CdkFooterCellDef),
          /* harmony export */   CdkFooterRow: () => (/* binding */ CdkFooterRow),
          /* harmony export */   CdkFooterRowDef: () => (/* binding */ CdkFooterRowDef),
          /* harmony export */   CdkHeaderCell: () => (/* binding */ CdkHeaderCell),
          /* harmony export */   CdkHeaderCellDef: () => (/* binding */ CdkHeaderCellDef),
          /* harmony export */   CdkHeaderRow: () => (/* binding */ CdkHeaderRow),
          /* harmony export */   CdkHeaderRowDef: () => (/* binding */ CdkHeaderRowDef),
          /* harmony export */   CdkNoDataRow: () => (/* binding */ CdkNoDataRow),
          /* harmony export */   CdkRecycleRows: () => (/* binding */ CdkRecycleRows),
          /* harmony export */   CdkRow: () => (/* binding */ CdkRow),
          /* harmony export */   CdkRowDef: () => (/* binding */ CdkRowDef),
          /* harmony export */   CdkTable: () => (/* binding */ CdkTable),
          /* harmony export */   CdkTableModule: () => (/* binding */ CdkTableModule),
          /* harmony export */   CdkTextColumn: () => (/* binding */ CdkTextColumn),
          /* harmony export */   DataRowOutlet: () => (/* binding */ DataRowOutlet),
          /* harmony export */   DataSource: () => (/* reexport safe */ _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.DataSource),
          /* harmony export */   FooterRowOutlet: () => (/* binding */ FooterRowOutlet),
          /* harmony export */   HeaderRowOutlet: () => (/* binding */ HeaderRowOutlet),
          /* harmony export */   NoDataRowOutlet: () => (/* binding */ NoDataRowOutlet),
          /* harmony export */   STICKY_DIRECTIONS: () => (/* binding */ STICKY_DIRECTIONS),
          /* harmony export */   STICKY_POSITIONING_LISTENER: () => (/* binding */ STICKY_POSITIONING_LISTENER),
          /* harmony export */   StickyStyler: () => (/* binding */ StickyStyler),
          /* harmony export */   TEXT_COLUMN_OPTIONS: () => (/* binding */ TEXT_COLUMN_OPTIONS),
          /* harmony export */   _COALESCED_STYLE_SCHEDULER: () => (/* binding */ _COALESCED_STYLE_SCHEDULER),
          /* harmony export */   _CoalescedStyleScheduler: () => (/* binding */ _CoalescedStyleScheduler),
          /* harmony export */   _Schedule: () => (/* binding */ _Schedule),
          /* harmony export */   mixinHasStickyInput: () => (/* binding */ mixinHasStickyInput)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/collections */ 7989);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/cdk/scrolling */ 9975);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 5429);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 5797);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 2551);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 4334);
          
          
          
          
          
          
          
          
          
          
          
          
          
          /**
           * Mixin to provide a directive with a function that checks if the sticky input has been
           * changed since the last time the function was called. Essentially adds a dirty-check to the
           * sticky value.
           * @docs-private
           */
          const _c0 = [[["caption"]], [["colgroup"], ["col"]]];
          const _c1 = ["caption", "colgroup, col"];
          function CdkTextColumn_th_1_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th", 3);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("text-align", ctx_r0.justify);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r0.headerText, " ");
            }
          }
          function CdkTextColumn_td_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td", 4);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const data_r2 = ctx.$implicit;
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("text-align", ctx_r1.justify);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.dataAccessor(data_r2, ctx_r1.name), " ");
            }
          }
          function mixinHasStickyInput(base) {
            return class extends base {
              /** Whether sticky positioning should be applied. */
              get sticky() {
                return this._sticky;
              }
              set sticky(v) {
                const prevValue = this._sticky;
                this._sticky = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
                this._hasStickyChanged = prevValue !== this._sticky;
              }
              /** Whether the sticky value has changed since this was last called. */
              hasStickyChanged() {
                const hasStickyChanged = this._hasStickyChanged;
                this._hasStickyChanged = false;
                return hasStickyChanged;
              }
              /** Resets the dirty check for cases where the sticky state has been used without checking. */
              resetStickyChanged() {
                this._hasStickyChanged = false;
              }
              constructor(...args) {
                super(...args);
                this._sticky = false;
                /** Whether the sticky input has changed since it was last checked. */
                this._hasStickyChanged = false;
              }
            };
          }
          
          /**
           * Used to provide a table to some of the sub-components without causing a circular dependency.
           * @docs-private
           */
          const CDK_TABLE = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('CDK_TABLE');
          /** Injection token that can be used to specify the text column options. */
          const TEXT_COLUMN_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('text-column-options');
          
          /**
           * Cell definition for a CDK table.
           * Captures the template of a column's data row cell as well as cell-specific properties.
           */
          class CdkCellDef {
            constructor( /** @docs-private */template) {
              this.template = template;
            }
            static {
              this.ɵfac = function CdkCellDef_Factory(t) {
                return new (t || CdkCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkCellDef,
                selectors: [["", "cdkCellDef", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkCellDef]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }];
            }, null);
          })();
          /**
           * Header cell definition for a CDK table.
           * Captures the template of a column's header cell and as well as cell-specific properties.
           */
          class CdkHeaderCellDef {
            constructor( /** @docs-private */template) {
              this.template = template;
            }
            static {
              this.ɵfac = function CdkHeaderCellDef_Factory(t) {
                return new (t || CdkHeaderCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkHeaderCellDef,
                selectors: [["", "cdkHeaderCellDef", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkHeaderCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkHeaderCellDef]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }];
            }, null);
          })();
          /**
           * Footer cell definition for a CDK table.
           * Captures the template of a column's footer cell and as well as cell-specific properties.
           */
          class CdkFooterCellDef {
            constructor( /** @docs-private */template) {
              this.template = template;
            }
            static {
              this.ɵfac = function CdkFooterCellDef_Factory(t) {
                return new (t || CdkFooterCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkFooterCellDef,
                selectors: [["", "cdkFooterCellDef", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFooterCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkFooterCellDef]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }];
            }, null);
          })();
          // Boilerplate for applying mixins to CdkColumnDef.
          /** @docs-private */
          class CdkColumnDefBase {}
          const _CdkColumnDefBase = mixinHasStickyInput(CdkColumnDefBase);
          /**
           * Column definition for the CDK table.
           * Defines a set of cells available for a table column.
           */
          class CdkColumnDef extends _CdkColumnDefBase {
            /** Unique name for this column. */
            get name() {
              return this._name;
            }
            set name(name) {
              this._setNameInput(name);
            }
            /**
             * Whether this column should be sticky positioned on the end of the row. Should make sure
             * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
             * has been changed.
             */
            get stickyEnd() {
              return this._stickyEnd;
            }
            set stickyEnd(v) {
              const prevValue = this._stickyEnd;
              this._stickyEnd = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
              this._hasStickyChanged = prevValue !== this._stickyEnd;
            }
            constructor(_table) {
              super();
              this._table = _table;
              this._stickyEnd = false;
            }
            /**
             * Overridable method that sets the css classes that will be added to every cell in this
             * column.
             * In the future, columnCssClassName will change from type string[] to string and this
             * will set a single string value.
             * @docs-private
             */
            _updateColumnCssClassName() {
              this._columnCssClassName = [`cdk-column-${this.cssClassFriendlyName}`];
            }
            /**
             * This has been extracted to a util because of TS 4 and VE.
             * View Engine doesn't support property rename inheritance.
             * TS 4.0 doesn't allow properties to override accessors or vice-versa.
             * @docs-private
             */
            _setNameInput(value) {
              // If the directive is set without a name (updated programmatically), then this setter will
              // trigger with an empty string and should not overwrite the programmatically set value.
              if (value) {
                this._name = value;
                this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');
                this._updateColumnCssClassName();
              }
            }
            static {
              this.ɵfac = function CdkColumnDef_Factory(t) {
                return new (t || CdkColumnDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CDK_TABLE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkColumnDef,
                selectors: [["", "cdkColumnDef", ""]],
                contentQueries: function CdkColumnDef_ContentQueries(rf, ctx, dirIndex) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkCellDef, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkHeaderCellDef, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkFooterCellDef, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.cell = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headerCell = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.footerCell = _t.first);
                  }
                },
                inputs: {
                  sticky: "sticky",
                  name: ["cdkColumnDef", "name"],
                  stickyEnd: "stickyEnd"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
                  provide: 'MAT_SORT_HEADER_COLUMN_DEF',
                  useExisting: CdkColumnDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkColumnDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkColumnDef]',
                inputs: ['sticky'],
                providers: [{
                  provide: 'MAT_SORT_HEADER_COLUMN_DEF',
                  useExisting: CdkColumnDef
                }]
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [CDK_TABLE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input,
                args: ['cdkColumnDef']
              }],
              stickyEnd: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input,
                args: ['stickyEnd']
              }],
              cell: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild,
                args: [CdkCellDef]
              }],
              headerCell: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild,
                args: [CdkHeaderCellDef]
              }],
              footerCell: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild,
                args: [CdkFooterCellDef]
              }]
            });
          })();
          /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
          class BaseCdkCell {
            constructor(columnDef, elementRef) {
              elementRef.nativeElement.classList.add(...columnDef._columnCssClassName);
            }
          }
          /** Header cell template container that adds the right classes and role. */
          class CdkHeaderCell extends BaseCdkCell {
            constructor(columnDef, elementRef) {
              super(columnDef, elementRef);
            }
            static {
              this.ɵfac = function CdkHeaderCell_Factory(t) {
                return new (t || CdkHeaderCell)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkHeaderCell,
                selectors: [["cdk-header-cell"], ["th", "cdk-header-cell", ""]],
                hostAttrs: ["role", "columnheader", 1, "cdk-header-cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkHeaderCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'cdk-header-cell, th[cdk-header-cell]',
                host: {
                  'class': 'cdk-header-cell',
                  'role': 'columnheader'
                }
              }]
            }], function () {
              return [{
                type: CdkColumnDef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /** Footer cell template container that adds the right classes and role. */
          class CdkFooterCell extends BaseCdkCell {
            constructor(columnDef, elementRef) {
              super(columnDef, elementRef);
              if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {
                const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
                const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
                elementRef.nativeElement.setAttribute('role', role);
              }
            }
            static {
              this.ɵfac = function CdkFooterCell_Factory(t) {
                return new (t || CdkFooterCell)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkFooterCell,
                selectors: [["cdk-footer-cell"], ["td", "cdk-footer-cell", ""]],
                hostAttrs: [1, "cdk-footer-cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFooterCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'cdk-footer-cell, td[cdk-footer-cell]',
                host: {
                  'class': 'cdk-footer-cell'
                }
              }]
            }], function () {
              return [{
                type: CdkColumnDef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /** Cell template container that adds the right classes and role. */
          class CdkCell extends BaseCdkCell {
            constructor(columnDef, elementRef) {
              super(columnDef, elementRef);
              if (columnDef._table?._elementRef.nativeElement.nodeType === 1) {
                const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');
                const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';
                elementRef.nativeElement.setAttribute('role', role);
              }
            }
            static {
              this.ɵfac = function CdkCell_Factory(t) {
                return new (t || CdkCell)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkCell,
                selectors: [["cdk-cell"], ["td", "cdk-cell", ""]],
                hostAttrs: [1, "cdk-cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'cdk-cell, td[cdk-cell]',
                host: {
                  'class': 'cdk-cell'
                }
              }]
            }], function () {
              return [{
                type: CdkColumnDef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          
          /**
           * @docs-private
           */
          class _Schedule {
            constructor() {
              this.tasks = [];
              this.endTasks = [];
            }
          }
          /** Injection token used to provide a coalesced style scheduler. */
          const _COALESCED_STYLE_SCHEDULER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('_COALESCED_STYLE_SCHEDULER');
          /**
           * Allows grouping up CSSDom mutations after the current execution context.
           * This can significantly improve performance when separate consecutive functions are
           * reading from the CSSDom and then mutating it.
           *
           * @docs-private
           */
          class _CoalescedStyleScheduler {
            constructor(_ngZone) {
              this._ngZone = _ngZone;
              this._currentSchedule = null;
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
            }
            /**
             * Schedules the specified task to run at the end of the current VM turn.
             */
            schedule(task) {
              this._createScheduleIfNeeded();
              this._currentSchedule.tasks.push(task);
            }
            /**
             * Schedules the specified task to run after other scheduled tasks at the end of the current
             * VM turn.
             */
            scheduleEnd(task) {
              this._createScheduleIfNeeded();
              this._currentSchedule.endTasks.push(task);
            }
            /** Prevent any further tasks from running. */
            ngOnDestroy() {
              this._destroyed.next();
              this._destroyed.complete();
            }
            _createScheduleIfNeeded() {
              if (this._currentSchedule) {
                return;
              }
              this._currentSchedule = new _Schedule();
              this._getScheduleObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._destroyed)).subscribe(() => {
                while (this._currentSchedule.tasks.length || this._currentSchedule.endTasks.length) {
                  const schedule = this._currentSchedule;
                  // Capture new tasks scheduled by the current set of tasks.
                  this._currentSchedule = new _Schedule();
                  for (const task of schedule.tasks) {
                    task();
                  }
                  for (const task of schedule.endTasks) {
                    task();
                  }
                }
                this._currentSchedule = null;
              });
            }
            _getScheduleObservable() {
              // Use onStable when in the context of an ongoing change detection cycle so that we
              // do not accidentally trigger additional cycles.
              return this._ngZone.isStable ? (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.from)(Promise.resolve(undefined)) : this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1));
            }
            static {
              this.ɵfac = function _CoalescedStyleScheduler_Factory(t) {
                return new (t || _CoalescedStyleScheduler)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: _CoalescedStyleScheduler,
                factory: _CoalescedStyleScheduler.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](_CoalescedStyleScheduler, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone
              }];
            }, null);
          })();
          
          /**
           * The row template that can be used by the mat-table. Should not be used outside of the
           * material library.
           */
          const CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;
          /**
           * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
           * for changes and notifying the table.
           */
          class BaseRowDef {
            constructor( /** @docs-private */template, _differs) {
              this.template = template;
              this._differs = _differs;
            }
            ngOnChanges(changes) {
              // Create a new columns differ if one does not yet exist. Initialize it based on initial value
              // of the columns property or an empty array if none is provided.
              if (!this._columnsDiffer) {
                const columns = changes['columns'] && changes['columns'].currentValue || [];
                this._columnsDiffer = this._differs.find(columns).create();
                this._columnsDiffer.diff(columns);
              }
            }
            /**
             * Returns the difference between the current columns and the columns from the last diff, or null
             * if there is no difference.
             */
            getColumnsDiff() {
              return this._columnsDiffer.diff(this.columns);
            }
            /** Gets this row def's relevant cell template from the provided column def. */
            extractCellTemplate(column) {
              if (this instanceof CdkHeaderRowDef) {
                return column.headerCell.template;
              }
              if (this instanceof CdkFooterRowDef) {
                return column.footerCell.template;
              } else {
                return column.cell.template;
              }
            }
            static {
              this.ɵfac = function BaseRowDef_Factory(t) {
                return new (t || BaseRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: BaseRowDef,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BaseRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers
              }];
            }, null);
          })();
          // Boilerplate for applying mixins to CdkHeaderRowDef.
          /** @docs-private */
          class CdkHeaderRowDefBase extends BaseRowDef {}
          const _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);
          /**
           * Header row definition for the CDK table.
           * Captures the header row's template and other header properties such as the columns to display.
           */
          class CdkHeaderRowDef extends _CdkHeaderRowDefBase {
            constructor(template, _differs, _table) {
              super(template, _differs);
              this._table = _table;
            }
            // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
            // Explicitly define it so that the method is called as part of the Angular lifecycle.
            ngOnChanges(changes) {
              super.ngOnChanges(changes);
            }
            static {
              this.ɵfac = function CdkHeaderRowDef_Factory(t) {
                return new (t || CdkHeaderRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CDK_TABLE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkHeaderRowDef,
                selectors: [["", "cdkHeaderRowDef", ""]],
                inputs: {
                  columns: ["cdkHeaderRowDef", "columns"],
                  sticky: ["cdkHeaderRowDefSticky", "sticky"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkHeaderRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkHeaderRowDef]',
                inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky']
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [CDK_TABLE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, null);
          })();
          // Boilerplate for applying mixins to CdkFooterRowDef.
          /** @docs-private */
          class CdkFooterRowDefBase extends BaseRowDef {}
          const _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);
          /**
           * Footer row definition for the CDK table.
           * Captures the footer row's template and other footer properties such as the columns to display.
           */
          class CdkFooterRowDef extends _CdkFooterRowDefBase {
            constructor(template, _differs, _table) {
              super(template, _differs);
              this._table = _table;
            }
            // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
            // Explicitly define it so that the method is called as part of the Angular lifecycle.
            ngOnChanges(changes) {
              super.ngOnChanges(changes);
            }
            static {
              this.ɵfac = function CdkFooterRowDef_Factory(t) {
                return new (t || CdkFooterRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CDK_TABLE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkFooterRowDef,
                selectors: [["", "cdkFooterRowDef", ""]],
                inputs: {
                  columns: ["cdkFooterRowDef", "columns"],
                  sticky: ["cdkFooterRowDefSticky", "sticky"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFooterRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkFooterRowDef]',
                inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky']
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [CDK_TABLE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, null);
          })();
          /**
           * Data row definition for the CDK table.
           * Captures the header row's template and other row properties such as the columns to display and
           * a when predicate that describes when this row should be used.
           */
          class CdkRowDef extends BaseRowDef {
            // TODO(andrewseguin): Add an input for providing a switch function to determine
            //   if this template should be used.
            constructor(template, _differs, _table) {
              super(template, _differs);
              this._table = _table;
            }
            static {
              this.ɵfac = function CdkRowDef_Factory(t) {
                return new (t || CdkRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CDK_TABLE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkRowDef,
                selectors: [["", "cdkRowDef", ""]],
                inputs: {
                  columns: ["cdkRowDefColumns", "columns"],
                  when: ["cdkRowDefWhen", "when"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkRowDef]',
                inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen']
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [CDK_TABLE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, null);
          })();
          /**
           * Outlet for rendering cells inside of a row or header row.
           * @docs-private
           */
          class CdkCellOutlet {
            /**
             * Static property containing the latest constructed instance of this class.
             * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
             * createEmbeddedView. After one of these components are created, this property will provide
             * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
             * construct the cells with the provided context.
             */
            static {
              this.mostRecentCellOutlet = null;
            }
            constructor(_viewContainer) {
              this._viewContainer = _viewContainer;
              CdkCellOutlet.mostRecentCellOutlet = this;
            }
            ngOnDestroy() {
              // If this was the last outlet being rendered in the view, remove the reference
              // from the static property after it has been destroyed to avoid leaking memory.
              if (CdkCellOutlet.mostRecentCellOutlet === this) {
                CdkCellOutlet.mostRecentCellOutlet = null;
              }
            }
            static {
              this.ɵfac = function CdkCellOutlet_Factory(t) {
                return new (t || CdkCellOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkCellOutlet,
                selectors: [["", "cdkCellOutlet", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkCellOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[cdkCellOutlet]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef
              }];
            }, null);
          })();
          /** Header template container that contains the cell outlet. Adds the right class and role. */
          class CdkHeaderRow {
            static {
              this.ɵfac = function CdkHeaderRow_Factory(t) {
                return new (t || CdkHeaderRow)();
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: CdkHeaderRow,
                selectors: [["cdk-header-row"], ["tr", "cdk-header-row", ""]],
                hostAttrs: ["role", "row", 1, "cdk-header-row"],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function CdkHeaderRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkHeaderRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                selector: 'cdk-header-row, tr[cdk-header-row]',
                template: CDK_ROW_TEMPLATE,
                host: {
                  'class': 'cdk-header-row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.None
              }]
            }], null, null);
          })();
          /** Footer template container that contains the cell outlet. Adds the right class and role. */
          class CdkFooterRow {
            static {
              this.ɵfac = function CdkFooterRow_Factory(t) {
                return new (t || CdkFooterRow)();
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: CdkFooterRow,
                selectors: [["cdk-footer-row"], ["tr", "cdk-footer-row", ""]],
                hostAttrs: ["role", "row", 1, "cdk-footer-row"],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function CdkFooterRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFooterRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                selector: 'cdk-footer-row, tr[cdk-footer-row]',
                template: CDK_ROW_TEMPLATE,
                host: {
                  'class': 'cdk-footer-row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.None
              }]
            }], null, null);
          })();
          /** Data row template container that contains the cell outlet. Adds the right class and role. */
          class CdkRow {
            static {
              this.ɵfac = function CdkRow_Factory(t) {
                return new (t || CdkRow)();
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: CdkRow,
                selectors: [["cdk-row"], ["tr", "cdk-row", ""]],
                hostAttrs: ["role", "row", 1, "cdk-row"],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function CdkRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                selector: 'cdk-row, tr[cdk-row]',
                template: CDK_ROW_TEMPLATE,
                host: {
                  'class': 'cdk-row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.None
              }]
            }], null, null);
          })();
          /** Row that can be used to display a message when no data is shown in the table. */
          class CdkNoDataRow {
            constructor(templateRef) {
              this.templateRef = templateRef;
              this._contentClassName = 'cdk-no-data-row';
            }
            static {
              this.ɵfac = function CdkNoDataRow_Factory(t) {
                return new (t || CdkNoDataRow)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkNoDataRow,
                selectors: [["ng-template", "cdkNoDataRow", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkNoDataRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'ng-template[cdkNoDataRow]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.TemplateRef
              }];
            }, null);
          })();
          
          /**
           * List of all possible directions that can be used for sticky positioning.
           * @docs-private
           */
          const STICKY_DIRECTIONS = ['top', 'bottom', 'left', 'right'];
          /**
           * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
           * @docs-private
           */
          class StickyStyler {
            /**
             * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
             *     that uses the native `<table>` element.
             * @param _stickCellCss The CSS class that will be applied to every row/cell that has
             *     sticky positioning applied.
             * @param direction The directionality context of the table (ltr/rtl); affects column positioning
             *     by reversing left/right positions.
             * @param _isBrowser Whether the table is currently being rendered on the server or the client.
             * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells
             *     using inline styles. If false, it is assumed that position: sticky is included in
             *     the component stylesheet for _stickCellCss.
             * @param _positionListener A listener that is notified of changes to sticky rows/columns
             *     and their dimensions.
             */
            constructor(_isNativeHtmlTable, _stickCellCss, direction, _coalescedStyleScheduler, _isBrowser = true, _needsPositionStickyOnElement = true, _positionListener) {
              this._isNativeHtmlTable = _isNativeHtmlTable;
              this._stickCellCss = _stickCellCss;
              this.direction = direction;
              this._coalescedStyleScheduler = _coalescedStyleScheduler;
              this._isBrowser = _isBrowser;
              this._needsPositionStickyOnElement = _needsPositionStickyOnElement;
              this._positionListener = _positionListener;
              this._cachedCellWidths = [];
              this._borderCellCss = {
                'top': `${_stickCellCss}-border-elem-top`,
                'bottom': `${_stickCellCss}-border-elem-bottom`,
                'left': `${_stickCellCss}-border-elem-left`,
                'right': `${_stickCellCss}-border-elem-right`
              };
            }
            /**
             * Clears the sticky positioning styles from the row and its cells by resetting the `position`
             * style, setting the zIndex to 0, and unsetting each provided sticky direction.
             * @param rows The list of rows that should be cleared from sticking in the provided directions
             * @param stickyDirections The directions that should no longer be set as sticky on the rows.
             */
            clearStickyPositioning(rows, stickyDirections) {
              const elementsToClear = [];
              for (const row of rows) {
                // If the row isn't an element (e.g. if it's an `ng-container`),
                // it won't have inline styles or `children` so we skip it.
                if (row.nodeType !== row.ELEMENT_NODE) {
                  continue;
                }
                elementsToClear.push(row);
                for (let i = 0; i < row.children.length; i++) {
                  elementsToClear.push(row.children[i]);
                }
              }
              // Coalesce with sticky row/column updates (and potentially other changes like column resize).
              this._coalescedStyleScheduler.schedule(() => {
                for (const element of elementsToClear) {
                  this._removeStickyStyle(element, stickyDirections);
                }
              });
            }
            /**
             * Applies sticky left and right positions to the cells of each row according to the sticky
             * states of the rendered column definitions.
             * @param rows The rows that should have its set of cells stuck according to the sticky states.
             * @param stickyStartStates A list of boolean states where each state represents whether the cell
             *     in this index position should be stuck to the start of the row.
             * @param stickyEndStates A list of boolean states where each state represents whether the cell
             *     in this index position should be stuck to the end of the row.
             * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
             *     column cell. If `false` cached widths will be used instead.
             */
            updateStickyColumns(rows, stickyStartStates, stickyEndStates, recalculateCellWidths = true) {
              if (!rows.length || !this._isBrowser || !(stickyStartStates.some(state => state) || stickyEndStates.some(state => state))) {
                if (this._positionListener) {
                  this._positionListener.stickyColumnsUpdated({
                    sizes: []
                  });
                  this._positionListener.stickyEndColumnsUpdated({
                    sizes: []
                  });
                }
                return;
              }
              const firstRow = rows[0];
              const numCells = firstRow.children.length;
              const cellWidths = this._getCellWidths(firstRow, recalculateCellWidths);
              const startPositions = this._getStickyStartColumnPositions(cellWidths, stickyStartStates);
              const endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates);
              const lastStickyStart = stickyStartStates.lastIndexOf(true);
              const firstStickyEnd = stickyEndStates.indexOf(true);
              // Coalesce with sticky row updates (and potentially other changes like column resize).
              this._coalescedStyleScheduler.schedule(() => {
                const isRtl = this.direction === 'rtl';
                const start = isRtl ? 'right' : 'left';
                const end = isRtl ? 'left' : 'right';
                for (const row of rows) {
                  for (let i = 0; i < numCells; i++) {
                    const cell = row.children[i];
                    if (stickyStartStates[i]) {
                      this._addStickyStyle(cell, start, startPositions[i], i === lastStickyStart);
                    }
                    if (stickyEndStates[i]) {
                      this._addStickyStyle(cell, end, endPositions[i], i === firstStickyEnd);
                    }
                  }
                }
                if (this._positionListener) {
                  this._positionListener.stickyColumnsUpdated({
                    sizes: lastStickyStart === -1 ? [] : cellWidths.slice(0, lastStickyStart + 1).map((width, index) => stickyStartStates[index] ? width : null)
                  });
                  this._positionListener.stickyEndColumnsUpdated({
                    sizes: firstStickyEnd === -1 ? [] : cellWidths.slice(firstStickyEnd).map((width, index) => stickyEndStates[index + firstStickyEnd] ? width : null).reverse()
                  });
                }
              });
            }
            /**
             * Applies sticky positioning to the row's cells if using the native table layout, and to the
             * row itself otherwise.
             * @param rowsToStick The list of rows that should be stuck according to their corresponding
             *     sticky state and to the provided top or bottom position.
             * @param stickyStates A list of boolean states where each state represents whether the row
             *     should be stuck in the particular top or bottom position.
             * @param position The position direction in which the row should be stuck if that row should be
             *     sticky.
             *
             */
            stickRows(rowsToStick, stickyStates, position) {
              // Since we can't measure the rows on the server, we can't stick the rows properly.
              if (!this._isBrowser) {
                return;
              }
              // If positioning the rows to the bottom, reverse their order when evaluating the sticky
              // position such that the last row stuck will be "bottom: 0px" and so on. Note that the
              // sticky states need to be reversed as well.
              const rows = position === 'bottom' ? rowsToStick.slice().reverse() : rowsToStick;
              const states = position === 'bottom' ? stickyStates.slice().reverse() : stickyStates;
              // Measure row heights all at once before adding sticky styles to reduce layout thrashing.
              const stickyOffsets = [];
              const stickyCellHeights = [];
              const elementsToStick = [];
              for (let rowIndex = 0, stickyOffset = 0; rowIndex < rows.length; rowIndex++) {
                if (!states[rowIndex]) {
                  continue;
                }
                stickyOffsets[rowIndex] = stickyOffset;
                const row = rows[rowIndex];
                elementsToStick[rowIndex] = this._isNativeHtmlTable ? Array.from(row.children) : [row];
                const height = row.getBoundingClientRect().height;
                stickyOffset += height;
                stickyCellHeights[rowIndex] = height;
              }
              const borderedRowIndex = states.lastIndexOf(true);
              // Coalesce with other sticky row updates (top/bottom), sticky columns updates
              // (and potentially other changes like column resize).
              this._coalescedStyleScheduler.schedule(() => {
                for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
                  if (!states[rowIndex]) {
                    continue;
                  }
                  const offset = stickyOffsets[rowIndex];
                  const isBorderedRowIndex = rowIndex === borderedRowIndex;
                  for (const element of elementsToStick[rowIndex]) {
                    this._addStickyStyle(element, position, offset, isBorderedRowIndex);
                  }
                }
                if (position === 'top') {
                  this._positionListener?.stickyHeaderRowsUpdated({
                    sizes: stickyCellHeights,
                    offsets: stickyOffsets,
                    elements: elementsToStick
                  });
                } else {
                  this._positionListener?.stickyFooterRowsUpdated({
                    sizes: stickyCellHeights,
                    offsets: stickyOffsets,
                    elements: elementsToStick
                  });
                }
              });
            }
            /**
             * When using the native table in Safari, sticky footer cells do not stick. The only way to stick
             * footer rows is to apply sticky styling to the tfoot container. This should only be done if
             * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from
             * the tfoot element.
             */
            updateStickyFooterContainer(tableElement, stickyStates) {
              if (!this._isNativeHtmlTable) {
                return;
              }
              const tfoot = tableElement.querySelector('tfoot');
              // Coalesce with other sticky updates (and potentially other changes like column resize).
              this._coalescedStyleScheduler.schedule(() => {
                if (stickyStates.some(state => !state)) {
                  this._removeStickyStyle(tfoot, ['bottom']);
                } else {
                  this._addStickyStyle(tfoot, 'bottom', 0, false);
                }
              });
            }
            /**
             * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating
             * the zIndex, removing each of the provided sticky directions, and removing the
             * sticky position if there are no more directions.
             */
            _removeStickyStyle(element, stickyDirections) {
              for (const dir of stickyDirections) {
                element.style[dir] = '';
                element.classList.remove(this._borderCellCss[dir]);
              }
              // If the element no longer has any more sticky directions, remove sticky positioning and
              // the sticky CSS class.
              // Short-circuit checking element.style[dir] for stickyDirections as they
              // were already removed above.
              const hasDirection = STICKY_DIRECTIONS.some(dir => stickyDirections.indexOf(dir) === -1 && element.style[dir]);
              if (hasDirection) {
                element.style.zIndex = this._getCalculatedZIndex(element);
              } else {
                // When not hasDirection, _getCalculatedZIndex will always return ''.
                element.style.zIndex = '';
                if (this._needsPositionStickyOnElement) {
                  element.style.position = '';
                }
                element.classList.remove(this._stickCellCss);
              }
            }
            /**
             * Adds the sticky styling to the element by adding the sticky style class, changing position
             * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky
             * direction and value.
             */
            _addStickyStyle(element, dir, dirValue, isBorderElement) {
              element.classList.add(this._stickCellCss);
              if (isBorderElement) {
                element.classList.add(this._borderCellCss[dir]);
              }
              element.style[dir] = `${dirValue}px`;
              element.style.zIndex = this._getCalculatedZIndex(element);
              if (this._needsPositionStickyOnElement) {
                element.style.cssText += 'position: -webkit-sticky; position: sticky; ';
              }
            }
            /**
             * Calculate what the z-index should be for the element, depending on what directions (top,
             * bottom, left, right) have been set. It should be true that elements with a top direction
             * should have the highest index since these are elements like a table header. If any of those
             * elements are also sticky in another direction, then they should appear above other elements
             * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements
             * (e.g. footer rows) should then be next in the ordering such that they are below the header
             * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)
             * should minimally increment so that they are above non-sticky elements but below top and bottom
             * elements.
             */
            _getCalculatedZIndex(element) {
              const zIndexIncrements = {
                top: 100,
                bottom: 10,
                left: 1,
                right: 1
              };
              let zIndex = 0;
              // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
              // loses the array generic type in the `for of`. But we *also* have to use `Array` because
              // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`
              for (const dir of STICKY_DIRECTIONS) {
                if (element.style[dir]) {
                  zIndex += zIndexIncrements[dir];
                }
              }
              return zIndex ? `${zIndex}` : '';
            }
            /** Gets the widths for each cell in the provided row. */
            _getCellWidths(row, recalculateCellWidths = true) {
              if (!recalculateCellWidths && this._cachedCellWidths.length) {
                return this._cachedCellWidths;
              }
              const cellWidths = [];
              const firstRowCells = row.children;
              for (let i = 0; i < firstRowCells.length; i++) {
                let cell = firstRowCells[i];
                cellWidths.push(cell.getBoundingClientRect().width);
              }
              this._cachedCellWidths = cellWidths;
              return cellWidths;
            }
            /**
             * Determines the left and right positions of each sticky column cell, which will be the
             * accumulation of all sticky column cell widths to the left and right, respectively.
             * Non-sticky cells do not need to have a value set since their positions will not be applied.
             */
            _getStickyStartColumnPositions(widths, stickyStates) {
              const positions = [];
              let nextPosition = 0;
              for (let i = 0; i < widths.length; i++) {
                if (stickyStates[i]) {
                  positions[i] = nextPosition;
                  nextPosition += widths[i];
                }
              }
              return positions;
            }
            /**
             * Determines the left and right positions of each sticky column cell, which will be the
             * accumulation of all sticky column cell widths to the left and right, respectively.
             * Non-sticky cells do not need to have a value set since their positions will not be applied.
             */
            _getStickyEndColumnPositions(widths, stickyStates) {
              const positions = [];
              let nextPosition = 0;
              for (let i = widths.length; i > 0; i--) {
                if (stickyStates[i]) {
                  positions[i] = nextPosition;
                  nextPosition += widths[i];
                }
              }
              return positions;
            }
          }
          
          /**
           * Returns an error to be thrown when attempting to find an nonexistent column.
           * @param id Id whose lookup failed.
           * @docs-private
           */
          function getTableUnknownColumnError(id) {
            return Error(`Could not find column with id "${id}".`);
          }
          /**
           * Returns an error to be thrown when two column definitions have the same name.
           * @docs-private
           */
          function getTableDuplicateColumnNameError(name) {
            return Error(`Duplicate column definition name provided: "${name}".`);
          }
          /**
           * Returns an error to be thrown when there are multiple rows that are missing a when function.
           * @docs-private
           */
          function getTableMultipleDefaultRowDefsError() {
            return Error(`There can only be one default row without a when predicate function.`);
          }
          /**
           * Returns an error to be thrown when there are no matching row defs for a particular set of data.
           * @docs-private
           */
          function getTableMissingMatchingRowDefError(data) {
            return Error(`Could not find a matching row definition for the` + `provided row data: ${JSON.stringify(data)}`);
          }
          /**
           * Returns an error to be thrown when there is no row definitions present in the content.
           * @docs-private
           */
          function getTableMissingRowDefsError() {
            return Error('Missing definitions for header, footer, and row; ' + 'cannot determine which columns should be rendered.');
          }
          /**
           * Returns an error to be thrown when the data source does not match the compatible types.
           * @docs-private
           */
          function getTableUnknownDataSourceError() {
            return Error(`Provided data source did not match an array, Observable, or DataSource`);
          }
          /**
           * Returns an error to be thrown when the text column cannot find a parent table to inject.
           * @docs-private
           */
          function getTableTextColumnMissingParentTableError() {
            return Error(`Text column could not find a parent table for registration.`);
          }
          /**
           * Returns an error to be thrown when a table text column doesn't have a name.
           * @docs-private
           */
          function getTableTextColumnMissingNameError() {
            return Error(`Table text column must have a name.`);
          }
          
          /** The injection token used to specify the StickyPositioningListener. */
          const STICKY_POSITIONING_LISTENER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('CDK_SPL');
          
          /**
           * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
           * tables that animate rows.
           */
          class CdkRecycleRows {
            static {
              this.ɵfac = function CdkRecycleRows_Factory(t) {
                return new (t || CdkRecycleRows)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: CdkRecycleRows,
                selectors: [["cdk-table", "recycleRows", ""], ["table", "cdk-table", "", "recycleRows", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._RecycleViewRepeaterStrategy
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkRecycleRows, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'cdk-table[recycleRows], table[cdk-table][recycleRows]',
                providers: [{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._RecycleViewRepeaterStrategy
                }]
              }]
            }], null, null);
          })();
          /**
           * Provides a handle for the table to grab the view container's ng-container to insert data rows.
           * @docs-private
           */
          class DataRowOutlet {
            constructor(viewContainer, elementRef) {
              this.viewContainer = viewContainer;
              this.elementRef = elementRef;
            }
            static {
              this.ɵfac = function DataRowOutlet_Factory(t) {
                return new (t || DataRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: DataRowOutlet,
                selectors: [["", "rowOutlet", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DataRowOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[rowOutlet]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /**
           * Provides a handle for the table to grab the view container's ng-container to insert the header.
           * @docs-private
           */
          class HeaderRowOutlet {
            constructor(viewContainer, elementRef) {
              this.viewContainer = viewContainer;
              this.elementRef = elementRef;
            }
            static {
              this.ɵfac = function HeaderRowOutlet_Factory(t) {
                return new (t || HeaderRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: HeaderRowOutlet,
                selectors: [["", "headerRowOutlet", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HeaderRowOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[headerRowOutlet]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /**
           * Provides a handle for the table to grab the view container's ng-container to insert the footer.
           * @docs-private
           */
          class FooterRowOutlet {
            constructor(viewContainer, elementRef) {
              this.viewContainer = viewContainer;
              this.elementRef = elementRef;
            }
            static {
              this.ɵfac = function FooterRowOutlet_Factory(t) {
                return new (t || FooterRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: FooterRowOutlet,
                selectors: [["", "footerRowOutlet", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FooterRowOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[footerRowOutlet]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /**
           * Provides a handle for the table to grab the view
           * container's ng-container to insert the no data row.
           * @docs-private
           */
          class NoDataRowOutlet {
            constructor(viewContainer, elementRef) {
              this.viewContainer = viewContainer;
              this.elementRef = elementRef;
            }
            static {
              this.ɵfac = function NoDataRowOutlet_Factory(t) {
                return new (t || NoDataRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: NoDataRowOutlet,
                selectors: [["", "noDataRowOutlet", ""]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NoDataRowOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[noDataRowOutlet]'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }];
            }, null);
          })();
          /**
           * The table template that can be used by the mat-table. Should not be used outside of the
           * material library.
           * @docs-private
           */
          const CDK_TABLE_TEMPLATE =
          // Note that according to MDN, the `caption` element has to be projected as the **first**
          // element in the table. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption
          `
            <ng-content select="caption"></ng-content>
            <ng-content select="colgroup, col"></ng-content>
            <ng-container headerRowOutlet></ng-container>
            <ng-container rowOutlet></ng-container>
            <ng-container noDataRowOutlet></ng-container>
            <ng-container footerRowOutlet></ng-container>
          `;
          /**
           * Class used to conveniently type the embedded view ref for rows with a context.
           * @docs-private
           */
          class RowViewRef extends _angular_core__WEBPACK_IMPORTED_MODULE_1__.EmbeddedViewRef {}
          /**
           * A data table that can render a header row, data rows, and a footer row.
           * Uses the dataSource input to determine the data to be rendered. The data can be provided either
           * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
           * connect function that will return an Observable stream that emits the data array to render.
           */
          class CdkTable {
            /**
             * Tracking function that will be used to check the differences in data changes. Used similarly
             * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
             * relative to the function to know if a row should be added/removed/moved.
             * Accepts a function that takes two parameters, `index` and `item`.
             */
            get trackBy() {
              return this._trackByFn;
            }
            set trackBy(fn) {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
                console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`);
              }
              this._trackByFn = fn;
            }
            /**
             * The table's source of data, which can be provided in three ways (in order of complexity):
             *   - Simple data array (each object represents one table row)
             *   - Stream that emits a data array each time the array changes
             *   - `DataSource` object that implements the connect/disconnect interface.
             *
             * If a data array is provided, the table must be notified when the array's objects are
             * added, removed, or moved. This can be done by calling the `renderRows()` function which will
             * render the diff since the last table render. If the data array reference is changed, the table
             * will automatically trigger an update to the rows.
             *
             * When providing an Observable stream, the table will trigger an update automatically when the
             * stream emits a new array of data.
             *
             * Finally, when providing a `DataSource` object, the table will use the Observable stream
             * provided by the connect function and trigger updates when that stream emits new data array
             * values. During the table's ngOnDestroy or when the data source is removed from the table, the
             * table will call the DataSource's `disconnect` function (may be useful for cleaning up any
             * subscriptions registered during the connect process).
             */
            get dataSource() {
              return this._dataSource;
            }
            set dataSource(dataSource) {
              if (this._dataSource !== dataSource) {
                this._switchDataSource(dataSource);
              }
            }
            /**
             * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
             * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
             * dataobject will render the first row that evaluates its when predicate to true, in the order
             * defined in the table, or otherwise the default row which does not have a when predicate.
             */
            get multiTemplateDataRows() {
              return this._multiTemplateDataRows;
            }
            set multiTemplateDataRows(v) {
              this._multiTemplateDataRows = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
              // In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),
              // this setter will be invoked before the row outlet has been defined hence the null check.
              if (this._rowOutlet && this._rowOutlet.viewContainer.length) {
                this._forceRenderDataRows();
                this.updateStickyColumnStyles();
              }
            }
            /**
             * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
             * and optimize rendering sticky styles for native tables. No-op for flex tables.
             */
            get fixedLayout() {
              return this._fixedLayout;
            }
            set fixedLayout(v) {
              this._fixedLayout = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
              // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.
              this._forceRecalculateCellWidths = true;
              this._stickyColumnStylesNeedReset = true;
            }
            constructor(_differs, _changeDetectorRef, _elementRef, role, _dir, _document, _platform, _viewRepeater, _coalescedStyleScheduler, _viewportRuler,
            /**
             * @deprecated `_stickyPositioningListener` parameter to become required.
             * @breaking-change 13.0.0
             */
            _stickyPositioningListener,
            /**
             * @deprecated `_ngZone` parameter to become required.
             * @breaking-change 14.0.0
             */
            _ngZone) {
              this._differs = _differs;
              this._changeDetectorRef = _changeDetectorRef;
              this._elementRef = _elementRef;
              this._dir = _dir;
              this._platform = _platform;
              this._viewRepeater = _viewRepeater;
              this._coalescedStyleScheduler = _coalescedStyleScheduler;
              this._viewportRuler = _viewportRuler;
              this._stickyPositioningListener = _stickyPositioningListener;
              this._ngZone = _ngZone;
              /** Subject that emits when the component has been destroyed. */
              this._onDestroy = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              /**
               * Map of all the user's defined columns (header, data, and footer cell template) identified by
               * name. Collection populated by the column definitions gathered by `ContentChildren` as well as
               * any custom column definitions added to `_customColumnDefs`.
               */
              this._columnDefsByName = new Map();
              /**
               * Column definitions that were defined outside of the direct content children of the table.
               * These will be defined when, e.g., creating a wrapper around the cdkTable that has
               * column definitions as *its* content child.
               */
              this._customColumnDefs = new Set();
              /**
               * Data row definitions that were defined outside of the direct content children of the table.
               * These will be defined when, e.g., creating a wrapper around the cdkTable that has
               * built-in data rows as *its* content child.
               */
              this._customRowDefs = new Set();
              /**
               * Header row definitions that were defined outside of the direct content children of the table.
               * These will be defined when, e.g., creating a wrapper around the cdkTable that has
               * built-in header rows as *its* content child.
               */
              this._customHeaderRowDefs = new Set();
              /**
               * Footer row definitions that were defined outside of the direct content children of the table.
               * These will be defined when, e.g., creating a wrapper around the cdkTable that has a
               * built-in footer row as *its* content child.
               */
              this._customFooterRowDefs = new Set();
              /**
               * Whether the header row definition has been changed. Triggers an update to the header row after
               * content is checked. Initialized as true so that the table renders the initial set of rows.
               */
              this._headerRowDefChanged = true;
              /**
               * Whether the footer row definition has been changed. Triggers an update to the footer row after
               * content is checked. Initialized as true so that the table renders the initial set of rows.
               */
              this._footerRowDefChanged = true;
              /**
               * Whether the sticky column styles need to be updated. Set to `true` when the visible columns
               * change.
               */
              this._stickyColumnStylesNeedReset = true;
              /**
               * Whether the sticky styler should recalculate cell widths when applying sticky styles. If
               * `false`, cached values will be used instead. This is only applicable to tables with
               * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
               */
              this._forceRecalculateCellWidths = true;
              /**
               * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
               * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
               * the cached `RenderRow` objects when possible, the row identity is preserved when the data
               * and row template matches, which allows the `IterableDiffer` to check rows by reference
               * and understand which rows are added/moved/removed.
               *
               * Implemented as a map of maps where the first key is the `data: T` object and the second is the
               * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
               * contains an array of created pairs. The array is necessary to handle cases where the data
               * array contains multiple duplicate data objects and each instantiated `RenderRow` must be
               * stored.
               */
              this._cachedRenderRowsMap = new Map();
              /**
               * CSS class added to any row or cell that has sticky positioning applied. May be overridden by
               * table subclasses.
               */
              this.stickyCssClass = 'cdk-table-sticky';
              /**
               * Whether to manually add position: sticky to all sticky cell elements. Not needed if
               * the position is set in a selector associated with the value of stickyCssClass. May be
               * overridden by table subclasses
               */
              this.needsPositionStickyOnElement = true;
              /** Whether the no data row is currently showing anything. */
              this._isShowingNoDataRow = false;
              this._multiTemplateDataRows = false;
              this._fixedLayout = false;
              /**
               * Emits when the table completes rendering a set of data rows based on the latest data from the
               * data source, even if the set of rows is empty.
               */
              this.contentChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              // TODO(andrewseguin): Remove max value as the end index
              //   and instead calculate the view on init and scroll.
              /**
               * Stream containing the latest information on what rows are being displayed on screen.
               * Can be used by the data source to as a heuristic of what data should be provided.
               *
               * @docs-private
               */
              this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_7__.BehaviorSubject({
                start: 0,
                end: Number.MAX_VALUE
              });
              if (!role) {
                this._elementRef.nativeElement.setAttribute('role', 'table');
              }
              this._document = _document;
              this._isNativeHtmlTable = this._elementRef.nativeElement.nodeName === 'TABLE';
            }
            ngOnInit() {
              this._setupStickyStyler();
              if (this._isNativeHtmlTable) {
                this._applyNativeTableSections();
              }
              // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If
              // the user has provided a custom trackBy, return the result of that function as evaluated
              // with the values of the `RenderRow`'s data and index.
              this._dataDiffer = this._differs.find([]).create((_i, dataRow) => {
                return this.trackBy ? this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;
              });
              this._viewportRuler.change().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._onDestroy)).subscribe(() => {
                this._forceRecalculateCellWidths = true;
              });
            }
            ngAfterContentChecked() {
              // Cache the row and column definitions gathered by ContentChildren and programmatic injection.
              this._cacheRowDefs();
              this._cacheColumnDefs();
              // Make sure that the user has at least added header, footer, or data row def.
              if (!this._headerRowDefs.length && !this._footerRowDefs.length && !this._rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableMissingRowDefsError();
              }
              // Render updates if the list of columns have been changed for the header, row, or footer defs.
              const columnsChanged = this._renderUpdatedColumns();
              const rowDefsChanged = columnsChanged || this._headerRowDefChanged || this._footerRowDefChanged;
              // Ensure sticky column styles are reset if set to `true` elsewhere.
              this._stickyColumnStylesNeedReset = this._stickyColumnStylesNeedReset || rowDefsChanged;
              this._forceRecalculateCellWidths = rowDefsChanged;
              // If the header row definition has been changed, trigger a render to the header row.
              if (this._headerRowDefChanged) {
                this._forceRenderHeaderRows();
                this._headerRowDefChanged = false;
              }
              // If the footer row definition has been changed, trigger a render to the footer row.
              if (this._footerRowDefChanged) {
                this._forceRenderFooterRows();
                this._footerRowDefChanged = false;
              }
              // If there is a data source and row definitions, connect to the data source unless a
              // connection has already been made.
              if (this.dataSource && this._rowDefs.length > 0 && !this._renderChangeSubscription) {
                this._observeRenderChanges();
              } else if (this._stickyColumnStylesNeedReset) {
                // In the above case, _observeRenderChanges will result in updateStickyColumnStyles being
                // called when it row data arrives. Otherwise, we need to call it proactively.
                this.updateStickyColumnStyles();
              }
              this._checkStickyStates();
            }
            ngOnDestroy() {
              [this._rowOutlet.viewContainer, this._headerRowOutlet.viewContainer, this._footerRowOutlet.viewContainer, this._cachedRenderRowsMap, this._customColumnDefs, this._customRowDefs, this._customHeaderRowDefs, this._customFooterRowDefs, this._columnDefsByName].forEach(def => {
                def.clear();
              });
              this._headerRowDefs = [];
              this._footerRowDefs = [];
              this._defaultRowDef = null;
              this._onDestroy.next();
              this._onDestroy.complete();
              if ((0,_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)(this.dataSource)) {
                this.dataSource.disconnect(this);
              }
            }
            /**
             * Renders rows based on the table's latest set of data, which was either provided directly as an
             * input or retrieved through an Observable stream (directly or from a DataSource).
             * Checks for differences in the data since the last diff to perform only the necessary
             * changes (add/remove/move rows).
             *
             * If the table's data source is a DataSource or Observable, this will be invoked automatically
             * each time the provided Observable stream emits a new data array. Otherwise if your data is
             * an array, this function will need to be called to render any changes.
             */
            renderRows() {
              this._renderRows = this._getAllRenderRows();
              const changes = this._dataDiffer.diff(this._renderRows);
              if (!changes) {
                this._updateNoDataRow();
                this.contentChanged.next();
                return;
              }
              const viewContainer = this._rowOutlet.viewContainer;
              this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex), record => record.item.data, change => {
                if (change.operation === 1 /* _ViewRepeaterOperation.INSERTED */ && change.context) {
                  this._renderCellTemplateForItem(change.record.item.rowDef, change.context);
                }
              });
              // Update the meta context of a row's context data (index, count, first, last, ...)
              this._updateRowIndexContext();
              // Update rows that did not get added/removed/moved but may have had their identity changed,
              // e.g. if trackBy matched data on some property but the actual data reference changed.
              changes.forEachIdentityChange(record => {
                const rowView = viewContainer.get(record.currentIndex);
                rowView.context.$implicit = record.item.data;
              });
              this._updateNoDataRow();
              // Allow the new row data to render before measuring it.
              // @breaking-change 14.0.0 Remove undefined check once _ngZone is required.
              if (this._ngZone && _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone.isInAngularZone()) {
                this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._onDestroy)).subscribe(() => {
                  this.updateStickyColumnStyles();
                });
              } else {
                this.updateStickyColumnStyles();
              }
              this.contentChanged.next();
            }
            /** Adds a column definition that was not included as part of the content children. */
            addColumnDef(columnDef) {
              this._customColumnDefs.add(columnDef);
            }
            /** Removes a column definition that was not included as part of the content children. */
            removeColumnDef(columnDef) {
              this._customColumnDefs.delete(columnDef);
            }
            /** Adds a row definition that was not included as part of the content children. */
            addRowDef(rowDef) {
              this._customRowDefs.add(rowDef);
            }
            /** Removes a row definition that was not included as part of the content children. */
            removeRowDef(rowDef) {
              this._customRowDefs.delete(rowDef);
            }
            /** Adds a header row definition that was not included as part of the content children. */
            addHeaderRowDef(headerRowDef) {
              this._customHeaderRowDefs.add(headerRowDef);
              this._headerRowDefChanged = true;
            }
            /** Removes a header row definition that was not included as part of the content children. */
            removeHeaderRowDef(headerRowDef) {
              this._customHeaderRowDefs.delete(headerRowDef);
              this._headerRowDefChanged = true;
            }
            /** Adds a footer row definition that was not included as part of the content children. */
            addFooterRowDef(footerRowDef) {
              this._customFooterRowDefs.add(footerRowDef);
              this._footerRowDefChanged = true;
            }
            /** Removes a footer row definition that was not included as part of the content children. */
            removeFooterRowDef(footerRowDef) {
              this._customFooterRowDefs.delete(footerRowDef);
              this._footerRowDefChanged = true;
            }
            /** Sets a no data row definition that was not included as a part of the content children. */
            setNoDataRow(noDataRow) {
              this._customNoDataRow = noDataRow;
            }
            /**
             * Updates the header sticky styles. First resets all applied styles with respect to the cells
             * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
             * automatically called when the header row changes its displayed set of columns, or if its
             * sticky input changes. May be called manually for cases where the cell content changes outside
             * of these events.
             */
            updateStickyHeaderRowStyles() {
              const headerRows = this._getRenderedRows(this._headerRowOutlet);
              const tableElement = this._elementRef.nativeElement;
              // Hide the thead element if there are no header rows. This is necessary to satisfy
              // overzealous a11y checkers that fail because the `rowgroup` element does not contain
              // required child `row`.
              const thead = tableElement.querySelector('thead');
              if (thead) {
                thead.style.display = headerRows.length ? '' : 'none';
              }
              const stickyStates = this._headerRowDefs.map(def => def.sticky);
              this._stickyStyler.clearStickyPositioning(headerRows, ['top']);
              this._stickyStyler.stickRows(headerRows, stickyStates, 'top');
              // Reset the dirty state of the sticky input change since it has been used.
              this._headerRowDefs.forEach(def => def.resetStickyChanged());
            }
            /**
             * Updates the footer sticky styles. First resets all applied styles with respect to the cells
             * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
             * automatically called when the footer row changes its displayed set of columns, or if its
             * sticky input changes. May be called manually for cases where the cell content changes outside
             * of these events.
             */
            updateStickyFooterRowStyles() {
              const footerRows = this._getRenderedRows(this._footerRowOutlet);
              const tableElement = this._elementRef.nativeElement;
              // Hide the tfoot element if there are no footer rows. This is necessary to satisfy
              // overzealous a11y checkers that fail because the `rowgroup` element does not contain
              // required child `row`.
              const tfoot = tableElement.querySelector('tfoot');
              if (tfoot) {
                tfoot.style.display = footerRows.length ? '' : 'none';
              }
              const stickyStates = this._footerRowDefs.map(def => def.sticky);
              this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']);
              this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom');
              this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates);
              // Reset the dirty state of the sticky input change since it has been used.
              this._footerRowDefs.forEach(def => def.resetStickyChanged());
            }
            /**
             * Updates the column sticky styles. First resets all applied styles with respect to the cells
             * sticking to the left and right. Then sticky styles are added for the left and right according
             * to the column definitions for each cell in each row. This is automatically called when
             * the data source provides a new set of data or when a column definition changes its sticky
             * input. May be called manually for cases where the cell content changes outside of these events.
             */
            updateStickyColumnStyles() {
              const headerRows = this._getRenderedRows(this._headerRowOutlet);
              const dataRows = this._getRenderedRows(this._rowOutlet);
              const footerRows = this._getRenderedRows(this._footerRowOutlet);
              // For tables not using a fixed layout, the column widths may change when new rows are rendered.
              // In a table using a fixed layout, row content won't affect column width, so sticky styles
              // don't need to be cleared unless either the sticky column config changes or one of the row
              // defs change.
              if (this._isNativeHtmlTable && !this._fixedLayout || this._stickyColumnStylesNeedReset) {
                // Clear the left and right positioning from all columns in the table across all rows since
                // sticky columns span across all table sections (header, data, footer)
                this._stickyStyler.clearStickyPositioning([...headerRows, ...dataRows, ...footerRows], ['left', 'right']);
                this._stickyColumnStylesNeedReset = false;
              }
              // Update the sticky styles for each header row depending on the def's sticky state
              headerRows.forEach((headerRow, i) => {
                this._addStickyColumnStyles([headerRow], this._headerRowDefs[i]);
              });
              // Update the sticky styles for each data row depending on its def's sticky state
              this._rowDefs.forEach(rowDef => {
                // Collect all the rows rendered with this row definition.
                const rows = [];
                for (let i = 0; i < dataRows.length; i++) {
                  if (this._renderRows[i].rowDef === rowDef) {
                    rows.push(dataRows[i]);
                  }
                }
                this._addStickyColumnStyles(rows, rowDef);
              });
              // Update the sticky styles for each footer row depending on the def's sticky state
              footerRows.forEach((footerRow, i) => {
                this._addStickyColumnStyles([footerRow], this._footerRowDefs[i]);
              });
              // Reset the dirty state of the sticky input change since it has been used.
              Array.from(this._columnDefsByName.values()).forEach(def => def.resetStickyChanged());
            }
            /**
             * Get the list of RenderRow objects to render according to the current list of data and defined
             * row definitions. If the previous list already contained a particular pair, it should be reused
             * so that the differ equates their references.
             */
            _getAllRenderRows() {
              const renderRows = [];
              // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the
              // new cache while unused ones can be picked up by garbage collection.
              const prevCachedRenderRows = this._cachedRenderRowsMap;
              this._cachedRenderRowsMap = new Map();
              // For each data object, get the list of rows that should be rendered, represented by the
              // respective `RenderRow` object which is the pair of `data` and `CdkRowDef`.
              for (let i = 0; i < this._data.length; i++) {
                let data = this._data[i];
                const renderRowsForData = this._getRenderRowsForData(data, i, prevCachedRenderRows.get(data));
                if (!this._cachedRenderRowsMap.has(data)) {
                  this._cachedRenderRowsMap.set(data, new WeakMap());
                }
                for (let j = 0; j < renderRowsForData.length; j++) {
                  let renderRow = renderRowsForData[j];
                  const cache = this._cachedRenderRowsMap.get(renderRow.data);
                  if (cache.has(renderRow.rowDef)) {
                    cache.get(renderRow.rowDef).push(renderRow);
                  } else {
                    cache.set(renderRow.rowDef, [renderRow]);
                  }
                  renderRows.push(renderRow);
                }
              }
              return renderRows;
            }
            /**
             * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
             * should be rendered for this data. Reuses the cached RenderRow objects if they match the same
             * `(T, CdkRowDef)` pair.
             */
            _getRenderRowsForData(data, dataIndex, cache) {
              const rowDefs = this._getRowDefs(data, dataIndex);
              return rowDefs.map(rowDef => {
                const cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];
                if (cachedRenderRows.length) {
                  const dataRow = cachedRenderRows.shift();
                  dataRow.dataIndex = dataIndex;
                  return dataRow;
                } else {
                  return {
                    data,
                    rowDef,
                    dataIndex
                  };
                }
              });
            }
            /** Update the map containing the content's column definitions. */
            _cacheColumnDefs() {
              this._columnDefsByName.clear();
              const columnDefs = mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs), this._customColumnDefs);
              columnDefs.forEach(columnDef => {
                if (this._columnDefsByName.has(columnDef.name) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw getTableDuplicateColumnNameError(columnDef.name);
                }
                this._columnDefsByName.set(columnDef.name, columnDef);
              });
            }
            /** Update the list of all available row definitions that can be used. */
            _cacheRowDefs() {
              this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);
              this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);
              this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);
              // After all row definitions are determined, find the row definition to be considered default.
              const defaultRowDefs = this._rowDefs.filter(def => !def.when);
              if (!this.multiTemplateDataRows && defaultRowDefs.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableMultipleDefaultRowDefsError();
              }
              this._defaultRowDef = defaultRowDefs[0];
            }
            /**
             * Check if the header, data, or footer rows have changed what columns they want to display or
             * whether the sticky states have changed for the header or footer. If there is a diff, then
             * re-render that section.
             */
            _renderUpdatedColumns() {
              const columnsDiffReducer = (acc, def) => acc || !!def.getColumnsDiff();
              // Force re-render data rows if the list of column definitions have changed.
              const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);
              if (dataColumnsChanged) {
                this._forceRenderDataRows();
              }
              // Force re-render header/footer rows if the list of column definitions have changed.
              const headerColumnsChanged = this._headerRowDefs.reduce(columnsDiffReducer, false);
              if (headerColumnsChanged) {
                this._forceRenderHeaderRows();
              }
              const footerColumnsChanged = this._footerRowDefs.reduce(columnsDiffReducer, false);
              if (footerColumnsChanged) {
                this._forceRenderFooterRows();
              }
              return dataColumnsChanged || headerColumnsChanged || footerColumnsChanged;
            }
            /**
             * Switch to the provided data source by resetting the data and unsubscribing from the current
             * render change subscription if one exists. If the data source is null, interpret this by
             * clearing the row outlet. Otherwise start listening for new data.
             */
            _switchDataSource(dataSource) {
              this._data = [];
              if ((0,_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)(this.dataSource)) {
                this.dataSource.disconnect(this);
              }
              // Stop listening for data from the previous data source.
              if (this._renderChangeSubscription) {
                this._renderChangeSubscription.unsubscribe();
                this._renderChangeSubscription = null;
              }
              if (!dataSource) {
                if (this._dataDiffer) {
                  this._dataDiffer.diff([]);
                }
                this._rowOutlet.viewContainer.clear();
              }
              this._dataSource = dataSource;
            }
            /** Set up a subscription for the data provided by the data source. */
            _observeRenderChanges() {
              // If no data source has been set, there is nothing to observe for changes.
              if (!this.dataSource) {
                return;
              }
              let dataStream;
              if ((0,_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__.isDataSource)(this.dataSource)) {
                dataStream = this.dataSource.connect(this);
              } else if ((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.isObservable)(this.dataSource)) {
                dataStream = this.dataSource;
              } else if (Array.isArray(this.dataSource)) {
                dataStream = (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)(this.dataSource);
              }
              if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableUnknownDataSourceError();
              }
              this._renderChangeSubscription = dataStream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._onDestroy)).subscribe(data => {
                this._data = data || [];
                this.renderRows();
              });
            }
            /**
             * Clears any existing content in the header row outlet and creates a new embedded view
             * in the outlet using the header row definition.
             */
            _forceRenderHeaderRows() {
              // Clear the header row outlet if any content exists.
              if (this._headerRowOutlet.viewContainer.length > 0) {
                this._headerRowOutlet.viewContainer.clear();
              }
              this._headerRowDefs.forEach((def, i) => this._renderRow(this._headerRowOutlet, def, i));
              this.updateStickyHeaderRowStyles();
            }
            /**
             * Clears any existing content in the footer row outlet and creates a new embedded view
             * in the outlet using the footer row definition.
             */
            _forceRenderFooterRows() {
              // Clear the footer row outlet if any content exists.
              if (this._footerRowOutlet.viewContainer.length > 0) {
                this._footerRowOutlet.viewContainer.clear();
              }
              this._footerRowDefs.forEach((def, i) => this._renderRow(this._footerRowOutlet, def, i));
              this.updateStickyFooterRowStyles();
            }
            /** Adds the sticky column styles for the rows according to the columns' stick states. */
            _addStickyColumnStyles(rows, rowDef) {
              const columnDefs = Array.from(rowDef.columns || []).map(columnName => {
                const columnDef = this._columnDefsByName.get(columnName);
                if (!columnDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw getTableUnknownColumnError(columnName);
                }
                return columnDef;
              });
              const stickyStartStates = columnDefs.map(columnDef => columnDef.sticky);
              const stickyEndStates = columnDefs.map(columnDef => columnDef.stickyEnd);
              this._stickyStyler.updateStickyColumns(rows, stickyStartStates, stickyEndStates, !this._fixedLayout || this._forceRecalculateCellWidths);
            }
            /** Gets the list of rows that have been rendered in the row outlet. */
            _getRenderedRows(rowOutlet) {
              const renderedRows = [];
              for (let i = 0; i < rowOutlet.viewContainer.length; i++) {
                const viewRef = rowOutlet.viewContainer.get(i);
                renderedRows.push(viewRef.rootNodes[0]);
              }
              return renderedRows;
            }
            /**
             * Get the matching row definitions that should be used for this row data. If there is only
             * one row definition, it is returned. Otherwise, find the row definitions that has a when
             * predicate that returns true with the data. If none return true, return the default row
             * definition.
             */
            _getRowDefs(data, dataIndex) {
              if (this._rowDefs.length == 1) {
                return [this._rowDefs[0]];
              }
              let rowDefs = [];
              if (this.multiTemplateDataRows) {
                rowDefs = this._rowDefs.filter(def => !def.when || def.when(dataIndex, data));
              } else {
                let rowDef = this._rowDefs.find(def => def.when && def.when(dataIndex, data)) || this._defaultRowDef;
                if (rowDef) {
                  rowDefs.push(rowDef);
                }
              }
              if (!rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableMissingMatchingRowDefError(data);
              }
              return rowDefs;
            }
            _getEmbeddedViewArgs(renderRow, index) {
              const rowDef = renderRow.rowDef;
              const context = {
                $implicit: renderRow.data
              };
              return {
                templateRef: rowDef.template,
                context,
                index
              };
            }
            /**
             * Creates a new row template in the outlet and fills it with the set of cell templates.
             * Optionally takes a context to provide to the row and cells, as well as an optional index
             * of where to place the new row template in the outlet.
             */
            _renderRow(outlet, rowDef, index, context = {}) {
              // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView
              const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);
              this._renderCellTemplateForItem(rowDef, context);
              return view;
            }
            _renderCellTemplateForItem(rowDef, context) {
              for (let cellTemplate of this._getCellTemplates(rowDef)) {
                if (CdkCellOutlet.mostRecentCellOutlet) {
                  CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);
                }
              }
              this._changeDetectorRef.markForCheck();
            }
            /**
             * Updates the index-related context for each row to reflect any changes in the index of the rows,
             * e.g. first/last/even/odd.
             */
            _updateRowIndexContext() {
              const viewContainer = this._rowOutlet.viewContainer;
              for (let renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) {
                const viewRef = viewContainer.get(renderIndex);
                const context = viewRef.context;
                context.count = count;
                context.first = renderIndex === 0;
                context.last = renderIndex === count - 1;
                context.even = renderIndex % 2 === 0;
                context.odd = !context.even;
                if (this.multiTemplateDataRows) {
                  context.dataIndex = this._renderRows[renderIndex].dataIndex;
                  context.renderIndex = renderIndex;
                } else {
                  context.index = this._renderRows[renderIndex].dataIndex;
                }
              }
            }
            /** Gets the column definitions for the provided row def. */
            _getCellTemplates(rowDef) {
              if (!rowDef || !rowDef.columns) {
                return [];
              }
              return Array.from(rowDef.columns, columnId => {
                const column = this._columnDefsByName.get(columnId);
                if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw getTableUnknownColumnError(columnId);
                }
                return rowDef.extractCellTemplate(column);
              });
            }
            /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
            _applyNativeTableSections() {
              const documentFragment = this._document.createDocumentFragment();
              const sections = [{
                tag: 'thead',
                outlets: [this._headerRowOutlet]
              }, {
                tag: 'tbody',
                outlets: [this._rowOutlet, this._noDataRowOutlet]
              }, {
                tag: 'tfoot',
                outlets: [this._footerRowOutlet]
              }];
              for (const section of sections) {
                const element = this._document.createElement(section.tag);
                element.setAttribute('role', 'rowgroup');
                for (const outlet of section.outlets) {
                  element.appendChild(outlet.elementRef.nativeElement);
                }
                documentFragment.appendChild(element);
              }
              // Use a DocumentFragment so we don't hit the DOM on each iteration.
              this._elementRef.nativeElement.appendChild(documentFragment);
            }
            /**
             * Forces a re-render of the data rows. Should be called in cases where there has been an input
             * change that affects the evaluation of which rows should be rendered, e.g. toggling
             * `multiTemplateDataRows` or adding/removing row definitions.
             */
            _forceRenderDataRows() {
              this._dataDiffer.diff([]);
              this._rowOutlet.viewContainer.clear();
              this.renderRows();
            }
            /**
             * Checks if there has been a change in sticky states since last check and applies the correct
             * sticky styles. Since checking resets the "dirty" state, this should only be performed once
             * during a change detection and after the inputs are settled (after content check).
             */
            _checkStickyStates() {
              const stickyCheckReducer = (acc, d) => {
                return acc || d.hasStickyChanged();
              };
              // Note that the check needs to occur for every definition since it notifies the definition
              // that it can reset its dirty state. Using another operator like `some` may short-circuit
              // remaining definitions and leave them in an unchecked state.
              if (this._headerRowDefs.reduce(stickyCheckReducer, false)) {
                this.updateStickyHeaderRowStyles();
              }
              if (this._footerRowDefs.reduce(stickyCheckReducer, false)) {
                this.updateStickyFooterRowStyles();
              }
              if (Array.from(this._columnDefsByName.values()).reduce(stickyCheckReducer, false)) {
                this._stickyColumnStylesNeedReset = true;
                this.updateStickyColumnStyles();
              }
            }
            /**
             * Creates the sticky styler that will be used for sticky rows and columns. Listens
             * for directionality changes and provides the latest direction to the styler. Re-applies column
             * stickiness when directionality changes.
             */
            _setupStickyStyler() {
              const direction = this._dir ? this._dir.value : 'ltr';
              this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement, this._stickyPositioningListener);
              (this._dir ? this._dir.change : (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.of)()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.takeUntil)(this._onDestroy)).subscribe(value => {
                this._stickyStyler.direction = value;
                this.updateStickyColumnStyles();
              });
            }
            /** Filters definitions that belong to this table from a QueryList. */
            _getOwnDefs(items) {
              return items.filter(item => !item._table || item._table === this);
            }
            /** Creates or removes the no data row, depending on whether any data is being shown. */
            _updateNoDataRow() {
              const noDataRow = this._customNoDataRow || this._noDataRow;
              if (!noDataRow) {
                return;
              }
              const shouldShow = this._rowOutlet.viewContainer.length === 0;
              if (shouldShow === this._isShowingNoDataRow) {
                return;
              }
              const container = this._noDataRowOutlet.viewContainer;
              if (shouldShow) {
                const view = container.createEmbeddedView(noDataRow.templateRef);
                const rootNode = view.rootNodes[0];
                // Only add the attributes if we have a single root node since it's hard
                // to figure out which one to add it to when there are multiple.
                if (view.rootNodes.length === 1 && rootNode?.nodeType === this._document.ELEMENT_NODE) {
                  rootNode.setAttribute('role', 'row');
                  rootNode.classList.add(noDataRow._contentClassName);
                }
              } else {
                container.clear();
              }
              this._isShowingNoDataRow = shouldShow;
              this._changeDetectorRef.markForCheck();
            }
            static {
              this.ɵfac = function CdkTable_Factory(t) {
                return new (t || CdkTable)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('role'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__.Directionality, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_11__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_COALESCED_STYLE_SCHEDULER), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ViewportRuler), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](STICKY_POSITIONING_LISTENER, 12), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: CdkTable,
                selectors: [["cdk-table"], ["table", "cdk-table", ""]],
                contentQueries: function CdkTable_ContentQueries(rf, ctx, dirIndex) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkNoDataRow, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkColumnDef, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkRowDef, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkHeaderRowDef, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, CdkFooterRowDef, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._noDataRow = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentColumnDefs = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentRowDefs = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentHeaderRowDefs = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentFooterRowDefs = _t);
                  }
                },
                viewQuery: function CdkTable_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](DataRowOutlet, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](HeaderRowOutlet, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](FooterRowOutlet, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](NoDataRowOutlet, 7);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._rowOutlet = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._headerRowOutlet = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._footerRowOutlet = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._noDataRowOutlet = _t.first);
                  }
                },
                hostAttrs: ["ngSkipHydration", "", 1, "cdk-table"],
                hostVars: 2,
                hostBindings: function CdkTable_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("cdk-table-fixed-layout", ctx.fixedLayout);
                  }
                },
                inputs: {
                  trackBy: "trackBy",
                  dataSource: "dataSource",
                  multiTemplateDataRows: "multiTemplateDataRows",
                  fixedLayout: "fixedLayout"
                },
                outputs: {
                  contentChanged: "contentChanged"
                },
                exportAs: ["cdkTable"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
                  provide: CDK_TABLE,
                  useExisting: CdkTable
                }, {
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._DisposeViewRepeaterStrategy
                }, {
                  provide: _COALESCED_STYLE_SCHEDULER,
                  useClass: _CoalescedStyleScheduler
                },
                // Prevent nested tables from seeing this table's StickyPositioningListener.
                {
                  provide: STICKY_POSITIONING_LISTENER,
                  useValue: null
                }])],
                ngContentSelectors: _c1,
                decls: 6,
                vars: 0,
                consts: [["headerRowOutlet", ""], ["rowOutlet", ""], ["noDataRowOutlet", ""], ["footerRowOutlet", ""]],
                template: function CdkTable_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](_c0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](1, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainer"](2, 0)(3, 1)(4, 2)(5, 3);
                  }
                },
                dependencies: [DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, NoDataRowOutlet],
                styles: [".cdk-table-fixed-layout{table-layout:fixed}"],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkTable, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                selector: 'cdk-table, table[cdk-table]',
                exportAs: 'cdkTable',
                template: CDK_TABLE_TEMPLATE,
                host: {
                  'class': 'cdk-table',
                  '[class.cdk-table-fixed-layout]': 'fixedLayout',
                  'ngSkipHydration': ''
                },
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectionStrategy.Default,
                providers: [{
                  provide: CDK_TABLE,
                  useExisting: CdkTable
                }, {
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._DisposeViewRepeaterStrategy
                }, {
                  provide: _COALESCED_STYLE_SCHEDULER,
                  useClass: _CoalescedStyleScheduler
                },
                // Prevent nested tables from seeing this table's StickyPositioningListener.
                {
                  provide: STICKY_POSITIONING_LISTENER,
                  useValue: null
                }],
                styles: [".cdk-table-fixed-layout{table-layout:fixed}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.IterableDiffers
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Attribute,
                  args: ['role']
                }]
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.DOCUMENT]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_0__._VIEW_REPEATER_STRATEGY]
                }]
              }, {
                type: _CoalescedStyleScheduler,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_COALESCED_STYLE_SCHEDULER]
                }]
              }, {
                type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ViewportRuler
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.SkipSelf
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [STICKY_POSITIONING_LISTENER]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, {
              trackBy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              dataSource: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              multiTemplateDataRows: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              fixedLayout: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              contentChanged: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output
              }],
              _rowOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [DataRowOutlet, {
                  static: true
                }]
              }],
              _headerRowOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [HeaderRowOutlet, {
                  static: true
                }]
              }],
              _footerRowOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [FooterRowOutlet, {
                  static: true
                }]
              }],
              _noDataRowOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [NoDataRowOutlet, {
                  static: true
                }]
              }],
              _contentColumnDefs: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren,
                args: [CdkColumnDef, {
                  descendants: true
                }]
              }],
              _contentRowDefs: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren,
                args: [CdkRowDef, {
                  descendants: true
                }]
              }],
              _contentHeaderRowDefs: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren,
                args: [CdkHeaderRowDef, {
                  descendants: true
                }]
              }],
              _contentFooterRowDefs: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren,
                args: [CdkFooterRowDef, {
                  descendants: true
                }]
              }],
              _noDataRow: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChild,
                args: [CdkNoDataRow]
              }]
            });
          })();
          /** Utility function that gets a merged list of the entries in an array and values of a Set. */
          function mergeArrayAndSet(array, set) {
            return array.concat(Array.from(set));
          }
          
          /**
           * Column that simply shows text content for the header and row cells. Assumes that the table
           * is using the native table implementation (`<table>`).
           *
           * By default, the name of this column will be the header text and data property accessor.
           * The header text can be overridden with the `headerText` input. Cell values can be overridden with
           * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
           * input.
           */
          class CdkTextColumn {
            /** Column name that should be used to reference this column. */
            get name() {
              return this._name;
            }
            set name(name) {
              this._name = name;
              // With Ivy, inputs can be initialized before static query results are
              // available. In that case, we defer the synchronization until "ngOnInit" fires.
              this._syncColumnDefName();
            }
            constructor(
            // `CdkTextColumn` is always requiring a table, but we just assert it manually
            // for better error reporting.
            // tslint:disable-next-line: lightweight-tokens
            _table, _options) {
              this._table = _table;
              this._options = _options;
              /** Alignment of the cell values. */
              this.justify = 'start';
              this._options = _options || {};
            }
            ngOnInit() {
              this._syncColumnDefName();
              if (this.headerText === undefined) {
                this.headerText = this._createDefaultHeaderText();
              }
              if (!this.dataAccessor) {
                this.dataAccessor = this._options.defaultDataAccessor || ((data, name) => data[name]);
              }
              if (this._table) {
                // Provide the cell and headerCell directly to the table with the static `ViewChild` query,
                // since the columnDef will not pick up its content by the time the table finishes checking
                // its content and initializing the rows.
                this.columnDef.cell = this.cell;
                this.columnDef.headerCell = this.headerCell;
                this._table.addColumnDef(this.columnDef);
              } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
                throw getTableTextColumnMissingParentTableError();
              }
            }
            ngOnDestroy() {
              if (this._table) {
                this._table.removeColumnDef(this.columnDef);
              }
            }
            /**
             * Creates a default header text. Use the options' header text transformation function if one
             * has been provided. Otherwise simply capitalize the column name.
             */
            _createDefaultHeaderText() {
              const name = this.name;
              if (!name && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableTextColumnMissingNameError();
              }
              if (this._options && this._options.defaultHeaderTextTransform) {
                return this._options.defaultHeaderTextTransform(name);
              }
              return name[0].toUpperCase() + name.slice(1);
            }
            /** Synchronizes the column definition name with the text column name. */
            _syncColumnDefName() {
              if (this.columnDef) {
                this.columnDef.name = this.name;
              }
            }
            static {
              this.ɵfac = function CdkTextColumn_Factory(t) {
                return new (t || CdkTextColumn)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkTable, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](TEXT_COLUMN_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: CdkTextColumn,
                selectors: [["cdk-text-column"]],
                viewQuery: function CdkTextColumn_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](CdkColumnDef, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](CdkCellDef, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](CdkHeaderCellDef, 7);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.columnDef = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.cell = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headerCell = _t.first);
                  }
                },
                inputs: {
                  name: "name",
                  headerText: "headerText",
                  dataAccessor: "dataAccessor",
                  justify: "justify"
                },
                decls: 3,
                vars: 0,
                consts: [["cdkColumnDef", ""], ["cdk-header-cell", "", 3, "text-align", 4, "cdkHeaderCellDef"], ["cdk-cell", "", 3, "text-align", 4, "cdkCellDef"], ["cdk-header-cell", ""], ["cdk-cell", ""]],
                template: function CdkTextColumn_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0, 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CdkTextColumn_th_1_Template, 2, 3, "th", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CdkTextColumn_td_2_Template, 2, 3, "td", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
                  }
                },
                dependencies: [CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkCell, CdkHeaderCell],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkTextColumn, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                selector: 'cdk-text-column',
                template: `
              <ng-container cdkColumnDef>
                <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">
                  {{headerText}}
                </th>
                <td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">
                  {{dataAccessor(data, name)}}
                </td>
              </ng-container>
            `,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.None,
                // Change detection is intentionally not set to OnPush. This component's template will be provided
                // to the table to be inserted into its view. This is problematic when change detection runs since
                // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
                // mean's the template in the table's view will not have the updated value (and in fact will cause
                // an ExpressionChangedAfterItHasBeenCheckedError).
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectionStrategy.Default
              }]
            }], function () {
              return [{
                type: CdkTable,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [TEXT_COLUMN_OPTIONS]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              headerText: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              dataAccessor: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              justify: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              columnDef: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [CdkColumnDef, {
                  static: true
                }]
              }],
              cell: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [CdkCellDef, {
                  static: true
                }]
              }],
              headerCell: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewChild,
                args: [CdkHeaderCellDef, {
                  static: true
                }]
              }]
            });
          })();
          const EXPORTED_DECLARATIONS = [CdkTable, CdkRowDef, CdkCellDef, CdkCellOutlet, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkCell, CdkRow, CdkHeaderCell, CdkFooterCell, CdkHeaderRow, CdkHeaderRowDef, CdkFooterRow, CdkFooterRowDef, DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CdkTextColumn, CdkNoDataRow, CdkRecycleRows, NoDataRowOutlet];
          class CdkTableModule {
            static {
              this.ɵfac = function CdkTableModule_Factory(t) {
                return new (t || CdkTableModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
                type: CdkTableModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
                imports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ScrollingModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkTableModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule,
              args: [{
                exports: EXPORTED_DECLARATIONS,
                declarations: EXPORTED_DECLARATIONS,
                imports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__.ScrollingModule]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 316:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/common/fesm2022/common.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   APP_BASE_HREF: () => (/* binding */ APP_BASE_HREF),
          /* harmony export */   AsyncPipe: () => (/* binding */ AsyncPipe),
          /* harmony export */   BrowserPlatformLocation: () => (/* binding */ BrowserPlatformLocation),
          /* harmony export */   CommonModule: () => (/* binding */ CommonModule),
          /* harmony export */   CurrencyPipe: () => (/* binding */ CurrencyPipe),
          /* harmony export */   DATE_PIPE_DEFAULT_OPTIONS: () => (/* binding */ DATE_PIPE_DEFAULT_OPTIONS),
          /* harmony export */   DATE_PIPE_DEFAULT_TIMEZONE: () => (/* binding */ DATE_PIPE_DEFAULT_TIMEZONE),
          /* harmony export */   DOCUMENT: () => (/* binding */ DOCUMENT),
          /* harmony export */   DatePipe: () => (/* binding */ DatePipe),
          /* harmony export */   DecimalPipe: () => (/* binding */ DecimalPipe),
          /* harmony export */   FormStyle: () => (/* binding */ FormStyle),
          /* harmony export */   FormatWidth: () => (/* binding */ FormatWidth),
          /* harmony export */   HashLocationStrategy: () => (/* binding */ HashLocationStrategy),
          /* harmony export */   I18nPluralPipe: () => (/* binding */ I18nPluralPipe),
          /* harmony export */   I18nSelectPipe: () => (/* binding */ I18nSelectPipe),
          /* harmony export */   IMAGE_CONFIG: () => (/* binding */ IMAGE_CONFIG),
          /* harmony export */   IMAGE_LOADER: () => (/* binding */ IMAGE_LOADER),
          /* harmony export */   JsonPipe: () => (/* binding */ JsonPipe),
          /* harmony export */   KeyValuePipe: () => (/* binding */ KeyValuePipe),
          /* harmony export */   LOCATION_INITIALIZED: () => (/* binding */ LOCATION_INITIALIZED),
          /* harmony export */   Location: () => (/* binding */ Location),
          /* harmony export */   LocationStrategy: () => (/* binding */ LocationStrategy),
          /* harmony export */   LowerCasePipe: () => (/* binding */ LowerCasePipe),
          /* harmony export */   NgClass: () => (/* binding */ NgClass),
          /* harmony export */   NgComponentOutlet: () => (/* binding */ NgComponentOutlet),
          /* harmony export */   NgFor: () => (/* binding */ NgForOf),
          /* harmony export */   NgForOf: () => (/* binding */ NgForOf),
          /* harmony export */   NgForOfContext: () => (/* binding */ NgForOfContext),
          /* harmony export */   NgIf: () => (/* binding */ NgIf),
          /* harmony export */   NgIfContext: () => (/* binding */ NgIfContext),
          /* harmony export */   NgLocaleLocalization: () => (/* binding */ NgLocaleLocalization),
          /* harmony export */   NgLocalization: () => (/* binding */ NgLocalization),
          /* harmony export */   NgOptimizedImage: () => (/* binding */ NgOptimizedImage),
          /* harmony export */   NgPlural: () => (/* binding */ NgPlural),
          /* harmony export */   NgPluralCase: () => (/* binding */ NgPluralCase),
          /* harmony export */   NgStyle: () => (/* binding */ NgStyle),
          /* harmony export */   NgSwitch: () => (/* binding */ NgSwitch),
          /* harmony export */   NgSwitchCase: () => (/* binding */ NgSwitchCase),
          /* harmony export */   NgSwitchDefault: () => (/* binding */ NgSwitchDefault),
          /* harmony export */   NgTemplateOutlet: () => (/* binding */ NgTemplateOutlet),
          /* harmony export */   NumberFormatStyle: () => (/* binding */ NumberFormatStyle),
          /* harmony export */   NumberSymbol: () => (/* binding */ NumberSymbol),
          /* harmony export */   PRECONNECT_CHECK_BLOCKLIST: () => (/* binding */ PRECONNECT_CHECK_BLOCKLIST),
          /* harmony export */   PathLocationStrategy: () => (/* binding */ PathLocationStrategy),
          /* harmony export */   PercentPipe: () => (/* binding */ PercentPipe),
          /* harmony export */   PlatformLocation: () => (/* binding */ PlatformLocation),
          /* harmony export */   Plural: () => (/* binding */ Plural),
          /* harmony export */   SlicePipe: () => (/* binding */ SlicePipe),
          /* harmony export */   TitleCasePipe: () => (/* binding */ TitleCasePipe),
          /* harmony export */   TranslationWidth: () => (/* binding */ TranslationWidth),
          /* harmony export */   UpperCasePipe: () => (/* binding */ UpperCasePipe),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   ViewportScroller: () => (/* binding */ ViewportScroller),
          /* harmony export */   WeekDay: () => (/* binding */ WeekDay),
          /* harmony export */   XhrFactory: () => (/* binding */ XhrFactory),
          /* harmony export */   formatCurrency: () => (/* binding */ formatCurrency),
          /* harmony export */   formatDate: () => (/* binding */ formatDate),
          /* harmony export */   formatNumber: () => (/* binding */ formatNumber),
          /* harmony export */   formatPercent: () => (/* binding */ formatPercent),
          /* harmony export */   getCurrencySymbol: () => (/* binding */ getCurrencySymbol),
          /* harmony export */   getLocaleCurrencyCode: () => (/* binding */ getLocaleCurrencyCode),
          /* harmony export */   getLocaleCurrencyName: () => (/* binding */ getLocaleCurrencyName),
          /* harmony export */   getLocaleCurrencySymbol: () => (/* binding */ getLocaleCurrencySymbol),
          /* harmony export */   getLocaleDateFormat: () => (/* binding */ getLocaleDateFormat),
          /* harmony export */   getLocaleDateTimeFormat: () => (/* binding */ getLocaleDateTimeFormat),
          /* harmony export */   getLocaleDayNames: () => (/* binding */ getLocaleDayNames),
          /* harmony export */   getLocaleDayPeriods: () => (/* binding */ getLocaleDayPeriods),
          /* harmony export */   getLocaleDirection: () => (/* binding */ getLocaleDirection),
          /* harmony export */   getLocaleEraNames: () => (/* binding */ getLocaleEraNames),
          /* harmony export */   getLocaleExtraDayPeriodRules: () => (/* binding */ getLocaleExtraDayPeriodRules),
          /* harmony export */   getLocaleExtraDayPeriods: () => (/* binding */ getLocaleExtraDayPeriods),
          /* harmony export */   getLocaleFirstDayOfWeek: () => (/* binding */ getLocaleFirstDayOfWeek),
          /* harmony export */   getLocaleId: () => (/* binding */ getLocaleId),
          /* harmony export */   getLocaleMonthNames: () => (/* binding */ getLocaleMonthNames),
          /* harmony export */   getLocaleNumberFormat: () => (/* binding */ getLocaleNumberFormat),
          /* harmony export */   getLocaleNumberSymbol: () => (/* binding */ getLocaleNumberSymbol),
          /* harmony export */   getLocalePluralCase: () => (/* binding */ getLocalePluralCase),
          /* harmony export */   getLocaleTimeFormat: () => (/* binding */ getLocaleTimeFormat),
          /* harmony export */   getLocaleWeekEndRange: () => (/* binding */ getLocaleWeekEndRange),
          /* harmony export */   getNumberOfCurrencyDigits: () => (/* binding */ getNumberOfCurrencyDigits),
          /* harmony export */   isPlatformBrowser: () => (/* binding */ isPlatformBrowser),
          /* harmony export */   isPlatformServer: () => (/* binding */ isPlatformServer),
          /* harmony export */   isPlatformWorkerApp: () => (/* binding */ isPlatformWorkerApp),
          /* harmony export */   isPlatformWorkerUi: () => (/* binding */ isPlatformWorkerUi),
          /* harmony export */   provideCloudflareLoader: () => (/* binding */ provideCloudflareLoader),
          /* harmony export */   provideCloudinaryLoader: () => (/* binding */ provideCloudinaryLoader),
          /* harmony export */   provideImageKitLoader: () => (/* binding */ provideImageKitLoader),
          /* harmony export */   provideImgixLoader: () => (/* binding */ provideImgixLoader),
          /* harmony export */   registerLocaleData: () => (/* binding */ registerLocaleData),
          /* harmony export */   "ɵDomAdapter": () => (/* binding */ DomAdapter),
          /* harmony export */   "ɵNullViewportScroller": () => (/* binding */ NullViewportScroller),
          /* harmony export */   "ɵPLATFORM_BROWSER_ID": () => (/* binding */ PLATFORM_BROWSER_ID),
          /* harmony export */   "ɵPLATFORM_SERVER_ID": () => (/* binding */ PLATFORM_SERVER_ID),
          /* harmony export */   "ɵPLATFORM_WORKER_APP_ID": () => (/* binding */ PLATFORM_WORKER_APP_ID),
          /* harmony export */   "ɵPLATFORM_WORKER_UI_ID": () => (/* binding */ PLATFORM_WORKER_UI_ID),
          /* harmony export */   "ɵgetDOM": () => (/* binding */ getDOM),
          /* harmony export */   "ɵparseCookieValue": () => (/* binding */ parseCookieValue),
          /* harmony export */   "ɵsetRootDomAdapter": () => (/* binding */ setRootDomAdapter)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          let _DOM = null;
          function getDOM() {
            return _DOM;
          }
          function setRootDomAdapter(adapter) {
            if (!_DOM) {
              _DOM = adapter;
            }
          }
          /* tslint:disable:requireParameterType */
          /**
           * Provides DOM operations in an environment-agnostic way.
           *
           * @security Tread carefully! Interacting with the DOM directly is dangerous and
           * can introduce XSS risks.
           */
          class DomAdapter {}
          
          /**
           * A DI Token representing the main rendering context.
           * In a browser and SSR this is the DOM Document.
           * When using SSR, that document is created by [Domino](https://github.com/angular/domino).
           *
           * @publicApi
           */
          const DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('DocumentToken');
          
          /**
           * This class should not be used directly by an application developer. Instead, use
           * {@link Location}.
           *
           * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be
           * platform-agnostic.
           * This means that we can have different implementation of `PlatformLocation` for the different
           * platforms that Angular supports. For example, `@angular/platform-browser` provides an
           * implementation specific to the browser environment, while `@angular/platform-server` provides
           * one suitable for use with server-side rendering.
           *
           * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}
           * when they need to interact with the DOM APIs like pushState, popState, etc.
           *
           * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly
           * by the {@link Router} in order to navigate between routes. Since all interactions between {@link
           * Router} /
           * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`
           * class, they are all platform-agnostic.
           *
           * @publicApi
           */
          class PlatformLocation {
            historyGo(relativePosition) {
              throw new Error('Not implemented');
            }
            static {
              this.ɵfac = function PlatformLocation_Factory(t) {
                return new (t || PlatformLocation)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: PlatformLocation,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(BrowserPlatformLocation))();
                },
                providedIn: 'platform'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlatformLocation, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'platform',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(BrowserPlatformLocation)
              }]
            }], null, null);
          })();
          /**
           * @description
           * Indicates when a location is initialized.
           *
           * @publicApi
           */
          const LOCATION_INITIALIZED = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('Location Initialized');
          /**
           * `PlatformLocation` encapsulates all of the direct calls to platform APIs.
           * This class should not be used directly by an application developer. Instead, use
           * {@link Location}.
           *
           * @publicApi
           */
          class BrowserPlatformLocation extends PlatformLocation {
            constructor() {
              super();
              this._doc = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT);
              this._location = window.location;
              this._history = window.history;
            }
            getBaseHrefFromDOM() {
              return getDOM().getBaseHref(this._doc);
            }
            onPopState(fn) {
              const window = getDOM().getGlobalEventTarget(this._doc, 'window');
              window.addEventListener('popstate', fn, false);
              return () => window.removeEventListener('popstate', fn);
            }
            onHashChange(fn) {
              const window = getDOM().getGlobalEventTarget(this._doc, 'window');
              window.addEventListener('hashchange', fn, false);
              return () => window.removeEventListener('hashchange', fn);
            }
            get href() {
              return this._location.href;
            }
            get protocol() {
              return this._location.protocol;
            }
            get hostname() {
              return this._location.hostname;
            }
            get port() {
              return this._location.port;
            }
            get pathname() {
              return this._location.pathname;
            }
            get search() {
              return this._location.search;
            }
            get hash() {
              return this._location.hash;
            }
            set pathname(newPath) {
              this._location.pathname = newPath;
            }
            pushState(state, title, url) {
              this._history.pushState(state, title, url);
            }
            replaceState(state, title, url) {
              this._history.replaceState(state, title, url);
            }
            forward() {
              this._history.forward();
            }
            back() {
              this._history.back();
            }
            historyGo(relativePosition = 0) {
              this._history.go(relativePosition);
            }
            getState() {
              return this._history.state;
            }
            static {
              this.ɵfac = function BrowserPlatformLocation_Factory(t) {
                return new (t || BrowserPlatformLocation)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: BrowserPlatformLocation,
                factory: function () {
                  return (() => new BrowserPlatformLocation())();
                },
                providedIn: 'platform'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserPlatformLocation, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'platform',
                useFactory: () => new BrowserPlatformLocation()
              }]
            }], function () {
              return [];
            }, null);
          })();
          
          /**
           * Joins two parts of a URL with a slash if needed.
           *
           * @param start  URL string
           * @param end    URL string
           *
           *
           * @returns The joined URL string.
           */
          function joinWithSlash(start, end) {
            if (start.length == 0) {
              return end;
            }
            if (end.length == 0) {
              return start;
            }
            let slashes = 0;
            if (start.endsWith('/')) {
              slashes++;
            }
            if (end.startsWith('/')) {
              slashes++;
            }
            if (slashes == 2) {
              return start + end.substring(1);
            }
            if (slashes == 1) {
              return start + end;
            }
            return start + '/' + end;
          }
          /**
           * Removes a trailing slash from a URL string if needed.
           * Looks for the first occurrence of either `#`, `?`, or the end of the
           * line as `/` characters and removes the trailing slash if one exists.
           *
           * @param url URL string.
           *
           * @returns The URL string, modified if needed.
           */
          function stripTrailingSlash(url) {
            const match = url.match(/#|\?|$/);
            const pathEndIdx = match && match.index || url.length;
            const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);
            return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);
          }
          /**
           * Normalizes URL parameters by prepending with `?` if needed.
           *
           * @param  params String of URL parameters.
           *
           * @returns The normalized URL parameters string.
           */
          function normalizeQueryParams(params) {
            return params && params[0] !== '?' ? '?' + params : params;
          }
          
          /**
           * Enables the `Location` service to read route state from the browser's URL.
           * Angular provides two strategies:
           * `HashLocationStrategy` and `PathLocationStrategy`.
           *
           * Applications should use the `Router` or `Location` services to
           * interact with application route state.
           *
           * For instance, `HashLocationStrategy` produces URLs like
           * <code class="no-auto-link">http://example.com#/foo</code>,
           * and `PathLocationStrategy` produces
           * <code class="no-auto-link">http://example.com/foo</code> as an equivalent URL.
           *
           * See these two classes for more.
           *
           * @publicApi
           */
          class LocationStrategy {
            historyGo(relativePosition) {
              throw new Error('Not implemented');
            }
            static {
              this.ɵfac = function LocationStrategy_Factory(t) {
                return new (t || LocationStrategy)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: LocationStrategy,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(PathLocationStrategy))();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LocationStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(PathLocationStrategy)
              }]
            }], null, null);
          })();
          /**
           * A predefined [DI token](guide/glossary#di-token) for the base href
           * to be used with the `PathLocationStrategy`.
           * The base href is the URL prefix that should be preserved when generating
           * and recognizing URLs.
           *
           * @usageNotes
           *
           * The following example shows how to use this token to configure the root app injector
           * with a base href value, so that the DI framework can supply the dependency anywhere in the app.
           *
           * ```typescript
           * import {NgModule} from '@angular/core';
           * import {APP_BASE_HREF} from '@angular/common';
           *
           * @NgModule({
           *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]
           * })
           * class AppModule {}
           * ```
           *
           * @publicApi
           */
          const APP_BASE_HREF = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('appBaseHref');
          /**
           * @description
           * A {@link LocationStrategy} used to configure the {@link Location} service to
           * represent its state in the
           * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the
           * browser's URL.
           *
           * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}
           * or add a `<base href>` element to the document to override the default.
           *
           * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call
           * `location.go('/foo')`, the browser's URL will become
           * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,
           * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.
           *
           * Similarly, if you add `<base href='/my/app/'/>` to the document and call
           * `location.go('/foo')`, the browser's URL will become
           * `example.com/my/app/foo`.
           *
           * Note that when using `PathLocationStrategy`, neither the query nor
           * the fragment in the `<base href>` will be preserved, as outlined
           * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
           *
           * @usageNotes
           *
           * ### Example
           *
           * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
           *
           * @publicApi
           */
          class PathLocationStrategy extends LocationStrategy {
            constructor(_platformLocation, href) {
              super();
              this._platformLocation = _platformLocation;
              this._removeListenerFns = [];
              this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ?? (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT).location?.origin ?? '';
            }
            /** @nodoc */
            ngOnDestroy() {
              while (this._removeListenerFns.length) {
                this._removeListenerFns.pop()();
              }
            }
            onPopState(fn) {
              this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
            }
            getBaseHref() {
              return this._baseHref;
            }
            prepareExternalUrl(internal) {
              return joinWithSlash(this._baseHref, internal);
            }
            path(includeHash = false) {
              const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);
              const hash = this._platformLocation.hash;
              return hash && includeHash ? `${pathname}${hash}` : pathname;
            }
            pushState(state, title, url, queryParams) {
              const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
              this._platformLocation.pushState(state, title, externalUrl);
            }
            replaceState(state, title, url, queryParams) {
              const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
              this._platformLocation.replaceState(state, title, externalUrl);
            }
            forward() {
              this._platformLocation.forward();
            }
            back() {
              this._platformLocation.back();
            }
            getState() {
              return this._platformLocation.getState();
            }
            historyGo(relativePosition = 0) {
              this._platformLocation.historyGo?.(relativePosition);
            }
            static {
              this.ɵfac = function PathLocationStrategy_Factory(t) {
                return new (t || PathLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: PathLocationStrategy,
                factory: PathLocationStrategy.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PathLocationStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: PlatformLocation
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [APP_BASE_HREF]
                }]
              }];
            }, null);
          })();
          
          /**
           * @description
           * A {@link LocationStrategy} used to configure the {@link Location} service to
           * represent its state in the
           * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
           * of the browser's URL.
           *
           * For instance, if you call `location.go('/foo')`, the browser's URL will become
           * `example.com#/foo`.
           *
           * @usageNotes
           *
           * ### Example
           *
           * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}
           *
           * @publicApi
           */
          class HashLocationStrategy extends LocationStrategy {
            constructor(_platformLocation, _baseHref) {
              super();
              this._platformLocation = _platformLocation;
              this._baseHref = '';
              this._removeListenerFns = [];
              if (_baseHref != null) {
                this._baseHref = _baseHref;
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              while (this._removeListenerFns.length) {
                this._removeListenerFns.pop()();
              }
            }
            onPopState(fn) {
              this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
            }
            getBaseHref() {
              return this._baseHref;
            }
            path(includeHash = false) {
              // the hash value is always prefixed with a `#`
              // and if it is empty then it will stay empty
              let path = this._platformLocation.hash;
              if (path == null) path = '#';
              return path.length > 0 ? path.substring(1) : path;
            }
            prepareExternalUrl(internal) {
              const url = joinWithSlash(this._baseHref, internal);
              return url.length > 0 ? '#' + url : url;
            }
            pushState(state, title, path, queryParams) {
              let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));
              if (url.length == 0) {
                url = this._platformLocation.pathname;
              }
              this._platformLocation.pushState(state, title, url);
            }
            replaceState(state, title, path, queryParams) {
              let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));
              if (url.length == 0) {
                url = this._platformLocation.pathname;
              }
              this._platformLocation.replaceState(state, title, url);
            }
            forward() {
              this._platformLocation.forward();
            }
            back() {
              this._platformLocation.back();
            }
            getState() {
              return this._platformLocation.getState();
            }
            historyGo(relativePosition = 0) {
              this._platformLocation.historyGo?.(relativePosition);
            }
            static {
              this.ɵfac = function HashLocationStrategy_Factory(t) {
                return new (t || HashLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: HashLocationStrategy,
                factory: HashLocationStrategy.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HashLocationStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable
            }], function () {
              return [{
                type: PlatformLocation
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [APP_BASE_HREF]
                }]
              }];
            }, null);
          })();
          
          /**
           * @description
           *
           * A service that applications can use to interact with a browser's URL.
           *
           * Depending on the `LocationStrategy` used, `Location` persists
           * to the URL's path or the URL's hash segment.
           *
           * @usageNotes
           *
           * It's better to use the `Router.navigate()` service to trigger route changes. Use
           * `Location` only if you need to interact with or create normalized URLs outside of
           * routing.
           *
           * `Location` is responsible for normalizing the URL against the application's base href.
           * A normalized URL is absolute from the URL host, includes the application's base href, and has no
           * trailing slash:
           * - `/my/app/user/123` is normalized
           * - `my/app/user/123` **is not** normalized
           * - `/my/app/user/123/` **is not** normalized
           *
           * ### Example
           *
           * <code-example path='common/location/ts/path_location_component.ts'
           * region='LocationComponent'></code-example>
           *
           * @publicApi
           */
          class Location {
            constructor(locationStrategy) {
              /** @internal */
              this._subject = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /** @internal */
              this._urlChangeListeners = [];
              /** @internal */
              this._urlChangeSubscription = null;
              this._locationStrategy = locationStrategy;
              const baseHref = this._locationStrategy.getBaseHref();
              // Note: This class's interaction with base HREF does not fully follow the rules
              // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.
              // Instead of trying to fix individual bugs with more and more code, we should
              // investigate using the URL constructor and providing the base as a second
              // argument.
              // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters
              this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));
              this._locationStrategy.onPopState(ev => {
                this._subject.emit({
                  'url': this.path(true),
                  'pop': true,
                  'state': ev.state,
                  'type': ev.type
                });
              });
            }
            /** @nodoc */
            ngOnDestroy() {
              this._urlChangeSubscription?.unsubscribe();
              this._urlChangeListeners = [];
            }
            /**
             * Normalizes the URL path for this location.
             *
             * @param includeHash True to include an anchor fragment in the path.
             *
             * @returns The normalized URL path.
             */
            // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is
            // removed.
            path(includeHash = false) {
              return this.normalize(this._locationStrategy.path(includeHash));
            }
            /**
             * Reports the current state of the location history.
             * @returns The current value of the `history.state` object.
             */
            getState() {
              return this._locationStrategy.getState();
            }
            /**
             * Normalizes the given path and compares to the current normalized path.
             *
             * @param path The given URL path.
             * @param query Query parameters.
             *
             * @returns True if the given URL path is equal to the current normalized path, false
             * otherwise.
             */
            isCurrentPathEqualTo(path, query = '') {
              return this.path() == this.normalize(path + normalizeQueryParams(query));
            }
            /**
             * Normalizes a URL path by stripping any trailing slashes.
             *
             * @param url String representing a URL.
             *
             * @returns The normalized URL string.
             */
            normalize(url) {
              return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));
            }
            /**
             * Normalizes an external URL path.
             * If the given URL doesn't begin with a leading slash (`'/'`), adds one
             * before normalizing. Adds a hash if `HashLocationStrategy` is
             * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.
             *
             * @param url String representing a URL.
             *
             * @returns  A normalized platform-specific URL.
             */
            prepareExternalUrl(url) {
              if (url && url[0] !== '/') {
                url = '/' + url;
              }
              return this._locationStrategy.prepareExternalUrl(url);
            }
            // TODO: rename this method to pushState
            /**
             * Changes the browser's URL to a normalized version of a given URL, and pushes a
             * new item onto the platform's history.
             *
             * @param path  URL path to normalize.
             * @param query Query parameters.
             * @param state Location history state.
             *
             */
            go(path, query = '', state = null) {
              this._locationStrategy.pushState(state, '', path, query);
              this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
            }
            /**
             * Changes the browser's URL to a normalized version of the given URL, and replaces
             * the top item on the platform's history stack.
             *
             * @param path  URL path to normalize.
             * @param query Query parameters.
             * @param state Location history state.
             */
            replaceState(path, query = '', state = null) {
              this._locationStrategy.replaceState(state, '', path, query);
              this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
            }
            /**
             * Navigates forward in the platform's history.
             */
            forward() {
              this._locationStrategy.forward();
            }
            /**
             * Navigates back in the platform's history.
             */
            back() {
              this._locationStrategy.back();
            }
            /**
             * Navigate to a specific page from session history, identified by its relative position to the
             * current page.
             *
             * @param relativePosition  Position of the target page in the history relative to the current
             *     page.
             * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`
             * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go
             * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs
             * when `relativePosition` equals 0.
             * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history
             */
            historyGo(relativePosition = 0) {
              this._locationStrategy.historyGo?.(relativePosition);
            }
            /**
             * Registers a URL change listener. Use to catch updates performed by the Angular
             * framework that are not detectible through "popstate" or "hashchange" events.
             *
             * @param fn The change handler function, which take a URL and a location history state.
             * @returns A function that, when executed, unregisters a URL change listener.
             */
            onUrlChange(fn) {
              this._urlChangeListeners.push(fn);
              if (!this._urlChangeSubscription) {
                this._urlChangeSubscription = this.subscribe(v => {
                  this._notifyUrlChangeListeners(v.url, v.state);
                });
              }
              return () => {
                const fnIndex = this._urlChangeListeners.indexOf(fn);
                this._urlChangeListeners.splice(fnIndex, 1);
                if (this._urlChangeListeners.length === 0) {
                  this._urlChangeSubscription?.unsubscribe();
                  this._urlChangeSubscription = null;
                }
              };
            }
            /** @internal */
            _notifyUrlChangeListeners(url = '', state) {
              this._urlChangeListeners.forEach(fn => fn(url, state));
            }
            /**
             * Subscribes to the platform's `popState` events.
             *
             * Note: `Location.go()` does not trigger the `popState` event in the browser. Use
             * `Location.onUrlChange()` to subscribe to URL changes instead.
             *
             * @param value Event that is triggered when the state history changes.
             * @param exception The exception to throw.
             *
             * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)
             *
             * @returns Subscribed events.
             */
            subscribe(onNext, onThrow, onReturn) {
              return this._subject.subscribe({
                next: onNext,
                error: onThrow,
                complete: onReturn
              });
            }
            /**
             * Normalizes URL parameters by prepending with `?` if needed.
             *
             * @param  params String of URL parameters.
             *
             * @returns The normalized URL parameters string.
             */
            static {
              this.normalizeQueryParams = normalizeQueryParams;
            }
            /**
             * Joins two parts of a URL with a slash if needed.
             *
             * @param start  URL string
             * @param end    URL string
             *
             *
             * @returns The joined URL string.
             */
            static {
              this.joinWithSlash = joinWithSlash;
            }
            /**
             * Removes a trailing slash from a URL string if needed.
             * Looks for the first occurrence of either `#`, `?`, or the end of the
             * line as `/` characters and removes the trailing slash if one exists.
             *
             * @param url URL string.
             *
             * @returns The URL string, modified if needed.
             */
            static {
              this.stripTrailingSlash = stripTrailingSlash;
            }
            static {
              this.ɵfac = function Location_Factory(t) {
                return new (t || Location)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LocationStrategy));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: Location,
                factory: function () {
                  return createLocation();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Location, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root',
                // See #23917
                useFactory: createLocation
              }]
            }], function () {
              return [{
                type: LocationStrategy
              }];
            }, null);
          })();
          function createLocation() {
            return new Location((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LocationStrategy));
          }
          function _stripBasePath(basePath, url) {
            if (!basePath || !url.startsWith(basePath)) {
              return url;
            }
            const strippedUrl = url.substring(basePath.length);
            if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {
              return strippedUrl;
            }
            return url;
          }
          function _stripIndexHtml(url) {
            return url.replace(/\/index.html$/, '');
          }
          function _stripOrigin(baseHref) {
            // DO NOT REFACTOR! Previously, this check looked like this:
            // `/^(https?:)?\/\//.test(baseHref)`, but that resulted in
            // syntactically incorrect code after Closure Compiler minification.
            // This was likely caused by a bug in Closure Compiler, but
            // for now, the check is rewritten to use `new RegExp` instead.
            const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);
            if (isAbsoluteUrl) {
              const [, pathname] = baseHref.split(/\/\/[^\/]+/);
              return pathname;
            }
            return baseHref;
          }
          
          /** @internal */
          const CURRENCIES_EN = {
            "ADP": [undefined, undefined, 0],
            "AFN": [undefined, "؋", 0],
            "ALL": [undefined, undefined, 0],
            "AMD": [undefined, "֏", 2],
            "AOA": [undefined, "Kz"],
            "ARS": [undefined, "$"],
            "AUD": ["A$", "$"],
            "AZN": [undefined, "₼"],
            "BAM": [undefined, "KM"],
            "BBD": [undefined, "$"],
            "BDT": [undefined, "৳"],
            "BHD": [undefined, undefined, 3],
            "BIF": [undefined, undefined, 0],
            "BMD": [undefined, "$"],
            "BND": [undefined, "$"],
            "BOB": [undefined, "Bs"],
            "BRL": ["R$"],
            "BSD": [undefined, "$"],
            "BWP": [undefined, "P"],
            "BYN": [undefined, undefined, 2],
            "BYR": [undefined, undefined, 0],
            "BZD": [undefined, "$"],
            "CAD": ["CA$", "$", 2],
            "CHF": [undefined, undefined, 2],
            "CLF": [undefined, undefined, 4],
            "CLP": [undefined, "$", 0],
            "CNY": ["CN¥", "¥"],
            "COP": [undefined, "$", 2],
            "CRC": [undefined, "₡", 2],
            "CUC": [undefined, "$"],
            "CUP": [undefined, "$"],
            "CZK": [undefined, "Kč", 2],
            "DJF": [undefined, undefined, 0],
            "DKK": [undefined, "kr", 2],
            "DOP": [undefined, "$"],
            "EGP": [undefined, "E£"],
            "ESP": [undefined, "₧", 0],
            "EUR": ["€"],
            "FJD": [undefined, "$"],
            "FKP": [undefined, "£"],
            "GBP": ["£"],
            "GEL": [undefined, "₾"],
            "GHS": [undefined, "GH₵"],
            "GIP": [undefined, "£"],
            "GNF": [undefined, "FG", 0],
            "GTQ": [undefined, "Q"],
            "GYD": [undefined, "$", 2],
            "HKD": ["HK$", "$"],
            "HNL": [undefined, "L"],
            "HRK": [undefined, "kn"],
            "HUF": [undefined, "Ft", 2],
            "IDR": [undefined, "Rp", 2],
            "ILS": ["₪"],
            "INR": ["₹"],
            "IQD": [undefined, undefined, 0],
            "IRR": [undefined, undefined, 0],
            "ISK": [undefined, "kr", 0],
            "ITL": [undefined, undefined, 0],
            "JMD": [undefined, "$"],
            "JOD": [undefined, undefined, 3],
            "JPY": ["¥", undefined, 0],
            "KHR": [undefined, "៛"],
            "KMF": [undefined, "CF", 0],
            "KPW": [undefined, "₩", 0],
            "KRW": ["₩", undefined, 0],
            "KWD": [undefined, undefined, 3],
            "KYD": [undefined, "$"],
            "KZT": [undefined, "₸"],
            "LAK": [undefined, "₭", 0],
            "LBP": [undefined, "L£", 0],
            "LKR": [undefined, "Rs"],
            "LRD": [undefined, "$"],
            "LTL": [undefined, "Lt"],
            "LUF": [undefined, undefined, 0],
            "LVL": [undefined, "Ls"],
            "LYD": [undefined, undefined, 3],
            "MGA": [undefined, "Ar", 0],
            "MGF": [undefined, undefined, 0],
            "MMK": [undefined, "K", 0],
            "MNT": [undefined, "₮", 2],
            "MRO": [undefined, undefined, 0],
            "MUR": [undefined, "Rs", 2],
            "MXN": ["MX$", "$"],
            "MYR": [undefined, "RM"],
            "NAD": [undefined, "$"],
            "NGN": [undefined, "₦"],
            "NIO": [undefined, "C$"],
            "NOK": [undefined, "kr", 2],
            "NPR": [undefined, "Rs"],
            "NZD": ["NZ$", "$"],
            "OMR": [undefined, undefined, 3],
            "PHP": ["₱"],
            "PKR": [undefined, "Rs", 2],
            "PLN": [undefined, "zł"],
            "PYG": [undefined, "₲", 0],
            "RON": [undefined, "lei"],
            "RSD": [undefined, undefined, 0],
            "RUB": [undefined, "₽"],
            "RWF": [undefined, "RF", 0],
            "SBD": [undefined, "$"],
            "SEK": [undefined, "kr", 2],
            "SGD": [undefined, "$"],
            "SHP": [undefined, "£"],
            "SLE": [undefined, undefined, 2],
            "SLL": [undefined, undefined, 0],
            "SOS": [undefined, undefined, 0],
            "SRD": [undefined, "$"],
            "SSP": [undefined, "£"],
            "STD": [undefined, undefined, 0],
            "STN": [undefined, "Db"],
            "SYP": [undefined, "£", 0],
            "THB": [undefined, "฿"],
            "TMM": [undefined, undefined, 0],
            "TND": [undefined, undefined, 3],
            "TOP": [undefined, "T$"],
            "TRL": [undefined, undefined, 0],
            "TRY": [undefined, "₺"],
            "TTD": [undefined, "$"],
            "TWD": ["NT$", "$", 2],
            "TZS": [undefined, undefined, 2],
            "UAH": [undefined, "₴"],
            "UGX": [undefined, undefined, 0],
            "USD": ["$"],
            "UYI": [undefined, undefined, 0],
            "UYU": [undefined, "$"],
            "UYW": [undefined, undefined, 4],
            "UZS": [undefined, undefined, 2],
            "VEF": [undefined, "Bs", 2],
            "VND": ["₫", undefined, 0],
            "VUV": [undefined, undefined, 0],
            "XAF": ["FCFA", undefined, 0],
            "XCD": ["EC$", "$"],
            "XOF": ["F CFA", undefined, 0],
            "XPF": ["CFPF", undefined, 0],
            "XXX": ["¤"],
            "YER": [undefined, undefined, 0],
            "ZAR": [undefined, "R"],
            "ZMK": [undefined, undefined, 0],
            "ZMW": [undefined, "ZK"],
            "ZWD": [undefined, undefined, 0]
          };
          
          /**
           * Format styles that can be used to represent numbers.
           * @see {@link getLocaleNumberFormat}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          var NumberFormatStyle;
          (function (NumberFormatStyle) {
            NumberFormatStyle[NumberFormatStyle["Decimal"] = 0] = "Decimal";
            NumberFormatStyle[NumberFormatStyle["Percent"] = 1] = "Percent";
            NumberFormatStyle[NumberFormatStyle["Currency"] = 2] = "Currency";
            NumberFormatStyle[NumberFormatStyle["Scientific"] = 3] = "Scientific";
          })(NumberFormatStyle || (NumberFormatStyle = {}));
          /**
           * Plurality cases used for translating plurals to different languages.
           *
           * @see {@link NgPlural}
           * @see {@link NgPluralCase}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          var Plural;
          (function (Plural) {
            Plural[Plural["Zero"] = 0] = "Zero";
            Plural[Plural["One"] = 1] = "One";
            Plural[Plural["Two"] = 2] = "Two";
            Plural[Plural["Few"] = 3] = "Few";
            Plural[Plural["Many"] = 4] = "Many";
            Plural[Plural["Other"] = 5] = "Other";
          })(Plural || (Plural = {}));
          /**
           * Context-dependant translation forms for strings.
           * Typically the standalone version is for the nominative form of the word,
           * and the format version is used for the genitive case.
           * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          var FormStyle;
          (function (FormStyle) {
            FormStyle[FormStyle["Format"] = 0] = "Format";
            FormStyle[FormStyle["Standalone"] = 1] = "Standalone";
          })(FormStyle || (FormStyle = {}));
          /**
           * String widths available for translations.
           * The specific character widths are locale-specific.
           * Examples are given for the word "Sunday" in English.
           *
           * @publicApi
           */
          var TranslationWidth;
          (function (TranslationWidth) {
            /** 1 character for `en-US`. For example: 'S' */
            TranslationWidth[TranslationWidth["Narrow"] = 0] = "Narrow";
            /** 3 characters for `en-US`. For example: 'Sun' */
            TranslationWidth[TranslationWidth["Abbreviated"] = 1] = "Abbreviated";
            /** Full length for `en-US`. For example: "Sunday" */
            TranslationWidth[TranslationWidth["Wide"] = 2] = "Wide";
            /** 2 characters for `en-US`, For example: "Su" */
            TranslationWidth[TranslationWidth["Short"] = 3] = "Short";
          })(TranslationWidth || (TranslationWidth = {}));
          /**
           * String widths available for date-time formats.
           * The specific character widths are locale-specific.
           * Examples are given for `en-US`.
           *
           * @see {@link getLocaleDateFormat}
           * @see {@link getLocaleTimeFormat}
           * @see {@link getLocaleDateTimeFormat}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           * @publicApi
           */
          var FormatWidth;
          (function (FormatWidth) {
            /**
             * For `en-US`, 'M/d/yy, h:mm a'`
             * (Example: `6/15/15, 9:03 AM`)
             */
            FormatWidth[FormatWidth["Short"] = 0] = "Short";
            /**
             * For `en-US`, `'MMM d, y, h:mm:ss a'`
             * (Example: `Jun 15, 2015, 9:03:01 AM`)
             */
            FormatWidth[FormatWidth["Medium"] = 1] = "Medium";
            /**
             * For `en-US`, `'MMMM d, y, h:mm:ss a z'`
             * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)
             */
            FormatWidth[FormatWidth["Long"] = 2] = "Long";
            /**
             * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`
             * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)
             */
            FormatWidth[FormatWidth["Full"] = 3] = "Full";
          })(FormatWidth || (FormatWidth = {}));
          /**
           * Symbols that can be used to replace placeholders in number patterns.
           * Examples are based on `en-US` values.
           *
           * @see {@link getLocaleNumberSymbol}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          var NumberSymbol;
          (function (NumberSymbol) {
            /**
             * Decimal separator.
             * For `en-US`, the dot character.
             * Example: 2,345`.`67
             */
            NumberSymbol[NumberSymbol["Decimal"] = 0] = "Decimal";
            /**
             * Grouping separator, typically for thousands.
             * For `en-US`, the comma character.
             * Example: 2`,`345.67
             */
            NumberSymbol[NumberSymbol["Group"] = 1] = "Group";
            /**
             * List-item separator.
             * Example: "one, two, and three"
             */
            NumberSymbol[NumberSymbol["List"] = 2] = "List";
            /**
             * Sign for percentage (out of 100).
             * Example: 23.4%
             */
            NumberSymbol[NumberSymbol["PercentSign"] = 3] = "PercentSign";
            /**
             * Sign for positive numbers.
             * Example: +23
             */
            NumberSymbol[NumberSymbol["PlusSign"] = 4] = "PlusSign";
            /**
             * Sign for negative numbers.
             * Example: -23
             */
            NumberSymbol[NumberSymbol["MinusSign"] = 5] = "MinusSign";
            /**
             * Computer notation for exponential value (n times a power of 10).
             * Example: 1.2E3
             */
            NumberSymbol[NumberSymbol["Exponential"] = 6] = "Exponential";
            /**
             * Human-readable format of exponential.
             * Example: 1.2x103
             */
            NumberSymbol[NumberSymbol["SuperscriptingExponent"] = 7] = "SuperscriptingExponent";
            /**
             * Sign for permille (out of 1000).
             * Example: 23.4‰
             */
            NumberSymbol[NumberSymbol["PerMille"] = 8] = "PerMille";
            /**
             * Infinity, can be used with plus and minus.
             * Example: ∞, +∞, -∞
             */
            NumberSymbol[NumberSymbol["Infinity"] = 9] = "Infinity";
            /**
             * Not a number.
             * Example: NaN
             */
            NumberSymbol[NumberSymbol["NaN"] = 10] = "NaN";
            /**
             * Symbol used between time units.
             * Example: 10:52
             */
            NumberSymbol[NumberSymbol["TimeSeparator"] = 11] = "TimeSeparator";
            /**
             * Decimal separator for currency values (fallback to `Decimal`).
             * Example: $2,345.67
             */
            NumberSymbol[NumberSymbol["CurrencyDecimal"] = 12] = "CurrencyDecimal";
            /**
             * Group separator for currency values (fallback to `Group`).
             * Example: $2,345.67
             */
            NumberSymbol[NumberSymbol["CurrencyGroup"] = 13] = "CurrencyGroup";
          })(NumberSymbol || (NumberSymbol = {}));
          /**
           * The value for each day of the week, based on the `en-US` locale
           *
           * @publicApi
           */
          var WeekDay;
          (function (WeekDay) {
            WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
            WeekDay[WeekDay["Monday"] = 1] = "Monday";
            WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
            WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
            WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
            WeekDay[WeekDay["Friday"] = 5] = "Friday";
            WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
          })(WeekDay || (WeekDay = {}));
          /**
           * Retrieves the locale ID from the currently loaded locale.
           * The loaded locale could be, for example, a global one rather than a regional one.
           * @param locale A locale code, such as `fr-FR`.
           * @returns The locale code. For example, `fr`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleId(locale) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale)[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].LocaleId];
          }
          /**
           * Retrieves day period strings for the given locale.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param formStyle The required grammatical form.
           * @param width The required character width.
           * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleDayPeriods(locale, formStyle, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const amPmData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsStandalone]];
            const amPm = getLastDefinedValue(amPmData, formStyle);
            return getLastDefinedValue(amPm, width);
          }
          /**
           * Retrieves days of the week for the given locale, using the Gregorian calendar.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param formStyle The required grammatical form.
           * @param width The required character width.
           * @returns An array of localized name strings.
           * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleDayNames(locale, formStyle, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const daysData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysStandalone]];
            const days = getLastDefinedValue(daysData, formStyle);
            return getLastDefinedValue(days, width);
          }
          /**
           * Retrieves months of the year for the given locale, using the Gregorian calendar.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param formStyle The required grammatical form.
           * @param width The required character width.
           * @returns An array of localized name strings.
           * For example,  `[January, February, ...]` for `en-US`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleMonthNames(locale, formStyle, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const monthsData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsStandalone]];
            const months = getLastDefinedValue(monthsData, formStyle);
            return getLastDefinedValue(months, width);
          }
          /**
           * Retrieves Gregorian-calendar eras for the given locale.
           * @param locale A locale code for the locale format rules to use.
           * @param width The required character width.
          
           * @returns An array of localized era strings.
           * For example, `[AD, BC]` for `en-US`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleEraNames(locale, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const erasData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Eras];
            return getLastDefinedValue(erasData, width);
          }
          /**
           * Retrieves the first day of the week for the given locale.
           *
           * @param locale A locale code for the locale format rules to use.
           * @returns A day index number, using the 0-based week-day index for `en-US`
           * (Sunday = 0, Monday = 1, ...).
           * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleFirstDayOfWeek(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].FirstDayOfWeek];
          }
          /**
           * Range of week days that are considered the week-end for the given locale.
           *
           * @param locale A locale code for the locale format rules to use.
           * @returns The range of day values, `[startDay, endDay]`.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleWeekEndRange(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].WeekendRange];
          }
          /**
           * Retrieves a localized date-value formatting string.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param width The format type.
           * @returns The localized formatting string.
           * @see {@link FormatWidth}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleDateFormat(locale, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateFormat], width);
          }
          /**
           * Retrieves a localized time-value formatting string.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param width The format type.
           * @returns The localized formatting string.
           * @see {@link FormatWidth}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
          
           * @publicApi
           */
          function getLocaleTimeFormat(locale, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].TimeFormat], width);
          }
          /**
           * Retrieves a localized date-time formatting string.
           *
           * @param locale A locale code for the locale format rules to use.
           * @param width The format type.
           * @returns The localized formatting string.
           * @see {@link FormatWidth}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleDateTimeFormat(locale, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const dateTimeFormatData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateTimeFormat];
            return getLastDefinedValue(dateTimeFormatData, width);
          }
          /**
           * Retrieves a localized number symbol that can be used to replace placeholders in number formats.
           * @param locale The locale code.
           * @param symbol The symbol to localize.
           * @returns The character for the localized symbol.
           * @see {@link NumberSymbol}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleNumberSymbol(locale, symbol) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            const res = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][symbol];
            if (typeof res === 'undefined') {
              if (symbol === NumberSymbol.CurrencyDecimal) {
                return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Decimal];
              } else if (symbol === NumberSymbol.CurrencyGroup) {
                return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Group];
              }
            }
            return res;
          }
          /**
           * Retrieves a number format for a given locale.
           *
           * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`
           * when used to format the number 12345.678 could result in "12'345,678". That would happen if the
           * grouping separator for your language is an apostrophe, and the decimal separator is a comma.
           *
           * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders
           * that stand for the decimal separator, and so on, and are NOT real characters.
           * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in
           * your language the decimal point is written with a comma. The symbols should be replaced by the
           * local equivalents, using the appropriate `NumberSymbol` for your language.
           *
           * Here are the special characters used in number patterns:
           *
           * | Symbol | Meaning |
           * |--------|---------|
           * | . | Replaced automatically by the character used for the decimal point. |
           * | , | Replaced by the "grouping" (thousands) separator. |
           * | 0 | Replaced by a digit (or zero if there aren't enough digits). |
           * | # | Replaced by a digit (or nothing if there aren't enough). |
           * | ¤ | Replaced by a currency symbol, such as $ or USD. |
           * | % | Marks a percent format. The % symbol may change position, but must be retained. |
           * | E | Marks a scientific format. The E symbol may change position, but must be retained. |
           * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |
           *
           * @param locale A locale code for the locale format rules to use.
           * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
           * @returns The localized format string.
           * @see {@link NumberFormatStyle}
           * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleNumberFormat(locale, type) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberFormats][type];
          }
          /**
           * Retrieves the symbol used to represent the currency for the main country
           * corresponding to a given locale. For example, '$' for `en-US`.
           *
           * @param locale A locale code for the locale format rules to use.
           * @returns The localized symbol character,
           * or `null` if the main country cannot be determined.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleCurrencySymbol(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencySymbol] || null;
          }
          /**
           * Retrieves the name of the currency for the main country corresponding
           * to a given locale. For example, 'US Dollar' for `en-US`.
           * @param locale A locale code for the locale format rules to use.
           * @returns The currency name,
           * or `null` if the main country cannot be determined.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleCurrencyName(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencyName] || null;
          }
          /**
           * Retrieves the default currency code for the given locale.
           *
           * The default is defined as the first currency which is still in use.
           *
           * @param locale The code of the locale whose currency code we want.
           * @returns The code of the default currency for the given locale.
           *
           * @publicApi
           */
          function getLocaleCurrencyCode(locale) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocaleCurrencyCode"])(locale);
          }
          /**
           * Retrieves the currency values for a given locale.
           * @param locale A locale code for the locale format rules to use.
           * @returns The currency values.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           */
          function getLocaleCurrencies(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Currencies];
          }
          /**
           * @alias core/ɵgetLocalePluralCase
           * @publicApi
           */
          const getLocalePluralCase = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocalePluralCase"];
          function checkFullData(data) {
            if (!data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData]) {
              throw new Error(`Missing extra locale data for the locale "${data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);
            }
          }
          /**
           * Retrieves locale-specific rules used to determine which day period to use
           * when more than one period is defined for a locale.
           *
           * There is a rule for each defined day period. The
           * first rule is applied to the first day period and so on.
           * Fall back to AM/PM when no rules are available.
           *
           * A rule can specify a period as time range, or as a single time value.
           *
           * This functionality is only available when you have loaded the full locale data.
           * See the ["I18n guide"](guide/i18n-common-format-data-locale).
           *
           * @param locale A locale code for the locale format rules to use.
           * @returns The rules for the locale, a single time value or array of *from-time, to-time*,
           * or null if no periods are available.
           *
           * @see {@link getLocaleExtraDayPeriods}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleExtraDayPeriodRules(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            checkFullData(data);
            const rules = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || [];
            return rules.map(rule => {
              if (typeof rule === 'string') {
                return extractTime(rule);
              }
              return [extractTime(rule[0]), extractTime(rule[1])];
            });
          }
          /**
           * Retrieves locale-specific day periods, which indicate roughly how a day is broken up
           * in different languages.
           * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
           *
           * This functionality is only available when you have loaded the full locale data.
           * See the ["I18n guide"](guide/i18n-common-format-data-locale).
           *
           * @param locale A locale code for the locale format rules to use.
           * @param formStyle The required grammatical form.
           * @param width The required character width.
           * @returns The translated day-period strings.
           * @see {@link getLocaleExtraDayPeriodRules}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLocaleExtraDayPeriods(locale, formStyle, width) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            checkFullData(data);
            const dayPeriodsData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */]];
          
            const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];
            return getLastDefinedValue(dayPeriods, width) || [];
          }
          /**
           * Retrieves the writing direction of a specified locale
           * @param locale A locale code for the locale format rules to use.
           * @publicApi
           * @returns 'rtl' or 'ltr'
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           */
          function getLocaleDirection(locale) {
            const data = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Directionality];
          }
          /**
           * Retrieves the first value that is defined in an array, going backwards from an index position.
           *
           * To avoid repeating the same data (as when the "format" and "standalone" forms are the same)
           * add the first value to the locale data arrays, and add other values only if they are different.
           *
           * @param data The data array to retrieve from.
           * @param index A 0-based index into the array to start from.
           * @returns The value immediately before the given index position.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getLastDefinedValue(data, index) {
            for (let i = index; i > -1; i--) {
              if (typeof data[i] !== 'undefined') {
                return data[i];
              }
            }
            throw new Error('Locale data API: locale data undefined');
          }
          /**
           * Extracts the hours and minutes from a string like "15:45"
           */
          function extractTime(time) {
            const [h, m] = time.split(':');
            return {
              hours: +h,
              minutes: +m
            };
          }
          /**
           * Retrieves the currency symbol for a given currency code.
           *
           * For example, for the default `en-US` locale, the code `USD` can
           * be represented by the narrow symbol `$` or the wide symbol `US$`.
           *
           * @param code The currency code.
           * @param format The format, `wide` or `narrow`.
           * @param locale A locale code for the locale format rules to use.
           *
           * @returns The symbol, or the currency code if no symbol is available.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getCurrencySymbol(code, format, locale = 'en') {
            const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];
            const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */];
            if (format === 'narrow' && typeof symbolNarrow === 'string') {
              return symbolNarrow;
            }
            return currency[0 /* ɵCurrencyIndex.Symbol */] || code;
          }
          // Most currencies have cents, that's why the default is 2
          const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;
          /**
           * Reports the number of decimal digits for a given currency.
           * The value depends upon the presence of cents in that particular currency.
           *
           * @param code The currency code.
           * @returns The number of decimal digits, typically 0 or 2.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function getNumberOfCurrencyDigits(code) {
            let digits;
            const currency = CURRENCIES_EN[code];
            if (currency) {
              digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */];
            }
          
            return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
          }
          const ISO8601_DATE_REGEX = /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
          //    1        2       3         4          5          6          7          8  9     10      11
          const NAMED_FORMATS = {};
          const DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
          var ZoneWidth;
          (function (ZoneWidth) {
            ZoneWidth[ZoneWidth["Short"] = 0] = "Short";
            ZoneWidth[ZoneWidth["ShortGMT"] = 1] = "ShortGMT";
            ZoneWidth[ZoneWidth["Long"] = 2] = "Long";
            ZoneWidth[ZoneWidth["Extended"] = 3] = "Extended";
          })(ZoneWidth || (ZoneWidth = {}));
          var DateType;
          (function (DateType) {
            DateType[DateType["FullYear"] = 0] = "FullYear";
            DateType[DateType["Month"] = 1] = "Month";
            DateType[DateType["Date"] = 2] = "Date";
            DateType[DateType["Hours"] = 3] = "Hours";
            DateType[DateType["Minutes"] = 4] = "Minutes";
            DateType[DateType["Seconds"] = 5] = "Seconds";
            DateType[DateType["FractionalSeconds"] = 6] = "FractionalSeconds";
            DateType[DateType["Day"] = 7] = "Day";
          })(DateType || (DateType = {}));
          var TranslationType;
          (function (TranslationType) {
            TranslationType[TranslationType["DayPeriods"] = 0] = "DayPeriods";
            TranslationType[TranslationType["Days"] = 1] = "Days";
            TranslationType[TranslationType["Months"] = 2] = "Months";
            TranslationType[TranslationType["Eras"] = 3] = "Eras";
          })(TranslationType || (TranslationType = {}));
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a date according to locale rules.
           *
           * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)
           * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).
           * @param format The date-time components to include. See `DatePipe` for details.
           * @param locale A locale code for the locale format rules to use.
           * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),
           * or a standard UTC/GMT or continental US time zone abbreviation.
           * If not specified, uses host system settings.
           *
           * @returns The formatted date string.
           *
           * @see {@link DatePipe}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function formatDate(value, format, locale, timezone) {
            let date = toDate(value);
            const namedFormat = getNamedFormat(locale, format);
            format = namedFormat || format;
            let parts = [];
            let match;
            while (format) {
              match = DATE_FORMATS_SPLIT.exec(format);
              if (match) {
                parts = parts.concat(match.slice(1));
                const part = parts.pop();
                if (!part) {
                  break;
                }
                format = part;
              } else {
                parts.push(format);
                break;
              }
            }
            let dateTimezoneOffset = date.getTimezoneOffset();
            if (timezone) {
              dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
              date = convertTimezoneToLocal(date, timezone, true);
            }
            let text = '';
            parts.forEach(value => {
              const dateFormatter = getDateFormatter(value);
              text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) : value === '\'\'' ? '\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
            });
            return text;
          }
          /**
           * Create a new Date object with the given date value, and the time set to midnight.
           *
           * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.
           * See: https://github.com/angular/angular/issues/40377
           *
           * Note that this function returns a Date object whose time is midnight in the current locale's
           * timezone. In the future we might want to change this to be midnight in UTC, but this would be a
           * considerable breaking change.
           */
          function createDate(year, month, date) {
            // The `newDate` is set to midnight (UTC) on January 1st 1970.
            // - In PST this will be December 31st 1969 at 4pm.
            // - In GMT this will be January 1st 1970 at 1am.
            // Note that they even have different years, dates and months!
            const newDate = new Date(0);
            // `setFullYear()` allows years like 0001 to be set correctly. This function does not
            // change the internal time of the date.
            // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).
            // - In PST this will now be September 20, 2019 at 4pm
            // - In GMT this will now be September 20, 2019 at 1am
            newDate.setFullYear(year, month, date);
            // We want the final date to be at local midnight, so we reset the time.
            // - In PST this will now be September 20, 2019 at 12am
            // - In GMT this will now be September 20, 2019 at 12am
            newDate.setHours(0, 0, 0);
            return newDate;
          }
          function getNamedFormat(locale, format) {
            const localeId = getLocaleId(locale);
            NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};
            if (NAMED_FORMATS[localeId][format]) {
              return NAMED_FORMATS[localeId][format];
            }
            let formatValue = '';
            switch (format) {
              case 'shortDate':
                formatValue = getLocaleDateFormat(locale, FormatWidth.Short);
                break;
              case 'mediumDate':
                formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);
                break;
              case 'longDate':
                formatValue = getLocaleDateFormat(locale, FormatWidth.Long);
                break;
              case 'fullDate':
                formatValue = getLocaleDateFormat(locale, FormatWidth.Full);
                break;
              case 'shortTime':
                formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);
                break;
              case 'mediumTime':
                formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);
                break;
              case 'longTime':
                formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);
                break;
              case 'fullTime':
                formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);
                break;
              case 'short':
                const shortTime = getNamedFormat(locale, 'shortTime');
                const shortDate = getNamedFormat(locale, 'shortDate');
                formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);
                break;
              case 'medium':
                const mediumTime = getNamedFormat(locale, 'mediumTime');
                const mediumDate = getNamedFormat(locale, 'mediumDate');
                formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);
                break;
              case 'long':
                const longTime = getNamedFormat(locale, 'longTime');
                const longDate = getNamedFormat(locale, 'longDate');
                formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);
                break;
              case 'full':
                const fullTime = getNamedFormat(locale, 'fullTime');
                const fullDate = getNamedFormat(locale, 'fullDate');
                formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);
                break;
            }
            if (formatValue) {
              NAMED_FORMATS[localeId][format] = formatValue;
            }
            return formatValue;
          }
          function formatDateTime(str, opt_values) {
            if (opt_values) {
              str = str.replace(/\{([^}]+)}/g, function (match, key) {
                return opt_values != null && key in opt_values ? opt_values[key] : match;
              });
            }
            return str;
          }
          function padNumber(num, digits, minusSign = '-', trim, negWrap) {
            let neg = '';
            if (num < 0 || negWrap && num <= 0) {
              if (negWrap) {
                num = -num + 1;
              } else {
                num = -num;
                neg = minusSign;
              }
            }
            let strNum = String(num);
            while (strNum.length < digits) {
              strNum = '0' + strNum;
            }
            if (trim) {
              strNum = strNum.slice(strNum.length - digits);
            }
            return neg + strNum;
          }
          function formatFractionalSeconds(milliseconds, digits) {
            const strMs = padNumber(milliseconds, 3);
            return strMs.substring(0, digits);
          }
          /**
           * Returns a date formatter that transforms a date into its locale digit representation
           */
          function dateGetter(name, size, offset = 0, trim = false, negWrap = false) {
            return function (date, locale) {
              let part = getDatePart(name, date);
              if (offset > 0 || part > -offset) {
                part += offset;
              }
              if (name === DateType.Hours) {
                if (part === 0 && offset === -12) {
                  part = 12;
                }
              } else if (name === DateType.FractionalSeconds) {
                return formatFractionalSeconds(part, size);
              }
              const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
              return padNumber(part, size, localeMinus, trim, negWrap);
            };
          }
          function getDatePart(part, date) {
            switch (part) {
              case DateType.FullYear:
                return date.getFullYear();
              case DateType.Month:
                return date.getMonth();
              case DateType.Date:
                return date.getDate();
              case DateType.Hours:
                return date.getHours();
              case DateType.Minutes:
                return date.getMinutes();
              case DateType.Seconds:
                return date.getSeconds();
              case DateType.FractionalSeconds:
                return date.getMilliseconds();
              case DateType.Day:
                return date.getDay();
              default:
                throw new Error(`Unknown DateType value "${part}".`);
            }
          }
          /**
           * Returns a date formatter that transforms a date into its locale string representation
           */
          function dateStrGetter(name, width, form = FormStyle.Format, extended = false) {
            return function (date, locale) {
              return getDateTranslation(date, locale, name, width, form, extended);
            };
          }
          /**
           * Returns the locale translation of a date for a given form, type and width
           */
          function getDateTranslation(date, locale, name, width, form, extended) {
            switch (name) {
              case TranslationType.Months:
                return getLocaleMonthNames(locale, form, width)[date.getMonth()];
              case TranslationType.Days:
                return getLocaleDayNames(locale, form, width)[date.getDay()];
              case TranslationType.DayPeriods:
                const currentHours = date.getHours();
                const currentMinutes = date.getMinutes();
                if (extended) {
                  const rules = getLocaleExtraDayPeriodRules(locale);
                  const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);
                  const index = rules.findIndex(rule => {
                    if (Array.isArray(rule)) {
                      // morning, afternoon, evening, night
                      const [from, to] = rule;
                      const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;
                      const beforeTo = currentHours < to.hours || currentHours === to.hours && currentMinutes < to.minutes;
                      // We must account for normal rules that span a period during the day (e.g. 6am-9am)
                      // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.
                      // 10pm - 5am) where `from` is greater (later!) than `to`.
                      //
                      // In the first case the current time must be BOTH after `from` AND before `to`
                      // (e.g. 8am is after 6am AND before 10am).
                      //
                      // In the second case the current time must be EITHER after `from` OR before `to`
                      // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is
                      // after 10pm).
                      if (from.hours < to.hours) {
                        if (afterFrom && beforeTo) {
                          return true;
                        }
                      } else if (afterFrom || beforeTo) {
                        return true;
                      }
                    } else {
                      // noon or midnight
                      if (rule.hours === currentHours && rule.minutes === currentMinutes) {
                        return true;
                      }
                    }
                    return false;
                  });
                  if (index !== -1) {
                    return dayPeriods[index];
                  }
                }
                // if no rules for the day periods, we use am/pm by default
                return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];
              case TranslationType.Eras:
                return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];
              default:
                // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
                // However Closure Compiler does not understand that and reports an error in typed mode.
                // The `throw new Error` below works around the problem, and the unexpected: never variable
                // makes sure tsc still checks this code is unreachable.
                const unexpected = name;
                throw new Error(`unexpected translation type ${unexpected}`);
            }
          }
          /**
           * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or
           * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,
           * extended = +04:30)
           */
          function timeZoneGetter(width) {
            return function (date, locale, offset) {
              const zone = -1 * offset;
              const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
              const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);
              switch (width) {
                case ZoneWidth.Short:
                  return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);
                case ZoneWidth.ShortGMT:
                  return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);
                case ZoneWidth.Long:
                  return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);
                case ZoneWidth.Extended:
                  if (offset === 0) {
                    return 'Z';
                  } else {
                    return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);
                  }
                default:
                  throw new Error(`Unknown zone width "${width}"`);
              }
            };
          }
          const JANUARY = 0;
          const THURSDAY = 4;
          function getFirstThursdayOfYear(year) {
            const firstDayOfYear = createDate(year, JANUARY, 1).getDay();
            return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);
          }
          function getThursdayThisWeek(datetime) {
            return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + (THURSDAY - datetime.getDay()));
          }
          function weekGetter(size, monthBased = false) {
            return function (date, locale) {
              let result;
              if (monthBased) {
                const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;
                const today = date.getDate();
                result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);
              } else {
                const thisThurs = getThursdayThisWeek(date);
                // Some days of a year are part of next year according to ISO 8601.
                // Compute the firstThurs from the year of this week's Thursday
                const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());
                const diff = thisThurs.getTime() - firstThurs.getTime();
                result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
              }
          
              return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
            };
          }
          /**
           * Returns a date formatter that provides the week-numbering year for the input date.
           */
          function weekNumberingYearGetter(size, trim = false) {
            return function (date, locale) {
              const thisThurs = getThursdayThisWeek(date);
              const weekNumberingYear = thisThurs.getFullYear();
              return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);
            };
          }
          const DATE_FORMATS = {};
          // Based on CLDR formats:
          // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
          // See also explanations: http://cldr.unicode.org/translation/date-time
          // TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x
          function getDateFormatter(format) {
            if (DATE_FORMATS[format]) {
              return DATE_FORMATS[format];
            }
            let formatter;
            switch (format) {
              // Era name (AD/BC)
              case 'G':
              case 'GG':
              case 'GGG':
                formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);
                break;
              case 'GGGG':
                formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);
                break;
              case 'GGGGG':
                formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);
                break;
              // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)
              case 'y':
                formatter = dateGetter(DateType.FullYear, 1, 0, false, true);
                break;
              // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
              case 'yy':
                formatter = dateGetter(DateType.FullYear, 2, 0, true, true);
                break;
              // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)
              case 'yyy':
                formatter = dateGetter(DateType.FullYear, 3, 0, false, true);
                break;
              // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)
              case 'yyyy':
                formatter = dateGetter(DateType.FullYear, 4, 0, false, true);
                break;
              // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)
              case 'Y':
                formatter = weekNumberingYearGetter(1);
                break;
              // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD
              // 2010 => 10)
              case 'YY':
                formatter = weekNumberingYearGetter(2, true);
                break;
              // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD
              // 2010 => 2010)
              case 'YYY':
                formatter = weekNumberingYearGetter(3);
                break;
              // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)
              case 'YYYY':
                formatter = weekNumberingYearGetter(4);
                break;
              // Month of the year (1-12), numeric
              case 'M':
              case 'L':
                formatter = dateGetter(DateType.Month, 1, 1);
                break;
              case 'MM':
              case 'LL':
                formatter = dateGetter(DateType.Month, 2, 1);
                break;
              // Month of the year (January, ...), string, format
              case 'MMM':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);
                break;
              case 'MMMM':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);
                break;
              case 'MMMMM':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);
                break;
              // Month of the year (January, ...), string, standalone
              case 'LLL':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);
                break;
              case 'LLLL':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);
                break;
              case 'LLLLL':
                formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);
                break;
              // Week of the year (1, ... 52)
              case 'w':
                formatter = weekGetter(1);
                break;
              case 'ww':
                formatter = weekGetter(2);
                break;
              // Week of the month (1, ...)
              case 'W':
                formatter = weekGetter(1, true);
                break;
              // Day of the month (1-31)
              case 'd':
                formatter = dateGetter(DateType.Date, 1);
                break;
              case 'dd':
                formatter = dateGetter(DateType.Date, 2);
                break;
              // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)
              case 'c':
              case 'cc':
                formatter = dateGetter(DateType.Day, 1);
                break;
              case 'ccc':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);
                break;
              case 'cccc':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);
                break;
              case 'ccccc':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);
                break;
              case 'cccccc':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);
                break;
              // Day of the Week
              case 'E':
              case 'EE':
              case 'EEE':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);
                break;
              case 'EEEE':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);
                break;
              case 'EEEEE':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);
                break;
              case 'EEEEEE':
                formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);
                break;
              // Generic period of the day (am-pm)
              case 'a':
              case 'aa':
              case 'aaa':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);
                break;
              case 'aaaa':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);
                break;
              case 'aaaaa':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);
                break;
              // Extended period of the day (midnight, at night, ...), standalone
              case 'b':
              case 'bb':
              case 'bbb':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);
                break;
              case 'bbbb':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);
                break;
              case 'bbbbb':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);
                break;
              // Extended period of the day (midnight, night, ...), standalone
              case 'B':
              case 'BB':
              case 'BBB':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);
                break;
              case 'BBBB':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);
                break;
              case 'BBBBB':
                formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);
                break;
              // Hour in AM/PM, (1-12)
              case 'h':
                formatter = dateGetter(DateType.Hours, 1, -12);
                break;
              case 'hh':
                formatter = dateGetter(DateType.Hours, 2, -12);
                break;
              // Hour of the day (0-23)
              case 'H':
                formatter = dateGetter(DateType.Hours, 1);
                break;
              // Hour in day, padded (00-23)
              case 'HH':
                formatter = dateGetter(DateType.Hours, 2);
                break;
              // Minute of the hour (0-59)
              case 'm':
                formatter = dateGetter(DateType.Minutes, 1);
                break;
              case 'mm':
                formatter = dateGetter(DateType.Minutes, 2);
                break;
              // Second of the minute (0-59)
              case 's':
                formatter = dateGetter(DateType.Seconds, 1);
                break;
              case 'ss':
                formatter = dateGetter(DateType.Seconds, 2);
                break;
              // Fractional second
              case 'S':
                formatter = dateGetter(DateType.FractionalSeconds, 1);
                break;
              case 'SS':
                formatter = dateGetter(DateType.FractionalSeconds, 2);
                break;
              case 'SSS':
                formatter = dateGetter(DateType.FractionalSeconds, 3);
                break;
              // Timezone ISO8601 short format (-0430)
              case 'Z':
              case 'ZZ':
              case 'ZZZ':
                formatter = timeZoneGetter(ZoneWidth.Short);
                break;
              // Timezone ISO8601 extended format (-04:30)
              case 'ZZZZZ':
                formatter = timeZoneGetter(ZoneWidth.Extended);
                break;
              // Timezone GMT short format (GMT+4)
              case 'O':
              case 'OO':
              case 'OOO':
              // Should be location, but fallback to format O instead because we don't have the data yet
              case 'z':
              case 'zz':
              case 'zzz':
                formatter = timeZoneGetter(ZoneWidth.ShortGMT);
                break;
              // Timezone GMT long format (GMT+0430)
              case 'OOOO':
              case 'ZZZZ':
              // Should be location, but fallback to format O instead because we don't have the data yet
              case 'zzzz':
                formatter = timeZoneGetter(ZoneWidth.Long);
                break;
              default:
                return null;
            }
            DATE_FORMATS[format] = formatter;
            return formatter;
          }
          function timezoneToOffset(timezone, fallback) {
            // Support: IE 11 only, Edge 13-15+
            // IE/Edge do not "understand" colon (`:`) in timezone
            timezone = timezone.replace(/:/g, '');
            const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
            return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
          }
          function addDateMinutes(date, minutes) {
            date = new Date(date.getTime());
            date.setMinutes(date.getMinutes() + minutes);
            return date;
          }
          function convertTimezoneToLocal(date, timezone, reverse) {
            const reverseValue = reverse ? -1 : 1;
            const dateTimezoneOffset = date.getTimezoneOffset();
            const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
            return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));
          }
          /**
           * Converts a value to date.
           *
           * Supported input formats:
           * - `Date`
           * - number: timestamp
           * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by
           *   [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).
           *   Note: ISO strings without time return a date without timeoffset.
           *
           * Throws if unable to convert to a date.
           */
          function toDate(value) {
            if (isDate(value)) {
              return value;
            }
            if (typeof value === 'number' && !isNaN(value)) {
              return new Date(value);
            }
            if (typeof value === 'string') {
              value = value.trim();
              if (/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(value)) {
                /* For ISO Strings without time the day, month and year must be extracted from the ISO String
                before Date creation to avoid time offset and errors in the new Date.
                If we only replace '-' with ',' in the ISO String ("2015,01,01"), and try to create a new
                date, some browsers (e.g. IE 9) will throw an invalid Date error.
                If we leave the '-' ("2015-01-01") and try to create a new Date("2015-01-01") the timeoffset
                is applied.
                Note: ISO months are 0 for January, 1 for February, ... */
                const [y, m = 1, d = 1] = value.split('-').map(val => +val);
                return createDate(y, m - 1, d);
              }
              const parsedNb = parseFloat(value);
              // any string that only contains numbers, like "1234" but not like "1234hello"
              if (!isNaN(value - parsedNb)) {
                return new Date(parsedNb);
              }
              let match;
              if (match = value.match(ISO8601_DATE_REGEX)) {
                return isoStringToDate(match);
              }
            }
            const date = new Date(value);
            if (!isDate(date)) {
              throw new Error(`Unable to convert "${value}" into a date`);
            }
            return date;
          }
          /**
           * Converts a date in ISO8601 to a Date.
           * Used instead of `Date.parse` because of browser discrepancies.
           */
          function isoStringToDate(match) {
            const date = new Date(0);
            let tzHour = 0;
            let tzMin = 0;
            // match[8] means that the string contains "Z" (UTC) or a timezone like "+01:00" or "+0100"
            const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;
            const timeSetter = match[8] ? date.setUTCHours : date.setHours;
            // if there is a timezone defined like "+01:00" or "+0100"
            if (match[9]) {
              tzHour = Number(match[9] + match[10]);
              tzMin = Number(match[9] + match[11]);
            }
            dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));
            const h = Number(match[4] || 0) - tzHour;
            const m = Number(match[5] || 0) - tzMin;
            const s = Number(match[6] || 0);
            // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)
            // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`
            // becomes `999ms`.
            const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);
            timeSetter.call(date, h, m, s, ms);
            return date;
          }
          function isDate(value) {
            return value instanceof Date && !isNaN(value.valueOf());
          }
          const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
          const MAX_DIGITS = 22;
          const DECIMAL_SEP = '.';
          const ZERO_CHAR = '0';
          const PATTERN_SEP = ';';
          const GROUP_SEP = ',';
          const DIGIT_CHAR = '#';
          const CURRENCY_CHAR = '¤';
          const PERCENT_CHAR = '%';
          /**
           * Transforms a number to a locale string based on a style and a format.
           */
          function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {
            let formattedText = '';
            let isZero = false;
            if (!isFinite(value)) {
              formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);
            } else {
              let parsedNumber = parseNumber(value);
              if (isPercent) {
                parsedNumber = toPercent(parsedNumber);
              }
              let minInt = pattern.minInt;
              let minFraction = pattern.minFrac;
              let maxFraction = pattern.maxFrac;
              if (digitsInfo) {
                const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
                if (parts === null) {
                  throw new Error(`${digitsInfo} is not a valid digit info`);
                }
                const minIntPart = parts[1];
                const minFractionPart = parts[3];
                const maxFractionPart = parts[5];
                if (minIntPart != null) {
                  minInt = parseIntAutoRadix(minIntPart);
                }
                if (minFractionPart != null) {
                  minFraction = parseIntAutoRadix(minFractionPart);
                }
                if (maxFractionPart != null) {
                  maxFraction = parseIntAutoRadix(maxFractionPart);
                } else if (minFractionPart != null && minFraction > maxFraction) {
                  maxFraction = minFraction;
                }
              }
              roundNumber(parsedNumber, minFraction, maxFraction);
              let digits = parsedNumber.digits;
              let integerLen = parsedNumber.integerLen;
              const exponent = parsedNumber.exponent;
              let decimals = [];
              isZero = digits.every(d => !d);
              // pad zeros for small numbers
              for (; integerLen < minInt; integerLen++) {
                digits.unshift(0);
              }
              // pad zeros for small numbers
              for (; integerLen < 0; integerLen++) {
                digits.unshift(0);
              }
              // extract decimals digits
              if (integerLen > 0) {
                decimals = digits.splice(integerLen, digits.length);
              } else {
                decimals = digits;
                digits = [0];
              }
              // format the integer digits with grouping separators
              const groups = [];
              if (digits.length >= pattern.lgSize) {
                groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
              }
              while (digits.length > pattern.gSize) {
                groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
              }
              if (digits.length) {
                groups.unshift(digits.join(''));
              }
              formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));
              // append the decimal digits
              if (decimals.length) {
                formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');
              }
              if (exponent) {
                formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;
              }
            }
            if (value < 0 && !isZero) {
              formattedText = pattern.negPre + formattedText + pattern.negSuf;
            } else {
              formattedText = pattern.posPre + formattedText + pattern.posSuf;
            }
            return formattedText;
          }
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a number as currency using locale rules.
           *
           * @param value The number to format.
           * @param locale A locale code for the locale format rules to use.
           * @param currency A string containing the currency symbol or its name,
           * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation
           * of the function.
           * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)
           * currency code, such as `USD` for the US dollar and `EUR` for the euro.
           * Used to determine the number of digits in the decimal part.
           * @param digitsInfo Decimal representation options, specified by a string in the following format:
           * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
           *
           * @returns The formatted currency value.
           *
           * @see {@link formatNumber}
           * @see {@link DecimalPipe}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
            const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);
            const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
            pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);
            pattern.maxFrac = pattern.minFrac;
            const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);
            return res.replace(CURRENCY_CHAR, currency)
            // if we have 2 time the currency character, the second one is ignored
            .replace(CURRENCY_CHAR, '')
            // If there is a spacing between currency character and the value and
            // the currency character is suppressed by passing an empty string, the
            // spacing character would remain as part of the string. Then we
            // should remove it.
            .trim();
          }
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a number as a percentage according to locale rules.
           *
           * @param value The number to format.
           * @param locale A locale code for the locale format rules to use.
           * @param digitsInfo Decimal representation options, specified by a string in the following format:
           * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
           *
           * @returns The formatted percentage value.
           *
           * @see {@link formatNumber}
           * @see {@link DecimalPipe}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           * @publicApi
           *
           */
          function formatPercent(value, locale, digitsInfo) {
            const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
            const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
            const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
            return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
          }
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a number as text, with group sizing, separator, and other
           * parameters based on the locale.
           *
           * @param value The number to format.
           * @param locale A locale code for the locale format rules to use.
           * @param digitsInfo Decimal representation options, specified by a string in the following format:
           * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
           *
           * @returns The formatted text string.
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           *
           * @publicApi
           */
          function formatNumber(value, locale, digitsInfo) {
            const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
            const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
            return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
          }
          function parseNumberFormat(format, minusSign = '-') {
            const p = {
              minInt: 1,
              minFrac: 0,
              maxFrac: 0,
              posPre: '',
              posSuf: '',
              negPre: '',
              negSuf: '',
              gSize: 0,
              lgSize: 0
            };
            const patternParts = format.split(PATTERN_SEP);
            const positive = patternParts[0];
            const negative = patternParts[1];
            const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ? positive.split(DECIMAL_SEP) : [positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1), positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)],
              integer = positiveParts[0],
              fraction = positiveParts[1] || '';
            p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));
            for (let i = 0; i < fraction.length; i++) {
              const ch = fraction.charAt(i);
              if (ch === ZERO_CHAR) {
                p.minFrac = p.maxFrac = i + 1;
              } else if (ch === DIGIT_CHAR) {
                p.maxFrac = i + 1;
              } else {
                p.posSuf += ch;
              }
            }
            const groups = integer.split(GROUP_SEP);
            p.gSize = groups[1] ? groups[1].length : 0;
            p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;
            if (negative) {
              const trunkLen = positive.length - p.posPre.length - p.posSuf.length,
                pos = negative.indexOf(DIGIT_CHAR);
              p.negPre = negative.substring(0, pos).replace(/'/g, '');
              p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');
            } else {
              p.negPre = minusSign + p.posPre;
              p.negSuf = p.posSuf;
            }
            return p;
          }
          // Transforms a parsed number into a percentage by multiplying it by 100
          function toPercent(parsedNumber) {
            // if the number is 0, don't do anything
            if (parsedNumber.digits[0] === 0) {
              return parsedNumber;
            }
            // Getting the current number of decimals
            const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;
            if (parsedNumber.exponent) {
              parsedNumber.exponent += 2;
            } else {
              if (fractionLen === 0) {
                parsedNumber.digits.push(0, 0);
              } else if (fractionLen === 1) {
                parsedNumber.digits.push(0);
              }
              parsedNumber.integerLen += 2;
            }
            return parsedNumber;
          }
          /**
           * Parses a number.
           * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/
           */
          function parseNumber(num) {
            let numStr = Math.abs(num) + '';
            let exponent = 0,
              digits,
              integerLen;
            let i, j, zeros;
            // Decimal point?
            if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {
              numStr = numStr.replace(DECIMAL_SEP, '');
            }
            // Exponential form?
            if ((i = numStr.search(/e/i)) > 0) {
              // Work out the exponent.
              if (integerLen < 0) integerLen = i;
              integerLen += +numStr.slice(i + 1);
              numStr = numStr.substring(0, i);
            } else if (integerLen < 0) {
              // There was no decimal point or exponent so it is an integer.
              integerLen = numStr.length;
            }
            // Count the number of leading zeros.
            for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {/* empty */
            }
            if (i === (zeros = numStr.length)) {
              // The digits are all zero.
              digits = [0];
              integerLen = 1;
            } else {
              // Count the number of trailing zeros
              zeros--;
              while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;
              // Trailing zeros are insignificant so ignore them
              integerLen -= i;
              digits = [];
              // Convert string to array of digits without leading/trailing zeros.
              for (j = 0; i <= zeros; i++, j++) {
                digits[j] = Number(numStr.charAt(i));
              }
            }
            // If the number overflows the maximum allowed digits then use an exponent.
            if (integerLen > MAX_DIGITS) {
              digits = digits.splice(0, MAX_DIGITS - 1);
              exponent = integerLen - 1;
              integerLen = 1;
            }
            return {
              digits,
              exponent,
              integerLen
            };
          }
          /**
           * Round the parsed number to the specified number of decimal places
           * This function changes the parsedNumber in-place
           */
          function roundNumber(parsedNumber, minFrac, maxFrac) {
            if (minFrac > maxFrac) {
              throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);
            }
            let digits = parsedNumber.digits;
            let fractionLen = digits.length - parsedNumber.integerLen;
            const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);
            // The index of the digit to where rounding is to occur
            let roundAt = fractionSize + parsedNumber.integerLen;
            let digit = digits[roundAt];
            if (roundAt > 0) {
              // Drop fractional digits beyond `roundAt`
              digits.splice(Math.max(parsedNumber.integerLen, roundAt));
              // Set non-fractional digits beyond `roundAt` to 0
              for (let j = roundAt; j < digits.length; j++) {
                digits[j] = 0;
              }
            } else {
              // We rounded to zero so reset the parsedNumber
              fractionLen = Math.max(0, fractionLen);
              parsedNumber.integerLen = 1;
              digits.length = Math.max(1, roundAt = fractionSize + 1);
              digits[0] = 0;
              for (let i = 1; i < roundAt; i++) digits[i] = 0;
            }
            if (digit >= 5) {
              if (roundAt - 1 < 0) {
                for (let k = 0; k > roundAt; k--) {
                  digits.unshift(0);
                  parsedNumber.integerLen++;
                }
                digits.unshift(1);
                parsedNumber.integerLen++;
              } else {
                digits[roundAt - 1]++;
              }
            }
            // Pad out with zeros to get the required fraction length
            for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);
            let dropTrailingZeros = fractionSize !== 0;
            // Minimal length = nb of decimals required + current nb of integers
            // Any number besides that is optional and can be removed if it's a trailing 0
            const minLen = minFrac + parsedNumber.integerLen;
            // Do any carrying, e.g. a digit was rounded up to 10
            const carry = digits.reduceRight(function (carry, d, i, digits) {
              d = d + carry;
              digits[i] = d < 10 ? d : d - 10; // d % 10
              if (dropTrailingZeros) {
                // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)
                if (digits[i] === 0 && i >= minLen) {
                  digits.pop();
                } else {
                  dropTrailingZeros = false;
                }
              }
              return d >= 10 ? 1 : 0; // Math.floor(d / 10);
            }, 0);
            if (carry) {
              digits.unshift(carry);
              parsedNumber.integerLen++;
            }
          }
          function parseIntAutoRadix(text) {
            const result = parseInt(text);
            if (isNaN(result)) {
              throw new Error('Invalid integer literal when parsing ' + text);
            }
            return result;
          }
          
          /**
           * @publicApi
           */
          class NgLocalization {
            static {
              this.ɵfac = function NgLocalization_Factory(t) {
                return new (t || NgLocalization)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: NgLocalization,
                factory: function NgLocalization_Factory(t) {
                  let r = null;
                  if (t) {
                    r = new t();
                  } else {
                    r = (locale => new NgLocaleLocalization(locale))(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID));
                  }
                  return r;
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLocalization, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: locale => new NgLocaleLocalization(locale),
                deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
              }]
            }], null, null);
          })();
          /**
           * Returns the plural category for a given value.
           * - "=value" when the case exists,
           * - the plural category otherwise
           */
          function getPluralCategory(value, cases, ngLocalization, locale) {
            let key = `=${value}`;
            if (cases.indexOf(key) > -1) {
              return key;
            }
            key = ngLocalization.getPluralCategory(value, locale);
            if (cases.indexOf(key) > -1) {
              return key;
            }
            if (cases.indexOf('other') > -1) {
              return 'other';
            }
            throw new Error(`No plural message found for value "${value}"`);
          }
          /**
           * Returns the plural case based on the locale
           *
           * @publicApi
           */
          class NgLocaleLocalization extends NgLocalization {
            constructor(locale) {
              super();
              this.locale = locale;
            }
            getPluralCategory(value, locale) {
              const plural = getLocalePluralCase(locale || this.locale)(value);
              switch (plural) {
                case Plural.Zero:
                  return 'zero';
                case Plural.One:
                  return 'one';
                case Plural.Two:
                  return 'two';
                case Plural.Few:
                  return 'few';
                case Plural.Many:
                  return 'many';
                default:
                  return 'other';
              }
            }
            static {
              this.ɵfac = function NgLocaleLocalization_Factory(t) {
                return new (t || NgLocaleLocalization)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: NgLocaleLocalization,
                factory: NgLocaleLocalization.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLocaleLocalization, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
                }]
              }];
            }, null);
          })();
          
          /**
           * Register global data to be used internally by Angular. See the
           * ["I18n guide"](guide/i18n-common-format-data-locale) to know how to import additional locale
           * data.
           *
           * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
           *
           * @publicApi
           */
          function registerLocaleData(data, localeId, extraData) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵregisterLocaleData"])(data, localeId, extraData);
          }
          function parseCookieValue(cookieStr, name) {
            name = encodeURIComponent(name);
            for (const cookie of cookieStr.split(';')) {
              const eqIndex = cookie.indexOf('=');
              const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];
              if (cookieName.trim() === name) {
                return decodeURIComponent(cookieValue);
              }
            }
            return null;
          }
          const WS_REGEXP = /\s+/;
          const EMPTY_ARRAY = [];
          /**
           * @ngModule CommonModule
           *
           * @usageNotes
           * ```
           *     <some-element [ngClass]="'first second'">...</some-element>
           *
           *     <some-element [ngClass]="['first', 'second']">...</some-element>
           *
           *     <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
           *
           *     <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
           *
           *     <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
           * ```
           *
           * @description
           *
           * Adds and removes CSS classes on an HTML element.
           *
           * The CSS classes are updated as follows, depending on the type of the expression evaluation:
           * - `string` - the CSS classes listed in the string (space delimited) are added,
           * - `Array` - the CSS classes declared as Array elements are added,
           * - `Object` - keys are CSS classes that get added when the expression given in the value
           *              evaluates to a truthy value, otherwise they are removed.
           *
           * @publicApi
           */
          class NgClass {
            constructor(
            // leaving references to differs in place since flex layout is extending NgClass...
            _iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {
              this._iterableDiffers = _iterableDiffers;
              this._keyValueDiffers = _keyValueDiffers;
              this._ngEl = _ngEl;
              this._renderer = _renderer;
              this.initialClasses = EMPTY_ARRAY;
              this.stateMap = new Map();
            }
            set klass(value) {
              this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;
            }
            set ngClass(value) {
              this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;
            }
            /*
            The NgClass directive uses the custom change detection algorithm for its inputs. The custom
            algorithm is necessary since inputs are represented as complex object or arrays that need to be
            deeply-compared.
               This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance
            might negatively impact runtime performance of the entire change detection cycle. The design of
            this algorithm is making sure that:
            - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when
            needed), even if references to bound objects change;
            - there is no memory allocation if nothing changes (even relatively modest memory allocation
            during the change detection cycle can result in GC pauses for some of the CD cycles).
               The algorithm works by iterating over the set of bound classes, staring with [class] binding and
            then going over [ngClass] binding. For each CSS class name:
            - check if it was seen before (this information is tracked in the state map) and if its value
            changed;
            - mark it as "touched" - names that are not marked are not present in the latest set of binding
            and we can remove such class name from the internal data structures;
               After iteration over all the CSS class names we've got data structure with all the information
            necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush
            changes to the DOM and reset internal data structures so those are ready for the next change
            detection cycle.
             */
            ngDoCheck() {
              // classes from the [class] binding
              for (const klass of this.initialClasses) {
                this._updateState(klass, true);
              }
              // classes from the [ngClass] binding
              const rawClass = this.rawClass;
              if (Array.isArray(rawClass) || rawClass instanceof Set) {
                for (const klass of rawClass) {
                  this._updateState(klass, true);
                }
              } else if (rawClass != null) {
                for (const klass of Object.keys(rawClass)) {
                  this._updateState(klass, Boolean(rawClass[klass]));
                }
              }
              this._applyStateDiff();
            }
            _updateState(klass, nextEnabled) {
              const state = this.stateMap.get(klass);
              if (state !== undefined) {
                if (state.enabled !== nextEnabled) {
                  state.changed = true;
                  state.enabled = nextEnabled;
                }
                state.touched = true;
              } else {
                this.stateMap.set(klass, {
                  enabled: nextEnabled,
                  changed: true,
                  touched: true
                });
              }
            }
            _applyStateDiff() {
              for (const stateEntry of this.stateMap) {
                const klass = stateEntry[0];
                const state = stateEntry[1];
                if (state.changed) {
                  this._toggleClass(klass, state.enabled);
                  state.changed = false;
                } else if (!state.touched) {
                  // A class that was previously active got removed from the new collection of classes -
                  // remove from the DOM as well.
                  if (state.enabled) {
                    this._toggleClass(klass, false);
                  }
                  this.stateMap.delete(klass);
                }
                state.touched = false;
              }
            }
            _toggleClass(klass, enabled) {
              if (ngDevMode) {
                if (typeof klass !== 'string') {
                  throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(klass)}`);
                }
              }
              klass = klass.trim();
              if (klass.length > 0) {
                klass.split(WS_REGEXP).forEach(klass => {
                  if (enabled) {
                    this._renderer.addClass(this._ngEl.nativeElement, klass);
                  } else {
                    this._renderer.removeClass(this._ngEl.nativeElement, klass);
                  }
                });
              }
            }
            static {
              this.ɵfac = function NgClass_Factory(t) {
                return new (t || NgClass)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgClass,
                selectors: [["", "ngClass", ""]],
                inputs: {
                  klass: ["class", "klass"],
                  ngClass: "ngClass"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgClass, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngClass]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }];
            }, {
              klass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['class']
              }],
              ngClass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngClass']
              }]
            });
          })();
          
          /**
           * Instantiates a {@link Component} type and inserts its Host View into the current View.
           * `NgComponentOutlet` provides a declarative approach for dynamic component creation.
           *
           * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
           * any existing component will be destroyed.
           *
           * @usageNotes
           *
           * ### Fine tune control
           *
           * You can control the component creation process by using the following optional attributes:
           *
           * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the
           * component.
           *
           * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
           * the Component. Defaults to the injector of the current view container.
           *
           * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
           * section of the component, if it exists.
           *
           * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
           * module dynamically, then loading a component from that module.
           *
           * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
           * NgModule factory to allow loading another module dynamically, then loading a component from that
           * module. Use `ngComponentOutletNgModule` instead.
           *
           * ### Syntax
           *
           * Simple
           * ```
           * <ng-container *ngComponentOutlet="componentTypeExpression"></ng-container>
           * ```
           *
           * With inputs
           * ```
           * <ng-container *ngComponentOutlet="componentTypeExpression;
           *                                   inputs: inputsExpression;">
           * </ng-container>
           * ```
           *
           * Customized injector/content
           * ```
           * <ng-container *ngComponentOutlet="componentTypeExpression;
           *                                   injector: injectorExpression;
           *                                   content: contentNodesExpression;">
           * </ng-container>
           * ```
           *
           * Customized NgModule reference
           * ```
           * <ng-container *ngComponentOutlet="componentTypeExpression;
           *                                   ngModule: ngModuleClass;">
           * </ng-container>
           * ```
           *
           * ### A simple example
           *
           * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}
           *
           * A more complete example with additional options:
           *
           * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}
           *
           * @publicApi
           * @ngModule CommonModule
           */
          class NgComponentOutlet {
            constructor(_viewContainerRef) {
              this._viewContainerRef = _viewContainerRef;
              this.ngComponentOutlet = null;
              /**
               * A helper data structure that allows us to track inputs that were part of the
               * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones
               * that are no longer referenced.
               */
              this._inputsUsed = new Map();
            }
            _needToReCreateNgModuleInstance(changes) {
              // Note: square brackets property accessor is safe for Closure compiler optimizations (the
              // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that
              // were changed).
              return changes['ngComponentOutletNgModule'] !== undefined || changes['ngComponentOutletNgModuleFactory'] !== undefined;
            }
            _needToReCreateComponentInstance(changes) {
              // Note: square brackets property accessor is safe for Closure compiler optimizations (the
              // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that
              // were changed).
              return changes['ngComponentOutlet'] !== undefined || changes['ngComponentOutletContent'] !== undefined || changes['ngComponentOutletInjector'] !== undefined || this._needToReCreateNgModuleInstance(changes);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (this._needToReCreateComponentInstance(changes)) {
                this._viewContainerRef.clear();
                this._inputsUsed.clear();
                this._componentRef = undefined;
                if (this.ngComponentOutlet) {
                  const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;
                  if (this._needToReCreateNgModuleInstance(changes)) {
                    this._moduleRef?.destroy();
                    if (this.ngComponentOutletNgModule) {
                      this._moduleRef = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.createNgModule)(this.ngComponentOutletNgModule, getParentInjector(injector));
                    } else if (this.ngComponentOutletNgModuleFactory) {
                      this._moduleRef = this.ngComponentOutletNgModuleFactory.create(getParentInjector(injector));
                    } else {
                      this._moduleRef = undefined;
                    }
                  }
                  this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {
                    injector,
                    ngModuleRef: this._moduleRef,
                    projectableNodes: this.ngComponentOutletContent
                  });
                }
              }
            }
            /** @nodoc */
            ngDoCheck() {
              if (this._componentRef) {
                if (this.ngComponentOutletInputs) {
                  for (const inputName of Object.keys(this.ngComponentOutletInputs)) {
                    this._inputsUsed.set(inputName, true);
                  }
                }
                this._applyInputStateDiff(this._componentRef);
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              this._moduleRef?.destroy();
            }
            _applyInputStateDiff(componentRef) {
              for (const [inputName, touched] of this._inputsUsed) {
                if (!touched) {
                  // The input that was previously active no longer exists and needs to be set to undefined.
                  componentRef.setInput(inputName, undefined);
                  this._inputsUsed.delete(inputName);
                } else {
                  // Since touched is true, it can be asserted that the inputs object is not empty.
                  componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);
                  this._inputsUsed.set(inputName, false);
                }
              }
            }
            static {
              this.ɵfac = function NgComponentOutlet_Factory(t) {
                return new (t || NgComponentOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgComponentOutlet,
                selectors: [["", "ngComponentOutlet", ""]],
                inputs: {
                  ngComponentOutlet: "ngComponentOutlet",
                  ngComponentOutletInputs: "ngComponentOutletInputs",
                  ngComponentOutletInjector: "ngComponentOutletInjector",
                  ngComponentOutletContent: "ngComponentOutletContent",
                  ngComponentOutletNgModule: "ngComponentOutletNgModule",
                  ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgComponentOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngComponentOutlet]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }];
            }, {
              ngComponentOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngComponentOutletInputs: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngComponentOutletInjector: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngComponentOutletContent: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngComponentOutletNgModule: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngComponentOutletNgModuleFactory: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          // Helper function that returns an Injector instance of a parent NgModule.
          function getParentInjector(injector) {
            const parentNgModule = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModuleRef);
            return parentNgModule.injector;
          }
          
          /**
           * @publicApi
           */
          class NgForOfContext {
            constructor($implicit, ngForOf, index, count) {
              this.$implicit = $implicit;
              this.ngForOf = ngForOf;
              this.index = index;
              this.count = count;
            }
            get first() {
              return this.index === 0;
            }
            get last() {
              return this.index === this.count - 1;
            }
            get even() {
              return this.index % 2 === 0;
            }
            get odd() {
              return !this.even;
            }
          }
          /**
           * A [structural directive](guide/structural-directives) that renders
           * a template for each item in a collection.
           * The directive is placed on an element, which becomes the parent
           * of the cloned templates.
           *
           * The `ngForOf` directive is generally used in the
           * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.
           * In this form, the template to be rendered for each iteration is the content
           * of an anchor element containing the directive.
           *
           * The following example shows the shorthand syntax with some options,
           * contained in an `<li>` element.
           *
           * ```
           * <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
           * ```
           *
           * The shorthand form expands into a long form that uses the `ngForOf` selector
           * on an `<ng-template>` element.
           * The content of the `<ng-template>` element is the `<li>` element that held the
           * short-form directive.
           *
           * Here is the expanded version of the short-form example.
           *
           * ```
           * <ng-template ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
           *   <li>...</li>
           * </ng-template>
           * ```
           *
           * Angular automatically expands the shorthand syntax as it compiles the template.
           * The context for each embedded view is logically merged to the current component
           * context according to its lexical position.
           *
           * When using the shorthand syntax, Angular allows only [one structural directive
           * on an element](guide/structural-directives#one-per-element).
           * If you want to iterate conditionally, for example,
           * put the `*ngIf` on a container element that wraps the `*ngFor` element.
           * For further discussion, see
           * [Structural Directives](guide/structural-directives#one-per-element).
           *
           * @usageNotes
           *
           * ### Local variables
           *
           * `NgForOf` provides exported values that can be aliased to local variables.
           * For example:
           *
           *  ```
           * <li *ngFor="let user of users; index as i; first as isFirst">
           *    {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
           * </li>
           * ```
           *
           * The following exported values can be aliased to local variables:
           *
           * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).
           * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is
           * more complex then a property access, for example when using the async pipe (`userStreams |
           * async`).
           * - `index: number`: The index of the current item in the iterable.
           * - `count: number`: The length of the iterable.
           * - `first: boolean`: True when the item is the first item in the iterable.
           * - `last: boolean`: True when the item is the last item in the iterable.
           * - `even: boolean`: True when the item has an even index in the iterable.
           * - `odd: boolean`: True when the item has an odd index in the iterable.
           *
           * ### Change propagation
           *
           * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:
           *
           * * When an item is added, a new instance of the template is added to the DOM.
           * * When an item is removed, its template instance is removed from the DOM.
           * * When items are reordered, their respective templates are reordered in the DOM.
           *
           * Angular uses object identity to track insertions and deletions within the iterator and reproduce
           * those changes in the DOM. This has important implications for animations and any stateful
           * controls that are present, such as `<input>` elements that accept user input. Inserted rows can
           * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
           * such as user input.
           * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).
           *
           * The identities of elements in the iterator can change while the data does not.
           * This can happen, for example, if the iterator is produced from an RPC to the server, and that
           * RPC is re-run. Even if the data hasn't changed, the second response produces objects with
           * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old
           * elements were deleted and all new elements inserted).
           *
           * To avoid this expensive operation, you can customize the default tracking algorithm.
           * by supplying the `trackBy` option to `NgForOf`.
           * `trackBy` takes a function that has two arguments: `index` and `item`.
           * If `trackBy` is given, Angular tracks changes by the return value of the function.
           *
           * @see [Structural Directives](guide/structural-directives)
           * @ngModule CommonModule
           * @publicApi
           */
          class NgForOf {
            /**
             * The value of the iterable expression, which can be used as a
             * [template input variable](guide/structural-directives#shorthand).
             */
            set ngForOf(ngForOf) {
              this._ngForOf = ngForOf;
              this._ngForOfDirty = true;
            }
            /**
             * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.
             *
             * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object
             * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)
             * as the key.
             *
             * `NgForOf` uses the computed key to associate items in an iterable with DOM elements
             * it produces for these items.
             *
             * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an
             * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a
             * primary key), and this iterable could be updated with new object instances that still
             * represent the same underlying entity (for example, when data is re-fetched from the server,
             * and the iterable is recreated and re-rendered, but most of the data is still the same).
             *
             * @see {@link TrackByFunction}
             */
            set ngForTrackBy(fn) {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
                console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` + `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);
              }
              this._trackByFn = fn;
            }
            get ngForTrackBy() {
              return this._trackByFn;
            }
            constructor(_viewContainer, _template, _differs) {
              this._viewContainer = _viewContainer;
              this._template = _template;
              this._differs = _differs;
              this._ngForOf = null;
              this._ngForOfDirty = true;
              this._differ = null;
            }
            /**
             * A reference to the template that is stamped out for each item in the iterable.
             * @see [template reference variable](guide/template-reference-variables)
             */
            set ngForTemplate(value) {
              // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1
              // The current type is too restrictive; a template that just uses index, for example,
              // should be acceptable.
              if (value) {
                this._template = value;
              }
            }
            /**
             * Applies the changes when needed.
             * @nodoc
             */
            ngDoCheck() {
              if (this._ngForOfDirty) {
                this._ngForOfDirty = false;
                // React on ngForOf changes only once all inputs have been initialized
                const value = this._ngForOf;
                if (!this._differ && value) {
                  if (typeof ngDevMode === 'undefined' || ngDevMode) {
                    try {
                      // CAUTION: this logic is duplicated for production mode below, as the try-catch
                      // is only present in development builds.
                      this._differ = this._differs.find(value).create(this.ngForTrackBy);
                    } catch {
                      let errorMessage = `Cannot find a differ supporting object '${value}' of type '` + `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;
                      if (typeof value === 'object') {
                        errorMessage += ' Did you mean to use the keyvalue pipe?';
                      }
                      throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](-2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, errorMessage);
                    }
                  } else {
                    // CAUTION: this logic is duplicated for development mode above, as the try-catch
                    // is only present in development builds.
                    this._differ = this._differs.find(value).create(this.ngForTrackBy);
                  }
                }
              }
              if (this._differ) {
                const changes = this._differ.diff(this._ngForOf);
                if (changes) this._applyChanges(changes);
              }
            }
            _applyChanges(changes) {
              const viewContainer = this._viewContainer;
              changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
                if (item.previousIndex == null) {
                  // NgForOf is never "null" or "undefined" here because the differ detected
                  // that a new item needs to be inserted from the iterable. This implies that
                  // there is an iterable value for "_ngForOf".
                  viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);
                } else if (currentIndex == null) {
                  viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
                } else if (adjustedPreviousIndex !== null) {
                  const view = viewContainer.get(adjustedPreviousIndex);
                  viewContainer.move(view, currentIndex);
                  applyViewChange(view, item);
                }
              });
              for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {
                const viewRef = viewContainer.get(i);
                const context = viewRef.context;
                context.index = i;
                context.count = ilen;
                context.ngForOf = this._ngForOf;
              }
              changes.forEachIdentityChange(record => {
                const viewRef = viewContainer.get(record.currentIndex);
                applyViewChange(viewRef, record);
              });
            }
            /**
             * Asserts the correct type of the context for the template that `NgForOf` will render.
             *
             * The presence of this method is a signal to the Ivy template type-check compiler that the
             * `NgForOf` structural directive renders its template with a specific context type.
             */
            static ngTemplateContextGuard(dir, ctx) {
              return true;
            }
            static {
              this.ɵfac = function NgForOf_Factory(t) {
                return new (t || NgForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgForOf,
                selectors: [["", "ngFor", "", "ngForOf", ""]],
                inputs: {
                  ngForOf: "ngForOf",
                  ngForTrackBy: "ngForTrackBy",
                  ngForTemplate: "ngForTemplate"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForOf, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngFor][ngForOf]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.IterableDiffers
              }];
            }, {
              ngForOf: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngForTrackBy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngForTemplate: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          function applyViewChange(view, record) {
            view.context.$implicit = record.item;
          }
          function getTypeName(type) {
            return type['name'] || typeof type;
          }
          
          /**
           * A structural directive that conditionally includes a template based on the value of
           * an expression coerced to Boolean.
           * When the expression evaluates to true, Angular renders the template
           * provided in a `then` clause, and when  false or null,
           * Angular renders the template provided in an optional `else` clause. The default
           * template for the `else` clause is blank.
           *
           * A [shorthand form](guide/structural-directives#asterisk) of the directive,
           * `*ngIf="condition"`, is generally used, provided
           * as an attribute of the anchor element for the inserted template.
           * Angular expands this into a more explicit version, in which the anchor element
           * is contained in an `<ng-template>` element.
           *
           * Simple form with shorthand syntax:
           *
           * ```
           * <div *ngIf="condition">Content to render when condition is true.</div>
           * ```
           *
           * Simple form with expanded syntax:
           *
           * ```
           * <ng-template [ngIf]="condition"><div>Content to render when condition is
           * true.</div></ng-template>
           * ```
           *
           * Form with an "else" block:
           *
           * ```
           * <div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
           * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
           * ```
           *
           * Shorthand form with "then" and "else" blocks:
           *
           * ```
           * <div *ngIf="condition; then thenBlock else elseBlock"></div>
           * <ng-template #thenBlock>Content to render when condition is true.</ng-template>
           * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
           * ```
           *
           * Form with storing the value locally:
           *
           * ```
           * <div *ngIf="condition as value; else elseBlock">{{value}}</div>
           * <ng-template #elseBlock>Content to render when value is null.</ng-template>
           * ```
           *
           * @usageNotes
           *
           * The `*ngIf` directive is most commonly used to conditionally show an inline template,
           * as seen in the following  example.
           * The default `else` template is blank.
           *
           * {@example common/ngIf/ts/module.ts region='NgIfSimple'}
           *
           * ### Showing an alternative template using `else`
           *
           * To display a template when `expression` evaluates to false, use an `else` template
           * binding as shown in the following example.
           * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.
           * The template can be defined anywhere in the component view, but is typically placed right after
           * `ngIf` for readability.
           *
           * {@example common/ngIf/ts/module.ts region='NgIfElse'}
           *
           * ### Using an external `then` template
           *
           * In the previous example, the then-clause template is specified inline, as the content of the
           * tag that contains the `ngIf` directive. You can also specify a template that is defined
           * externally, by referencing a labeled `<ng-template>` element. When you do this, you can
           * change which template to use at runtime, as shown in the following example.
           *
           * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}
           *
           * ### Storing a conditional result in a variable
           *
           * You might want to show a set of properties from the same object. If you are waiting
           * for asynchronous data, the object can be undefined.
           * In this case, you can use `ngIf` and store the result of the condition in a local
           * variable as shown in the following example.
           *
           * {@example common/ngIf/ts/module.ts region='NgIfAs'}
           *
           * This code uses only one `AsyncPipe`, so only one subscription is created.
           * The conditional statement stores the result of `userStream|async` in the local variable `user`.
           * You can then bind the local `user` repeatedly.
           *
           * The conditional displays the data only if `userStream` returns a value,
           * so you don't need to use the
           * safe-navigation-operator (`?.`)
           * to guard against null values when accessing properties.
           * You can display an alternative template while waiting for the data.
           *
           * ### Shorthand syntax
           *
           * The shorthand syntax `*ngIf` expands into two separate template specifications
           * for the "then" and "else" clauses. For example, consider the following shorthand statement,
           * that is meant to show a loading page while waiting for data to be loaded.
           *
           * ```
           * <div class="hero-list" *ngIf="heroes else loading">
           *  ...
           * </div>
           *
           * <ng-template #loading>
           *  <div>Loading...</div>
           * </ng-template>
           * ```
           *
           * You can see that the "else" clause references the `<ng-template>`
           * with the `#loading` label, and the template for the "then" clause
           * is provided as the content of the anchor element.
           *
           * However, when Angular expands the shorthand syntax, it creates
           * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.
           * The anchor element containing the template for the "then" clause becomes
           * the content of this unlabeled `<ng-template>` tag.
           *
           * ```
           * <ng-template [ngIf]="heroes" [ngIfElse]="loading">
           *  <div class="hero-list">
           *   ...
           *  </div>
           * </ng-template>
           *
           * <ng-template #loading>
           *  <div>Loading...</div>
           * </ng-template>
           * ```
           *
           * The presence of the implicit template object has implications for the nesting of
           * structural directives. For more on this subject, see
           * [Structural Directives](guide/structural-directives#one-per-element).
           *
           * @ngModule CommonModule
           * @publicApi
           */
          class NgIf {
            constructor(_viewContainer, templateRef) {
              this._viewContainer = _viewContainer;
              this._context = new NgIfContext();
              this._thenTemplateRef = null;
              this._elseTemplateRef = null;
              this._thenViewRef = null;
              this._elseViewRef = null;
              this._thenTemplateRef = templateRef;
            }
            /**
             * The Boolean expression to evaluate as the condition for showing a template.
             */
            set ngIf(condition) {
              this._context.$implicit = this._context.ngIf = condition;
              this._updateView();
            }
            /**
             * A template to show if the condition expression evaluates to true.
             */
            set ngIfThen(templateRef) {
              assertTemplate('ngIfThen', templateRef);
              this._thenTemplateRef = templateRef;
              this._thenViewRef = null; // clear previous view if any.
              this._updateView();
            }
            /**
             * A template to show if the condition expression evaluates to false.
             */
            set ngIfElse(templateRef) {
              assertTemplate('ngIfElse', templateRef);
              this._elseTemplateRef = templateRef;
              this._elseViewRef = null; // clear previous view if any.
              this._updateView();
            }
            _updateView() {
              if (this._context.$implicit) {
                if (!this._thenViewRef) {
                  this._viewContainer.clear();
                  this._elseViewRef = null;
                  if (this._thenTemplateRef) {
                    this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
                  }
                }
              } else {
                if (!this._elseViewRef) {
                  this._viewContainer.clear();
                  this._thenViewRef = null;
                  if (this._elseTemplateRef) {
                    this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
                  }
                }
              }
            }
            /**
             * Asserts the correct type of the context for the template that `NgIf` will render.
             *
             * The presence of this method is a signal to the Ivy template type-check compiler that the
             * `NgIf` structural directive renders its template with a specific context type.
             */
            static ngTemplateContextGuard(dir, ctx) {
              return true;
            }
            static {
              this.ɵfac = function NgIf_Factory(t) {
                return new (t || NgIf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgIf,
                selectors: [["", "ngIf", ""]],
                inputs: {
                  ngIf: "ngIf",
                  ngIfThen: "ngIfThen",
                  ngIfElse: "ngIfElse"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgIf, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngIf]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }];
            }, {
              ngIf: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngIfThen: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngIfElse: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @publicApi
           */
          class NgIfContext {
            constructor() {
              this.$implicit = null;
              this.ngIf = null;
            }
          }
          function assertTemplate(property, templateRef) {
            const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);
            if (!isTemplateRefOrNull) {
              throw new Error(`${property} must be a TemplateRef, but received '${(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(templateRef)}'.`);
            }
          }
          class SwitchView {
            constructor(_viewContainerRef, _templateRef) {
              this._viewContainerRef = _viewContainerRef;
              this._templateRef = _templateRef;
              this._created = false;
            }
            create() {
              this._created = true;
              this._viewContainerRef.createEmbeddedView(this._templateRef);
            }
            destroy() {
              this._created = false;
              this._viewContainerRef.clear();
            }
            enforceState(created) {
              if (created && !this._created) {
                this.create();
              } else if (!created && this._created) {
                this.destroy();
              }
            }
          }
          /**
           * @ngModule CommonModule
           *
           * @description
           * The `[ngSwitch]` directive on a container specifies an expression to match against.
           * The expressions to match are provided by `ngSwitchCase` directives on views within the container.
           * - Every view that matches is rendered.
           * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.
           * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`
           * or `ngSwitchDefault` directive are preserved at the location.
           *
           * @usageNotes
           * Define a container element for the directive, and specify the switch expression
           * to match against as an attribute:
           *
           * ```
           * <container-element [ngSwitch]="switch_expression">
           * ```
           *
           * Within the container, `*ngSwitchCase` statements specify the match expressions
           * as attributes. Include `*ngSwitchDefault` as the final case.
           *
           * ```
           * <container-element [ngSwitch]="switch_expression">
           *    <some-element *ngSwitchCase="match_expression_1">...</some-element>
           * ...
           *    <some-element *ngSwitchDefault>...</some-element>
           * </container-element>
           * ```
           *
           * ### Usage Examples
           *
           * The following example shows how to use more than one case to display the same view:
           *
           * ```
           * <container-element [ngSwitch]="switch_expression">
           *   <!-- the same view can be shown in more than one case -->
           *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
           *   <some-element *ngSwitchCase="match_expression_2">...</some-element>
           *   <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
           *   <!--default case when there are no matches -->
           *   <some-element *ngSwitchDefault>...</some-element>
           * </container-element>
           * ```
           *
           * The following example shows how cases can be nested:
           * ```
           * <container-element [ngSwitch]="switch_expression">
           *       <some-element *ngSwitchCase="match_expression_1">...</some-element>
           *       <some-element *ngSwitchCase="match_expression_2">...</some-element>
           *       <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
           *       <ng-container *ngSwitchCase="match_expression_3">
           *         <!-- use a ng-container to group multiple root nodes -->
           *         <inner-element></inner-element>
           *         <inner-other-element></inner-other-element>
           *       </ng-container>
           *       <some-element *ngSwitchDefault>...</some-element>
           *     </container-element>
           * ```
           *
           * @publicApi
           * @see {@link NgSwitchCase}
           * @see {@link NgSwitchDefault}
           * @see [Structural Directives](guide/structural-directives)
           *
           */
          class NgSwitch {
            constructor() {
              this._defaultViews = [];
              this._defaultUsed = false;
              this._caseCount = 0;
              this._lastCaseCheckIndex = 0;
              this._lastCasesMatched = false;
            }
            set ngSwitch(newValue) {
              this._ngSwitch = newValue;
              if (this._caseCount === 0) {
                this._updateDefaultCases(true);
              }
            }
            /** @internal */
            _addCase() {
              return this._caseCount++;
            }
            /** @internal */
            _addDefault(view) {
              this._defaultViews.push(view);
            }
            /** @internal */
            _matchCase(value) {
              const matched = value == this._ngSwitch;
              this._lastCasesMatched = this._lastCasesMatched || matched;
              this._lastCaseCheckIndex++;
              if (this._lastCaseCheckIndex === this._caseCount) {
                this._updateDefaultCases(!this._lastCasesMatched);
                this._lastCaseCheckIndex = 0;
                this._lastCasesMatched = false;
              }
              return matched;
            }
            _updateDefaultCases(useDefault) {
              if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {
                this._defaultUsed = useDefault;
                for (const defaultView of this._defaultViews) {
                  defaultView.enforceState(useDefault);
                }
              }
            }
            static {
              this.ɵfac = function NgSwitch_Factory(t) {
                return new (t || NgSwitch)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgSwitch,
                selectors: [["", "ngSwitch", ""]],
                inputs: {
                  ngSwitch: "ngSwitch"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitch, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngSwitch]',
                standalone: true
              }]
            }], null, {
              ngSwitch: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @ngModule CommonModule
           *
           * @description
           * Provides a switch case expression to match against an enclosing `ngSwitch` expression.
           * When the expressions match, the given `NgSwitchCase` template is rendered.
           * If multiple match expressions match the switch expression value, all of them are displayed.
           *
           * @usageNotes
           *
           * Within a switch container, `*ngSwitchCase` statements specify the match expressions
           * as attributes. Include `*ngSwitchDefault` as the final case.
           *
           * ```
           * <container-element [ngSwitch]="switch_expression">
           *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
           *   ...
           *   <some-element *ngSwitchDefault>...</some-element>
           * </container-element>
           * ```
           *
           * Each switch-case statement contains an in-line HTML template or template reference
           * that defines the subtree to be selected if the value of the match expression
           * matches the value of the switch expression.
           *
           * Unlike JavaScript, which uses strict equality, Angular uses loose equality.
           * This means that the empty string, `""` matches 0.
           *
           * @publicApi
           * @see {@link NgSwitch}
           * @see {@link NgSwitchDefault}
           *
           */
          class NgSwitchCase {
            constructor(viewContainer, templateRef, ngSwitch) {
              this.ngSwitch = ngSwitch;
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
                throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');
              }
              ngSwitch._addCase();
              this._view = new SwitchView(viewContainer, templateRef);
            }
            /**
             * Performs case matching. For internal use only.
             * @nodoc
             */
            ngDoCheck() {
              this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
            }
            static {
              this.ɵfac = function NgSwitchCase_Factory(t) {
                return new (t || NgSwitchCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 9));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgSwitchCase,
                selectors: [["", "ngSwitchCase", ""]],
                inputs: {
                  ngSwitchCase: "ngSwitchCase"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchCase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngSwitchCase]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: NgSwitch,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }];
            }, {
              ngSwitchCase: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @ngModule CommonModule
           *
           * @description
           *
           * Creates a view that is rendered when no `NgSwitchCase` expressions
           * match the `NgSwitch` expression.
           * This statement should be the final case in an `NgSwitch`.
           *
           * @publicApi
           * @see {@link NgSwitch}
           * @see {@link NgSwitchCase}
           *
           */
          class NgSwitchDefault {
            constructor(viewContainer, templateRef, ngSwitch) {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
                throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');
              }
              ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
            }
            static {
              this.ɵfac = function NgSwitchDefault_Factory(t) {
                return new (t || NgSwitchDefault)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 9));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgSwitchDefault,
                selectors: [["", "ngSwitchDefault", ""]],
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchDefault, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngSwitchDefault]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: NgSwitch,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }];
            }, null);
          })();
          function throwNgSwitchProviderNotFoundError(attrName, directiveName) {
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, `An element with the "${attrName}" attribute ` + `(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` + `(matching "NgSwitch" directive)`);
          }
          
          /**
           * @ngModule CommonModule
           *
           * @usageNotes
           * ```
           * <some-element [ngPlural]="value">
           *   <ng-template ngPluralCase="=0">there is nothing</ng-template>
           *   <ng-template ngPluralCase="=1">there is one</ng-template>
           *   <ng-template ngPluralCase="few">there are a few</ng-template>
           * </some-element>
           * ```
           *
           * @description
           *
           * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.
           *
           * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees
           * that match the switch expression's pluralization category.
           *
           * To use this directive you must provide a container element that sets the `[ngPlural]` attribute
           * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their
           * expression:
           * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value
           *   matches the switch expression exactly,
           * - otherwise, the view will be treated as a "category match", and will only display if exact
           *   value matches aren't found and the value maps to its category for the defined locale.
           *
           * See http://cldr.unicode.org/index/cldr-spec/plural-rules
           *
           * @publicApi
           */
          class NgPlural {
            constructor(_localization) {
              this._localization = _localization;
              this._caseViews = {};
            }
            set ngPlural(value) {
              this._updateView(value);
            }
            addCase(value, switchView) {
              this._caseViews[value] = switchView;
            }
            _updateView(switchValue) {
              this._clearViews();
              const cases = Object.keys(this._caseViews);
              const key = getPluralCategory(switchValue, cases, this._localization);
              this._activateView(this._caseViews[key]);
            }
            _clearViews() {
              if (this._activeView) this._activeView.destroy();
            }
            _activateView(view) {
              if (view) {
                this._activeView = view;
                this._activeView.create();
              }
            }
            static {
              this.ɵfac = function NgPlural_Factory(t) {
                return new (t || NgPlural)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgPlural,
                selectors: [["", "ngPlural", ""]],
                inputs: {
                  ngPlural: "ngPlural"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPlural, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngPlural]',
                standalone: true
              }]
            }], function () {
              return [{
                type: NgLocalization
              }];
            }, {
              ngPlural: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @ngModule CommonModule
           *
           * @description
           *
           * Creates a view that will be added/removed from the parent {@link NgPlural} when the
           * given expression matches the plural expression according to CLDR rules.
           *
           * @usageNotes
           * ```
           * <some-element [ngPlural]="value">
           *   <ng-template ngPluralCase="=0">...</ng-template>
           *   <ng-template ngPluralCase="other">...</ng-template>
           * </some-element>
           *```
           *
           * See {@link NgPlural} for more details and example.
           *
           * @publicApi
           */
          class NgPluralCase {
            constructor(value, template, viewContainer, ngPlural) {
              this.value = value;
              const isANumber = !isNaN(Number(value));
              ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
            }
            static {
              this.ɵfac = function NgPluralCase_Factory(t) {
                return new (t || NgPluralCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('ngPluralCase'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgPlural, 1));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgPluralCase,
                selectors: [["", "ngPluralCase", ""]],
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPluralCase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngPluralCase]',
                standalone: true
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute,
                  args: ['ngPluralCase']
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.TemplateRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: NgPlural,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }];
            }, null);
          })();
          
          /**
           * @ngModule CommonModule
           *
           * @usageNotes
           *
           * Set the font of the containing element to the result of an expression.
           *
           * ```
           * <some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
           * ```
           *
           * Set the width of the containing element to a pixel value returned by an expression.
           *
           * ```
           * <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
           * ```
           *
           * Set a collection of style values using an expression that returns key-value pairs.
           *
           * ```
           * <some-element [ngStyle]="objExp">...</some-element>
           * ```
           *
           * @description
           *
           * An attribute directive that updates styles for the containing HTML element.
           * Sets one or more style properties, specified as colon-separated key-value pairs.
           * The key is a style name, with an optional `.<unit>` suffix
           * (such as 'top.px', 'font-style.em').
           * The value is an expression to be evaluated.
           * The resulting non-null value, expressed in the given unit,
           * is assigned to the given style property.
           * If the result of evaluation is null, the corresponding style is removed.
           *
           * @publicApi
           */
          class NgStyle {
            constructor(_ngEl, _differs, _renderer) {
              this._ngEl = _ngEl;
              this._differs = _differs;
              this._renderer = _renderer;
              this._ngStyle = null;
              this._differ = null;
            }
            set ngStyle(values) {
              this._ngStyle = values;
              if (!this._differ && values) {
                this._differ = this._differs.find(values).create();
              }
            }
            ngDoCheck() {
              if (this._differ) {
                const changes = this._differ.diff(this._ngStyle);
                if (changes) {
                  this._applyChanges(changes);
                }
              }
            }
            _setStyle(nameAndUnit, value) {
              const [name, unit] = nameAndUnit.split('.');
              const flags = name.indexOf('-') === -1 ? undefined : _angular_core__WEBPACK_IMPORTED_MODULE_0__.RendererStyleFlags2.DashCase;
              if (value != null) {
                this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);
              } else {
                this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);
              }
            }
            _applyChanges(changes) {
              changes.forEachRemovedItem(record => this._setStyle(record.key, null));
              changes.forEachAddedItem(record => this._setStyle(record.key, record.currentValue));
              changes.forEachChangedItem(record => this._setStyle(record.key, record.currentValue));
            }
            static {
              this.ɵfac = function NgStyle_Factory(t) {
                return new (t || NgStyle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgStyle,
                selectors: [["", "ngStyle", ""]],
                inputs: {
                  ngStyle: "ngStyle"
                },
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgStyle, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngStyle]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }];
            }, {
              ngStyle: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngStyle']
              }]
            });
          })();
          
          /**
           * @ngModule CommonModule
           *
           * @description
           *
           * Inserts an embedded view from a prepared `TemplateRef`.
           *
           * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.
           * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding
           * by the local template `let` declarations.
           *
           * @usageNotes
           * ```
           * <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>
           * ```
           *
           * Using the key `$implicit` in the context object will set its value as default.
           *
           * ### Example
           *
           * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
           *
           * @publicApi
           */
          class NgTemplateOutlet {
            constructor(_viewContainerRef) {
              this._viewContainerRef = _viewContainerRef;
              this._viewRef = null;
              /**
               * A context object to attach to the {@link EmbeddedViewRef}. This should be an
               * object, the object's keys will be available for binding by the local template `let`
               * declarations.
               * Using the key `$implicit` in the context object will set its value as default.
               */
              this.ngTemplateOutletContext = null;
              /**
               * A string defining the template reference and optionally the context object for the template.
               */
              this.ngTemplateOutlet = null;
              /** Injector to be used within the embedded view. */
              this.ngTemplateOutletInjector = null;
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (changes['ngTemplateOutlet'] || changes['ngTemplateOutletInjector']) {
                const viewContainerRef = this._viewContainerRef;
                if (this._viewRef) {
                  viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
                }
                if (this.ngTemplateOutlet) {
                  const {
                    ngTemplateOutlet: template,
                    ngTemplateOutletContext: context,
                    ngTemplateOutletInjector: injector
                  } = this;
                  this._viewRef = viewContainerRef.createEmbeddedView(template, context, injector ? {
                    injector
                  } : undefined);
                } else {
                  this._viewRef = null;
                }
              } else if (this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {
                this._viewRef.context = this.ngTemplateOutletContext;
              }
            }
            static {
              this.ɵfac = function NgTemplateOutlet_Factory(t) {
                return new (t || NgTemplateOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgTemplateOutlet,
                selectors: [["", "ngTemplateOutlet", ""]],
                inputs: {
                  ngTemplateOutletContext: "ngTemplateOutletContext",
                  ngTemplateOutlet: "ngTemplateOutlet",
                  ngTemplateOutletInjector: "ngTemplateOutletInjector"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTemplateOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngTemplateOutlet]',
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }];
            }, {
              ngTemplateOutletContext: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngTemplateOutlet: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ngTemplateOutletInjector: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          
          /**
           * A collection of Angular directives that are likely to be used in each and every Angular
           * application.
           */
          const COMMON_DIRECTIVES = [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase];
          function invalidPipeArgumentError(type, value) {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(type)}'`);
          }
          class SubscribableStrategy {
            createSubscription(async, updateLatestValue) {
              // Subscription can be side-effectful, and we don't want any signal reads which happen in the
              // side effect of the subscription to be tracked by a component's template when that
              // subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to
              // decouple from the current reactive context.
              //
              // `untracked` also prevents signal _writes_ which happen in the subscription side effect from
              // being treated as signal writes during the template evaluation (which throws errors).
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.untracked)(() => async.subscribe({
                next: updateLatestValue,
                error: e => {
                  throw e;
                }
              }));
            }
            dispose(subscription) {
              // See the comment in `createSubscription` above on the use of `untracked`.
              (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.untracked)(() => subscription.unsubscribe());
            }
          }
          class PromiseStrategy {
            createSubscription(async, updateLatestValue) {
              return async.then(updateLatestValue, e => {
                throw e;
              });
            }
            dispose(subscription) {}
          }
          const _promiseStrategy = new PromiseStrategy();
          const _subscribableStrategy = new SubscribableStrategy();
          /**
           * @ngModule CommonModule
           * @description
           *
           * Unwraps a value from an asynchronous primitive.
           *
           * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
           * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
           * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
           * potential memory leaks. When the reference of the expression changes, the `async` pipe
           * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.
           *
           * @usageNotes
           *
           * ### Examples
           *
           * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the
           * promise.
           *
           * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}
           *
           * It's also possible to use `async` with Observables. The example below binds the `time` Observable
           * to the view. The Observable continuously updates the view with the current time.
           *
           * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}
           *
           * @publicApi
           */
          class AsyncPipe {
            constructor(ref) {
              this._latestValue = null;
              this._subscription = null;
              this._obj = null;
              this._strategy = null;
              // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor
              // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.
              this._ref = ref;
            }
            ngOnDestroy() {
              if (this._subscription) {
                this._dispose();
              }
              // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate
              // potential memory leaks in Observables that could otherwise cause the view data to
              // be retained.
              // https://github.com/angular/angular/issues/17624
              this._ref = null;
            }
            transform(obj) {
              if (!this._obj) {
                if (obj) {
                  this._subscribe(obj);
                }
                return this._latestValue;
              }
              if (obj !== this._obj) {
                this._dispose();
                return this.transform(obj);
              }
              return this._latestValue;
            }
            _subscribe(obj) {
              this._obj = obj;
              this._strategy = this._selectStrategy(obj);
              this._subscription = this._strategy.createSubscription(obj, value => this._updateLatestValue(obj, value));
            }
            _selectStrategy(obj) {
              if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(obj)) {
                return _promiseStrategy;
              }
              if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisSubscribable"])(obj)) {
                return _subscribableStrategy;
              }
              throw invalidPipeArgumentError(AsyncPipe, obj);
            }
            _dispose() {
              // Note: `dispose` is only called if a subscription has been initialized before, indicating
              // that `this._strategy` is also available.
              this._strategy.dispose(this._subscription);
              this._latestValue = null;
              this._subscription = null;
              this._obj = null;
            }
            _updateLatestValue(async, value) {
              if (async === this._obj) {
                this._latestValue = value;
                // Note: `this._ref` is only cleared in `ngOnDestroy` so is known to be available when a
                // value is being updated.
                this._ref.markForCheck();
              }
            }
            static {
              this.ɵfac = function AsyncPipe_Factory(t) {
                return new (t || AsyncPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "async",
                type: AsyncPipe,
                pure: false,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AsyncPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'async',
                pure: false,
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }];
            }, null);
          })();
          
          /**
           * Transforms text to all lower case.
           *
           * @see {@link UpperCasePipe}
           * @see {@link TitleCasePipe}
           * @usageNotes
           *
           * The following example defines a view that allows the user to enter
           * text, and then uses the pipe to convert the input text to all lower case.
           *
           * <code-example path="common/pipes/ts/lowerupper_pipe.ts" region='LowerUpperPipe'></code-example>
           *
           * @ngModule CommonModule
           * @publicApi
           */
          class LowerCasePipe {
            transform(value) {
              if (value == null) return null;
              if (typeof value !== 'string') {
                throw invalidPipeArgumentError(LowerCasePipe, value);
              }
              return value.toLowerCase();
            }
            static {
              this.ɵfac = function LowerCasePipe_Factory(t) {
                return new (t || LowerCasePipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "lowercase",
                type: LowerCasePipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LowerCasePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'lowercase',
                standalone: true
              }]
            }], null, null);
          })();
          //
          // Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result
          // can be achieved by using /[0-9\p{L}]\S*/gu and also known as Unicode Property Escapes
          // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no
          // transpilation of this functionality down to ES5 without external tool, the only solution is
          // to use already transpiled form. Example can be found here -
          // https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1
          //
          const unicodeWordMatch = /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;
          /**
           * Transforms text to title case.
           * Capitalizes the first letter of each word and transforms the
           * rest of the word to lower case.
           * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
           *
           * @see {@link LowerCasePipe}
           * @see {@link UpperCasePipe}
           *
           * @usageNotes
           * The following example shows the result of transforming various strings into title case.
           *
           * <code-example path="common/pipes/ts/titlecase_pipe.ts" region='TitleCasePipe'></code-example>
           *
           * @ngModule CommonModule
           * @publicApi
           */
          class TitleCasePipe {
            transform(value) {
              if (value == null) return null;
              if (typeof value !== 'string') {
                throw invalidPipeArgumentError(TitleCasePipe, value);
              }
              return value.replace(unicodeWordMatch, txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase());
            }
            static {
              this.ɵfac = function TitleCasePipe_Factory(t) {
                return new (t || TitleCasePipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "titlecase",
                type: TitleCasePipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TitleCasePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'titlecase',
                standalone: true
              }]
            }], null, null);
          })();
          /**
           * Transforms text to all upper case.
           * @see {@link LowerCasePipe}
           * @see {@link TitleCasePipe}
           *
           * @ngModule CommonModule
           * @publicApi
           */
          class UpperCasePipe {
            transform(value) {
              if (value == null) return null;
              if (typeof value !== 'string') {
                throw invalidPipeArgumentError(UpperCasePipe, value);
              }
              return value.toUpperCase();
            }
            static {
              this.ɵfac = function UpperCasePipe_Factory(t) {
                return new (t || UpperCasePipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "uppercase",
                type: UpperCasePipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UpperCasePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'uppercase',
                standalone: true
              }]
            }], null, null);
          })();
          
          /**
           * The default date format of Angular date pipe, which corresponds to the following format:
           * `'MMM d,y'` (e.g. `Jun 15, 2015`)
           */
          const DEFAULT_DATE_FORMAT = 'mediumDate';
          
          /**
           * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).
           * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.
           *
           * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe
           */
          const DATE_PIPE_DEFAULT_TIMEZONE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('DATE_PIPE_DEFAULT_TIMEZONE');
          /**
           * DI token that allows to provide default configuration for the `DatePipe` instances in an
           * application. The value is an object which can include the following fields:
           * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`
           * will use the 'mediumDate' as a value.
           * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will
           * use the end-user's local system timezone.
           *
           * @see {@link DatePipeConfig}
           *
           * @usageNotes
           *
           * Various date pipe default values can be overwritten by providing this token with
           * the value that has this interface.
           *
           * For example:
           *
           * Override the default date format by providing a value using the token:
           * ```typescript
           * providers: [
           *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}
           * ]
           * ```
           *
           * Override the default timezone by providing a value using the token:
           * ```typescript
           * providers: [
           *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}
           * ]
           * ```
           */
          const DATE_PIPE_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('DATE_PIPE_DEFAULT_OPTIONS');
          // clang-format off
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a date value according to locale rules.
           *
           * `DatePipe` is executed only when it detects a pure change to the input value.
           * A pure change is either a change to a primitive input value
           * (such as `String`, `Number`, `Boolean`, or `Symbol`),
           * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).
           *
           * Note that mutating a `Date` object does not cause the pipe to be rendered again.
           * To ensure that the pipe is executed, you must create a new `Date` object.
           *
           * Only the `en-US` locale data comes with Angular. To localize dates
           * in another language, you must import the corresponding locale data.
           * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.
           *
           * The time zone of the formatted value can be specified either by passing it in as the second
           * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`
           * injection token. The value that is passed in as the second parameter takes precedence over
           * the one defined using the injection token.
           *
           * @see {@link formatDate}
           *
           *
           * @usageNotes
           *
           * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to
           * reformat the date on every change-detection cycle, treat the date as an immutable object
           * and change the reference when the pipe needs to run again.
           *
           * ### Pre-defined format options
           *
           * | Option        | Equivalent to                       | Examples (given in `en-US` locale)              |
           * |---------------|-------------------------------------|-------------------------------------------------|
           * | `'short'`     | `'M/d/yy, h:mm a'`                  | `6/15/15, 9:03 AM`                              |
           * | `'medium'`    | `'MMM d, y, h:mm:ss a'`             | `Jun 15, 2015, 9:03:01 AM`                      |
           * | `'long'`      | `'MMMM d, y, h:mm:ss a z'`          | `June 15, 2015 at 9:03:01 AM GMT+1`             |
           * | `'full'`      | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |
           * | `'shortDate'` | `'M/d/yy'`                          | `6/15/15`                                       |
           * | `'mediumDate'`| `'MMM d, y'`                        | `Jun 15, 2015`                                  |
           * | `'longDate'`  | `'MMMM d, y'`                       | `June 15, 2015`                                 |
           * | `'fullDate'`  | `'EEEE, MMMM d, y'`                 | `Monday, June 15, 2015`                         |
           * | `'shortTime'` | `'h:mm a'`                          | `9:03 AM`                                       |
           * | `'mediumTime'`| `'h:mm:ss a'`                       | `9:03:01 AM`                                    |
           * | `'longTime'`  | `'h:mm:ss a z'`                     | `9:03:01 AM GMT+1`                              |
           * | `'fullTime'`  | `'h:mm:ss a zzzz'`                  | `9:03:01 AM GMT+01:00`                          |
           *
           * ### Custom format options
           *
           * You can construct a format string using symbols to specify the components
           * of a date-time value, as described in the following table.
           * Format details depend on the locale.
           * Fields marked with (*) are only available in the extra data set for the given locale.
           *
           *  | Field type          | Format      | Description                                                   | Example Value                                              |
           *  |-------------------- |-------------|---------------------------------------------------------------|------------------------------------------------------------|
           *  | Era                 | G, GG & GGG | Abbreviated                                                   | AD                                                         |
           *  |                     | GGGG        | Wide                                                          | Anno Domini                                                |
           *  |                     | GGGGG       | Narrow                                                        | A                                                          |
           *  | Year                | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
           *  |                     | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
           *  |                     | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
           *  |                     | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
           *  | Week-numbering year | Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
           *  |                     | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
           *  |                     | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
           *  |                     | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
           *  | Month               | M           | Numeric: 1 digit                                              | 9, 12                                                      |
           *  |                     | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
           *  |                     | MMM         | Abbreviated                                                   | Sep                                                        |
           *  |                     | MMMM        | Wide                                                          | September                                                  |
           *  |                     | MMMMM       | Narrow                                                        | S                                                          |
           *  | Month standalone    | L           | Numeric: 1 digit                                              | 9, 12                                                      |
           *  |                     | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
           *  |                     | LLL         | Abbreviated                                                   | Sep                                                        |
           *  |                     | LLLL        | Wide                                                          | September                                                  |
           *  |                     | LLLLL       | Narrow                                                        | S                                                          |
           *  | Week of year        | w           | Numeric: minimum digits                                       | 1... 53                                                    |
           *  |                     | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |
           *  | Week of month       | W           | Numeric: 1 digit                                              | 1... 5                                                     |
           *  | Day of month        | d           | Numeric: minimum digits                                       | 1                                                          |
           *  |                     | dd          | Numeric: 2 digits + zero padded                               | 01                                                         |
           *  | Week day            | E, EE & EEE | Abbreviated                                                   | Tue                                                        |
           *  |                     | EEEE        | Wide                                                          | Tuesday                                                    |
           *  |                     | EEEEE       | Narrow                                                        | T                                                          |
           *  |                     | EEEEEE      | Short                                                         | Tu                                                         |
           *  | Week day standalone | c, cc       | Numeric: 1 digit                                              | 2                                                          |
           *  |                     | ccc         | Abbreviated                                                   | Tue                                                        |
           *  |                     | cccc        | Wide                                                          | Tuesday                                                    |
           *  |                     | ccccc       | Narrow                                                        | T                                                          |
           *  |                     | cccccc      | Short                                                         | Tu                                                         |
           *  | Period              | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |
           *  |                     | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |
           *  |                     | aaaaa       | Narrow                                                        | a/p                                                        |
           *  | Period*             | B, BB & BBB | Abbreviated                                                   | mid.                                                       |
           *  |                     | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
           *  |                     | BBBBB       | Narrow                                                        | md                                                         |
           *  | Period standalone*  | b, bb & bbb | Abbreviated                                                   | mid.                                                       |
           *  |                     | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
           *  |                     | bbbbb       | Narrow                                                        | md                                                         |
           *  | Hour 1-12           | h           | Numeric: minimum digits                                       | 1, 12                                                      |
           *  |                     | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |
           *  | Hour 0-23           | H           | Numeric: minimum digits                                       | 0, 23                                                      |
           *  |                     | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |
           *  | Minute              | m           | Numeric: minimum digits                                       | 8, 59                                                      |
           *  |                     | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |
           *  | Second              | s           | Numeric: minimum digits                                       | 0... 59                                                    |
           *  |                     | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |
           *  | Fractional seconds  | S           | Numeric: 1 digit                                              | 0... 9                                                     |
           *  |                     | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |
           *  |                     | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |
           *  | Zone                | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |
           *  |                     | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |
           *  |                     | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |
           *  |                     | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |
           *  |                     | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |
           *  |                     | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |
           *  |                     | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |
           *
           *
           * ### Format examples
           *
           * These examples transform a date into various formats,
           * assuming that `dateObj` is a JavaScript `Date` object for
           * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,
           * given in the local time for the `en-US` locale.
           *
           * ```
           * {{ dateObj | date }}               // output is 'Jun 15, 2015'
           * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'
           * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'
           * {{ dateObj | date:'mm:ss' }}       // output is '43:11'
           * {{ dateObj | date:"MMM dd, yyyy 'at' hh:mm a" }}  // output is 'Jun 15, 2015 at 09:43 PM'
           * ```
           *
           * ### Usage example
           *
           * The following component uses a date pipe to display the current date in different formats.
           *
           * ```
           * @Component({
           *  selector: 'date-pipe',
           *  template: `<div>
           *    <p>Today is {{today | date}}</p>
           *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>
           *    <p>The time is {{today | date:'h:mm a z'}}</p>
           *  </div>`
           * })
           * // Get the current date and time as a date-time value.
           * export class DatePipeComponent {
           *   today: number = Date.now();
           * }
           * ```
           *
           * @publicApi
           */
          // clang-format on
          class DatePipe {
            constructor(locale, defaultTimezone, defaultOptions) {
              this.locale = locale;
              this.defaultTimezone = defaultTimezone;
              this.defaultOptions = defaultOptions;
            }
            transform(value, format, timezone, locale) {
              if (value == null || value === '' || value !== value) return null;
              try {
                const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;
                const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;
                return formatDate(value, _format, locale || this.locale, _timezone);
              } catch (error) {
                throw invalidPipeArgumentError(DatePipe, error.message);
              }
            }
            static {
              this.ɵfac = function DatePipe_Factory(t) {
                return new (t || DatePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, 16), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](DATE_PIPE_DEFAULT_TIMEZONE, 24), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](DATE_PIPE_DEFAULT_OPTIONS, 24));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "date",
                type: DatePipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DatePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'date',
                pure: true,
                standalone: true
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [DATE_PIPE_DEFAULT_TIMEZONE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [DATE_PIPE_DEFAULT_OPTIONS]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, null);
          })();
          const _INTERPOLATION_REGEXP = /#/g;
          /**
           * @ngModule CommonModule
           * @description
           *
           * Maps a value to a string that pluralizes the value according to locale rules.
           *
           * @usageNotes
           *
           * ### Example
           *
           * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
           *
           * @publicApi
           */
          class I18nPluralPipe {
            constructor(_localization) {
              this._localization = _localization;
            }
            /**
             * @param value the number to be formatted
             * @param pluralMap an object that mimics the ICU format, see
             * https://unicode-org.github.io/icu/userguide/format_parse/messages/.
             * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by
             * default).
             */
            transform(value, pluralMap, locale) {
              if (value == null) return '';
              if (typeof pluralMap !== 'object' || pluralMap === null) {
                throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);
              }
              const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
              return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
            }
            static {
              this.ɵfac = function I18nPluralPipe_Factory(t) {
                return new (t || I18nPluralPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "i18nPlural",
                type: I18nPluralPipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nPluralPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'i18nPlural',
                pure: true,
                standalone: true
              }]
            }], function () {
              return [{
                type: NgLocalization
              }];
            }, null);
          })();
          
          /**
           * @ngModule CommonModule
           * @description
           *
           * Generic selector that displays the string that matches the current value.
           *
           * If none of the keys of the `mapping` match the `value`, then the content
           * of the `other` key is returned when present, otherwise an empty string is returned.
           *
           * @usageNotes
           *
           * ### Example
           *
           * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}
           *
           * @publicApi
           */
          class I18nSelectPipe {
            /**
             * @param value a string to be internationalized.
             * @param mapping an object that indicates the text that should be displayed
             * for different values of the provided `value`.
             */
            transform(value, mapping) {
              if (value == null) return '';
              if (typeof mapping !== 'object' || typeof value !== 'string') {
                throw invalidPipeArgumentError(I18nSelectPipe, mapping);
              }
              if (mapping.hasOwnProperty(value)) {
                return mapping[value];
              }
              if (mapping.hasOwnProperty('other')) {
                return mapping['other'];
              }
              return '';
            }
            static {
              this.ɵfac = function I18nSelectPipe_Factory(t) {
                return new (t || I18nSelectPipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "i18nSelect",
                type: I18nSelectPipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nSelectPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'i18nSelect',
                pure: true,
                standalone: true
              }]
            }], null, null);
          })();
          
          /**
           * @ngModule CommonModule
           * @description
           *
           * Converts a value into its JSON-format representation.  Useful for debugging.
           *
           * @usageNotes
           *
           * The following component uses a JSON pipe to convert an object
           * to JSON format, and displays the string in both formats for comparison.
           *
           * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}
           *
           * @publicApi
           */
          class JsonPipe {
            /**
             * @param value A value of any type to convert into a JSON-format string.
             */
            transform(value) {
              return JSON.stringify(value, null, 2);
            }
            static {
              this.ɵfac = function JsonPipe_Factory(t) {
                return new (t || JsonPipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "json",
                type: JsonPipe,
                pure: false,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'json',
                pure: false,
                standalone: true
              }]
            }], null, null);
          })();
          function makeKeyValuePair(key, value) {
            return {
              key: key,
              value: value
            };
          }
          /**
           * @ngModule CommonModule
           * @description
           *
           * Transforms Object or Map into an array of key value pairs.
           *
           * The output array will be ordered by keys.
           * By default the comparator will be by Unicode point value.
           * You can optionally pass a compareFn if your keys are complex types.
           *
           * @usageNotes
           * ### Examples
           *
           * This examples show how an Object or a Map can be iterated by ngFor with the use of this
           * keyvalue pipe.
           *
           * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}
           *
           * @publicApi
           */
          class KeyValuePipe {
            constructor(differs) {
              this.differs = differs;
              this.keyValues = [];
              this.compareFn = defaultComparator;
            }
            transform(input, compareFn = defaultComparator) {
              if (!input || !(input instanceof Map) && typeof input !== 'object') {
                return null;
              }
              if (!this.differ) {
                // make a differ for whatever type we've been passed in
                this.differ = this.differs.find(input).create();
              }
              const differChanges = this.differ.diff(input);
              const compareFnChanged = compareFn !== this.compareFn;
              if (differChanges) {
                this.keyValues = [];
                differChanges.forEachItem(r => {
                  this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));
                });
              }
              if (differChanges || compareFnChanged) {
                this.keyValues.sort(compareFn);
                this.compareFn = compareFn;
              }
              return this.keyValues;
            }
            static {
              this.ɵfac = function KeyValuePipe_Factory(t) {
                return new (t || KeyValuePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "keyvalue",
                type: KeyValuePipe,
                pure: false,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](KeyValuePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'keyvalue',
                pure: false,
                standalone: true
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.KeyValueDiffers
              }];
            }, null);
          })();
          function defaultComparator(keyValueA, keyValueB) {
            const a = keyValueA.key;
            const b = keyValueB.key;
            // if same exit with 0;
            if (a === b) return 0;
            // make sure that undefined are at the end of the sort.
            if (a === undefined) return 1;
            if (b === undefined) return -1;
            // make sure that nulls are at the end of the sort.
            if (a === null) return 1;
            if (b === null) return -1;
            if (typeof a == 'string' && typeof b == 'string') {
              return a < b ? -1 : 1;
            }
            if (typeof a == 'number' && typeof b == 'number') {
              return a - b;
            }
            if (typeof a == 'boolean' && typeof b == 'boolean') {
              return a < b ? -1 : 1;
            }
            // `a` and `b` are of different types. Compare their string values.
            const aString = String(a);
            const bString = String(b);
            return aString == bString ? 0 : aString < bString ? -1 : 1;
          }
          
          /**
           * @ngModule CommonModule
           * @description
           *
           * Formats a value according to digit options and locale rules.
           * Locale determines group sizing and separator,
           * decimal point character, and other locale-specific configurations.
           *
           * @see {@link formatNumber}
           *
           * @usageNotes
           *
           * ### digitsInfo
           *
           * The value's decimal representation is specified by the `digitsInfo`
           * parameter, written in the following format:<br>
           *
           * ```
           * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
           * ```
           *
           *  - `minIntegerDigits`:
           * The minimum number of integer digits before the decimal point.
           * Default is 1.
           *
           * - `minFractionDigits`:
           * The minimum number of digits after the decimal point.
           * Default is 0.
           *
           *  - `maxFractionDigits`:
           * The maximum number of digits after the decimal point.
           * Default is 3.
           *
           * If the formatted value is truncated it will be rounded using the "to-nearest" method:
           *
           * ```
           * {{3.6 | number: '1.0-0'}}
           * <!--will output '4'-->
           *
           * {{-3.6 | number:'1.0-0'}}
           * <!--will output '-4'-->
           * ```
           *
           * ### locale
           *
           * `locale` will format a value according to locale rules.
           * Locale determines group sizing and separator,
           * decimal point character, and other locale-specific configurations.
           *
           * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
           *
           * See [Setting your app locale](guide/i18n-common-locale-id).
           *
           * ### Example
           *
           * The following code shows how the pipe transforms values
           * according to various format specifications,
           * where the caller's default locale is `en-US`.
           *
           * <code-example path="common/pipes/ts/number_pipe.ts" region='NumberPipe'></code-example>
           *
           * @publicApi
           */
          class DecimalPipe {
            constructor(_locale) {
              this._locale = _locale;
            }
            /**
             * @param value The value to be formatted.
             * @param digitsInfo Sets digit and decimal representation.
             * [See more](#digitsinfo).
             * @param locale Specifies what locale format rules to use.
             * [See more](#locale).
             */
            transform(value, digitsInfo, locale) {
              if (!isValue(value)) return null;
              locale = locale || this._locale;
              try {
                const num = strToNumber(value);
                return formatNumber(num, locale, digitsInfo);
              } catch (error) {
                throw invalidPipeArgumentError(DecimalPipe, error.message);
              }
            }
            static {
              this.ɵfac = function DecimalPipe_Factory(t) {
                return new (t || DecimalPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "number",
                type: DecimalPipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DecimalPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'number',
                standalone: true
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
                }]
              }];
            }, null);
          })();
          /**
           * @ngModule CommonModule
           * @description
           *
           * Transforms a number to a percentage
           * string, formatted according to locale rules that determine group sizing and
           * separator, decimal-point character, and other locale-specific
           * configurations.
           *
           * @see {@link formatPercent}
           *
           * @usageNotes
           * The following code shows how the pipe transforms numbers
           * into text strings, according to various format specifications,
           * where the caller's default locale is `en-US`.
           *
           * <code-example path="common/pipes/ts/percent_pipe.ts" region='PercentPipe'></code-example>
           *
           * @publicApi
           */
          class PercentPipe {
            constructor(_locale) {
              this._locale = _locale;
            }
            /**
             *
             * @param value The number to be formatted as a percentage.
             * @param digitsInfo Decimal representation options, specified by a string
             * in the following format:<br>
             * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
             *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
             * Default is `1`.
             *   - `minFractionDigits`: The minimum number of digits after the decimal point.
             * Default is `0`.
             *   - `maxFractionDigits`: The maximum number of digits after the decimal point.
             * Default is `0`.
             * @param locale A locale code for the locale format rules to use.
             * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
             * See [Setting your app locale](guide/i18n-common-locale-id).
             */
            transform(value, digitsInfo, locale) {
              if (!isValue(value)) return null;
              locale = locale || this._locale;
              try {
                const num = strToNumber(value);
                return formatPercent(num, locale, digitsInfo);
              } catch (error) {
                throw invalidPipeArgumentError(PercentPipe, error.message);
              }
            }
            static {
              this.ɵfac = function PercentPipe_Factory(t) {
                return new (t || PercentPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "percent",
                type: PercentPipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PercentPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'percent',
                standalone: true
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
                }]
              }];
            }, null);
          })();
          /**
           * @ngModule CommonModule
           * @description
           *
           * Transforms a number to a currency string, formatted according to locale rules
           * that determine group sizing and separator, decimal-point character,
           * and other locale-specific configurations.
           *
           *
           * @see {@link getCurrencySymbol}
           * @see {@link formatCurrency}
           *
           * @usageNotes
           * The following code shows how the pipe transforms numbers
           * into text strings, according to various format specifications,
           * where the caller's default locale is `en-US`.
           *
           * <code-example path="common/pipes/ts/currency_pipe.ts" region='CurrencyPipe'></code-example>
           *
           * @publicApi
           */
          class CurrencyPipe {
            constructor(_locale, _defaultCurrencyCode = 'USD') {
              this._locale = _locale;
              this._defaultCurrencyCode = _defaultCurrencyCode;
            }
            /**
             *
             * @param value The number to be formatted as currency.
             * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
             * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
             * configured using the `DEFAULT_CURRENCY_CODE` injection token.
             * @param display The format for the currency indicator. One of the following:
             *   - `code`: Show the code (such as `USD`).
             *   - `symbol`(default): Show the symbol (such as `$`).
             *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
             * currency.
             * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
             * locale has no narrow symbol, uses the standard symbol for the locale.
             *   - String: Use the given string value instead of a code or a symbol.
             * For example, an empty string will suppress the currency & symbol.
             *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
             *
             * @param digitsInfo Decimal representation options, specified by a string
             * in the following format:<br>
             * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
             *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
             * Default is `1`.
             *   - `minFractionDigits`: The minimum number of digits after the decimal point.
             * Default is `2`.
             *   - `maxFractionDigits`: The maximum number of digits after the decimal point.
             * Default is `2`.
             * If not provided, the number will be formatted with the proper amount of digits,
             * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
             * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
             * @param locale A locale code for the locale format rules to use.
             * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
             * See [Setting your app locale](guide/i18n-common-locale-id).
             */
            transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {
              if (!isValue(value)) return null;
              locale = locale || this._locale;
              if (typeof display === 'boolean') {
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {
                  console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".`);
                }
                display = display ? 'symbol' : 'code';
              }
              let currency = currencyCode || this._defaultCurrencyCode;
              if (display !== 'code') {
                if (display === 'symbol' || display === 'symbol-narrow') {
                  currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);
                } else {
                  currency = display;
                }
              }
              try {
                const num = strToNumber(value);
                return formatCurrency(num, locale, currency, currencyCode, digitsInfo);
              } catch (error) {
                throw invalidPipeArgumentError(CurrencyPipe, error.message);
              }
            }
            static {
              this.ɵfac = function CurrencyPipe_Factory(t) {
                return new (t || CurrencyPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID, 16), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CURRENCY_CODE, 16));
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "currency",
                type: CurrencyPipe,
                pure: true,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CurrencyPipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'currency',
                standalone: true
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_CURRENCY_CODE]
                }]
              }];
            }, null);
          })();
          function isValue(value) {
            return !(value == null || value === '' || value !== value);
          }
          /**
           * Transforms a string into a number (if needed).
           */
          function strToNumber(value) {
            // Convert strings to numbers
            if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
              return Number(value);
            }
            if (typeof value !== 'number') {
              throw new Error(`${value} is not a number`);
            }
            return value;
          }
          
          /**
           * @ngModule CommonModule
           * @description
           *
           * Creates a new `Array` or `String` containing a subset (slice) of the elements.
           *
           * @usageNotes
           *
           * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`
           * and `String.prototype.slice()`.
           *
           * When operating on an `Array`, the returned `Array` is always a copy even when all
           * the elements are being returned.
           *
           * When operating on a blank value, the pipe returns the blank value.
           *
           * ### List Example
           *
           * This `ngFor` example:
           *
           * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}
           *
           * produces the following:
           *
           * ```html
           * <li>b</li>
           * <li>c</li>
           * ```
           *
           * ### String Examples
           *
           * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}
           *
           * @publicApi
           */
          class SlicePipe {
            transform(value, start, end) {
              if (value == null) return null;
              if (!this.supports(value)) {
                throw invalidPipeArgumentError(SlicePipe, value);
              }
              return value.slice(start, end);
            }
            supports(obj) {
              return typeof obj === 'string' || Array.isArray(obj);
            }
            static {
              this.ɵfac = function SlicePipe_Factory(t) {
                return new (t || SlicePipe)();
              };
            }
            static {
              this.ɵpipe = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
                name: "slice",
                type: SlicePipe,
                pure: false,
                standalone: true
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SlicePipe, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Pipe,
              args: [{
                name: 'slice',
                pure: false,
                standalone: true
              }]
            }], null, null);
          })();
          
          /**
           * @module
           * @description
           * This module provides a set of common Pipes.
           */
          /**
           * A collection of Angular pipes that are likely to be used in each and every application.
           */
          const COMMON_PIPES = [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe];
          
          // Note: This does not contain the location providers,
          // as they need some platform specific implementations to work.
          /**
           * Exports all the basic Angular directives and pipes,
           * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
           * Re-exported by `BrowserModule`, which is included automatically in the root
           * `AppModule` when you create a new app with the CLI `new` command.
           *
           * @publicApi
           */
          class CommonModule {
            static {
              this.ɵfac = function CommonModule_Factory(t) {
                return new (t || CommonModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: CommonModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CommonModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [COMMON_DIRECTIVES, COMMON_PIPES],
                exports: [COMMON_DIRECTIVES, COMMON_PIPES]
              }]
            }], null, null);
          })();
          const PLATFORM_BROWSER_ID = 'browser';
          const PLATFORM_SERVER_ID = 'server';
          const PLATFORM_WORKER_APP_ID = 'browserWorkerApp';
          const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';
          /**
           * Returns whether a platform id represents a browser platform.
           * @publicApi
           */
          function isPlatformBrowser(platformId) {
            return platformId === PLATFORM_BROWSER_ID;
          }
          /**
           * Returns whether a platform id represents a server platform.
           * @publicApi
           */
          function isPlatformServer(platformId) {
            return platformId === PLATFORM_SERVER_ID;
          }
          /**
           * Returns whether a platform id represents a web worker app platform.
           * @publicApi
           * @deprecated This function serves no purpose since the removal of the Webworker platform. It will
           *     always return `false`.
           */
          function isPlatformWorkerApp(platformId) {
            return platformId === PLATFORM_WORKER_APP_ID;
          }
          /**
           * Returns whether a platform id represents a web worker UI platform.
           * @publicApi
           * @deprecated This function serves no purpose since the removal of the Webworker platform. It will
           *     always return `false`.
           */
          function isPlatformWorkerUi(platformId) {
            return platformId === PLATFORM_WORKER_UI_ID;
          }
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of the common package.
           */
          /**
           * @publicApi
           */
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version('16.2.12');
          
          /**
           * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
           *
           * @publicApi
           */
          class ViewportScroller {
            // De-sugared tree-shakable injection
            // See #23917
            /** @nocollapse */
            static {
              this.ɵprov = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
                token: ViewportScroller,
                providedIn: 'root',
                factory: () => new BrowserViewportScroller((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT), window)
              });
            }
          }
          /**
           * Manages the scroll position for a browser window.
           */
          class BrowserViewportScroller {
            constructor(document, window) {
              this.document = document;
              this.window = window;
              this.offset = () => [0, 0];
            }
            /**
             * Configures the top offset used when scrolling to an anchor.
             * @param offset A position in screen coordinates (a tuple with x and y values)
             * or a function that returns the top offset position.
             *
             */
            setOffset(offset) {
              if (Array.isArray(offset)) {
                this.offset = () => offset;
              } else {
                this.offset = offset;
              }
            }
            /**
             * Retrieves the current scroll position.
             * @returns The position in screen coordinates.
             */
            getScrollPosition() {
              if (this.supportsScrolling()) {
                return [this.window.pageXOffset, this.window.pageYOffset];
              } else {
                return [0, 0];
              }
            }
            /**
             * Sets the scroll position.
             * @param position The new position in screen coordinates.
             */
            scrollToPosition(position) {
              if (this.supportsScrolling()) {
                this.window.scrollTo(position[0], position[1]);
              }
            }
            /**
             * Scrolls to an element and attempts to focus the element.
             *
             * Note that the function name here is misleading in that the target string may be an ID for a
             * non-anchor element.
             *
             * @param target The ID of an element or name of the anchor.
             *
             * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document
             * @see https://html.spec.whatwg.org/#scroll-to-fragid
             */
            scrollToAnchor(target) {
              if (!this.supportsScrolling()) {
                return;
              }
              const elSelected = findAnchorFromDocument(this.document, target);
              if (elSelected) {
                this.scrollToElement(elSelected);
                // After scrolling to the element, the spec dictates that we follow the focus steps for the
                // target. Rather than following the robust steps, simply attempt focus.
                //
                // @see https://html.spec.whatwg.org/#get-the-focusable-area
                // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus
                // @see https://html.spec.whatwg.org/#focusable-area
                elSelected.focus();
              }
            }
            /**
             * Disables automatic scroll restoration provided by the browser.
             */
            setHistoryScrollRestoration(scrollRestoration) {
              if (this.supportsScrolling()) {
                this.window.history.scrollRestoration = scrollRestoration;
              }
            }
            /**
             * Scrolls to an element using the native offset and the specified offset set on this scroller.
             *
             * The offset can be used when we know that there is a floating header and scrolling naively to an
             * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.
             */
            scrollToElement(el) {
              const rect = el.getBoundingClientRect();
              const left = rect.left + this.window.pageXOffset;
              const top = rect.top + this.window.pageYOffset;
              const offset = this.offset();
              this.window.scrollTo(left - offset[0], top - offset[1]);
            }
            supportsScrolling() {
              try {
                return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;
              } catch {
                return false;
              }
            }
          }
          function findAnchorFromDocument(document, target) {
            const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];
            if (documentResult) {
              return documentResult;
            }
            // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we
            // have to traverse the DOM manually and do the lookup through the shadow roots.
            if (typeof document.createTreeWalker === 'function' && document.body && typeof document.body.attachShadow === 'function') {
              const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);
              let currentNode = treeWalker.currentNode;
              while (currentNode) {
                const shadowRoot = currentNode.shadowRoot;
                if (shadowRoot) {
                  // Note that `ShadowRoot` doesn't support `getElementsByName`
                  // so we have to fall back to `querySelector`.
                  const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name="${target}"]`);
                  if (result) {
                    return result;
                  }
                }
                currentNode = treeWalker.nextNode();
              }
            }
            return null;
          }
          /**
           * Provides an empty implementation of the viewport scroller.
           */
          class NullViewportScroller {
            /**
             * Empty implementation
             */
            setOffset(offset) {}
            /**
             * Empty implementation
             */
            getScrollPosition() {
              return [0, 0];
            }
            /**
             * Empty implementation
             */
            scrollToPosition(position) {}
            /**
             * Empty implementation
             */
            scrollToAnchor(anchor) {}
            /**
             * Empty implementation
             */
            setHistoryScrollRestoration(scrollRestoration) {}
          }
          
          /**
           * A wrapper around the `XMLHttpRequest` constructor.
           *
           * @publicApi
           */
          class XhrFactory {}
          
          // Converts a string that represents a URL into a URL class instance.
          function getUrl(src, win) {
            // Don't use a base URL is the URL is absolute.
            return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href);
          }
          // Checks whether a URL is absolute (i.e. starts with `http://` or `https://`).
          function isAbsoluteUrl(src) {
            return /^https?:\/\//.test(src);
          }
          // Given a URL, extract the hostname part.
          // If a URL is a relative one - the URL is returned as is.
          function extractHostname(url) {
            return isAbsoluteUrl(url) ? new URL(url).hostname : url;
          }
          function isValidPath(path) {
            const isString = typeof path === 'string';
            if (!isString || path.trim() === '') {
              return false;
            }
            // Calling new URL() will throw if the path string is malformed
            try {
              const url = new URL(path);
              return true;
            } catch {
              return false;
            }
          }
          function normalizePath(path) {
            return path.endsWith('/') ? path.slice(0, -1) : path;
          }
          function normalizeSrc(src) {
            return src.startsWith('/') ? src.slice(1) : src;
          }
          
          /**
           * Noop image loader that does no transformation to the original src and just returns it as is.
           * This loader is used as a default one if more specific logic is not provided in an app config.
           *
           * @see {@link ImageLoader}
           * @see {@link NgOptimizedImage}
           */
          const noopImageLoader = config => config.src;
          /**
           * Injection token that configures the image loader function.
           *
           * @see {@link ImageLoader}
           * @see {@link NgOptimizedImage}
           * @publicApi
           */
          const IMAGE_LOADER = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('ImageLoader', {
            providedIn: 'root',
            factory: () => noopImageLoader
          });
          /**
           * Internal helper function that makes it easier to introduce custom image loaders for the
           * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI
           * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI
           * tokens managing preconnect check functionality.
           * @param buildUrlFn a function returning a full URL based on loader's configuration
           * @param exampleUrls example of full URLs for a given loader (used in error messages)
           * @returns a set of DI providers corresponding to the configured image loader
           */
          function createImageLoader(buildUrlFn, exampleUrls) {
            return function provideImageLoader(path) {
              if (!isValidPath(path)) {
                throwInvalidPathError(path, exampleUrls || []);
              }
              // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in
              // the individual loader functions.
              path = normalizePath(path);
              const loaderFn = config => {
                if (isAbsoluteUrl(config.src)) {
                  // Image loader functions expect an image file name (e.g. `my-image.png`)
                  // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,
                  // so the final absolute URL can be constructed.
                  // When an absolute URL is provided instead - the loader can not
                  // build a final URL, thus the error is thrown to indicate that.
                  throwUnexpectedAbsoluteUrlError(path, config.src);
                }
                return buildUrlFn(path, {
                  ...config,
                  src: normalizeSrc(config.src)
                });
              };
              const providers = [{
                provide: IMAGE_LOADER,
                useValue: loaderFn
              }];
              return providers;
            };
          }
          function throwInvalidPathError(path, exampleUrls) {
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode && `Image loader has detected an invalid path (\`${path}\`). ` + `To fix this, supply a path using one of the following formats: ${exampleUrls.join(' or ')}`);
          }
          function throwUnexpectedAbsoluteUrlError(path, url) {
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode && `Image loader has detected a \`<img>\` tag with an invalid \`ngSrc\` attribute: ${url}. ` + `This image loader expects \`ngSrc\` to be a relative URL - ` + `however the provided value is an absolute URL. ` + `To fix this, provide \`ngSrc\` as a path relative to the base URL ` + `configured for this loader (\`${path}\`).`);
          }
          
          /**
           * Function that generates an ImageLoader for [Cloudflare Image
           * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular
           * provider. Note: Cloudflare has multiple image products - this provider is specifically for
           * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.
           *
           * @param path Your domain name, e.g. https://mysite.com
           * @returns Provider that provides an ImageLoader function
           *
           * @publicApi
           */
          const provideCloudflareLoader = createImageLoader(createCloudflareUrl, ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);
          function createCloudflareUrl(path, config) {
            let params = `format=auto`;
            if (config.width) {
              params += `,width=${config.width}`;
            }
            // Cloudflare image URLs format:
            // https://developers.cloudflare.com/images/image-resizing/url-format/
            return `${path}/cdn-cgi/image/${params}/${config.src}`;
          }
          
          /**
           * Name and URL tester for Cloudinary.
           */
          const cloudinaryLoaderInfo = {
            name: 'Cloudinary',
            testUrl: isCloudinaryUrl
          };
          const CLOUDINARY_LOADER_REGEX = /https?\:\/\/[^\/]+\.cloudinary\.com\/.+/;
          /**
           * Tests whether a URL is from Cloudinary CDN.
           */
          function isCloudinaryUrl(url) {
            return CLOUDINARY_LOADER_REGEX.test(url);
          }
          /**
           * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.
           *
           * @param path Base URL of your Cloudinary images
           * This URL should match one of the following formats:
           * https://res.cloudinary.com/mysite
           * https://mysite.cloudinary.com
           * https://subdomain.mysite.com
           * @returns Set of providers to configure the Cloudinary loader.
           *
           * @publicApi
           */
          const provideCloudinaryLoader = createImageLoader(createCloudinaryUrl, ngDevMode ? ['https://res.cloudinary.com/mysite', 'https://mysite.cloudinary.com', 'https://subdomain.mysite.com'] : undefined);
          function createCloudinaryUrl(path, config) {
            // Cloudinary image URLformat:
            // https://cloudinary.com/documentation/image_transformations#transformation_url_structure
            // Example of a Cloudinary image URL:
            // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png
            let params = `f_auto,q_auto`; // sets image format and quality to "auto"
            if (config.width) {
              params += `,w_${config.width}`;
            }
            return `${path}/image/upload/${params}/${config.src}`;
          }
          
          /**
           * Name and URL tester for ImageKit.
           */
          const imageKitLoaderInfo = {
            name: 'ImageKit',
            testUrl: isImageKitUrl
          };
          const IMAGE_KIT_LOADER_REGEX = /https?\:\/\/[^\/]+\.imagekit\.io\/.+/;
          /**
           * Tests whether a URL is from ImageKit CDN.
           */
          function isImageKitUrl(url) {
            return IMAGE_KIT_LOADER_REGEX.test(url);
          }
          /**
           * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.
           *
           * @param path Base URL of your ImageKit images
           * This URL should match one of the following formats:
           * https://ik.imagekit.io/myaccount
           * https://subdomain.mysite.com
           * @returns Set of providers to configure the ImageKit loader.
           *
           * @publicApi
           */
          const provideImageKitLoader = createImageLoader(createImagekitUrl, ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);
          function createImagekitUrl(path, config) {
            // Example of an ImageKit image URL:
            // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg
            const {
              src,
              width
            } = config;
            let urlSegments;
            if (width) {
              const params = `tr:w-${width}`;
              urlSegments = [path, params, src];
            } else {
              urlSegments = [path, src];
            }
            return urlSegments.join('/');
          }
          
          /**
           * Name and URL tester for Imgix.
           */
          const imgixLoaderInfo = {
            name: 'Imgix',
            testUrl: isImgixUrl
          };
          const IMGIX_LOADER_REGEX = /https?\:\/\/[^\/]+\.imgix\.net\/.+/;
          /**
           * Tests whether a URL is from Imgix CDN.
           */
          function isImgixUrl(url) {
            return IMGIX_LOADER_REGEX.test(url);
          }
          /**
           * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.
           *
           * @param path path to the desired Imgix origin,
           * e.g. https://somepath.imgix.net or https://images.mysite.com
           * @returns Set of providers to configure the Imgix loader.
           *
           * @publicApi
           */
          const provideImgixLoader = createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);
          function createImgixUrl(path, config) {
            const url = new URL(`${path}/${config.src}`);
            // This setting ensures the smallest allowable format is set.
            url.searchParams.set('auto', 'format');
            if (config.width) {
              url.searchParams.set('w', config.width.toString());
            }
            return url.href;
          }
          
          // Assembles directive details string, useful for error messages.
          function imgDirectiveDetails(ngSrc, includeNgSrc = true) {
            const ngSrcInfo = includeNgSrc ? `(activated on an <img> element with the \`ngSrc="${ngSrc}"\`) ` : '';
            return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;
          }
          
          /**
           * Asserts that the application is in development mode. Throws an error if the application is in
           * production mode. This assert can be used to make sure that there is no dev-mode code invoked in
           * the prod mode accidentally.
           */
          function assertDevMode(checkName) {
            if (!ngDevMode) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, `Unexpected invocation of the ${checkName} in the prod mode. ` + `Please make sure that the prod mode is enabled for production builds.`);
            }
          }
          
          /**
           * Observer that detects whether an image with `NgOptimizedImage`
           * is treated as a Largest Contentful Paint (LCP) element. If so,
           * asserts that the image has the `priority` attribute.
           *
           * Note: this is a dev-mode only class and it does not appear in prod bundles,
           * thus there is no `ngDevMode` use in the code.
           *
           * Based on https://web.dev/lcp/#measure-lcp-in-javascript.
           */
          class LCPImageObserver {
            constructor() {
              // Map of full image URLs -> original `ngSrc` values.
              this.images = new Map();
              this.window = null;
              this.observer = null;
              assertDevMode('LCP checker');
              const win = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT).defaultView;
              if (typeof win !== 'undefined' && typeof PerformanceObserver !== 'undefined') {
                this.window = win;
                this.observer = this.initPerformanceObserver();
              }
            }
            /**
             * Inits PerformanceObserver and subscribes to LCP events.
             * Based on https://web.dev/lcp/#measure-lcp-in-javascript
             */
            initPerformanceObserver() {
              const observer = new PerformanceObserver(entryList => {
                const entries = entryList.getEntries();
                if (entries.length === 0) return;
                // We use the latest entry produced by the `PerformanceObserver` as the best
                // signal on which element is actually an LCP one. As an example, the first image to load on
                // a page, by virtue of being the only thing on the page so far, is often a LCP candidate
                // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.
                const lcpElement = entries[entries.length - 1];
                // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.
                // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint
                const imgSrc = lcpElement.element?.src ?? '';
                // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.
                if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:')) return;
                const img = this.images.get(imgSrc);
                if (!img) return;
                if (!img.priority && !img.alreadyWarnedPriority) {
                  img.alreadyWarnedPriority = true;
                  logMissingPriorityWarning(imgSrc);
                }
                if (img.modified && !img.alreadyWarnedModified) {
                  img.alreadyWarnedModified = true;
                  logModifiedWarning(imgSrc);
                }
              });
              observer.observe({
                type: 'largest-contentful-paint',
                buffered: true
              });
              return observer;
            }
            registerImage(rewrittenSrc, originalNgSrc, isPriority) {
              if (!this.observer) return;
              const newObservedImageState = {
                priority: isPriority,
                modified: false,
                alreadyWarnedModified: false,
                alreadyWarnedPriority: false
              };
              this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);
            }
            unregisterImage(rewrittenSrc) {
              if (!this.observer) return;
              this.images.delete(getUrl(rewrittenSrc, this.window).href);
            }
            updateImage(originalSrc, newSrc) {
              const originalUrl = getUrl(originalSrc, this.window).href;
              const img = this.images.get(originalUrl);
              if (img) {
                img.modified = true;
                this.images.set(getUrl(newSrc, this.window).href, img);
                this.images.delete(originalUrl);
              }
            }
            ngOnDestroy() {
              if (!this.observer) return;
              this.observer.disconnect();
              this.images.clear();
            }
            static {
              this.ɵfac = function LCPImageObserver_Factory(t) {
                return new (t || LCPImageObserver)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: LCPImageObserver,
                factory: LCPImageObserver.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LCPImageObserver, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          function logMissingPriorityWarning(ngSrc) {
            const directiveDetails = imgDirectiveDetails(ngSrc);
            console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` + `element but was not marked "priority". This image should be marked ` + `"priority" in order to prioritize its loading. ` + `To fix this, add the "priority" attribute.`));
          }
          function logModifiedWarning(ngSrc) {
            const directiveDetails = imgDirectiveDetails(ngSrc);
            console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` + `element and has had its "ngSrc" attribute modified. This can cause ` + `slower loading performance. It is recommended not to modify the "ngSrc" ` + `property on any image which could be the LCP element.`));
          }
          
          // Set of origins that are always excluded from the preconnect checks.
          const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);
          /**
           * Injection token to configure which origins should be excluded
           * from the preconnect checks. It can either be a single string or an array of strings
           * to represent a group of origins, for example:
           *
           * ```typescript
           *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}
           * ```
           *
           * or:
           *
           * ```typescript
           *  {provide: PRECONNECT_CHECK_BLOCKLIST,
           *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}
           * ```
           *
           * @publicApi
           */
          const PRECONNECT_CHECK_BLOCKLIST = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('PRECONNECT_CHECK_BLOCKLIST');
          /**
           * Contains the logic to detect whether an image, marked with the "priority" attribute
           * has a corresponding `<link rel="preconnect">` tag in the `document.head`.
           *
           * Note: this is a dev-mode only class, which should not appear in prod bundles,
           * thus there is no `ngDevMode` use in the code.
           */
          class PreconnectLinkChecker {
            constructor() {
              this.document = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT);
              /**
               * Set of <link rel="preconnect"> tags found on this page.
               * The `null` value indicates that there was no DOM query operation performed.
               */
              this.preconnectLinks = null;
              /*
               * Keep track of all already seen origin URLs to avoid repeating the same check.
               */
              this.alreadySeen = new Set();
              this.window = null;
              this.blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);
              assertDevMode('preconnect link checker');
              const win = this.document.defaultView;
              if (typeof win !== 'undefined') {
                this.window = win;
              }
              const blocklist = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(PRECONNECT_CHECK_BLOCKLIST, {
                optional: true
              });
              if (blocklist) {
                this.populateBlocklist(blocklist);
              }
            }
            populateBlocklist(origins) {
              if (Array.isArray(origins)) {
                deepForEach(origins, origin => {
                  this.blocklist.add(extractHostname(origin));
                });
              } else {
                this.blocklist.add(extractHostname(origins));
              }
            }
            /**
             * Checks that a preconnect resource hint exists in the head for the
             * given src.
             *
             * @param rewrittenSrc src formatted with loader
             * @param originalNgSrc ngSrc value
             */
            assertPreconnect(rewrittenSrc, originalNgSrc) {
              if (!this.window) return;
              const imgUrl = getUrl(rewrittenSrc, this.window);
              if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin)) return;
              // Register this origin as seen, so we don't check it again later.
              this.alreadySeen.add(imgUrl.origin);
              if (!this.preconnectLinks) {
                // Note: we query for preconnect links only *once* and cache the results
                // for the entire lifespan of an application, since it's unlikely that the
                // list would change frequently. This allows to make sure there are no
                // performance implications of making extra DOM lookups for each image.
                this.preconnectLinks = this.queryPreconnectLinks();
              }
              if (!this.preconnectLinks.has(imgUrl.origin)) {
                console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` + `image. Preconnecting to the origin(s) that serve priority images ensures that these ` + `images are delivered as soon as possible. To fix this, please add the following ` + `element into the <head> of the document:\n` + `  <link rel="preconnect" href="${imgUrl.origin}">`));
              }
            }
            queryPreconnectLinks() {
              const preconnectUrls = new Set();
              const selector = 'link[rel=preconnect]';
              const links = Array.from(this.document.querySelectorAll(selector));
              for (let link of links) {
                const url = getUrl(link.href, this.window);
                preconnectUrls.add(url.origin);
              }
              return preconnectUrls;
            }
            ngOnDestroy() {
              this.preconnectLinks?.clear();
              this.alreadySeen.clear();
            }
            static {
              this.ɵfac = function PreconnectLinkChecker_Factory(t) {
                return new (t || PreconnectLinkChecker)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: PreconnectLinkChecker,
                factory: PreconnectLinkChecker.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PreconnectLinkChecker, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          /**
           * Invokes a callback for each element in the array. Also invokes a callback
           * recursively for each nested array.
           */
          function deepForEach(input, fn) {
            for (let value of input) {
              Array.isArray(value) ? deepForEach(value, fn) : fn(value);
            }
          }
          
          /**
           * In SSR scenarios, a preload `<link>` element is generated for priority images.
           * Having a large number of preload tags may negatively affect the performance,
           * so we warn developers (by throwing an error) if the number of preloaded images
           * is above a certain threshold. This const specifies this threshold.
           */
          const DEFAULT_PRELOADED_IMAGES_LIMIT = 5;
          /**
           * Helps to keep track of priority images that already have a corresponding
           * preload tag (to avoid generating multiple preload tags with the same URL).
           *
           * This Set tracks the original src passed into the `ngSrc` input not the src after it has been
           * run through the specified `IMAGE_LOADER`.
           */
          const PRELOADED_IMAGES = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NG_OPTIMIZED_PRELOADED_IMAGES', {
            providedIn: 'root',
            factory: () => new Set()
          });
          
          /**
           * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It
           * will also track what images have already had preload link tags added so as to not duplicate link
           * tags.
           *
           * In dev mode this service will validate that the number of preloaded images does not exceed the
           * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.
           */
          class PreloadLinkCreator {
            constructor() {
              this.preloadedImages = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(PRELOADED_IMAGES);
              this.document = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(DOCUMENT);
            }
            /**
             * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the
             * server while using Angular Universal and SSR to kick off image loads for high priority images.
             *
             * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)
             * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`
             * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from
             * the CDN.
             *
             * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}
             *
             * @param renderer The `Renderer2` passed in from the directive
             * @param src The original src of the image that is set on the `ngSrc` input.
             * @param srcset The parsed and formatted srcset created from the `ngSrcset` input
             * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag
             */
            createPreloadLinkTag(renderer, src, srcset, sizes) {
              if (ngDevMode) {
                if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, ngDevMode && `The \`NgOptimizedImage\` directive has detected that more than ` + `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` + `This might negatively affect an overall performance of the page. ` + `To fix this, remove the "priority" attribute from images with less priority.`);
                }
              }
              if (this.preloadedImages.has(src)) {
                return;
              }
              this.preloadedImages.add(src);
              const preload = renderer.createElement('link');
              renderer.setAttribute(preload, 'as', 'image');
              renderer.setAttribute(preload, 'href', src);
              renderer.setAttribute(preload, 'rel', 'preload');
              renderer.setAttribute(preload, 'fetchpriority', 'high');
              if (sizes) {
                renderer.setAttribute(preload, 'imageSizes', sizes);
              }
              if (srcset) {
                renderer.setAttribute(preload, 'imageSrcset', srcset);
              }
              renderer.appendChild(this.document.head, preload);
            }
            static {
              this.ɵfac = function PreloadLinkCreator_Factory(t) {
                return new (t || PreloadLinkCreator)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: PreloadLinkCreator,
                factory: PreloadLinkCreator.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PreloadLinkCreator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,
           * an error is thrown. The image content (as a string) might be very long, thus making
           * it hard to read an error message if the entire string is included. This const defines
           * the number of characters that should be included into the error message. The rest
           * of the content is truncated.
           */
          const BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;
          /**
           * RegExpr to determine whether a src in a srcset is using width descriptors.
           * Should match something like: "100w, 200w".
           */
          const VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\s*\d+w\s*(,|$)){1,})$/;
          /**
           * RegExpr to determine whether a src in a srcset is using density descriptors.
           * Should match something like: "1x, 2x, 50x". Also supports decimals like "1.5x, 1.50x".
           */
          const VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\s*\d+(\.\d+)?x\s*(,|$)){1,})$/;
          /**
           * Srcset values with a density descriptor higher than this value will actively
           * throw an error. Such densities are not permitted as they cause image sizes
           * to be unreasonably large and slow down LCP.
           */
          const ABSOLUTE_SRCSET_DENSITY_CAP = 3;
          /**
           * Used only in error message text to communicate best practices, as we will
           * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.
           */
          const RECOMMENDED_SRCSET_DENSITY_CAP = 2;
          /**
           * Used in generating automatic density-based srcsets
           */
          const DENSITY_SRCSET_MULTIPLIERS = [1, 2];
          /**
           * Used to determine which breakpoints to use on full-width images
           */
          const VIEWPORT_BREAKPOINT_CUTOFF = 640;
          /**
           * Used to determine whether two aspect ratios are similar in value.
           */
          const ASPECT_RATIO_TOLERANCE = .1;
          /**
           * Used to determine whether the image has been requested at an overly
           * large size compared to the actual rendered image size (after taking
           * into account a typical device pixel ratio). In pixels.
           */
          const OVERSIZED_IMAGE_TOLERANCE = 1000;
          /**
           * Used to limit automatic srcset generation of very large sources for
           * fixed-size images. In pixels.
           */
          const FIXED_SRCSET_WIDTH_LIMIT = 1920;
          const FIXED_SRCSET_HEIGHT_LIMIT = 1080;
          /** Info about built-in loaders we can test for. */
          const BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo];
          const defaultConfig = {
            breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840]
          };
          /**
           * Injection token that configures the image optimized image functionality.
           *
           * @see {@link NgOptimizedImage}
           * @publicApi
           */
          const IMAGE_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('ImageConfig', {
            providedIn: 'root',
            factory: () => defaultConfig
          });
          /**
           * Directive that improves image loading performance by enforcing best practices.
           *
           * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is
           * prioritized by:
           * - Automatically setting the `fetchpriority` attribute on the `<img>` tag
           * - Lazy loading non-priority images by default
           * - Asserting that there is a corresponding preconnect link tag in the document head
           *
           * In addition, the directive:
           * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided
           * - Automatically generates a srcset
           * - Requires that `width` and `height` are set
           * - Warns if `width` or `height` have been set incorrectly
           * - Warns if the image will be visually distorted when rendered
           *
           * @usageNotes
           * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can
           * be imported directly.
           *
           * Follow the steps below to enable and use the directive:
           * 1. Import it into the necessary NgModule or a standalone Component.
           * 2. Optionally provide an `ImageLoader` if you use an image hosting service.
           * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.
           * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image
           * download.
           *
           * Step 1: import the `NgOptimizedImage` directive.
           *
           * ```typescript
           * import { NgOptimizedImage } from '@angular/common';
           *
           * // Include it into the necessary NgModule
           * @NgModule({
           *   imports: [NgOptimizedImage],
           * })
           * class AppModule {}
           *
           * // ... or a standalone Component
           * @Component({
           *   standalone: true
           *   imports: [NgOptimizedImage],
           * })
           * class MyStandaloneComponent {}
           * ```
           *
           * Step 2: configure a loader.
           *
           * To use the **default loader**: no additional code changes are necessary. The URL returned by the
           * generic loader will always match the value of "src". In other words, this loader applies no
           * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.
           *
           * To use an existing loader for a **third-party image service**: add the provider factory for your
           * chosen service to the `providers` array. In the example below, the Imgix loader is used:
           *
           * ```typescript
           * import {provideImgixLoader} from '@angular/common';
           *
           * // Call the function and add the result to the `providers` array:
           * providers: [
           *   provideImgixLoader("https://my.base.url/"),
           * ],
           * ```
           *
           * The `NgOptimizedImage` directive provides the following functions:
           * - `provideCloudflareLoader`
           * - `provideCloudinaryLoader`
           * - `provideImageKitLoader`
           * - `provideImgixLoader`
           *
           * If you use a different image provider, you can create a custom loader function as described
           * below.
           *
           * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI
           * token.
           *
           * ```typescript
           * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';
           *
           * // Configure the loader using the `IMAGE_LOADER` token.
           * providers: [
           *   {
           *      provide: IMAGE_LOADER,
           *      useValue: (config: ImageLoaderConfig) => {
           *        return `https://example.com/${config.src}-${config.width}.jpg}`;
           *      }
           *   },
           * ],
           * ```
           *
           * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.
           *
           * ```
           * <img ngSrc="logo.png" width="200" height="100">
           * ```
           *
           * @publicApi
           */
          class NgOptimizedImage {
            constructor() {
              this.imageLoader = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(IMAGE_LOADER);
              this.config = processConfig((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(IMAGE_CONFIG));
              this.renderer = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2);
              this.imgElement = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef).nativeElement;
              this.injector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector);
              this.isServer = isPlatformServer((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.PLATFORM_ID));
              this.preloadLinkCreator = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(PreloadLinkCreator);
              // a LCP image observer - should be injected only in the dev mode
              this.lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;
              /**
               * Calculate the rewritten `src` once and store it.
               * This is needed to avoid repetitive calculations and make sure the directive cleanup in the
               * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other
               * instance that might be already destroyed).
               */
              this._renderedSrc = null;
              /**
               * Indicates whether this image should have a high priority.
               */
              this.priority = false;
              /**
               * Disables automatic srcset generation for this image.
               */
              this.disableOptimizedSrcset = false;
              /**
               * Sets the image to "fill mode", which eliminates the height/width requirement and adds
               * styles such that the image fills its containing element.
               */
              this.fill = false;
            }
            /** @nodoc */
            ngOnInit() {
              if (ngDevMode) {
                const ngZone = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone);
                assertNonEmptyInput(this, 'ngSrc', this.ngSrc);
                assertValidNgSrcset(this, this.ngSrcset);
                assertNoConflictingSrc(this);
                if (this.ngSrcset) {
                  assertNoConflictingSrcset(this);
                }
                assertNotBase64Image(this);
                assertNotBlobUrl(this);
                if (this.fill) {
                  assertEmptyWidthAndHeight(this);
                  // This leaves the Angular zone to avoid triggering unnecessary change detection cycles when
                  // `load` tasks are invoked on images.
                  ngZone.runOutsideAngular(() => assertNonZeroRenderedHeight(this, this.imgElement, this.renderer));
                } else {
                  assertNonEmptyWidthAndHeight(this);
                  if (this.height !== undefined) {
                    assertGreaterThanZero(this, this.height, 'height');
                  }
                  if (this.width !== undefined) {
                    assertGreaterThanZero(this, this.width, 'width');
                  }
                  // Only check for distorted images when not in fill mode, where
                  // images may be intentionally stretched, cropped or letterboxed.
                  ngZone.runOutsideAngular(() => assertNoImageDistortion(this, this.imgElement, this.renderer));
                }
                assertValidLoadingInput(this);
                if (!this.ngSrcset) {
                  assertNoComplexSizes(this);
                }
                assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);
                assertNoNgSrcsetWithoutLoader(this, this.imageLoader);
                assertNoLoaderParamsWithoutLoader(this, this.imageLoader);
                if (this.lcpObserver !== null) {
                  const ngZone = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone);
                  ngZone.runOutsideAngular(() => {
                    this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);
                  });
                }
                if (this.priority) {
                  const checker = this.injector.get(PreconnectLinkChecker);
                  checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);
                }
              }
              this.setHostAttributes();
            }
            setHostAttributes() {
              // Must set width/height explicitly in case they are bound (in which case they will
              // only be reflected and not found by the browser)
              if (this.fill) {
                if (!this.sizes) {
                  this.sizes = '100vw';
                }
              } else {
                this.setHostAttribute('width', this.width.toString());
                this.setHostAttribute('height', this.height.toString());
              }
              this.setHostAttribute('loading', this.getLoadingBehavior());
              this.setHostAttribute('fetchpriority', this.getFetchPriority());
              // The `data-ng-img` attribute flags an image as using the directive, to allow
              // for analysis of the directive's performance.
              this.setHostAttribute('ng-img', 'true');
              // The `src` and `srcset` attributes should be set last since other attributes
              // could affect the image's loading behavior.
              const rewrittenSrcset = this.updateSrcAndSrcset();
              if (this.sizes) {
                this.setHostAttribute('sizes', this.sizes);
              }
              if (this.isServer && this.priority) {
                this.preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
              }
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (ngDevMode) {
                assertNoPostInitInputChange(this, changes, ['ngSrcset', 'width', 'height', 'priority', 'fill', 'loading', 'sizes', 'loaderParams', 'disableOptimizedSrcset']);
              }
              if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {
                const oldSrc = this._renderedSrc;
                this.updateSrcAndSrcset(true);
                const newSrc = this._renderedSrc;
                if (this.lcpObserver !== null && oldSrc && newSrc && oldSrc !== newSrc) {
                  const ngZone = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone);
                  ngZone.runOutsideAngular(() => {
                    this.lcpObserver?.updateImage(oldSrc, newSrc);
                  });
                }
              }
            }
            callImageLoader(configWithoutCustomParams) {
              let augmentedConfig = configWithoutCustomParams;
              if (this.loaderParams) {
                augmentedConfig.loaderParams = this.loaderParams;
              }
              return this.imageLoader(augmentedConfig);
            }
            getLoadingBehavior() {
              if (!this.priority && this.loading !== undefined) {
                return this.loading;
              }
              return this.priority ? 'eager' : 'lazy';
            }
            getFetchPriority() {
              return this.priority ? 'high' : 'auto';
            }
            getRewrittenSrc() {
              // ImageLoaderConfig supports setting a width property. However, we're not setting width here
              // because if the developer uses rendered width instead of intrinsic width in the HTML width
              // attribute, the image requested may be too small for 2x+ screens.
              if (!this._renderedSrc) {
                const imgConfig = {
                  src: this.ngSrc
                };
                // Cache calculated image src to reuse it later in the code.
                this._renderedSrc = this.callImageLoader(imgConfig);
              }
              return this._renderedSrc;
            }
            getRewrittenSrcset() {
              const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);
              const finalSrcs = this.ngSrcset.split(',').filter(src => src !== '').map(srcStr => {
                srcStr = srcStr.trim();
                const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width;
                return `${this.callImageLoader({
                  src: this.ngSrc,
                  width
                })} ${srcStr}`;
              });
              return finalSrcs.join(', ');
            }
            getAutomaticSrcset() {
              if (this.sizes) {
                return this.getResponsiveSrcset();
              } else {
                return this.getFixedSrcset();
              }
            }
            getResponsiveSrcset() {
              const {
                breakpoints
              } = this.config;
              let filteredBreakpoints = breakpoints;
              if (this.sizes?.trim() === '100vw') {
                // Since this is a full-screen-width image, our srcset only needs to include
                // breakpoints with full viewport widths.
                filteredBreakpoints = breakpoints.filter(bp => bp >= VIEWPORT_BREAKPOINT_CUTOFF);
              }
              const finalSrcs = filteredBreakpoints.map(bp => `${this.callImageLoader({
                src: this.ngSrc,
                width: bp
              })} ${bp}w`);
              return finalSrcs.join(', ');
            }
            updateSrcAndSrcset(forceSrcRecalc = false) {
              if (forceSrcRecalc) {
                // Reset cached value, so that the followup `getRewrittenSrc()` call
                // will recalculate it and update the cache.
                this._renderedSrc = null;
              }
              const rewrittenSrc = this.getRewrittenSrc();
              this.setHostAttribute('src', rewrittenSrc);
              let rewrittenSrcset = undefined;
              if (this.ngSrcset) {
                rewrittenSrcset = this.getRewrittenSrcset();
              } else if (this.shouldGenerateAutomaticSrcset()) {
                rewrittenSrcset = this.getAutomaticSrcset();
              }
              if (rewrittenSrcset) {
                this.setHostAttribute('srcset', rewrittenSrcset);
              }
              return rewrittenSrcset;
            }
            getFixedSrcset() {
              const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => `${this.callImageLoader({
                src: this.ngSrc,
                width: this.width * multiplier
              })} ${multiplier}x`);
              return finalSrcs.join(', ');
            }
            shouldGenerateAutomaticSrcset() {
              let oversizedImage = false;
              if (!this.sizes) {
                oversizedImage = this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT;
              }
              return !this.disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader && !oversizedImage;
            }
            /** @nodoc */
            ngOnDestroy() {
              if (ngDevMode) {
                if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {
                  this.lcpObserver.unregisterImage(this._renderedSrc);
                }
              }
            }
            setHostAttribute(name, value) {
              this.renderer.setAttribute(this.imgElement, name, value);
            }
            static {
              this.ɵfac = function NgOptimizedImage_Factory(t) {
                return new (t || NgOptimizedImage)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgOptimizedImage,
                selectors: [["img", "ngSrc", ""]],
                hostVars: 8,
                hostBindings: function NgOptimizedImage_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("position", ctx.fill ? "absolute" : null)("width", ctx.fill ? "100%" : null)("height", ctx.fill ? "100%" : null)("inset", ctx.fill ? "0px" : null);
                  }
                },
                inputs: {
                  ngSrc: ["ngSrc", "ngSrc", unwrapSafeUrl],
                  ngSrcset: "ngSrcset",
                  sizes: "sizes",
                  width: ["width", "width", _angular_core__WEBPACK_IMPORTED_MODULE_0__.numberAttribute],
                  height: ["height", "height", _angular_core__WEBPACK_IMPORTED_MODULE_0__.numberAttribute],
                  loading: "loading",
                  priority: ["priority", "priority", _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute],
                  loaderParams: "loaderParams",
                  disableOptimizedSrcset: ["disableOptimizedSrcset", "disableOptimizedSrcset", _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute],
                  fill: ["fill", "fill", _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute],
                  src: "src",
                  srcset: "srcset"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInputTransformsFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptimizedImage, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                standalone: true,
                selector: 'img[ngSrc]',
                host: {
                  '[style.position]': 'fill ? "absolute" : null',
                  '[style.width]': 'fill ? "100%" : null',
                  '[style.height]': 'fill ? "100%" : null',
                  '[style.inset]': 'fill ? "0px" : null'
                }
              }]
            }], null, {
              ngSrc: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  required: true,
                  transform: unwrapSafeUrl
                }]
              }],
              ngSrcset: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              sizes: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              width: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_0__.numberAttribute
                }]
              }],
              height: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_0__.numberAttribute
                }]
              }],
              loading: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              priority: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute
                }]
              }],
              loaderParams: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              disableOptimizedSrcset: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute
                }]
              }],
              fill: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute
                }]
              }],
              src: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              srcset: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /***** Helpers *****/
          /**
           * Sorts provided config breakpoints and uses defaults.
           */
          function processConfig(config) {
            let sortedBreakpoints = {};
            if (config.breakpoints) {
              sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);
            }
            return Object.assign({}, defaultConfig, config, sortedBreakpoints);
          }
          /***** Assert functions *****/
          /**
           * Verifies that there is no `src` set on a host element.
           */
          function assertNoConflictingSrc(dir) {
            if (dir.src) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \`src\` and \`ngSrc\` have been set. ` + `Supplying both of these attributes breaks lazy loading. ` + `The NgOptimizedImage directive sets \`src\` itself based on the value of \`ngSrc\`. ` + `To fix this, please remove the \`src\` attribute.`);
            }
          }
          /**
           * Verifies that there is no `srcset` set on a host element.
           */
          function assertNoConflictingSrcset(dir) {
            if (dir.srcset) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \`srcset\` and \`ngSrcset\` have been set. ` + `Supplying both of these attributes breaks lazy loading. ` + `The NgOptimizedImage directive sets \`srcset\` itself based on the value of ` + `\`ngSrcset\`. To fix this, please remove the \`srcset\` attribute.`);
            }
          }
          /**
           * Verifies that the `ngSrc` is not a Base64-encoded image.
           */
          function assertNotBase64Image(dir) {
            let ngSrc = dir.ngSrc.trim();
            if (ngSrc.startsWith('data:')) {
              if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {
                ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';
              }
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \`ngSrc\` is a Base64-encoded string ` + `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` + `To fix this, disable the NgOptimizedImage directive for this element ` + `by removing \`ngSrc\` and using a standard \`src\` attribute instead.`);
            }
          }
          /**
           * Verifies that the 'sizes' only includes responsive values.
           */
          function assertNoComplexSizes(dir) {
            let sizes = dir.sizes;
            if (sizes?.match(/((\)|,)\s|^)\d+px/)) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \`sizes\` was set to a string including ` + `pixel values. For automatic \`srcset\` generation, \`sizes\` must only include responsive ` + `values, such as \`sizes="50vw"\` or \`sizes="(min-width: 768px) 50vw, 100vw"\`. ` + `To fix this, modify the \`sizes\` attribute, or provide your own \`ngSrcset\` value directly.`);
            }
          }
          /**
           * Verifies that the `ngSrc` is not a Blob URL.
           */
          function assertNotBlobUrl(dir) {
            const ngSrc = dir.ngSrc.trim();
            if (ngSrc.startsWith('blob:')) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`ngSrc\` was set to a blob URL (${ngSrc}). ` + `Blob URLs are not supported by the NgOptimizedImage directive. ` + `To fix this, disable the NgOptimizedImage directive for this element ` + `by removing \`ngSrc\` and using a regular \`src\` attribute instead.`);
            }
          }
          /**
           * Verifies that the input is set to a non-empty string.
           */
          function assertNonEmptyInput(dir, name, value) {
            const isString = typeof value === 'string';
            const isEmptyString = isString && value.trim() === '';
            if (!isString || isEmptyString) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${name}\` has an invalid value ` + `(\`${value}\`). To fix this, change the value to a non-empty string.`);
            }
          }
          /**
           * Verifies that the `ngSrcset` is in a valid format, e.g. "100w, 200w" or "1x, 2x".
           */
          function assertValidNgSrcset(dir, value) {
            if (value == null) return;
            assertNonEmptyInput(dir, 'ngSrcset', value);
            const stringVal = value;
            const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);
            const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);
            if (isValidDensityDescriptor) {
              assertUnderDensityCap(dir, stringVal);
            }
            const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;
            if (!isValidSrcset) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`ngSrcset\` has an invalid value (\`${value}\`). ` + `To fix this, supply \`ngSrcset\` using a comma-separated list of one or more width ` + `descriptors (e.g. "100w, 200w") or density descriptors (e.g. "1x, 2x").`);
            }
          }
          function assertUnderDensityCap(dir, value) {
            const underDensityCap = value.split(',').every(num => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);
            if (!underDensityCap) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`ngSrcset\` contains an unsupported image density:` + `\`${value}\`. NgOptimizedImage generally recommends a max image density of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` + `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` + `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);
            }
          }
          /**
           * Creates a `RuntimeError` instance to represent a situation when an input is set after
           * the directive has initialized.
           */
          function postInitInputChangeError(dir, inputName) {
            let reason;
            if (inputName === 'width' || inputName === 'height') {
              reason = `Changing \`${inputName}\` may result in different attribute value ` + `applied to the underlying image element and cause layout shifts on a page.`;
            } else {
              reason = `Changing the \`${inputName}\` would have no effect on the underlying ` + `image element, because the resource loading has already occurred.`;
            }
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` was updated after initialization. ` + `The NgOptimizedImage directive will not react to this input change. ${reason} ` + `To fix this, either switch \`${inputName}\` to a static value ` + `or wrap the image element in an *ngIf that is gated on the necessary value.`);
          }
          /**
           * Verify that none of the listed inputs has changed.
           */
          function assertNoPostInitInputChange(dir, changes, inputs) {
            inputs.forEach(input => {
              const isUpdated = changes.hasOwnProperty(input);
              if (isUpdated && !changes[input].isFirstChange()) {
                if (input === 'ngSrc') {
                  // When the `ngSrc` input changes, we detect that only in the
                  // `ngOnChanges` hook, thus the `ngSrc` is already set. We use
                  // `ngSrc` in the error message, so we use a previous value, but
                  // not the updated one in it.
                  dir = {
                    ngSrc: changes[input].previousValue
                  };
                }
                throw postInitInputChangeError(dir, input);
              }
            });
          }
          /**
           * Verifies that a specified input is a number greater than 0.
           */
          function assertGreaterThanZero(dir, inputValue, inputName) {
            const validNumber = typeof inputValue === 'number' && inputValue > 0;
            const validString = typeof inputValue === 'string' && /^\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;
            if (!validNumber && !validString) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` has an invalid value. ` + `To fix this, provide \`${inputName}\` as a number greater than 0.`);
            }
          }
          /**
           * Verifies that the rendered image is not visually distorted. Effectively this is checking:
           * - Whether the "width" and "height" attributes reflect the actual dimensions of the image.
           * - Whether image styling is "correct" (see below for a longer explanation).
           */
          function assertNoImageDistortion(dir, img, renderer) {
            const removeListenerFn = renderer.listen(img, 'load', () => {
              removeListenerFn();
              const computedStyle = window.getComputedStyle(img);
              let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));
              let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));
              const boxSizing = computedStyle.getPropertyValue('box-sizing');
              if (boxSizing === 'border-box') {
                const paddingTop = computedStyle.getPropertyValue('padding-top');
                const paddingRight = computedStyle.getPropertyValue('padding-right');
                const paddingBottom = computedStyle.getPropertyValue('padding-bottom');
                const paddingLeft = computedStyle.getPropertyValue('padding-left');
                renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);
                renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);
              }
              const renderedAspectRatio = renderedWidth / renderedHeight;
              const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;
              const intrinsicWidth = img.naturalWidth;
              const intrinsicHeight = img.naturalHeight;
              const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;
              const suppliedWidth = dir.width;
              const suppliedHeight = dir.height;
              const suppliedAspectRatio = suppliedWidth / suppliedHeight;
              // Tolerance is used to account for the impact of subpixel rendering.
              // Due to subpixel rendering, the rendered, intrinsic, and supplied
              // aspect ratios of a correctly configured image may not exactly match.
              // For example, a `width=4030 height=3020` image might have a rendered
              // size of "1062w, 796.48h". (An aspect ratio of 1.334... vs. 1.333...)
              const inaccurateDimensions = Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;
              const stylingDistortion = nonZeroRenderedDimensions && Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;
              if (inaccurateDimensions) {
                console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` + `the aspect ratio indicated by the width and height attributes. ` + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + `(aspect-ratio: ${round(intrinsicAspectRatio)}). \nSupplied width and height attributes: ` + `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${round(suppliedAspectRatio)}). ` + `\nTo fix this, update the width and height attributes.`));
              } else if (stylingDistortion) {
                console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` + `does not match the image's intrinsic aspect ratio. ` + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + `(aspect-ratio: ${round(intrinsicAspectRatio)}). \nRendered image size: ` + `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` + `${round(renderedAspectRatio)}). \nThis issue can occur if "width" and "height" ` + `attributes are added to an image without updating the corresponding ` + `image styling. To fix this, adjust image styling. In most cases, ` + `adding "height: auto" or "width: auto" to the image styling will fix ` + `this issue.`));
              } else if (!dir.ngSrcset && nonZeroRenderedDimensions) {
                // If `ngSrcset` hasn't been set, sanity check the intrinsic size.
                const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;
                const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;
                const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;
                const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;
                if (oversizedWidth || oversizedHeight) {
                  console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` + `larger than necessary. ` + `\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` + `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` + `\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` + `\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` + `or consider using the "ngSrcset" and "sizes" attributes.`));
                }
              }
            });
          }
          /**
           * Verifies that a specified input is set.
           */
          function assertNonEmptyWidthAndHeight(dir) {
            let missingAttributes = [];
            if (dir.width === undefined) missingAttributes.push('width');
            if (dir.height === undefined) missingAttributes.push('height');
            if (missingAttributes.length > 0) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` + `are missing: ${missingAttributes.map(attr => `"${attr}"`).join(', ')}. ` + `Including "width" and "height" attributes will prevent image-related layout shifts. ` + `To fix this, include "width" and "height" attributes on the image tag or turn on ` + `"fill" mode with the \`fill\` attribute.`);
            }
          }
          /**
           * Verifies that width and height are not set. Used in fill mode, where those attributes don't make
           * sense.
           */
          function assertEmptyWidthAndHeight(dir) {
            if (dir.width || dir.height) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the attributes \`height\` and/or \`width\` are present ` + `along with the \`fill\` attribute. Because \`fill\` mode causes an image to fill its containing ` + `element, the size attributes have no effect and should be removed.`);
            }
          }
          /**
           * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides
           * guidance that this can be caused by the containing element's CSS position property.
           */
          function assertNonZeroRenderedHeight(dir, img, renderer) {
            const removeListenerFn = renderer.listen(img, 'load', () => {
              removeListenerFn();
              const renderedHeight = img.clientHeight;
              if (dir.fill && renderedHeight === 0) {
                console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` + `This is likely because the containing element does not have the CSS 'position' ` + `property set to one of the following: "relative", "fixed", or "absolute". ` + `To fix this problem, make sure the container element has the CSS 'position' ` + `property defined and the height of the element is not zero.`));
              }
            });
          }
          /**
           * Verifies that the `loading` attribute is set to a valid input &
           * is not used on priority images.
           */
          function assertValidLoadingInput(dir) {
            if (dir.loading && dir.priority) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` + `was used on an image that was marked "priority". ` + `Setting \`loading\` on priority images is not allowed ` + `because these images will always be eagerly loaded. ` + `To fix this, remove the “loading” attribute from the priority image.`);
            }
            const validInputs = ['auto', 'eager', 'lazy'];
            if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` + `has an invalid value (\`${dir.loading}\`). ` + `To fix this, provide a valid value ("lazy", "eager", or "auto").`);
            }
          }
          /**
           * Warns if NOT using a loader (falling back to the generic loader) and
           * the image appears to be hosted on one of the image CDNs for which
           * we do have a built-in image loader. Suggests switching to the
           * built-in loader.
           *
           * @param ngSrc Value of the ngSrc attribute
           * @param imageLoader ImageLoader provided
           */
          function assertNotMissingBuiltInLoader(ngSrc, imageLoader) {
            if (imageLoader === noopImageLoader) {
              let builtInLoaderName = '';
              for (const loader of BUILT_IN_LOADERS) {
                if (loader.testUrl(ngSrc)) {
                  builtInLoaderName = loader.name;
                  break;
                }
              }
              if (builtInLoaderName) {
                console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, `NgOptimizedImage: It looks like your images may be hosted on the ` + `${builtInLoaderName} CDN, but your app is not using Angular's ` + `built-in loader for that CDN. We recommend switching to use ` + `the built-in by calling \`provide${builtInLoaderName}Loader()\` ` + `in your \`providers\` and passing it your instance's base URL. ` + `If you don't want to use the built-in loader, define a custom ` + `loader function using IMAGE_LOADER to silence this warning.`));
              }
            }
          }
          /**
           * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).
           */
          function assertNoNgSrcsetWithoutLoader(dir, imageLoader) {
            if (dir.ngSrcset && imageLoader === noopImageLoader) {
              console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \`ngSrcset\` attribute is present but ` + `no image loader is configured (i.e. the default one is being used), ` + `which would result in the same image being used for all configured sizes. ` + `To fix this, provide a loader or remove the \`ngSrcset\` attribute from the image.`));
            }
          }
          /**
           * Warns if loaderParams is present and no loader is configured (i.e. the default one is being
           * used).
           */
          function assertNoLoaderParamsWithoutLoader(dir, imageLoader) {
            if (dir.loaderParams && imageLoader === noopImageLoader) {
              console.warn((0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵformatRuntimeError"])(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \`loaderParams\` attribute is present but ` + `no image loader is configured (i.e. the default one is being used), ` + `which means that the loaderParams data will not be consumed and will not affect the URL. ` + `To fix this, provide a custom loader or remove the \`loaderParams\` attribute from the image.`));
            }
          }
          function round(input) {
            return Number.isInteger(input) ? input : input.toFixed(2);
          }
          // Transform function to handle SafeValue input for ngSrc. This doesn't do any sanitization,
          // as that is not needed for img.src and img.srcset. This transform is purely for compatibility.
          function unwrapSafeUrl(value) {
            if (typeof value === 'string') {
              return value;
            }
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵunwrapSafeValue"])(value);
          }
          
          // These exports represent the set of symbols exposed as a public API.
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of the common package.
           */
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          // This file only reexports content of the `src` folder. Keep it that way.
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 6443:
          /*!********************************************************!*\
            !*** ./node_modules/@angular/common/fesm2022/http.mjs ***!
            \********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   FetchBackend: () => (/* binding */ FetchBackend),
          /* harmony export */   HTTP_INTERCEPTORS: () => (/* binding */ HTTP_INTERCEPTORS),
          /* harmony export */   HttpBackend: () => (/* binding */ HttpBackend),
          /* harmony export */   HttpClient: () => (/* binding */ HttpClient),
          /* harmony export */   HttpClientJsonpModule: () => (/* binding */ HttpClientJsonpModule),
          /* harmony export */   HttpClientModule: () => (/* binding */ HttpClientModule),
          /* harmony export */   HttpClientXsrfModule: () => (/* binding */ HttpClientXsrfModule),
          /* harmony export */   HttpContext: () => (/* binding */ HttpContext),
          /* harmony export */   HttpContextToken: () => (/* binding */ HttpContextToken),
          /* harmony export */   HttpErrorResponse: () => (/* binding */ HttpErrorResponse),
          /* harmony export */   HttpEventType: () => (/* binding */ HttpEventType),
          /* harmony export */   HttpFeatureKind: () => (/* binding */ HttpFeatureKind),
          /* harmony export */   HttpHandler: () => (/* binding */ HttpHandler),
          /* harmony export */   HttpHeaderResponse: () => (/* binding */ HttpHeaderResponse),
          /* harmony export */   HttpHeaders: () => (/* binding */ HttpHeaders),
          /* harmony export */   HttpParams: () => (/* binding */ HttpParams),
          /* harmony export */   HttpRequest: () => (/* binding */ HttpRequest),
          /* harmony export */   HttpResponse: () => (/* binding */ HttpResponse),
          /* harmony export */   HttpResponseBase: () => (/* binding */ HttpResponseBase),
          /* harmony export */   HttpUrlEncodingCodec: () => (/* binding */ HttpUrlEncodingCodec),
          /* harmony export */   HttpXhrBackend: () => (/* binding */ HttpXhrBackend),
          /* harmony export */   HttpXsrfTokenExtractor: () => (/* binding */ HttpXsrfTokenExtractor),
          /* harmony export */   JsonpClientBackend: () => (/* binding */ JsonpClientBackend),
          /* harmony export */   JsonpInterceptor: () => (/* binding */ JsonpInterceptor),
          /* harmony export */   provideHttpClient: () => (/* binding */ provideHttpClient),
          /* harmony export */   withFetch: () => (/* binding */ withFetch),
          /* harmony export */   withInterceptors: () => (/* binding */ withInterceptors),
          /* harmony export */   withInterceptorsFromDi: () => (/* binding */ withInterceptorsFromDi),
          /* harmony export */   withJsonpSupport: () => (/* binding */ withJsonpSupport),
          /* harmony export */   withNoXsrfProtection: () => (/* binding */ withNoXsrfProtection),
          /* harmony export */   withRequestsMadeViaParent: () => (/* binding */ withRequestsMadeViaParent),
          /* harmony export */   withXsrfConfiguration: () => (/* binding */ withXsrfConfiguration),
          /* harmony export */   "ɵHttpInterceptingHandler": () => (/* binding */ HttpInterceptorHandler),
          /* harmony export */   "ɵHttpInterceptorHandler": () => (/* binding */ HttpInterceptorHandler),
          /* harmony export */   "ɵwithHttpTransferCache": () => (/* binding */ withHttpTransferCache)
          /* harmony export */ });
          /* harmony import */ var C_Users_Milica_ElectronicPaymentSystem_PSP_psp_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 9204);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 5429);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 1903);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 271);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 9475);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 6647);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 8764);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 2435);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 316);
          
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          
          
          
          
          
          /**
           * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
           * `HttpResponse`.
           *
           * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
           * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
           * `HttpBackend`.
           *
           * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
           *
           * @publicApi
           */
          class HttpHandler {}
          /**
           * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
           *
           * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
           *
           * When injected, `HttpBackend` dispatches requests directly to the backend, without going
           * through the interceptor chain.
           *
           * @publicApi
           */
          class HttpBackend {}
          
          /**
           * Represents the header configuration options for an HTTP request.
           * Instances are immutable. Modifying methods return a cloned
           * instance with the change. The original object is never changed.
           *
           * @publicApi
           */
          class HttpHeaders {
            /**  Constructs a new HTTP header object with the given values.*/
            constructor(headers) {
              /**
               * Internal map of lowercased header names to the normalized
               * form of the name (the form seen first).
               */
              this.normalizedNames = new Map();
              /**
               * Queued updates to be materialized the next initialization.
               */
              this.lazyUpdate = null;
              if (!headers) {
                this.headers = new Map();
              } else if (typeof headers === 'string') {
                this.lazyInit = () => {
                  this.headers = new Map();
                  headers.split('\n').forEach(line => {
                    const index = line.indexOf(':');
                    if (index > 0) {
                      const name = line.slice(0, index);
                      const key = name.toLowerCase();
                      const value = line.slice(index + 1).trim();
                      this.maybeSetNormalizedName(name, key);
                      if (this.headers.has(key)) {
                        this.headers.get(key).push(value);
                      } else {
                        this.headers.set(key, [value]);
                      }
                    }
                  });
                };
              } else if (typeof Headers !== 'undefined' && headers instanceof Headers) {
                this.headers = new Map();
                headers.forEach((values, name) => {
                  this.setHeaderEntries(name, values);
                });
              } else {
                this.lazyInit = () => {
                  if (typeof ngDevMode === 'undefined' || ngDevMode) {
                    assertValidHeaders(headers);
                  }
                  this.headers = new Map();
                  Object.entries(headers).forEach(([name, values]) => {
                    this.setHeaderEntries(name, values);
                  });
                };
              }
            }
            /**
             * Checks for existence of a given header.
             *
             * @param name The header name to check for existence.
             *
             * @returns True if the header exists, false otherwise.
             */
            has(name) {
              this.init();
              return this.headers.has(name.toLowerCase());
            }
            /**
             * Retrieves the first value of a given header.
             *
             * @param name The header name.
             *
             * @returns The value string if the header exists, null otherwise
             */
            get(name) {
              this.init();
              const values = this.headers.get(name.toLowerCase());
              return values && values.length > 0 ? values[0] : null;
            }
            /**
             * Retrieves the names of the headers.
             *
             * @returns A list of header names.
             */
            keys() {
              this.init();
              return Array.from(this.normalizedNames.values());
            }
            /**
             * Retrieves a list of values for a given header.
             *
             * @param name The header name from which to retrieve values.
             *
             * @returns A string of values if the header exists, null otherwise.
             */
            getAll(name) {
              this.init();
              return this.headers.get(name.toLowerCase()) || null;
            }
            /**
             * Appends a new value to the existing set of values for a header
             * and returns them in a clone of the original instance.
             *
             * @param name The header name for which to append the values.
             * @param value The value to append.
             *
             * @returns A clone of the HTTP headers object with the value appended to the given header.
             */
            append(name, value) {
              return this.clone({
                name,
                value,
                op: 'a'
              });
            }
            /**
             * Sets or modifies a value for a given header in a clone of the original instance.
             * If the header already exists, its value is replaced with the given value
             * in the returned object.
             *
             * @param name The header name.
             * @param value The value or values to set or override for the given header.
             *
             * @returns A clone of the HTTP headers object with the newly set header value.
             */
            set(name, value) {
              return this.clone({
                name,
                value,
                op: 's'
              });
            }
            /**
             * Deletes values for a given header in a clone of the original instance.
             *
             * @param name The header name.
             * @param value The value or values to delete for the given header.
             *
             * @returns A clone of the HTTP headers object with the given value deleted.
             */
            delete(name, value) {
              return this.clone({
                name,
                value,
                op: 'd'
              });
            }
            maybeSetNormalizedName(name, lcName) {
              if (!this.normalizedNames.has(lcName)) {
                this.normalizedNames.set(lcName, name);
              }
            }
            init() {
              if (!!this.lazyInit) {
                if (this.lazyInit instanceof HttpHeaders) {
                  this.copyFrom(this.lazyInit);
                } else {
                  this.lazyInit();
                }
                this.lazyInit = null;
                if (!!this.lazyUpdate) {
                  this.lazyUpdate.forEach(update => this.applyUpdate(update));
                  this.lazyUpdate = null;
                }
              }
            }
            copyFrom(other) {
              other.init();
              Array.from(other.headers.keys()).forEach(key => {
                this.headers.set(key, other.headers.get(key));
                this.normalizedNames.set(key, other.normalizedNames.get(key));
              });
            }
            clone(update) {
              const clone = new HttpHeaders();
              clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;
              clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
              return clone;
            }
            applyUpdate(update) {
              const key = update.name.toLowerCase();
              switch (update.op) {
                case 'a':
                case 's':
                  let value = update.value;
                  if (typeof value === 'string') {
                    value = [value];
                  }
                  if (value.length === 0) {
                    return;
                  }
                  this.maybeSetNormalizedName(update.name, key);
                  const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];
                  base.push(...value);
                  this.headers.set(key, base);
                  break;
                case 'd':
                  const toDelete = update.value;
                  if (!toDelete) {
                    this.headers.delete(key);
                    this.normalizedNames.delete(key);
                  } else {
                    let existing = this.headers.get(key);
                    if (!existing) {
                      return;
                    }
                    existing = existing.filter(value => toDelete.indexOf(value) === -1);
                    if (existing.length === 0) {
                      this.headers.delete(key);
                      this.normalizedNames.delete(key);
                    } else {
                      this.headers.set(key, existing);
                    }
                  }
                  break;
              }
            }
            setHeaderEntries(name, values) {
              const headerValues = (Array.isArray(values) ? values : [values]).map(value => value.toString());
              const key = name.toLowerCase();
              this.headers.set(key, headerValues);
              this.maybeSetNormalizedName(name, key);
            }
            /**
             * @internal
             */
            forEach(fn) {
              this.init();
              Array.from(this.normalizedNames.keys()).forEach(key => fn(this.normalizedNames.get(key), this.headers.get(key)));
            }
          }
          /**
           * Verifies that the headers object has the right shape: the values
           * must be either strings, numbers or arrays. Throws an error if an invalid
           * header value is present.
           */
          function assertValidHeaders(headers) {
            for (const [key, value] of Object.entries(headers)) {
              if (!(typeof value === 'string' || typeof value === 'number') && !Array.isArray(value)) {
                throw new Error(`Unexpected value of the \`${key}\` header provided. ` + `Expecting either a string, a number or an array, but got: \`${value}\`.`);
              }
            }
          }
          
          /**
           * Provides encoding and decoding of URL parameter and query-string values.
           *
           * Serializes and parses URL parameter keys and values to encode and decode them.
           * If you pass URL query parameters without encoding,
           * the query parameters can be misinterpreted at the receiving end.
           *
           *
           * @publicApi
           */
          class HttpUrlEncodingCodec {
            /**
             * Encodes a key name for a URL parameter or query-string.
             * @param key The key name.
             * @returns The encoded key name.
             */
            encodeKey(key) {
              return standardEncoding(key);
            }
            /**
             * Encodes the value of a URL parameter or query-string.
             * @param value The value.
             * @returns The encoded value.
             */
            encodeValue(value) {
              return standardEncoding(value);
            }
            /**
             * Decodes an encoded URL parameter or query-string key.
             * @param key The encoded key name.
             * @returns The decoded key name.
             */
            decodeKey(key) {
              return decodeURIComponent(key);
            }
            /**
             * Decodes an encoded URL parameter or query-string value.
             * @param value The encoded value.
             * @returns The decoded value.
             */
            decodeValue(value) {
              return decodeURIComponent(value);
            }
          }
          function paramParser(rawParams, codec) {
            const map = new Map();
            if (rawParams.length > 0) {
              // The `window.location.search` can be used while creating an instance of the `HttpParams` class
              // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`
              // may start with the `?` char, so we strip it if it's present.
              const params = rawParams.replace(/^\?/, '').split('&');
              params.forEach(param => {
                const eqIdx = param.indexOf('=');
                const [key, val] = eqIdx == -1 ? [codec.decodeKey(param), ''] : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];
                const list = map.get(key) || [];
                list.push(val);
                map.set(key, list);
              });
            }
            return map;
          }
          /**
           * Encode input string with standard encodeURIComponent and then un-encode specific characters.
           */
          const STANDARD_ENCODING_REGEX = /%(\d[a-f0-9])/gi;
          const STANDARD_ENCODING_REPLACEMENTS = {
            '40': '@',
            '3A': ':',
            '24': '$',
            '2C': ',',
            '3B': ';',
            '3D': '=',
            '3F': '?',
            '2F': '/'
          };
          function standardEncoding(v) {
            return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s);
          }
          function valueToString(value) {
            return `${value}`;
          }
          /**
           * An HTTP request/response body that represents serialized parameters,
           * per the MIME type `application/x-www-form-urlencoded`.
           *
           * This class is immutable; all mutation operations return a new instance.
           *
           * @publicApi
           */
          class HttpParams {
            constructor(options = {}) {
              this.updates = null;
              this.cloneFrom = null;
              this.encoder = options.encoder || new HttpUrlEncodingCodec();
              if (!!options.fromString) {
                if (!!options.fromObject) {
                  throw new Error(`Cannot specify both fromString and fromObject.`);
                }
                this.map = paramParser(options.fromString, this.encoder);
              } else if (!!options.fromObject) {
                this.map = new Map();
                Object.keys(options.fromObject).forEach(key => {
                  const value = options.fromObject[key];
                  // convert the values to strings
                  const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];
                  this.map.set(key, values);
                });
              } else {
                this.map = null;
              }
            }
            /**
             * Reports whether the body includes one or more values for a given parameter.
             * @param param The parameter name.
             * @returns True if the parameter has one or more values,
             * false if it has no value or is not present.
             */
            has(param) {
              this.init();
              return this.map.has(param);
            }
            /**
             * Retrieves the first value for a parameter.
             * @param param The parameter name.
             * @returns The first value of the given parameter,
             * or `null` if the parameter is not present.
             */
            get(param) {
              this.init();
              const res = this.map.get(param);
              return !!res ? res[0] : null;
            }
            /**
             * Retrieves all values for a  parameter.
             * @param param The parameter name.
             * @returns All values in a string array,
             * or `null` if the parameter not present.
             */
            getAll(param) {
              this.init();
              return this.map.get(param) || null;
            }
            /**
             * Retrieves all the parameters for this body.
             * @returns The parameter names in a string array.
             */
            keys() {
              this.init();
              return Array.from(this.map.keys());
            }
            /**
             * Appends a new value to existing values for a parameter.
             * @param param The parameter name.
             * @param value The new value to add.
             * @return A new body with the appended value.
             */
            append(param, value) {
              return this.clone({
                param,
                value,
                op: 'a'
              });
            }
            /**
             * Constructs a new body with appended values for the given parameter name.
             * @param params parameters and values
             * @return A new body with the new value.
             */
            appendAll(params) {
              const updates = [];
              Object.keys(params).forEach(param => {
                const value = params[param];
                if (Array.isArray(value)) {
                  value.forEach(_value => {
                    updates.push({
                      param,
                      value: _value,
                      op: 'a'
                    });
                  });
                } else {
                  updates.push({
                    param,
                    value: value,
                    op: 'a'
                  });
                }
              });
              return this.clone(updates);
            }
            /**
             * Replaces the value for a parameter.
             * @param param The parameter name.
             * @param value The new value.
             * @return A new body with the new value.
             */
            set(param, value) {
              return this.clone({
                param,
                value,
                op: 's'
              });
            }
            /**
             * Removes a given value or all values from a parameter.
             * @param param The parameter name.
             * @param value The value to remove, if provided.
             * @return A new body with the given value removed, or with all values
             * removed if no value is specified.
             */
            delete(param, value) {
              return this.clone({
                param,
                value,
                op: 'd'
              });
            }
            /**
             * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are
             * separated by `&`s.
             */
            toString() {
              this.init();
              return this.keys().map(key => {
                const eKey = this.encoder.encodeKey(key);
                // `a: ['1']` produces `'a=1'`
                // `b: []` produces `''`
                // `c: ['1', '2']` produces `'c=1&c=2'`
                return this.map.get(key).map(value => eKey + '=' + this.encoder.encodeValue(value)).join('&');
              })
              // filter out empty values because `b: []` produces `''`
              // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't
              .filter(param => param !== '').join('&');
            }
            clone(update) {
              const clone = new HttpParams({
                encoder: this.encoder
              });
              clone.cloneFrom = this.cloneFrom || this;
              clone.updates = (this.updates || []).concat(update);
              return clone;
            }
            init() {
              if (this.map === null) {
                this.map = new Map();
              }
              if (this.cloneFrom !== null) {
                this.cloneFrom.init();
                this.cloneFrom.keys().forEach(key => this.map.set(key, this.cloneFrom.map.get(key)));
                this.updates.forEach(update => {
                  switch (update.op) {
                    case 'a':
                    case 's':
                      const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];
                      base.push(valueToString(update.value));
                      this.map.set(update.param, base);
                      break;
                    case 'd':
                      if (update.value !== undefined) {
                        let base = this.map.get(update.param) || [];
                        const idx = base.indexOf(valueToString(update.value));
                        if (idx !== -1) {
                          base.splice(idx, 1);
                        }
                        if (base.length > 0) {
                          this.map.set(update.param, base);
                        } else {
                          this.map.delete(update.param);
                        }
                      } else {
                        this.map.delete(update.param);
                        break;
                      }
                  }
                });
                this.cloneFrom = this.updates = null;
              }
            }
          }
          
          /**
           * A token used to manipulate and access values stored in `HttpContext`.
           *
           * @publicApi
           */
          class HttpContextToken {
            constructor(defaultValue) {
              this.defaultValue = defaultValue;
            }
          }
          /**
           * Http context stores arbitrary user defined values and ensures type safety without
           * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.
           *
           * This context is mutable and is shared between cloned requests unless explicitly specified.
           *
           * @usageNotes
           *
           * ### Usage Example
           *
           * ```typescript
           * // inside cache.interceptors.ts
           * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);
           *
           * export class CacheInterceptor implements HttpInterceptor {
           *
           *   intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {
           *     if (req.context.get(IS_CACHE_ENABLED) === true) {
           *       return ...;
           *     }
           *     return delegate.handle(req);
           *   }
           * }
           *
           * // inside a service
           *
           * this.httpClient.get('/api/weather', {
           *   context: new HttpContext().set(IS_CACHE_ENABLED, true)
           * }).subscribe(...);
           * ```
           *
           * @publicApi
           */
          class HttpContext {
            constructor() {
              this.map = new Map();
            }
            /**
             * Store a value in the context. If a value is already present it will be overwritten.
             *
             * @param token The reference to an instance of `HttpContextToken`.
             * @param value The value to store.
             *
             * @returns A reference to itself for easy chaining.
             */
            set(token, value) {
              this.map.set(token, value);
              return this;
            }
            /**
             * Retrieve the value associated with the given token.
             *
             * @param token The reference to an instance of `HttpContextToken`.
             *
             * @returns The stored value or default if one is defined.
             */
            get(token) {
              if (!this.map.has(token)) {
                this.map.set(token, token.defaultValue());
              }
              return this.map.get(token);
            }
            /**
             * Delete the value associated with the given token.
             *
             * @param token The reference to an instance of `HttpContextToken`.
             *
             * @returns A reference to itself for easy chaining.
             */
            delete(token) {
              this.map.delete(token);
              return this;
            }
            /**
             * Checks for existence of a given token.
             *
             * @param token The reference to an instance of `HttpContextToken`.
             *
             * @returns True if the token exists, false otherwise.
             */
            has(token) {
              return this.map.has(token);
            }
            /**
             * @returns a list of tokens currently stored in the context.
             */
            keys() {
              return this.map.keys();
            }
          }
          
          /**
           * Determine whether the given HTTP method may include a body.
           */
          function mightHaveBody(method) {
            switch (method) {
              case 'DELETE':
              case 'GET':
              case 'HEAD':
              case 'OPTIONS':
              case 'JSONP':
                return false;
              default:
                return true;
            }
          }
          /**
           * Safely assert whether the given value is an ArrayBuffer.
           *
           * In some execution environments ArrayBuffer is not defined.
           */
          function isArrayBuffer(value) {
            return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;
          }
          /**
           * Safely assert whether the given value is a Blob.
           *
           * In some execution environments Blob is not defined.
           */
          function isBlob(value) {
            return typeof Blob !== 'undefined' && value instanceof Blob;
          }
          /**
           * Safely assert whether the given value is a FormData instance.
           *
           * In some execution environments FormData is not defined.
           */
          function isFormData(value) {
            return typeof FormData !== 'undefined' && value instanceof FormData;
          }
          /**
           * Safely assert whether the given value is a URLSearchParams instance.
           *
           * In some execution environments URLSearchParams is not defined.
           */
          function isUrlSearchParams(value) {
            return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;
          }
          /**
           * An outgoing HTTP request with an optional typed body.
           *
           * `HttpRequest` represents an outgoing request, including URL, method,
           * headers, body, and other request configuration options. Instances should be
           * assumed to be immutable. To modify a `HttpRequest`, the `clone`
           * method should be used.
           *
           * @publicApi
           */
          class HttpRequest {
            constructor(method, url, third, fourth) {
              this.url = url;
              /**
               * The request body, or `null` if one isn't set.
               *
               * Bodies are not enforced to be immutable, as they can include a reference to any
               * user-defined data type. However, interceptors should take care to preserve
               * idempotence by treating them as such.
               */
              this.body = null;
              /**
               * Whether this request should be made in a way that exposes progress events.
               *
               * Progress events are expensive (change detection runs on each event) and so
               * they should only be requested if the consumer intends to monitor them.
               *
               * Note: The `FetchBackend` doesn't support progress report on uploads.
               */
              this.reportProgress = false;
              /**
               * Whether this request should be sent with outgoing credentials (cookies).
               */
              this.withCredentials = false;
              /**
               * The expected response type of the server.
               *
               * This is used to parse the response appropriately before returning it to
               * the requestee.
               */
              this.responseType = 'json';
              this.method = method.toUpperCase();
              // Next, need to figure out which argument holds the HttpRequestInit
              // options, if any.
              let options;
              // Check whether a body argument is expected. The only valid way to omit
              // the body argument is to use a known no-body method like GET.
              if (mightHaveBody(this.method) || !!fourth) {
                // Body is the third argument, options are the fourth.
                this.body = third !== undefined ? third : null;
                options = fourth;
              } else {
                // No body required, options are the third argument. The body stays null.
                options = third;
              }
              // If options have been passed, interpret them.
              if (options) {
                // Normalize reportProgress and withCredentials.
                this.reportProgress = !!options.reportProgress;
                this.withCredentials = !!options.withCredentials;
                // Override default response type of 'json' if one is provided.
                if (!!options.responseType) {
                  this.responseType = options.responseType;
                }
                // Override headers if they're provided.
                if (!!options.headers) {
                  this.headers = options.headers;
                }
                if (!!options.context) {
                  this.context = options.context;
                }
                if (!!options.params) {
                  this.params = options.params;
                }
              }
              // If no headers have been passed in, construct a new HttpHeaders instance.
              if (!this.headers) {
                this.headers = new HttpHeaders();
              }
              // If no context have been passed in, construct a new HttpContext instance.
              if (!this.context) {
                this.context = new HttpContext();
              }
              // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.
              if (!this.params) {
                this.params = new HttpParams();
                this.urlWithParams = url;
              } else {
                // Encode the parameters to a string in preparation for inclusion in the URL.
                const params = this.params.toString();
                if (params.length === 0) {
                  // No parameters, the visible URL is just the URL given at creation time.
                  this.urlWithParams = url;
                } else {
                  // Does the URL already have query parameters? Look for '?'.
                  const qIdx = url.indexOf('?');
                  // There are 3 cases to handle:
                  // 1) No existing parameters -> append '?' followed by params.
                  // 2) '?' exists and is followed by existing query string ->
                  //    append '&' followed by params.
                  // 3) '?' exists at the end of the url -> append params directly.
                  // This basically amounts to determining the character, if any, with
                  // which to join the URL and parameters.
                  const sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';
                  this.urlWithParams = url + sep + params;
                }
              }
            }
            /**
             * Transform the free-form body into a serialized format suitable for
             * transmission to the server.
             */
            serializeBody() {
              // If no body is present, no need to serialize it.
              if (this.body === null) {
                return null;
              }
              // Check whether the body is already in a serialized form. If so,
              // it can just be returned directly.
              if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) || isUrlSearchParams(this.body) || typeof this.body === 'string') {
                return this.body;
              }
              // Check whether the body is an instance of HttpUrlEncodedParams.
              if (this.body instanceof HttpParams) {
                return this.body.toString();
              }
              // Check whether the body is an object or array, and serialize with JSON if so.
              if (typeof this.body === 'object' || typeof this.body === 'boolean' || Array.isArray(this.body)) {
                return JSON.stringify(this.body);
              }
              // Fall back on toString() for everything else.
              return this.body.toString();
            }
            /**
             * Examine the body and attempt to infer an appropriate MIME type
             * for it.
             *
             * If no such type can be inferred, this method will return `null`.
             */
            detectContentTypeHeader() {
              // An empty body has no content type.
              if (this.body === null) {
                return null;
              }
              // FormData bodies rely on the browser's content type assignment.
              if (isFormData(this.body)) {
                return null;
              }
              // Blobs usually have their own content type. If it doesn't, then
              // no type can be inferred.
              if (isBlob(this.body)) {
                return this.body.type || null;
              }
              // Array buffers have unknown contents and thus no type can be inferred.
              if (isArrayBuffer(this.body)) {
                return null;
              }
              // Technically, strings could be a form of JSON data, but it's safe enough
              // to assume they're plain strings.
              if (typeof this.body === 'string') {
                return 'text/plain';
              }
              // `HttpUrlEncodedParams` has its own content-type.
              if (this.body instanceof HttpParams) {
                return 'application/x-www-form-urlencoded;charset=UTF-8';
              }
              // Arrays, objects, boolean and numbers will be encoded as JSON.
              if (typeof this.body === 'object' || typeof this.body === 'number' || typeof this.body === 'boolean') {
                return 'application/json';
              }
              // No type could be inferred.
              return null;
            }
            clone(update = {}) {
              // For method, url, and responseType, take the current value unless
              // it is overridden in the update hash.
              const method = update.method || this.method;
              const url = update.url || this.url;
              const responseType = update.responseType || this.responseType;
              // The body is somewhat special - a `null` value in update.body means
              // whatever current body is present is being overridden with an empty
              // body, whereas an `undefined` value in update.body implies no
              // override.
              const body = update.body !== undefined ? update.body : this.body;
              // Carefully handle the boolean options to differentiate between
              // `false` and `undefined` in the update args.
              const withCredentials = update.withCredentials !== undefined ? update.withCredentials : this.withCredentials;
              const reportProgress = update.reportProgress !== undefined ? update.reportProgress : this.reportProgress;
              // Headers and params may be appended to if `setHeaders` or
              // `setParams` are used.
              let headers = update.headers || this.headers;
              let params = update.params || this.params;
              // Pass on context if needed
              const context = update.context ?? this.context;
              // Check whether the caller has asked to add headers.
              if (update.setHeaders !== undefined) {
                // Set every requested header.
                headers = Object.keys(update.setHeaders).reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);
              }
              // Check whether the caller has asked to set params.
              if (update.setParams) {
                // Set every requested param.
                params = Object.keys(update.setParams).reduce((params, param) => params.set(param, update.setParams[param]), params);
              }
              // Finally, construct the new HttpRequest using the pieces from above.
              return new HttpRequest(method, url, body, {
                params,
                headers,
                context,
                reportProgress,
                responseType,
                withCredentials
              });
            }
          }
          
          /**
           * Type enumeration for the different kinds of `HttpEvent`.
           *
           * @publicApi
           */
          var HttpEventType;
          (function (HttpEventType) {
            /**
             * The request was sent out over the wire.
             */
            HttpEventType[HttpEventType["Sent"] = 0] = "Sent";
            /**
             * An upload progress event was received.
             *
             * Note: The `FetchBackend` doesn't support progress report on uploads.
             */
            HttpEventType[HttpEventType["UploadProgress"] = 1] = "UploadProgress";
            /**
             * The response status code and headers were received.
             */
            HttpEventType[HttpEventType["ResponseHeader"] = 2] = "ResponseHeader";
            /**
             * A download progress event was received.
             */
            HttpEventType[HttpEventType["DownloadProgress"] = 3] = "DownloadProgress";
            /**
             * The full response including the body was received.
             */
            HttpEventType[HttpEventType["Response"] = 4] = "Response";
            /**
             * A custom event from an interceptor or a backend.
             */
            HttpEventType[HttpEventType["User"] = 5] = "User";
          })(HttpEventType || (HttpEventType = {}));
          /**
           * Base class for both `HttpResponse` and `HttpHeaderResponse`.
           *
           * @publicApi
           */
          class HttpResponseBase {
            /**
             * Super-constructor for all responses.
             *
             * The single parameter accepted is an initialization hash. Any properties
             * of the response passed there will override the default values.
             */
            constructor(init, defaultStatus = 200 /* HttpStatusCode.Ok */, defaultStatusText = 'OK') {
              // If the hash has values passed, use them to initialize the response.
              // Otherwise use the default values.
              this.headers = init.headers || new HttpHeaders();
              this.status = init.status !== undefined ? init.status : defaultStatus;
              this.statusText = init.statusText || defaultStatusText;
              this.url = init.url || null;
              // Cache the ok value to avoid defining a getter.
              this.ok = this.status >= 200 && this.status < 300;
            }
          }
          /**
           * A partial HTTP response which only includes the status and header data,
           * but no response body.
           *
           * `HttpHeaderResponse` is a `HttpEvent` available on the response
           * event stream, only when progress events are requested.
           *
           * @publicApi
           */
          class HttpHeaderResponse extends HttpResponseBase {
            /**
             * Create a new `HttpHeaderResponse` with the given parameters.
             */
            constructor(init = {}) {
              super(init);
              this.type = HttpEventType.ResponseHeader;
            }
            /**
             * Copy this `HttpHeaderResponse`, overriding its contents with the
             * given parameter hash.
             */
            clone(update = {}) {
              // Perform a straightforward initialization of the new HttpHeaderResponse,
              // overriding the current parameters with new ones if given.
              return new HttpHeaderResponse({
                headers: update.headers || this.headers,
                status: update.status !== undefined ? update.status : this.status,
                statusText: update.statusText || this.statusText,
                url: update.url || this.url || undefined
              });
            }
          }
          /**
           * A full HTTP response, including a typed response body (which may be `null`
           * if one was not returned).
           *
           * `HttpResponse` is a `HttpEvent` available on the response event
           * stream.
           *
           * @publicApi
           */
          class HttpResponse extends HttpResponseBase {
            /**
             * Construct a new `HttpResponse`.
             */
            constructor(init = {}) {
              super(init);
              this.type = HttpEventType.Response;
              this.body = init.body !== undefined ? init.body : null;
            }
            clone(update = {}) {
              return new HttpResponse({
                body: update.body !== undefined ? update.body : this.body,
                headers: update.headers || this.headers,
                status: update.status !== undefined ? update.status : this.status,
                statusText: update.statusText || this.statusText,
                url: update.url || this.url || undefined
              });
            }
          }
          /**
           * A response that represents an error or failure, either from a
           * non-successful HTTP status, an error while executing the request,
           * or some other failure which occurred during the parsing of the response.
           *
           * Any error returned on the `Observable` response stream will be
           * wrapped in an `HttpErrorResponse` to provide additional context about
           * the state of the HTTP layer when the error occurred. The error property
           * will contain either a wrapped Error object or the error response returned
           * from the server.
           *
           * @publicApi
           */
          class HttpErrorResponse extends HttpResponseBase {
            constructor(init) {
              // Initialize with a default status of 0 / Unknown Error.
              super(init, 0, 'Unknown Error');
              this.name = 'HttpErrorResponse';
              /**
               * Errors are never okay, even when the status code is in the 2xx success range.
               */
              this.ok = false;
              // If the response was successful, then this was a parse error. Otherwise, it was
              // a protocol-level failure of some sort. Either the request failed in transit
              // or the server returned an unsuccessful status code.
              if (this.status >= 200 && this.status < 300) {
                this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;
              } else {
                this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;
              }
              this.error = init.error || null;
            }
          }
          
          /**
           * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
           * the given `body`. This function clones the object and adds the body.
           *
           * Note that the `responseType` *options* value is a String that identifies the
           * single data type of the response.
           * A single overload version of the method handles each response type.
           * The value of `responseType` cannot be a union, as the combined signature could imply.
           *
           */
          function addBody(options, body) {
            return {
              body,
              headers: options.headers,
              context: options.context,
              observe: options.observe,
              params: options.params,
              reportProgress: options.reportProgress,
              responseType: options.responseType,
              withCredentials: options.withCredentials
            };
          }
          /**
           * Performs HTTP requests.
           * This service is available as an injectable class, with methods to perform HTTP requests.
           * Each request method has multiple signatures, and the return type varies based on
           * the signature that is called (mainly the values of `observe` and `responseType`).
           *
           * Note that the `responseType` *options* value is a String that identifies the
           * single data type of the response.
           * A single overload version of the method handles each response type.
           * The value of `responseType` cannot be a union, as the combined signature could imply.
          
           *
           * @usageNotes
           * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.
           *
           * ### HTTP Request Example
           *
           * ```
           *  // GET heroes whose name contains search term
           * searchHeroes(term: string): observable<Hero[]>{
           *
           *  const params = new HttpParams({fromString: 'name=term'});
           *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
           * }
           * ```
           *
           * Alternatively, the parameter string can be used without invoking HttpParams
           * by directly joining to the URL.
           * ```
           * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});
           * ```
           *
           *
           * ### JSONP Example
           * ```
           * requestJsonp(url, callback = 'callback') {
           *  return this.httpClient.jsonp(this.heroesURL, callback);
           * }
           * ```
           *
           * ### PATCH Example
           * ```
           * // PATCH one of the heroes' name
           * patchHero (id: number, heroName: string): Observable<{}> {
           * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42
           *  return this.httpClient.patch(url, {name: heroName}, httpOptions)
           *    .pipe(catchError(this.handleError('patchHero')));
           * }
           * ```
           *
           * @see [HTTP Guide](guide/understanding-communicating-with-http)
           * @see [HTTP Request](api/common/http/HttpRequest)
           *
           * @publicApi
           */
          class HttpClient {
            constructor(handler) {
              this.handler = handler;
            }
            /**
             * Constructs an observable for a generic HTTP request that, when subscribed,
             * fires the request through the chain of registered interceptors and on to the
             * server.
             *
             * You can pass an `HttpRequest` directly as the only parameter. In this case,
             * the call returns an observable of the raw `HttpEvent` stream.
             *
             * Alternatively you can pass an HTTP method as the first parameter,
             * a URL string as the second, and an options hash containing the request body as the third.
             * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
             * type of returned observable.
             *   * The `responseType` value determines how a successful response body is parsed.
             *   * If `responseType` is the default `json`, you can pass a type interface for the resulting
             * object as a type parameter to the call.
             *
             * The `observe` value determines the return type, according to what you are interested in
             * observing.
             *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
             * progress events by default.
             *   * An `observe` value of response returns an observable of `HttpResponse<T>`,
             * where the `T` parameter depends on the `responseType` and any optionally provided type
             * parameter.
             *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
             *
             */
            request(first, url, options = {}) {
              let req;
              // First, check whether the primary argument is an instance of `HttpRequest`.
              if (first instanceof HttpRequest) {
                // It is. The other arguments must be undefined (per the signatures) and can be
                // ignored.
                req = first;
              } else {
                // It's a string, so it represents a URL. Construct a request based on it,
                // and incorporate the remaining arguments (assuming `GET` unless a method is
                // provided.
                // Figure out the headers.
                let headers = undefined;
                if (options.headers instanceof HttpHeaders) {
                  headers = options.headers;
                } else {
                  headers = new HttpHeaders(options.headers);
                }
                // Sort out parameters.
                let params = undefined;
                if (!!options.params) {
                  if (options.params instanceof HttpParams) {
                    params = options.params;
                  } else {
                    params = new HttpParams({
                      fromObject: options.params
                    });
                  }
                }
                // Construct the request.
                req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {
                  headers,
                  context: options.context,
                  params,
                  reportProgress: options.reportProgress,
                  // By default, JSON is assumed to be returned for all calls.
                  responseType: options.responseType || 'json',
                  withCredentials: options.withCredentials
                });
              }
              // Start with an Observable.of() the initial request, and run the handler (which
              // includes all interceptors) inside a concatMap(). This way, the handler runs
              // inside an Observable chain, which causes interceptors to be re-run on every
              // subscription (this also makes retries re-run the handler, including interceptors).
              const events$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(req).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.concatMap)(req => this.handler.handle(req)));
              // If coming via the API signature which accepts a previously constructed HttpRequest,
              // the only option is to get the event stream. Otherwise, return the event stream if
              // that is what was requested.
              if (first instanceof HttpRequest || options.observe === 'events') {
                return events$;
              }
              // The requested stream contains either the full response or the body. In either
              // case, the first step is to filter the event stream to extract a stream of
              // responses(s).
              const res$ = events$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.filter)(event => event instanceof HttpResponse));
              // Decide which stream to return.
              switch (options.observe || 'body') {
                case 'body':
                  // The requested stream is the body. Map the response stream to the response
                  // body. This could be done more simply, but a misbehaving interceptor might
                  // transform the response body into a different format and ignore the requested
                  // responseType. Guard against this by validating that the response is of the
                  // requested type.
                  switch (req.responseType) {
                    case 'arraybuffer':
                      return res$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(res => {
                        // Validate that the body is an ArrayBuffer.
                        if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
                          throw new Error('Response is not an ArrayBuffer.');
                        }
                        return res.body;
                      }));
                    case 'blob':
                      return res$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(res => {
                        // Validate that the body is a Blob.
                        if (res.body !== null && !(res.body instanceof Blob)) {
                          throw new Error('Response is not a Blob.');
                        }
                        return res.body;
                      }));
                    case 'text':
                      return res$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(res => {
                        // Validate that the body is a string.
                        if (res.body !== null && typeof res.body !== 'string') {
                          throw new Error('Response is not a string.');
                        }
                        return res.body;
                      }));
                    case 'json':
                    default:
                      // No validation needed for JSON responses, as they can be of any type.
                      return res$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(res => res.body));
                  }
                case 'response':
                  // The response stream was requested directly, so return it.
                  return res$;
                default:
                  // Guard against new future observe types being added.
                  throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);
              }
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `DELETE` request to execute on the server. See the individual overloads for
             * details on the return type.
             *
             * @param url     The endpoint URL.
             * @param options The HTTP options to send with the request.
             *
             */
            delete(url, options = {}) {
              return this.request('DELETE', url, options);
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `GET` request to execute on the server. See the individual overloads for
             * details on the return type.
             */
            get(url, options = {}) {
              return this.request('GET', url, options);
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `HEAD` request to execute on the server. The `HEAD` method returns
             * meta information about the resource without transferring the
             * resource itself. See the individual overloads for
             * details on the return type.
             */
            head(url, options = {}) {
              return this.request('HEAD', url, options);
            }
            /**
             * Constructs an `Observable` that, when subscribed, causes a request with the special method
             * `JSONP` to be dispatched via the interceptor pipeline.
             * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
             * API endpoints that don't support newer,
             * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
             * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
             * requests even if the API endpoint is not located on the same domain (origin) as the client-side
             * application making the request.
             * The endpoint API must support JSONP callback for JSONP requests to work.
             * The resource API returns the JSON response wrapped in a callback function.
             * You can pass the callback function name as one of the query parameters.
             * Note that JSONP requests can only be used with `GET` requests.
             *
             * @param url The resource URL.
             * @param callbackParam The callback function name.
             *
             */
            jsonp(url, callbackParam) {
              return this.request('JSONP', url, {
                params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
                observe: 'body',
                responseType: 'json'
              });
            }
            /**
             * Constructs an `Observable` that, when subscribed, causes the configured
             * `OPTIONS` request to execute on the server. This method allows the client
             * to determine the supported HTTP methods and other capabilities of an endpoint,
             * without implying a resource action. See the individual overloads for
             * details on the return type.
             */
            options(url, options = {}) {
              return this.request('OPTIONS', url, options);
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `PATCH` request to execute on the server. See the individual overloads for
             * details on the return type.
             */
            patch(url, body, options = {}) {
              return this.request('PATCH', url, addBody(options, body));
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `POST` request to execute on the server. The server responds with the location of
             * the replaced resource. See the individual overloads for
             * details on the return type.
             */
            post(url, body, options = {}) {
              return this.request('POST', url, addBody(options, body));
            }
            /**
             * Constructs an observable that, when subscribed, causes the configured
             * `PUT` request to execute on the server. The `PUT` method replaces an existing resource
             * with a new set of values.
             * See the individual overloads for details on the return type.
             */
            put(url, body, options = {}) {
              return this.request('PUT', url, addBody(options, body));
            }
            static {
              this.ɵfac = function HttpClient_Factory(t) {
                return new (t || HttpClient)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](HttpHandler));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: HttpClient,
                factory: HttpClient.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpClient, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: HttpHandler
              }];
            }, null);
          })();
          const XSSI_PREFIX$1 = /^\)\]\}',?\n/;
          const REQUEST_URL_HEADER = `X-Request-URL`;
          /**
           * Determine an appropriate URL for the response, by checking either
           * response url or the X-Request-URL header.
           */
          function getResponseUrl$1(response) {
            if (response.url) {
              return response.url;
            }
            // stored as lowercase in the map
            const xRequestUrl = REQUEST_URL_HEADER.toLocaleLowerCase();
            return response.headers.get(xRequestUrl);
          }
          /**
           * Uses `fetch` to send requests to a backend server.
           *
           * This `FetchBackend` requires the support of the
           * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all
           * supported browsers and on Node.js v18 or later.
           *
           * @see {@link HttpHandler}
           *
           * @publicApi
           * @developerPreview
           */
          class FetchBackend {
            constructor() {
              // We need to bind the native fetch to its context or it will throw an "illegal invocation"
              this.fetchImpl = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(FetchFactory, {
                optional: true
              })?.fetch ?? fetch.bind(globalThis);
              this.ngZone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgZone);
            }
            handle(request) {
              return new rxjs__WEBPACK_IMPORTED_MODULE_6__.Observable(observer => {
                const aborter = new AbortController();
                this.doRequest(request, aborter.signal, observer).then(noop, error => observer.error(new HttpErrorResponse({
                  error
                })));
                return () => aborter.abort();
              });
            }
            doRequest(request, signal, observer) {
              var _this = this;
              return (0,C_Users_Milica_ElectronicPaymentSystem_PSP_psp_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
                const init = _this.createRequestInit(request);
                let response;
                try {
                  const fetchPromise = _this.fetchImpl(request.urlWithParams, {
                    signal,
                    ...init
                  });
                  // Make sure Zone.js doesn't trigger false-positive unhandled promise
                  // error in case the Promise is rejected synchronously. See function
                  // description for additional information.
                  silenceSuperfluousUnhandledPromiseRejection(fetchPromise);
                  // Send the `Sent` event before awaiting the response.
                  observer.next({
                    type: HttpEventType.Sent
                  });
                  response = yield fetchPromise;
                } catch (error) {
                  observer.error(new HttpErrorResponse({
                    error,
                    status: error.status ?? 0,
                    statusText: error.statusText,
                    url: request.urlWithParams,
                    headers: error.headers
                  }));
                  return;
                }
                const headers = new HttpHeaders(response.headers);
                const statusText = response.statusText;
                const url = getResponseUrl$1(response) ?? request.urlWithParams;
                let status = response.status;
                let body = null;
                if (request.reportProgress) {
                  observer.next(new HttpHeaderResponse({
                    headers,
                    status,
                    statusText,
                    url
                  }));
                }
                if (response.body) {
                  // Read Progress
                  const contentLength = response.headers.get('content-length');
                  const chunks = [];
                  const reader = response.body.getReader();
                  let receivedLength = 0;
                  let decoder;
                  let partialText;
                  // We have to check whether the Zone is defined in the global scope because this may be called
                  // when the zone is nooped.
                  const reqZone = typeof Zone !== 'undefined' && Zone.current;
                  // Perform response processing outside of Angular zone to
                  // ensure no excessive change detection runs are executed
                  // Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD
                  yield _this.ngZone.runOutsideAngular( /*#__PURE__*/(0,C_Users_Milica_ElectronicPaymentSystem_PSP_psp_front_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
                    while (true) {
                      const {
                        done,
                        value
                      } = yield reader.read();
                      if (done) {
                        break;
                      }
                      chunks.push(value);
                      receivedLength += value.length;
                      if (request.reportProgress) {
                        partialText = request.responseType === 'text' ? (partialText ?? '') + (decoder ??= new TextDecoder()).decode(value, {
                          stream: true
                        }) : undefined;
                        const reportProgress = () => observer.next({
                          type: HttpEventType.DownloadProgress,
                          total: contentLength ? +contentLength : undefined,
                          loaded: receivedLength,
                          partialText
                        });
                        reqZone ? reqZone.run(reportProgress) : reportProgress();
                      }
                    }
                  }));
                  // Combine all chunks.
                  const chunksAll = _this.concatChunks(chunks, receivedLength);
                  try {
                    body = _this.parseBody(request, chunksAll);
                  } catch (error) {
                    // Body loading or parsing failed
                    observer.error(new HttpErrorResponse({
                      error,
                      headers: new HttpHeaders(response.headers),
                      status: response.status,
                      statusText: response.statusText,
                      url: getResponseUrl$1(response) ?? request.urlWithParams
                    }));
                    return;
                  }
                }
                // Same behavior as the XhrBackend
                if (status === 0) {
                  status = body ? 200 /* HttpStatusCode.Ok */ : 0;
                }
                // ok determines whether the response will be transmitted on the event or
                // error channel. Unsuccessful status codes (not 2xx) will always be errors,
                // but a successful status code can still result in an error if the user
                // asked for JSON data and the body cannot be parsed as such.
                const ok = status >= 200 && status < 300;
                if (ok) {
                  observer.next(new HttpResponse({
                    body,
                    headers,
                    status,
                    statusText,
                    url
                  }));
                  // The full body has been received and delivered, no further events
                  // are possible. This request is complete.
                  observer.complete();
                } else {
                  observer.error(new HttpErrorResponse({
                    error: body,
                    headers,
                    status,
                    statusText,
                    url
                  }));
                }
              })();
            }
            parseBody(request, binContent) {
              switch (request.responseType) {
                case 'json':
                  // stripping the XSSI when present
                  const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');
                  return text === '' ? null : JSON.parse(text);
                case 'text':
                  return new TextDecoder().decode(binContent);
                case 'blob':
                  return new Blob([binContent]);
                case 'arraybuffer':
                  return binContent.buffer;
              }
            }
            createRequestInit(req) {
              // We could share some of this logic with the XhrBackend
              const headers = {};
              const credentials = req.withCredentials ? 'include' : undefined;
              // Setting all the requested headers.
              req.headers.forEach((name, values) => headers[name] = values.join(','));
              // Add an Accept header if one isn't present already.
              headers['Accept'] ??= 'application/json, text/plain, */*';
              // Auto-detect the Content-Type header if one isn't present already.
              if (!headers['Content-Type']) {
                const detectedType = req.detectContentTypeHeader();
                // Sometimes Content-Type detection fails.
                if (detectedType !== null) {
                  headers['Content-Type'] = detectedType;
                }
              }
              return {
                body: req.serializeBody(),
                method: req.method,
                headers,
                credentials
              };
            }
            concatChunks(chunks, totalLength) {
              const chunksAll = new Uint8Array(totalLength);
              let position = 0;
              for (const chunk of chunks) {
                chunksAll.set(chunk, position);
                position += chunk.length;
              }
              return chunksAll;
            }
            static {
              this.ɵfac = function FetchBackend_Factory(t) {
                return new (t || FetchBackend)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: FetchBackend,
                factory: FetchBackend.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](FetchBackend, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], null, null);
          })();
          /**
           * Abstract class to provide a mocked implementation of `fetch()`
           */
          class FetchFactory {}
          function noop() {}
          /**
           * Zone.js treats a rejected promise that has not yet been awaited
           * as an unhandled error. This function adds a noop `.then` to make
           * sure that Zone.js doesn't throw an error if the Promise is rejected
           * synchronously.
           */
          function silenceSuperfluousUnhandledPromiseRejection(promise) {
            promise.then(noop, noop);
          }
          function interceptorChainEndFn(req, finalHandlerFn) {
            return finalHandlerFn(req);
          }
          /**
           * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the
           * `ChainedInterceptorFn` interface.
           */
          function adaptLegacyInterceptorToChain(chainTailFn, interceptor) {
            return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {
              handle: downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)
            });
          }
          /**
           * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given
           * injector.
           */
          function chainedInterceptorFn(chainTailFn, interceptorFn, injector) {
            // clang-format off
            return (initialRequest, finalHandlerFn) => injector.runInContext(() => interceptorFn(initialRequest, downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)));
            // clang-format on
          }
          /**
           * A multi-provider token that represents the array of registered
           * `HttpInterceptor` objects.
           *
           * @publicApi
           */
          const HTTP_INTERCEPTORS = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');
          /**
           * A multi-provided token of `HttpInterceptorFn`s.
           */
          const HTTP_INTERCEPTOR_FNS = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '');
          /**
           * A multi-provided token of `HttpInterceptorFn`s that are only set in root.
           */
          const HTTP_ROOT_INTERCEPTOR_FNS = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');
          /**
           * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy
           * class-based interceptors and runs the request through it.
           */
          function legacyInterceptorFnFactory() {
            let chain = null;
            return (req, handler) => {
              if (chain === null) {
                const interceptors = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(HTTP_INTERCEPTORS, {
                  optional: true
                }) ?? [];
                // Note: interceptors are wrapped right-to-left so that final execution order is
                // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to
                // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside
                // out.
                chain = interceptors.reduceRight(adaptLegacyInterceptorToChain, interceptorChainEndFn);
              }
              const pendingTasks = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵInitialRenderPendingTasks"]);
              const taskId = pendingTasks.add();
              return chain(req, handler).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => pendingTasks.remove(taskId)));
            };
          }
          class HttpInterceptorHandler extends HttpHandler {
            constructor(backend, injector) {
              super();
              this.backend = backend;
              this.injector = injector;
              this.chain = null;
              this.pendingTasks = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵInitialRenderPendingTasks"]);
            }
            handle(initialRequest) {
              if (this.chain === null) {
                const dedupedInterceptorFns = Array.from(new Set([...this.injector.get(HTTP_INTERCEPTOR_FNS), ...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS, [])]));
                // Note: interceptors are wrapped right-to-left so that final execution order is
                // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to
                // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside
                // out.
                this.chain = dedupedInterceptorFns.reduceRight((nextSequencedFn, interceptorFn) => chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector), interceptorChainEndFn);
              }
              const taskId = this.pendingTasks.add();
              return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this.pendingTasks.remove(taskId)));
            }
            static {
              this.ɵfac = function HttpInterceptorHandler_Factory(t) {
                return new (t || HttpInterceptorHandler)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](HttpBackend), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: HttpInterceptorHandler,
                factory: HttpInterceptorHandler.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpInterceptorHandler, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: HttpBackend
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector
              }];
            }, null);
          })();
          
          // Every request made through JSONP needs a callback name that's unique across the
          // whole page. Each request is assigned an id and the callback name is constructed
          // from that. The next id to be assigned is tracked in a global variable here that
          // is shared among all applications on the page.
          let nextRequestId = 0;
          /**
           * When a pending <script> is unsubscribed we'll move it to this document, so it won't be
           * executed.
           */
          let foreignDocument;
          // Error text given when a JSONP script is injected, but doesn't invoke the callback
          // passed in its URL.
          const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';
          // Error text given when a request is passed to the JsonpClientBackend that doesn't
          // have a request method JSONP.
          const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';
          const JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';
          // Error text given when a request is passed to the JsonpClientBackend that has
          // headers set
          const JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';
          /**
           * DI token/abstract type representing a map of JSONP callbacks.
           *
           * In the browser, this should always be the `window` object.
           *
           *
           */
          class JsonpCallbackContext {}
          /**
           * Factory function that determines where to store JSONP callbacks.
           *
           * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
           * in test environments. In that case, callbacks are stored on an anonymous object instead.
           *
           *
           */
          function jsonpCallbackContext() {
            if (typeof window === 'object') {
              return window;
            }
            return {};
          }
          /**
           * Processes an `HttpRequest` with the JSONP method,
           * by performing JSONP style requests.
           * @see {@link HttpHandler}
           * @see {@link HttpXhrBackend}
           *
           * @publicApi
           */
          class JsonpClientBackend {
            constructor(callbackMap, document) {
              this.callbackMap = callbackMap;
              this.document = document;
              /**
               * A resolved promise that can be used to schedule microtasks in the event handlers.
               */
              this.resolvedPromise = Promise.resolve();
            }
            /**
             * Get the name of the next callback method, by incrementing the global `nextRequestId`.
             */
            nextCallback() {
              return `ng_jsonp_callback_${nextRequestId++}`;
            }
            /**
             * Processes a JSONP request and returns an event stream of the results.
             * @param req The request object.
             * @returns An observable of the response events.
             *
             */
            handle(req) {
              // Firstly, check both the method and response type. If either doesn't match
              // then the request was improperly routed here and cannot be handled.
              if (req.method !== 'JSONP') {
                throw new Error(JSONP_ERR_WRONG_METHOD);
              } else if (req.responseType !== 'json') {
                throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);
              }
              // Check the request headers. JSONP doesn't support headers and
              // cannot set any that were supplied.
              if (req.headers.keys().length > 0) {
                throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);
              }
              // Everything else happens inside the Observable boundary.
              return new rxjs__WEBPACK_IMPORTED_MODULE_6__.Observable(observer => {
                // The first step to make a request is to generate the callback name, and replace the
                // callback placeholder in the URL with the name. Care has to be taken here to ensure
                // a trailing &, if matched, gets inserted back into the URL in the correct place.
                const callback = this.nextCallback();
                const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);
                // Construct the <script> tag and point it at the URL.
                const node = this.document.createElement('script');
                node.src = url;
                // A JSONP request requires waiting for multiple callbacks. These variables
                // are closed over and track state across those callbacks.
                // The response object, if one has been received, or null otherwise.
                let body = null;
                // Whether the response callback has been called.
                let finished = false;
                // Set the response callback in this.callbackMap (which will be the window
                // object in the browser. The script being loaded via the <script> tag will
                // eventually call this callback.
                this.callbackMap[callback] = data => {
                  // Data has been received from the JSONP script. Firstly, delete this callback.
                  delete this.callbackMap[callback];
                  // Set state to indicate data was received.
                  body = data;
                  finished = true;
                };
                // cleanup() is a utility closure that removes the <script> from the page and
                // the response callback from the window. This logic is used in both the
                // success, error, and cancellation paths, so it's extracted out for convenience.
                const cleanup = () => {
                  // Remove the <script> tag if it's still on the page.
                  if (node.parentNode) {
                    node.parentNode.removeChild(node);
                  }
                  // Remove the response callback from the callbackMap (window object in the
                  // browser).
                  delete this.callbackMap[callback];
                };
                // onLoad() is the success callback which runs after the response callback
                // if the JSONP script loads successfully. The event itself is unimportant.
                // If something went wrong, onLoad() may run without the response callback
                // having been invoked.
                const onLoad = event => {
                  // We wrap it in an extra Promise, to ensure the microtask
                  // is scheduled after the loaded endpoint has executed any potential microtask itself,
                  // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496
                  this.resolvedPromise.then(() => {
                    // Cleanup the page.
                    cleanup();
                    // Check whether the response callback has run.
                    if (!finished) {
                      // It hasn't, something went wrong with the request. Return an error via
                      // the Observable error path. All JSONP errors have status 0.
                      observer.error(new HttpErrorResponse({
                        url,
                        status: 0,
                        statusText: 'JSONP Error',
                        error: new Error(JSONP_ERR_NO_CALLBACK)
                      }));
                      return;
                    }
                    // Success. body either contains the response body or null if none was
                    // returned.
                    observer.next(new HttpResponse({
                      body,
                      status: 200 /* HttpStatusCode.Ok */,
                      statusText: 'OK',
                      url
                    }));
                    // Complete the stream, the response is over.
                    observer.complete();
                  });
                };
                // onError() is the error callback, which runs if the script returned generates
                // a Javascript error. It emits the error via the Observable error channel as
                // a HttpErrorResponse.
                const onError = error => {
                  cleanup();
                  // Wrap the error in a HttpErrorResponse.
                  observer.error(new HttpErrorResponse({
                    error,
                    status: 0,
                    statusText: 'JSONP Error',
                    url
                  }));
                };
                // Subscribe to both the success (load) and error events on the <script> tag,
                // and add it to the page.
                node.addEventListener('load', onLoad);
                node.addEventListener('error', onError);
                this.document.body.appendChild(node);
                // The request has now been successfully sent.
                observer.next({
                  type: HttpEventType.Sent
                });
                // Cancellation handler.
                return () => {
                  if (!finished) {
                    this.removeListeners(node);
                  }
                  // And finally, clean up the page.
                  cleanup();
                };
              });
            }
            removeListeners(script) {
              // Issue #34818
              // Changing <script>'s ownerDocument will prevent it from execution.
              // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block
              if (!foreignDocument) {
                foreignDocument = this.document.implementation.createHTMLDocument();
              }
              foreignDocument.adoptNode(script);
            }
            static {
              this.ɵfac = function JsonpClientBackend_Factory(t) {
                return new (t || JsonpClientBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](JsonpCallbackContext), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: JsonpClientBackend,
                factory: JsonpClientBackend.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](JsonpClientBackend, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: JsonpCallbackContext
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          /**
           * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.
           */
          function jsonpInterceptorFn(req, next) {
            if (req.method === 'JSONP') {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(JsonpClientBackend).handle(req);
            }
            // Fall through for normal HTTP requests.
            return next(req);
          }
          /**
           * Identifies requests with the method JSONP and
           * shifts them to the `JsonpClientBackend`.
           *
           * @see {@link HttpInterceptor}
           *
           * @publicApi
           */
          class JsonpInterceptor {
            constructor(injector) {
              this.injector = injector;
            }
            /**
             * Identifies and handles a given JSONP request.
             * @param initialRequest The outgoing request object to handle.
             * @param next The next interceptor in the chain, or the backend
             * if no interceptors remain in the chain.
             * @returns An observable of the event stream.
             */
            intercept(initialRequest, next) {
              return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
            }
            static {
              this.ɵfac = function JsonpInterceptor_Factory(t) {
                return new (t || JsonpInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: JsonpInterceptor,
                factory: JsonpInterceptor.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](JsonpInterceptor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector
              }];
            }, null);
          })();
          const XSSI_PREFIX = /^\)\]\}',?\n/;
          /**
           * Determine an appropriate URL for the response, by checking either
           * XMLHttpRequest.responseURL or the X-Request-URL header.
           */
          function getResponseUrl(xhr) {
            if ('responseURL' in xhr && xhr.responseURL) {
              return xhr.responseURL;
            }
            if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {
              return xhr.getResponseHeader('X-Request-URL');
            }
            return null;
          }
          /**
           * Uses `XMLHttpRequest` to send requests to a backend server.
           * @see {@link HttpHandler}
           * @see {@link JsonpClientBackend}
           *
           * @publicApi
           */
          class HttpXhrBackend {
            constructor(xhrFactory) {
              this.xhrFactory = xhrFactory;
            }
            /**
             * Processes a request and returns a stream of response events.
             * @param req The request object.
             * @returns An observable of the response events.
             */
            handle(req) {
              // Quick check to give a better error message when a user attempts to use
              // HttpClient.jsonp() without installing the HttpClientJsonpModule
              if (req.method === 'JSONP') {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵRuntimeError"](-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot make a JSONP request without JSONP support. To fix the problem, either add the \`withJsonpSupport()\` call (if \`provideHttpClient()\` is used) or import the \`HttpClientJsonpModule\` in the root NgModule.`);
              }
              // Check whether this factory has a special function to load an XHR implementation
              // for various non-browser environments. We currently limit it to only `ServerXhr`
              // class, which needs to load an XHR implementation.
              const xhrFactory = this.xhrFactory;
              const source = xhrFactory.ɵloadImpl ? (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.from)(xhrFactory.ɵloadImpl()) : (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(null);
              return source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.switchMap)(() => {
                // Everything happens on Observable subscription.
                return new rxjs__WEBPACK_IMPORTED_MODULE_6__.Observable(observer => {
                  // Start by setting up the XHR object with request method, URL, and withCredentials
                  // flag.
                  const xhr = xhrFactory.build();
                  xhr.open(req.method, req.urlWithParams);
                  if (req.withCredentials) {
                    xhr.withCredentials = true;
                  }
                  // Add all the requested headers.
                  req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));
                  // Add an Accept header if one isn't present already.
                  if (!req.headers.has('Accept')) {
                    xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');
                  }
                  // Auto-detect the Content-Type header if one isn't present already.
                  if (!req.headers.has('Content-Type')) {
                    const detectedType = req.detectContentTypeHeader();
                    // Sometimes Content-Type detection fails.
                    if (detectedType !== null) {
                      xhr.setRequestHeader('Content-Type', detectedType);
                    }
                  }
                  // Set the responseType if one was requested.
                  if (req.responseType) {
                    const responseType = req.responseType.toLowerCase();
                    // JSON responses need to be processed as text. This is because if the server
                    // returns an XSSI-prefixed JSON response, the browser will fail to parse it,
                    // xhr.response will be null, and xhr.responseText cannot be accessed to
                    // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON
                    // is parsed by first requesting text and then applying JSON.parse.
                    xhr.responseType = responseType !== 'json' ? responseType : 'text';
                  }
                  // Serialize the request body if one is present. If not, this will be set to null.
                  const reqBody = req.serializeBody();
                  // If progress events are enabled, response headers will be delivered
                  // in two events - the HttpHeaderResponse event and the full HttpResponse
                  // event. However, since response headers don't change in between these
                  // two events, it doesn't make sense to parse them twice. So headerResponse
                  // caches the data extracted from the response whenever it's first parsed,
                  // to ensure parsing isn't duplicated.
                  let headerResponse = null;
                  // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest
                  // state, and memoizes it into headerResponse.
                  const partialFromXhr = () => {
                    if (headerResponse !== null) {
                      return headerResponse;
                    }
                    const statusText = xhr.statusText || 'OK';
                    // Parse headers from XMLHttpRequest - this step is lazy.
                    const headers = new HttpHeaders(xhr.getAllResponseHeaders());
                    // Read the response URL from the XMLHttpResponse instance and fall back on the
                    // request URL.
                    const url = getResponseUrl(xhr) || req.url;
                    // Construct the HttpHeaderResponse and memoize it.
                    headerResponse = new HttpHeaderResponse({
                      headers,
                      status: xhr.status,
                      statusText,
                      url
                    });
                    return headerResponse;
                  };
                  // Next, a few closures are defined for the various events which XMLHttpRequest can
                  // emit. This allows them to be unregistered as event listeners later.
                  // First up is the load event, which represents a response being fully available.
                  const onLoad = () => {
                    // Read response state from the memoized partial data.
                    let {
                      headers,
                      status,
                      statusText,
                      url
                    } = partialFromXhr();
                    // The body will be read out if present.
                    let body = null;
                    if (status !== 204 /* HttpStatusCode.NoContent */) {
                      // Use XMLHttpRequest.response if set, responseText otherwise.
                      body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;
                    }
                    // Normalize another potential bug (this one comes from CORS).
                    if (status === 0) {
                      status = !!body ? 200 /* HttpStatusCode.Ok */ : 0;
                    }
                    // ok determines whether the response will be transmitted on the event or
                    // error channel. Unsuccessful status codes (not 2xx) will always be errors,
                    // but a successful status code can still result in an error if the user
                    // asked for JSON data and the body cannot be parsed as such.
                    let ok = status >= 200 && status < 300;
                    // Check whether the body needs to be parsed as JSON (in many cases the browser
                    // will have done that already).
                    if (req.responseType === 'json' && typeof body === 'string') {
                      // Save the original body, before attempting XSSI prefix stripping.
                      const originalBody = body;
                      body = body.replace(XSSI_PREFIX, '');
                      try {
                        // Attempt the parse. If it fails, a parse error should be delivered to the
                        // user.
                        body = body !== '' ? JSON.parse(body) : null;
                      } catch (error) {
                        // Since the JSON.parse failed, it's reasonable to assume this might not have
                        // been a JSON response. Restore the original body (including any XSSI prefix)
                        // to deliver a better error response.
                        body = originalBody;
                        // If this was an error request to begin with, leave it as a string, it
                        // probably just isn't JSON. Otherwise, deliver the parsing error to the user.
                        if (ok) {
                          // Even though the response status was 2xx, this is still an error.
                          ok = false;
                          // The parse error contains the text of the body that failed to parse.
                          body = {
                            error,
                            text: body
                          };
                        }
                      }
                    }
                    if (ok) {
                      // A successful response is delivered on the event stream.
                      observer.next(new HttpResponse({
                        body,
                        headers,
                        status,
                        statusText,
                        url: url || undefined
                      }));
                      // The full body has been received and delivered, no further events
                      // are possible. This request is complete.
                      observer.complete();
                    } else {
                      // An unsuccessful request is delivered on the error channel.
                      observer.error(new HttpErrorResponse({
                        // The error in this case is the response body (error from the server).
                        error: body,
                        headers,
                        status,
                        statusText,
                        url: url || undefined
                      }));
                    }
                  };
                  // The onError callback is called when something goes wrong at the network level.
                  // Connection timeout, DNS error, offline, etc. These are actual errors, and are
                  // transmitted on the error channel.
                  const onError = error => {
                    const {
                      url
                    } = partialFromXhr();
                    const res = new HttpErrorResponse({
                      error,
                      status: xhr.status || 0,
                      statusText: xhr.statusText || 'Unknown Error',
                      url: url || undefined
                    });
                    observer.error(res);
                  };
                  // The sentHeaders flag tracks whether the HttpResponseHeaders event
                  // has been sent on the stream. This is necessary to track if progress
                  // is enabled since the event will be sent on only the first download
                  // progress event.
                  let sentHeaders = false;
                  // The download progress event handler, which is only registered if
                  // progress events are enabled.
                  const onDownProgress = event => {
                    // Send the HttpResponseHeaders event if it hasn't been sent already.
                    if (!sentHeaders) {
                      observer.next(partialFromXhr());
                      sentHeaders = true;
                    }
                    // Start building the download progress event to deliver on the response
                    // event stream.
                    let progressEvent = {
                      type: HttpEventType.DownloadProgress,
                      loaded: event.loaded
                    };
                    // Set the total number of bytes in the event if it's available.
                    if (event.lengthComputable) {
                      progressEvent.total = event.total;
                    }
                    // If the request was for text content and a partial response is
                    // available on XMLHttpRequest, include it in the progress event
                    // to allow for streaming reads.
                    if (req.responseType === 'text' && !!xhr.responseText) {
                      progressEvent.partialText = xhr.responseText;
                    }
                    // Finally, fire the event.
                    observer.next(progressEvent);
                  };
                  // The upload progress event handler, which is only registered if
                  // progress events are enabled.
                  const onUpProgress = event => {
                    // Upload progress events are simpler. Begin building the progress
                    // event.
                    let progress = {
                      type: HttpEventType.UploadProgress,
                      loaded: event.loaded
                    };
                    // If the total number of bytes being uploaded is available, include
                    // it.
                    if (event.lengthComputable) {
                      progress.total = event.total;
                    }
                    // Send the event.
                    observer.next(progress);
                  };
                  // By default, register for load and error events.
                  xhr.addEventListener('load', onLoad);
                  xhr.addEventListener('error', onError);
                  xhr.addEventListener('timeout', onError);
                  xhr.addEventListener('abort', onError);
                  // Progress events are only enabled if requested.
                  if (req.reportProgress) {
                    // Download progress is always enabled if requested.
                    xhr.addEventListener('progress', onDownProgress);
                    // Upload progress depends on whether there is a body to upload.
                    if (reqBody !== null && xhr.upload) {
                      xhr.upload.addEventListener('progress', onUpProgress);
                    }
                  }
                  // Fire the request, and notify the event stream that it was fired.
                  xhr.send(reqBody);
                  observer.next({
                    type: HttpEventType.Sent
                  });
                  // This is the return from the Observable function, which is the
                  // request cancellation handler.
                  return () => {
                    // On a cancellation, remove all registered event listeners.
                    xhr.removeEventListener('error', onError);
                    xhr.removeEventListener('abort', onError);
                    xhr.removeEventListener('load', onLoad);
                    xhr.removeEventListener('timeout', onError);
                    if (req.reportProgress) {
                      xhr.removeEventListener('progress', onDownProgress);
                      if (reqBody !== null && xhr.upload) {
                        xhr.upload.removeEventListener('progress', onUpProgress);
                      }
                    }
                    // Finally, abort the in-flight request.
                    if (xhr.readyState !== xhr.DONE) {
                      xhr.abort();
                    }
                  };
                });
              }));
            }
            static {
              this.ɵfac = function HttpXhrBackend_Factory(t) {
                return new (t || HttpXhrBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__.XhrFactory));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: HttpXhrBackend,
                factory: HttpXhrBackend.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpXhrBackend, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: _angular_common__WEBPACK_IMPORTED_MODULE_8__.XhrFactory
              }];
            }, null);
          })();
          const XSRF_ENABLED = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken('XSRF_ENABLED');
          const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
          const XSRF_COOKIE_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken('XSRF_COOKIE_NAME', {
            providedIn: 'root',
            factory: () => XSRF_DEFAULT_COOKIE_NAME
          });
          const XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';
          const XSRF_HEADER_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken('XSRF_HEADER_NAME', {
            providedIn: 'root',
            factory: () => XSRF_DEFAULT_HEADER_NAME
          });
          /**
           * Retrieves the current XSRF token to use with the next outgoing request.
           *
           * @publicApi
           */
          class HttpXsrfTokenExtractor {}
          /**
           * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.
           */
          class HttpXsrfCookieExtractor {
            constructor(doc, platform, cookieName) {
              this.doc = doc;
              this.platform = platform;
              this.cookieName = cookieName;
              this.lastCookieString = '';
              this.lastToken = null;
              /**
               * @internal for testing
               */
              this.parseCount = 0;
            }
            getToken() {
              if (this.platform === 'server') {
                return null;
              }
              const cookieString = this.doc.cookie || '';
              if (cookieString !== this.lastCookieString) {
                this.parseCount++;
                this.lastToken = (0,_angular_common__WEBPACK_IMPORTED_MODULE_8__["ɵparseCookieValue"])(cookieString, this.cookieName);
                this.lastCookieString = cookieString;
              }
              return this.lastToken;
            }
            static {
              this.ɵfac = function HttpXsrfCookieExtractor_Factory(t) {
                return new (t || HttpXsrfCookieExtractor)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.PLATFORM_ID), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](XSRF_COOKIE_NAME));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: HttpXsrfCookieExtractor,
                factory: HttpXsrfCookieExtractor.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpXsrfCookieExtractor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_5__.PLATFORM_ID]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Inject,
                  args: [XSRF_COOKIE_NAME]
                }]
              }];
            }, null);
          })();
          function xsrfInterceptorFn(req, next) {
            const lcUrl = req.url.toLowerCase();
            // Skip both non-mutating requests and absolute URLs.
            // Non-mutating requests don't require a token, and absolute URLs require special handling
            // anyway as the cookie set
            // on our origin is not the same as the token expected by another origin.
            if (!(0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(XSRF_ENABLED) || req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') || lcUrl.startsWith('https://')) {
              return next(req);
            }
            const token = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(HttpXsrfTokenExtractor).getToken();
            const headerName = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(XSRF_HEADER_NAME);
            // Be careful not to overwrite an existing header of the same name.
            if (token != null && !req.headers.has(headerName)) {
              req = req.clone({
                headers: req.headers.set(headerName, token)
              });
            }
            return next(req);
          }
          /**
           * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.
           */
          class HttpXsrfInterceptor {
            constructor(injector) {
              this.injector = injector;
            }
            intercept(initialRequest, next) {
              return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
            }
            static {
              this.ɵfac = function HttpXsrfInterceptor_Factory(t) {
                return new (t || HttpXsrfInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
                token: HttpXsrfInterceptor,
                factory: HttpXsrfInterceptor.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpXsrfInterceptor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Injectable
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.EnvironmentInjector
              }];
            }, null);
          })();
          
          /**
           * Identifies a particular kind of `HttpFeature`.
           *
           * @publicApi
           */
          var HttpFeatureKind;
          (function (HttpFeatureKind) {
            HttpFeatureKind[HttpFeatureKind["Interceptors"] = 0] = "Interceptors";
            HttpFeatureKind[HttpFeatureKind["LegacyInterceptors"] = 1] = "LegacyInterceptors";
            HttpFeatureKind[HttpFeatureKind["CustomXsrfConfiguration"] = 2] = "CustomXsrfConfiguration";
            HttpFeatureKind[HttpFeatureKind["NoXsrfProtection"] = 3] = "NoXsrfProtection";
            HttpFeatureKind[HttpFeatureKind["JsonpSupport"] = 4] = "JsonpSupport";
            HttpFeatureKind[HttpFeatureKind["RequestsMadeViaParent"] = 5] = "RequestsMadeViaParent";
            HttpFeatureKind[HttpFeatureKind["Fetch"] = 6] = "Fetch";
          })(HttpFeatureKind || (HttpFeatureKind = {}));
          function makeHttpFeature(kind, providers) {
            return {
              ɵkind: kind,
              ɵproviders: providers
            };
          }
          /**
           * Configures Angular's `HttpClient` service to be available for injection.
           *
           * By default, `HttpClient` will be configured for injection with its default options for XSRF
           * protection of outgoing requests. Additional configuration options can be provided by passing
           * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
           * `withInterceptors(...)` feature.
           *
           * @see {@link withInterceptors}
           * @see {@link withInterceptorsFromDi}
           * @see {@link withXsrfConfiguration}
           * @see {@link withNoXsrfProtection}
           * @see {@link withJsonpSupport}
           * @see {@link withRequestsMadeViaParent}
           * @see {@link withFetch}
           */
          function provideHttpClient(...features) {
            if (ngDevMode) {
              const featureKinds = new Set(features.map(f => f.ɵkind));
              if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) && featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {
                throw new Error(ngDevMode ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.` : '');
              }
            }
            const providers = [HttpClient, HttpXhrBackend, HttpInterceptorHandler, {
              provide: HttpHandler,
              useExisting: HttpInterceptorHandler
            }, {
              provide: HttpBackend,
              useExisting: HttpXhrBackend
            }, {
              provide: HTTP_INTERCEPTOR_FNS,
              useValue: xsrfInterceptorFn,
              multi: true
            }, {
              provide: XSRF_ENABLED,
              useValue: true
            }, {
              provide: HttpXsrfTokenExtractor,
              useClass: HttpXsrfCookieExtractor
            }];
            for (const feature of features) {
              providers.push(...feature.ɵproviders);
            }
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.makeEnvironmentProviders)(providers);
          }
          /**
           * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
           * instance.
           *
           * @see {@link HttpInterceptorFn}
           * @see {@link provideHttpClient}
           * @publicApi
           */
          function withInterceptors(interceptorFns) {
            return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map(interceptorFn => {
              return {
                provide: HTTP_INTERCEPTOR_FNS,
                useValue: interceptorFn,
                multi: true
              };
            }));
          }
          const LEGACY_INTERCEPTOR_FN = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken('LEGACY_INTERCEPTOR_FN');
          /**
           * Includes class-based interceptors configured using a multi-provider in the current injector into
           * the configured `HttpClient` instance.
           *
           * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
           * interceptors may be phased out in a later release.
           *
           * @see {@link HttpInterceptor}
           * @see {@link HTTP_INTERCEPTORS}
           * @see {@link provideHttpClient}
           */
          function withInterceptorsFromDi() {
            // Note: the legacy interceptor function is provided here via an intermediate token
            // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are
            // included multiple times, all of the multi-provider entries will have the same instance of the
            // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy
            // interceptors will not run multiple times.
            return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [{
              provide: LEGACY_INTERCEPTOR_FN,
              useFactory: legacyInterceptorFnFactory
            }, {
              provide: HTTP_INTERCEPTOR_FNS,
              useExisting: LEGACY_INTERCEPTOR_FN,
              multi: true
            }]);
          }
          /**
           * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.
           *
           * This feature is incompatible with the `withNoXsrfProtection` feature.
           *
           * @see {@link provideHttpClient}
           */
          function withXsrfConfiguration({
            cookieName,
            headerName
          }) {
            const providers = [];
            if (cookieName !== undefined) {
              providers.push({
                provide: XSRF_COOKIE_NAME,
                useValue: cookieName
              });
            }
            if (headerName !== undefined) {
              providers.push({
                provide: XSRF_HEADER_NAME,
                useValue: headerName
              });
            }
            return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers);
          }
          /**
           * Disables XSRF protection in the configuration of the current `HttpClient` instance.
           *
           * This feature is incompatible with the `withXsrfConfiguration` feature.
           *
           * @see {@link provideHttpClient}
           */
          function withNoXsrfProtection() {
            return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [{
              provide: XSRF_ENABLED,
              useValue: false
            }]);
          }
          /**
           * Add JSONP support to the configuration of the current `HttpClient` instance.
           *
           * @see {@link provideHttpClient}
           */
          function withJsonpSupport() {
            return makeHttpFeature(HttpFeatureKind.JsonpSupport, [JsonpClientBackend, {
              provide: JsonpCallbackContext,
              useFactory: jsonpCallbackContext
            }, {
              provide: HTTP_INTERCEPTOR_FNS,
              useValue: jsonpInterceptorFn,
              multi: true
            }]);
          }
          /**
           * Configures the current `HttpClient` instance to make requests via the parent injector's
           * `HttpClient` instead of directly.
           *
           * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent
           * instance. For example, even if `HttpClient` is configured in the parent injector with
           * one or more interceptors, they will not intercept requests made via this instance.
           *
           * With this option enabled, once the request has passed through the current injector's
           * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of
           * dispatched directly, and interceptors in the parent configuration will be applied to the request.
           *
           * If there are several `HttpClient` instances in the injector hierarchy, it's possible for
           * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to
           * "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
           * this option.
           *
           * @see {@link provideHttpClient}
           * @developerPreview
           */
          function withRequestsMadeViaParent() {
            return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [{
              provide: HttpBackend,
              useFactory: () => {
                const handlerFromParent = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(HttpHandler, {
                  skipSelf: true,
                  optional: true
                });
                if (ngDevMode && handlerFromParent === null) {
                  throw new Error('withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');
                }
                return handlerFromParent;
              }
            }]);
          }
          /**
           * Configures the current `HttpClient` instance to make requests using the fetch API.
           *
           * This `FetchBackend` requires the support of the Fetch API which is available on all evergreen
           * browsers and on NodeJS from v18 onward.
           *
           * Note: The Fetch API doesn't support progress report on uploads.
           *
           * @publicApi
           * @developerPreview
           */
          function withFetch() {
            if ((typeof ngDevMode === 'undefined' || ngDevMode) && typeof fetch !== 'function') {
              // TODO: Create a runtime error
              // TODO: Use ENVIRONMENT_INITIALIZER to contextualize the error message (browser or server)
              throw new Error('The `withFetch` feature of HttpClient requires the `fetch` API to be available. ' + 'If you run the code in a Node environment, make sure you use Node v18.10 or later.');
            }
            return makeHttpFeature(HttpFeatureKind.Fetch, [FetchBackend, {
              provide: HttpBackend,
              useExisting: FetchBackend
            }]);
          }
          
          /**
           * Configures XSRF protection support for outgoing requests.
           *
           * For a server that supports a cookie-based XSRF protection system,
           * use directly to configure XSRF protection with the correct
           * cookie and header names.
           *
           * If no names are supplied, the default cookie name is `XSRF-TOKEN`
           * and the default header name is `X-XSRF-TOKEN`.
           *
           * @publicApi
           */
          class HttpClientXsrfModule {
            /**
             * Disable the default XSRF protection.
             */
            static disable() {
              return {
                ngModule: HttpClientXsrfModule,
                providers: [withNoXsrfProtection().ɵproviders]
              };
            }
            /**
             * Configure XSRF protection.
             * @param options An object that can specify either or both
             * cookie name or header name.
             * - Cookie name default is `XSRF-TOKEN`.
             * - Header name default is `X-XSRF-TOKEN`.
             *
             */
            static withOptions(options = {}) {
              return {
                ngModule: HttpClientXsrfModule,
                providers: withXsrfConfiguration(options).ɵproviders
              };
            }
            static {
              this.ɵfac = function HttpClientXsrfModule_Factory(t) {
                return new (t || HttpClientXsrfModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
                type: HttpClientXsrfModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
                providers: [HttpXsrfInterceptor, {
                  provide: HTTP_INTERCEPTORS,
                  useExisting: HttpXsrfInterceptor,
                  multi: true
                }, {
                  provide: HttpXsrfTokenExtractor,
                  useClass: HttpXsrfCookieExtractor
                }, withXsrfConfiguration({
                  cookieName: XSRF_DEFAULT_COOKIE_NAME,
                  headerName: XSRF_DEFAULT_HEADER_NAME
                }).ɵproviders, {
                  provide: XSRF_ENABLED,
                  useValue: true
                }]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpClientXsrfModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule,
              args: [{
                providers: [HttpXsrfInterceptor, {
                  provide: HTTP_INTERCEPTORS,
                  useExisting: HttpXsrfInterceptor,
                  multi: true
                }, {
                  provide: HttpXsrfTokenExtractor,
                  useClass: HttpXsrfCookieExtractor
                }, withXsrfConfiguration({
                  cookieName: XSRF_DEFAULT_COOKIE_NAME,
                  headerName: XSRF_DEFAULT_HEADER_NAME
                }).ɵproviders, {
                  provide: XSRF_ENABLED,
                  useValue: true
                }]
              }]
            }], null, null);
          })();
          /**
           * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
           * with supporting services for XSRF. Automatically imported by `HttpClientModule`.
           *
           * You can add interceptors to the chain behind `HttpClient` by binding them to the
           * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
           *
           * @publicApi
           */
          class HttpClientModule {
            static {
              this.ɵfac = function HttpClientModule_Factory(t) {
                return new (t || HttpClientModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
                type: HttpClientModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
                providers: [provideHttpClient(withInterceptorsFromDi())]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpClientModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule,
              args: [{
                /**
                 * Configures the [dependency injector](guide/glossary#injector) where it is imported
                 * with supporting services for HTTP communications.
                 */
                providers: [provideHttpClient(withInterceptorsFromDi())]
              }]
            }], null, null);
          })();
          /**
           * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
           * with supporting services for JSONP.
           * Without this module, Jsonp requests reach the backend
           * with method JSONP, where they are rejected.
           *
           * @publicApi
           */
          class HttpClientJsonpModule {
            static {
              this.ɵfac = function HttpClientJsonpModule_Factory(t) {
                return new (t || HttpClientJsonpModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
                type: HttpClientJsonpModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
                providers: [withJsonpSupport().ɵproviders]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](HttpClientJsonpModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule,
              args: [{
                providers: [withJsonpSupport().ɵproviders]
              }]
            }], null, null);
          })();
          const CACHE_STATE = new _angular_core__WEBPACK_IMPORTED_MODULE_5__.InjectionToken(ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_STATE' : '');
          /**
           * A list of allowed HTTP methods to cache.
           */
          const ALLOWED_METHODS = ['GET', 'HEAD'];
          function transferCacheInterceptorFn(req, next) {
            const {
              isCacheActive
            } = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(CACHE_STATE);
            // Stop using the cache if the application has stabilized, indicating initial rendering
            // is complete.
            if (!isCacheActive || !ALLOWED_METHODS.includes(req.method)) {
              // Cache is no longer active or method is not HEAD or GET.
              // Pass the request through.
              return next(req);
            }
            const transferState = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__.TransferState);
            const storeKey = makeCacheKey(req);
            const response = transferState.get(storeKey, null);
            if (response) {
              // Request found in cache. Respond using it.
              let body = response.body;
              switch (response.responseType) {
                case 'arraybuffer':
                  body = new TextEncoder().encode(response.body).buffer;
                  break;
                case 'blob':
                  body = new Blob([response.body]);
                  break;
              }
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(new HttpResponse({
                body,
                headers: new HttpHeaders(response.headers),
                status: response.status,
                statusText: response.statusText,
                url: response.url
              }));
            }
            // Request not found in cache. Make the request and cache it.
            return next(req).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.tap)(event => {
              if (event instanceof HttpResponse) {
                transferState.set(storeKey, {
                  body: event.body,
                  headers: getHeadersMap(event.headers),
                  status: event.status,
                  statusText: event.statusText,
                  url: event.url || '',
                  responseType: req.responseType
                });
              }
            }));
          }
          function getHeadersMap(headers) {
            const headersMap = {};
            for (const key of headers.keys()) {
              const values = headers.getAll(key);
              if (values !== null) {
                headersMap[key] = values;
              }
            }
            return headersMap;
          }
          function makeCacheKey(request) {
            // make the params encoded same as a url so it's easy to identify
            const {
              params,
              method,
              responseType,
              url
            } = request;
            const encodedParams = params.keys().sort().map(k => `${k}=${params.getAll(k)}`).join('&');
            const key = method + '.' + responseType + '.' + url + '?' + encodedParams;
            const hash = generateHash(key);
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.makeStateKey)(hash);
          }
          /**
           * A method that returns a hash representation of a string using a variant of DJB2 hash
           * algorithm.
           *
           * This is the same hashing logic that is used to generate component ids.
           */
          function generateHash(value) {
            let hash = 0;
            for (const char of value) {
              hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;
            }
            // Force positive number hash.
            // 2147483647 = equivalent of Integer.MAX_VALUE.
            hash += 2147483647 + 1;
            return hash.toString();
          }
          /**
           * Returns the DI providers needed to enable HTTP transfer cache.
           *
           * By default, when using server rendering, requests are performed twice: once on the server and
           * other one on the browser.
           *
           * When these providers are added, requests performed on the server are cached and reused during the
           * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing
           * load time.
           *
           */
          function withHttpTransferCache() {
            return [{
              provide: CACHE_STATE,
              useFactory: () => {
                (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵENABLED_SSR_FEATURES"]).add('httpcache');
                return {
                  isCacheActive: true
                };
              }
            }, {
              provide: HTTP_ROOT_INTERCEPTOR_FNS,
              useValue: transferCacheInterceptorFn,
              multi: true,
              deps: [_angular_core__WEBPACK_IMPORTED_MODULE_5__.TransferState, CACHE_STATE]
            }, {
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_5__.APP_BOOTSTRAP_LISTENER,
              multi: true,
              useFactory: () => {
                const appRef = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_5__.ApplicationRef);
                const cacheState = (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.inject)(CACHE_STATE);
                return () => {
                  appRef.isStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.first)(isStable => isStable)).toPromise().then(() => {
                    cacheState.isCacheActive = false;
                  });
                };
              }
            }];
          }
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 7580:
          /*!******************************************************!*\
            !*** ./node_modules/@angular/core/fesm2022/core.mjs ***!
            \******************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ANIMATION_MODULE_TYPE: () => (/* binding */ ANIMATION_MODULE_TYPE),
          /* harmony export */   APP_BOOTSTRAP_LISTENER: () => (/* binding */ APP_BOOTSTRAP_LISTENER),
          /* harmony export */   APP_ID: () => (/* binding */ APP_ID),
          /* harmony export */   APP_INITIALIZER: () => (/* binding */ APP_INITIALIZER),
          /* harmony export */   ApplicationInitStatus: () => (/* binding */ ApplicationInitStatus),
          /* harmony export */   ApplicationModule: () => (/* binding */ ApplicationModule),
          /* harmony export */   ApplicationRef: () => (/* binding */ ApplicationRef),
          /* harmony export */   Attribute: () => (/* binding */ Attribute),
          /* harmony export */   COMPILER_OPTIONS: () => (/* binding */ COMPILER_OPTIONS),
          /* harmony export */   CSP_NONCE: () => (/* binding */ CSP_NONCE),
          /* harmony export */   CUSTOM_ELEMENTS_SCHEMA: () => (/* binding */ CUSTOM_ELEMENTS_SCHEMA),
          /* harmony export */   ChangeDetectionStrategy: () => (/* binding */ ChangeDetectionStrategy),
          /* harmony export */   ChangeDetectorRef: () => (/* binding */ ChangeDetectorRef),
          /* harmony export */   Compiler: () => (/* binding */ Compiler),
          /* harmony export */   CompilerFactory: () => (/* binding */ CompilerFactory),
          /* harmony export */   Component: () => (/* binding */ Component),
          /* harmony export */   ComponentFactory: () => (/* binding */ ComponentFactory$1),
          /* harmony export */   ComponentFactoryResolver: () => (/* binding */ ComponentFactoryResolver$1),
          /* harmony export */   ComponentRef: () => (/* binding */ ComponentRef$1),
          /* harmony export */   ContentChild: () => (/* binding */ ContentChild),
          /* harmony export */   ContentChildren: () => (/* binding */ ContentChildren),
          /* harmony export */   DEFAULT_CURRENCY_CODE: () => (/* binding */ DEFAULT_CURRENCY_CODE),
          /* harmony export */   DebugElement: () => (/* binding */ DebugElement),
          /* harmony export */   DebugEventListener: () => (/* binding */ DebugEventListener),
          /* harmony export */   DebugNode: () => (/* binding */ DebugNode),
          /* harmony export */   DefaultIterableDiffer: () => (/* binding */ DefaultIterableDiffer),
          /* harmony export */   DestroyRef: () => (/* binding */ DestroyRef),
          /* harmony export */   Directive: () => (/* binding */ Directive),
          /* harmony export */   ENVIRONMENT_INITIALIZER: () => (/* binding */ ENVIRONMENT_INITIALIZER),
          /* harmony export */   ElementRef: () => (/* binding */ ElementRef),
          /* harmony export */   EmbeddedViewRef: () => (/* binding */ EmbeddedViewRef),
          /* harmony export */   EnvironmentInjector: () => (/* binding */ EnvironmentInjector),
          /* harmony export */   ErrorHandler: () => (/* binding */ ErrorHandler),
          /* harmony export */   EventEmitter: () => (/* binding */ EventEmitter),
          /* harmony export */   Host: () => (/* binding */ Host),
          /* harmony export */   HostBinding: () => (/* binding */ HostBinding),
          /* harmony export */   HostListener: () => (/* binding */ HostListener),
          /* harmony export */   INJECTOR: () => (/* binding */ INJECTOR),
          /* harmony export */   Inject: () => (/* binding */ Inject),
          /* harmony export */   InjectFlags: () => (/* binding */ InjectFlags),
          /* harmony export */   Injectable: () => (/* binding */ Injectable),
          /* harmony export */   InjectionToken: () => (/* binding */ InjectionToken),
          /* harmony export */   Injector: () => (/* binding */ Injector),
          /* harmony export */   Input: () => (/* binding */ Input),
          /* harmony export */   IterableDiffers: () => (/* binding */ IterableDiffers),
          /* harmony export */   KeyValueDiffers: () => (/* binding */ KeyValueDiffers),
          /* harmony export */   LOCALE_ID: () => (/* binding */ LOCALE_ID),
          /* harmony export */   MissingTranslationStrategy: () => (/* binding */ MissingTranslationStrategy),
          /* harmony export */   ModuleWithComponentFactories: () => (/* binding */ ModuleWithComponentFactories),
          /* harmony export */   NO_ERRORS_SCHEMA: () => (/* binding */ NO_ERRORS_SCHEMA),
          /* harmony export */   NgModule: () => (/* binding */ NgModule),
          /* harmony export */   NgModuleFactory: () => (/* binding */ NgModuleFactory$1),
          /* harmony export */   NgModuleRef: () => (/* binding */ NgModuleRef$1),
          /* harmony export */   NgProbeToken: () => (/* binding */ NgProbeToken),
          /* harmony export */   NgZone: () => (/* binding */ NgZone),
          /* harmony export */   Optional: () => (/* binding */ Optional),
          /* harmony export */   Output: () => (/* binding */ Output),
          /* harmony export */   PACKAGE_ROOT_URL: () => (/* binding */ PACKAGE_ROOT_URL),
          /* harmony export */   PLATFORM_ID: () => (/* binding */ PLATFORM_ID),
          /* harmony export */   PLATFORM_INITIALIZER: () => (/* binding */ PLATFORM_INITIALIZER),
          /* harmony export */   Pipe: () => (/* binding */ Pipe),
          /* harmony export */   PlatformRef: () => (/* binding */ PlatformRef),
          /* harmony export */   Query: () => (/* binding */ Query),
          /* harmony export */   QueryList: () => (/* binding */ QueryList),
          /* harmony export */   Renderer2: () => (/* binding */ Renderer2),
          /* harmony export */   RendererFactory2: () => (/* binding */ RendererFactory2),
          /* harmony export */   RendererStyleFlags2: () => (/* binding */ RendererStyleFlags2),
          /* harmony export */   Sanitizer: () => (/* binding */ Sanitizer),
          /* harmony export */   SecurityContext: () => (/* binding */ SecurityContext),
          /* harmony export */   Self: () => (/* binding */ Self),
          /* harmony export */   SimpleChange: () => (/* binding */ SimpleChange),
          /* harmony export */   SkipSelf: () => (/* binding */ SkipSelf),
          /* harmony export */   TRANSLATIONS: () => (/* binding */ TRANSLATIONS),
          /* harmony export */   TRANSLATIONS_FORMAT: () => (/* binding */ TRANSLATIONS_FORMAT),
          /* harmony export */   TemplateRef: () => (/* binding */ TemplateRef),
          /* harmony export */   Testability: () => (/* binding */ Testability),
          /* harmony export */   TestabilityRegistry: () => (/* binding */ TestabilityRegistry),
          /* harmony export */   TransferState: () => (/* binding */ TransferState),
          /* harmony export */   Type: () => (/* binding */ Type),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   Version: () => (/* binding */ Version),
          /* harmony export */   ViewChild: () => (/* binding */ ViewChild),
          /* harmony export */   ViewChildren: () => (/* binding */ ViewChildren),
          /* harmony export */   ViewContainerRef: () => (/* binding */ ViewContainerRef),
          /* harmony export */   ViewEncapsulation: () => (/* binding */ ViewEncapsulation$1),
          /* harmony export */   ViewRef: () => (/* binding */ ViewRef),
          /* harmony export */   afterNextRender: () => (/* binding */ afterNextRender),
          /* harmony export */   afterRender: () => (/* binding */ afterRender),
          /* harmony export */   asNativeElements: () => (/* binding */ asNativeElements),
          /* harmony export */   assertInInjectionContext: () => (/* binding */ assertInInjectionContext),
          /* harmony export */   assertPlatform: () => (/* binding */ assertPlatform),
          /* harmony export */   booleanAttribute: () => (/* binding */ booleanAttribute),
          /* harmony export */   computed: () => (/* binding */ computed),
          /* harmony export */   createComponent: () => (/* binding */ createComponent),
          /* harmony export */   createEnvironmentInjector: () => (/* binding */ createEnvironmentInjector),
          /* harmony export */   createNgModule: () => (/* binding */ createNgModule),
          /* harmony export */   createNgModuleRef: () => (/* binding */ createNgModuleRef),
          /* harmony export */   createPlatform: () => (/* binding */ createPlatform),
          /* harmony export */   createPlatformFactory: () => (/* binding */ createPlatformFactory),
          /* harmony export */   defineInjectable: () => (/* binding */ defineInjectable),
          /* harmony export */   destroyPlatform: () => (/* binding */ destroyPlatform),
          /* harmony export */   effect: () => (/* binding */ effect),
          /* harmony export */   enableProdMode: () => (/* binding */ enableProdMode),
          /* harmony export */   forwardRef: () => (/* binding */ forwardRef),
          /* harmony export */   getDebugNode: () => (/* binding */ getDebugNode),
          /* harmony export */   getModuleFactory: () => (/* binding */ getModuleFactory),
          /* harmony export */   getNgModuleById: () => (/* binding */ getNgModuleById),
          /* harmony export */   getPlatform: () => (/* binding */ getPlatform),
          /* harmony export */   importProvidersFrom: () => (/* binding */ importProvidersFrom),
          /* harmony export */   inject: () => (/* binding */ inject),
          /* harmony export */   isDevMode: () => (/* binding */ isDevMode),
          /* harmony export */   isSignal: () => (/* binding */ isSignal),
          /* harmony export */   isStandalone: () => (/* binding */ isStandalone),
          /* harmony export */   makeEnvironmentProviders: () => (/* binding */ makeEnvironmentProviders),
          /* harmony export */   makeStateKey: () => (/* binding */ makeStateKey),
          /* harmony export */   mergeApplicationConfig: () => (/* binding */ mergeApplicationConfig),
          /* harmony export */   numberAttribute: () => (/* binding */ numberAttribute),
          /* harmony export */   platformCore: () => (/* binding */ platformCore),
          /* harmony export */   provideZoneChangeDetection: () => (/* binding */ provideZoneChangeDetection),
          /* harmony export */   reflectComponentType: () => (/* binding */ reflectComponentType),
          /* harmony export */   resolveForwardRef: () => (/* binding */ resolveForwardRef),
          /* harmony export */   runInInjectionContext: () => (/* binding */ runInInjectionContext),
          /* harmony export */   setTestabilityGetter: () => (/* binding */ setTestabilityGetter),
          /* harmony export */   signal: () => (/* binding */ signal),
          /* harmony export */   untracked: () => (/* binding */ untracked),
          /* harmony export */   "ɵALLOW_MULTIPLE_PLATFORMS": () => (/* binding */ ALLOW_MULTIPLE_PLATFORMS),
          /* harmony export */   "ɵAfterRenderEventManager": () => (/* binding */ AfterRenderEventManager),
          /* harmony export */   "ɵComponentFactory": () => (/* binding */ ComponentFactory$1),
          /* harmony export */   "ɵConsole": () => (/* binding */ Console),
          /* harmony export */   "ɵDEFAULT_LOCALE_ID": () => (/* binding */ DEFAULT_LOCALE_ID),
          /* harmony export */   "ɵENABLED_SSR_FEATURES": () => (/* binding */ ENABLED_SSR_FEATURES),
          /* harmony export */   "ɵINJECTOR_SCOPE": () => (/* binding */ INJECTOR_SCOPE),
          /* harmony export */   "ɵIS_HYDRATION_DOM_REUSE_ENABLED": () => (/* binding */ IS_HYDRATION_DOM_REUSE_ENABLED),
          /* harmony export */   "ɵInitialRenderPendingTasks": () => (/* binding */ InitialRenderPendingTasks),
          /* harmony export */   "ɵLContext": () => (/* binding */ LContext),
          /* harmony export */   "ɵLifecycleHooksFeature": () => (/* binding */ LifecycleHooksFeature),
          /* harmony export */   "ɵLocaleDataIndex": () => (/* binding */ LocaleDataIndex),
          /* harmony export */   "ɵNG_COMP_DEF": () => (/* binding */ NG_COMP_DEF),
          /* harmony export */   "ɵNG_DIR_DEF": () => (/* binding */ NG_DIR_DEF),
          /* harmony export */   "ɵNG_ELEMENT_ID": () => (/* binding */ NG_ELEMENT_ID),
          /* harmony export */   "ɵNG_INJ_DEF": () => (/* binding */ NG_INJ_DEF),
          /* harmony export */   "ɵNG_MOD_DEF": () => (/* binding */ NG_MOD_DEF),
          /* harmony export */   "ɵNG_PIPE_DEF": () => (/* binding */ NG_PIPE_DEF),
          /* harmony export */   "ɵNG_PROV_DEF": () => (/* binding */ NG_PROV_DEF),
          /* harmony export */   "ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR": () => (/* binding */ NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR),
          /* harmony export */   "ɵNO_CHANGE": () => (/* binding */ NO_CHANGE),
          /* harmony export */   "ɵNgModuleFactory": () => (/* binding */ NgModuleFactory),
          /* harmony export */   "ɵNoopNgZone": () => (/* binding */ NoopNgZone),
          /* harmony export */   "ɵReflectionCapabilities": () => (/* binding */ ReflectionCapabilities),
          /* harmony export */   "ɵRender3ComponentFactory": () => (/* binding */ ComponentFactory),
          /* harmony export */   "ɵRender3ComponentRef": () => (/* binding */ ComponentRef),
          /* harmony export */   "ɵRender3NgModuleRef": () => (/* binding */ NgModuleRef),
          /* harmony export */   "ɵRuntimeError": () => (/* binding */ RuntimeError),
          /* harmony export */   "ɵSSR_CONTENT_INTEGRITY_MARKER": () => (/* binding */ SSR_CONTENT_INTEGRITY_MARKER),
          /* harmony export */   "ɵTESTABILITY": () => (/* binding */ TESTABILITY),
          /* harmony export */   "ɵTESTABILITY_GETTER": () => (/* binding */ TESTABILITY_GETTER),
          /* harmony export */   "ɵViewRef": () => (/* binding */ ViewRef$1),
          /* harmony export */   "ɵXSS_SECURITY_URL": () => (/* binding */ XSS_SECURITY_URL),
          /* harmony export */   "ɵ_sanitizeHtml": () => (/* binding */ _sanitizeHtml),
          /* harmony export */   "ɵ_sanitizeUrl": () => (/* binding */ _sanitizeUrl),
          /* harmony export */   "ɵallowSanitizationBypassAndThrow": () => (/* binding */ allowSanitizationBypassAndThrow),
          /* harmony export */   "ɵannotateForHydration": () => (/* binding */ annotateForHydration),
          /* harmony export */   "ɵbypassSanitizationTrustHtml": () => (/* binding */ bypassSanitizationTrustHtml),
          /* harmony export */   "ɵbypassSanitizationTrustResourceUrl": () => (/* binding */ bypassSanitizationTrustResourceUrl),
          /* harmony export */   "ɵbypassSanitizationTrustScript": () => (/* binding */ bypassSanitizationTrustScript),
          /* harmony export */   "ɵbypassSanitizationTrustStyle": () => (/* binding */ bypassSanitizationTrustStyle),
          /* harmony export */   "ɵbypassSanitizationTrustUrl": () => (/* binding */ bypassSanitizationTrustUrl),
          /* harmony export */   "ɵclearResolutionOfComponentResourcesQueue": () => (/* binding */ clearResolutionOfComponentResourcesQueue),
          /* harmony export */   "ɵcompileComponent": () => (/* binding */ compileComponent),
          /* harmony export */   "ɵcompileDirective": () => (/* binding */ compileDirective),
          /* harmony export */   "ɵcompileNgModule": () => (/* binding */ compileNgModule),
          /* harmony export */   "ɵcompileNgModuleDefs": () => (/* binding */ compileNgModuleDefs),
          /* harmony export */   "ɵcompileNgModuleFactory": () => (/* binding */ compileNgModuleFactory),
          /* harmony export */   "ɵcompilePipe": () => (/* binding */ compilePipe),
          /* harmony export */   "ɵconvertToBitFlags": () => (/* binding */ convertToBitFlags),
          /* harmony export */   "ɵcreateInjector": () => (/* binding */ createInjector),
          /* harmony export */   "ɵdefaultIterableDiffers": () => (/* binding */ defaultIterableDiffers),
          /* harmony export */   "ɵdefaultKeyValueDiffers": () => (/* binding */ defaultKeyValueDiffers),
          /* harmony export */   "ɵdetectChanges": () => (/* binding */ detectChanges),
          /* harmony export */   "ɵdevModeEqual": () => (/* binding */ devModeEqual),
          /* harmony export */   "ɵfindLocaleData": () => (/* binding */ findLocaleData),
          /* harmony export */   "ɵflushModuleScopingQueueAsMuchAsPossible": () => (/* binding */ flushModuleScopingQueueAsMuchAsPossible),
          /* harmony export */   "ɵformatRuntimeError": () => (/* binding */ formatRuntimeError),
          /* harmony export */   "ɵgetDebugNode": () => (/* binding */ getDebugNode),
          /* harmony export */   "ɵgetDirectives": () => (/* binding */ getDirectives),
          /* harmony export */   "ɵgetHostElement": () => (/* binding */ getHostElement),
          /* harmony export */   "ɵgetInjectableDef": () => (/* binding */ getInjectableDef),
          /* harmony export */   "ɵgetLContext": () => (/* binding */ getLContext),
          /* harmony export */   "ɵgetLocaleCurrencyCode": () => (/* binding */ getLocaleCurrencyCode),
          /* harmony export */   "ɵgetLocalePluralCase": () => (/* binding */ getLocalePluralCase),
          /* harmony export */   "ɵgetSanitizationBypassType": () => (/* binding */ getSanitizationBypassType),
          /* harmony export */   "ɵgetUnknownElementStrictMode": () => (/* binding */ ɵgetUnknownElementStrictMode),
          /* harmony export */   "ɵgetUnknownPropertyStrictMode": () => (/* binding */ ɵgetUnknownPropertyStrictMode),
          /* harmony export */   "ɵglobal": () => (/* binding */ _global),
          /* harmony export */   "ɵinjectChangeDetectorRef": () => (/* binding */ injectChangeDetectorRef),
          /* harmony export */   "ɵinternalCreateApplication": () => (/* binding */ internalCreateApplication),
          /* harmony export */   "ɵisBoundToModule": () => (/* binding */ isBoundToModule),
          /* harmony export */   "ɵisEnvironmentProviders": () => (/* binding */ isEnvironmentProviders),
          /* harmony export */   "ɵisInjectable": () => (/* binding */ isInjectable),
          /* harmony export */   "ɵisNgModule": () => (/* binding */ isNgModule),
          /* harmony export */   "ɵisPromise": () => (/* binding */ isPromise),
          /* harmony export */   "ɵisSubscribable": () => (/* binding */ isSubscribable),
          /* harmony export */   "ɵnoSideEffects": () => (/* binding */ noSideEffects),
          /* harmony export */   "ɵpatchComponentDefWithScope": () => (/* binding */ patchComponentDefWithScope),
          /* harmony export */   "ɵpublishDefaultGlobalUtils": () => (/* binding */ publishDefaultGlobalUtils$1),
          /* harmony export */   "ɵpublishGlobalUtil": () => (/* binding */ publishGlobalUtil),
          /* harmony export */   "ɵregisterLocaleData": () => (/* binding */ registerLocaleData),
          /* harmony export */   "ɵresetCompiledComponents": () => (/* binding */ resetCompiledComponents),
          /* harmony export */   "ɵresetJitOptions": () => (/* binding */ resetJitOptions),
          /* harmony export */   "ɵresolveComponentResources": () => (/* binding */ resolveComponentResources),
          /* harmony export */   "ɵsetAllowDuplicateNgModuleIdsForTest": () => (/* binding */ setAllowDuplicateNgModuleIdsForTest),
          /* harmony export */   "ɵsetAlternateWeakRefImpl": () => (/* binding */ setAlternateWeakRefImpl),
          /* harmony export */   "ɵsetClassMetadata": () => (/* binding */ setClassMetadata),
          /* harmony export */   "ɵsetCurrentInjector": () => (/* binding */ setCurrentInjector),
          /* harmony export */   "ɵsetDocument": () => (/* binding */ setDocument),
          /* harmony export */   "ɵsetInjectorProfilerContext": () => (/* binding */ setInjectorProfilerContext),
          /* harmony export */   "ɵsetLocaleId": () => (/* binding */ setLocaleId),
          /* harmony export */   "ɵsetUnknownElementStrictMode": () => (/* binding */ ɵsetUnknownElementStrictMode),
          /* harmony export */   "ɵsetUnknownPropertyStrictMode": () => (/* binding */ ɵsetUnknownPropertyStrictMode),
          /* harmony export */   "ɵstore": () => (/* binding */ store),
          /* harmony export */   "ɵstringify": () => (/* binding */ stringify),
          /* harmony export */   "ɵtransitiveScopesFor": () => (/* binding */ transitiveScopesFor),
          /* harmony export */   "ɵunregisterLocaleData": () => (/* binding */ unregisterAllLocaleData),
          /* harmony export */   "ɵunwrapSafeValue": () => (/* binding */ unwrapSafeValue),
          /* harmony export */   "ɵwithDomHydration": () => (/* binding */ withDomHydration),
          /* harmony export */   "ɵɵCopyDefinitionFeature": () => (/* binding */ ɵɵCopyDefinitionFeature),
          /* harmony export */   "ɵɵFactoryTarget": () => (/* binding */ FactoryTarget),
          /* harmony export */   "ɵɵHostDirectivesFeature": () => (/* binding */ ɵɵHostDirectivesFeature),
          /* harmony export */   "ɵɵInheritDefinitionFeature": () => (/* binding */ ɵɵInheritDefinitionFeature),
          /* harmony export */   "ɵɵInputTransformsFeature": () => (/* binding */ ɵɵInputTransformsFeature),
          /* harmony export */   "ɵɵNgOnChangesFeature": () => (/* binding */ ɵɵNgOnChangesFeature),
          /* harmony export */   "ɵɵProvidersFeature": () => (/* binding */ ɵɵProvidersFeature),
          /* harmony export */   "ɵɵStandaloneFeature": () => (/* binding */ ɵɵStandaloneFeature),
          /* harmony export */   "ɵɵadvance": () => (/* binding */ ɵɵadvance),
          /* harmony export */   "ɵɵattribute": () => (/* binding */ ɵɵattribute),
          /* harmony export */   "ɵɵattributeInterpolate1": () => (/* binding */ ɵɵattributeInterpolate1),
          /* harmony export */   "ɵɵattributeInterpolate2": () => (/* binding */ ɵɵattributeInterpolate2),
          /* harmony export */   "ɵɵattributeInterpolate3": () => (/* binding */ ɵɵattributeInterpolate3),
          /* harmony export */   "ɵɵattributeInterpolate4": () => (/* binding */ ɵɵattributeInterpolate4),
          /* harmony export */   "ɵɵattributeInterpolate5": () => (/* binding */ ɵɵattributeInterpolate5),
          /* harmony export */   "ɵɵattributeInterpolate6": () => (/* binding */ ɵɵattributeInterpolate6),
          /* harmony export */   "ɵɵattributeInterpolate7": () => (/* binding */ ɵɵattributeInterpolate7),
          /* harmony export */   "ɵɵattributeInterpolate8": () => (/* binding */ ɵɵattributeInterpolate8),
          /* harmony export */   "ɵɵattributeInterpolateV": () => (/* binding */ ɵɵattributeInterpolateV),
          /* harmony export */   "ɵɵclassMap": () => (/* binding */ ɵɵclassMap),
          /* harmony export */   "ɵɵclassMapInterpolate1": () => (/* binding */ ɵɵclassMapInterpolate1),
          /* harmony export */   "ɵɵclassMapInterpolate2": () => (/* binding */ ɵɵclassMapInterpolate2),
          /* harmony export */   "ɵɵclassMapInterpolate3": () => (/* binding */ ɵɵclassMapInterpolate3),
          /* harmony export */   "ɵɵclassMapInterpolate4": () => (/* binding */ ɵɵclassMapInterpolate4),
          /* harmony export */   "ɵɵclassMapInterpolate5": () => (/* binding */ ɵɵclassMapInterpolate5),
          /* harmony export */   "ɵɵclassMapInterpolate6": () => (/* binding */ ɵɵclassMapInterpolate6),
          /* harmony export */   "ɵɵclassMapInterpolate7": () => (/* binding */ ɵɵclassMapInterpolate7),
          /* harmony export */   "ɵɵclassMapInterpolate8": () => (/* binding */ ɵɵclassMapInterpolate8),
          /* harmony export */   "ɵɵclassMapInterpolateV": () => (/* binding */ ɵɵclassMapInterpolateV),
          /* harmony export */   "ɵɵclassProp": () => (/* binding */ ɵɵclassProp),
          /* harmony export */   "ɵɵcontentQuery": () => (/* binding */ ɵɵcontentQuery),
          /* harmony export */   "ɵɵdefer": () => (/* binding */ ɵɵdefer),
          /* harmony export */   "ɵɵdefineComponent": () => (/* binding */ ɵɵdefineComponent),
          /* harmony export */   "ɵɵdefineDirective": () => (/* binding */ ɵɵdefineDirective),
          /* harmony export */   "ɵɵdefineInjectable": () => (/* binding */ ɵɵdefineInjectable),
          /* harmony export */   "ɵɵdefineInjector": () => (/* binding */ ɵɵdefineInjector),
          /* harmony export */   "ɵɵdefineNgModule": () => (/* binding */ ɵɵdefineNgModule),
          /* harmony export */   "ɵɵdefinePipe": () => (/* binding */ ɵɵdefinePipe),
          /* harmony export */   "ɵɵdirectiveInject": () => (/* binding */ ɵɵdirectiveInject),
          /* harmony export */   "ɵɵdisableBindings": () => (/* binding */ ɵɵdisableBindings),
          /* harmony export */   "ɵɵelement": () => (/* binding */ ɵɵelement),
          /* harmony export */   "ɵɵelementContainer": () => (/* binding */ ɵɵelementContainer),
          /* harmony export */   "ɵɵelementContainerEnd": () => (/* binding */ ɵɵelementContainerEnd),
          /* harmony export */   "ɵɵelementContainerStart": () => (/* binding */ ɵɵelementContainerStart),
          /* harmony export */   "ɵɵelementEnd": () => (/* binding */ ɵɵelementEnd),
          /* harmony export */   "ɵɵelementStart": () => (/* binding */ ɵɵelementStart),
          /* harmony export */   "ɵɵenableBindings": () => (/* binding */ ɵɵenableBindings),
          /* harmony export */   "ɵɵgetCurrentView": () => (/* binding */ ɵɵgetCurrentView),
          /* harmony export */   "ɵɵgetInheritedFactory": () => (/* binding */ ɵɵgetInheritedFactory),
          /* harmony export */   "ɵɵhostProperty": () => (/* binding */ ɵɵhostProperty),
          /* harmony export */   "ɵɵi18n": () => (/* binding */ ɵɵi18n),
          /* harmony export */   "ɵɵi18nApply": () => (/* binding */ ɵɵi18nApply),
          /* harmony export */   "ɵɵi18nAttributes": () => (/* binding */ ɵɵi18nAttributes),
          /* harmony export */   "ɵɵi18nEnd": () => (/* binding */ ɵɵi18nEnd),
          /* harmony export */   "ɵɵi18nExp": () => (/* binding */ ɵɵi18nExp),
          /* harmony export */   "ɵɵi18nPostprocess": () => (/* binding */ ɵɵi18nPostprocess),
          /* harmony export */   "ɵɵi18nStart": () => (/* binding */ ɵɵi18nStart),
          /* harmony export */   "ɵɵinject": () => (/* binding */ ɵɵinject),
          /* harmony export */   "ɵɵinjectAttribute": () => (/* binding */ ɵɵinjectAttribute),
          /* harmony export */   "ɵɵinvalidFactory": () => (/* binding */ ɵɵinvalidFactory),
          /* harmony export */   "ɵɵinvalidFactoryDep": () => (/* binding */ ɵɵinvalidFactoryDep),
          /* harmony export */   "ɵɵlistener": () => (/* binding */ ɵɵlistener),
          /* harmony export */   "ɵɵloadQuery": () => (/* binding */ ɵɵloadQuery),
          /* harmony export */   "ɵɵnamespaceHTML": () => (/* binding */ ɵɵnamespaceHTML),
          /* harmony export */   "ɵɵnamespaceMathML": () => (/* binding */ ɵɵnamespaceMathML),
          /* harmony export */   "ɵɵnamespaceSVG": () => (/* binding */ ɵɵnamespaceSVG),
          /* harmony export */   "ɵɵnextContext": () => (/* binding */ ɵɵnextContext),
          /* harmony export */   "ɵɵngDeclareClassMetadata": () => (/* binding */ ɵɵngDeclareClassMetadata),
          /* harmony export */   "ɵɵngDeclareComponent": () => (/* binding */ ɵɵngDeclareComponent),
          /* harmony export */   "ɵɵngDeclareDirective": () => (/* binding */ ɵɵngDeclareDirective),
          /* harmony export */   "ɵɵngDeclareFactory": () => (/* binding */ ɵɵngDeclareFactory),
          /* harmony export */   "ɵɵngDeclareInjectable": () => (/* binding */ ɵɵngDeclareInjectable),
          /* harmony export */   "ɵɵngDeclareInjector": () => (/* binding */ ɵɵngDeclareInjector),
          /* harmony export */   "ɵɵngDeclareNgModule": () => (/* binding */ ɵɵngDeclareNgModule),
          /* harmony export */   "ɵɵngDeclarePipe": () => (/* binding */ ɵɵngDeclarePipe),
          /* harmony export */   "ɵɵpipe": () => (/* binding */ ɵɵpipe),
          /* harmony export */   "ɵɵpipeBind1": () => (/* binding */ ɵɵpipeBind1),
          /* harmony export */   "ɵɵpipeBind2": () => (/* binding */ ɵɵpipeBind2),
          /* harmony export */   "ɵɵpipeBind3": () => (/* binding */ ɵɵpipeBind3),
          /* harmony export */   "ɵɵpipeBind4": () => (/* binding */ ɵɵpipeBind4),
          /* harmony export */   "ɵɵpipeBindV": () => (/* binding */ ɵɵpipeBindV),
          /* harmony export */   "ɵɵprojection": () => (/* binding */ ɵɵprojection),
          /* harmony export */   "ɵɵprojectionDef": () => (/* binding */ ɵɵprojectionDef),
          /* harmony export */   "ɵɵproperty": () => (/* binding */ ɵɵproperty),
          /* harmony export */   "ɵɵpropertyInterpolate": () => (/* binding */ ɵɵpropertyInterpolate),
          /* harmony export */   "ɵɵpropertyInterpolate1": () => (/* binding */ ɵɵpropertyInterpolate1),
          /* harmony export */   "ɵɵpropertyInterpolate2": () => (/* binding */ ɵɵpropertyInterpolate2),
          /* harmony export */   "ɵɵpropertyInterpolate3": () => (/* binding */ ɵɵpropertyInterpolate3),
          /* harmony export */   "ɵɵpropertyInterpolate4": () => (/* binding */ ɵɵpropertyInterpolate4),
          /* harmony export */   "ɵɵpropertyInterpolate5": () => (/* binding */ ɵɵpropertyInterpolate5),
          /* harmony export */   "ɵɵpropertyInterpolate6": () => (/* binding */ ɵɵpropertyInterpolate6),
          /* harmony export */   "ɵɵpropertyInterpolate7": () => (/* binding */ ɵɵpropertyInterpolate7),
          /* harmony export */   "ɵɵpropertyInterpolate8": () => (/* binding */ ɵɵpropertyInterpolate8),
          /* harmony export */   "ɵɵpropertyInterpolateV": () => (/* binding */ ɵɵpropertyInterpolateV),
          /* harmony export */   "ɵɵpureFunction0": () => (/* binding */ ɵɵpureFunction0),
          /* harmony export */   "ɵɵpureFunction1": () => (/* binding */ ɵɵpureFunction1),
          /* harmony export */   "ɵɵpureFunction2": () => (/* binding */ ɵɵpureFunction2),
          /* harmony export */   "ɵɵpureFunction3": () => (/* binding */ ɵɵpureFunction3),
          /* harmony export */   "ɵɵpureFunction4": () => (/* binding */ ɵɵpureFunction4),
          /* harmony export */   "ɵɵpureFunction5": () => (/* binding */ ɵɵpureFunction5),
          /* harmony export */   "ɵɵpureFunction6": () => (/* binding */ ɵɵpureFunction6),
          /* harmony export */   "ɵɵpureFunction7": () => (/* binding */ ɵɵpureFunction7),
          /* harmony export */   "ɵɵpureFunction8": () => (/* binding */ ɵɵpureFunction8),
          /* harmony export */   "ɵɵpureFunctionV": () => (/* binding */ ɵɵpureFunctionV),
          /* harmony export */   "ɵɵqueryRefresh": () => (/* binding */ ɵɵqueryRefresh),
          /* harmony export */   "ɵɵreference": () => (/* binding */ ɵɵreference),
          /* harmony export */   "ɵɵregisterNgModuleType": () => (/* binding */ registerNgModuleType),
          /* harmony export */   "ɵɵresetView": () => (/* binding */ ɵɵresetView),
          /* harmony export */   "ɵɵresolveBody": () => (/* binding */ ɵɵresolveBody),
          /* harmony export */   "ɵɵresolveDocument": () => (/* binding */ ɵɵresolveDocument),
          /* harmony export */   "ɵɵresolveWindow": () => (/* binding */ ɵɵresolveWindow),
          /* harmony export */   "ɵɵrestoreView": () => (/* binding */ ɵɵrestoreView),
          /* harmony export */   "ɵɵsanitizeHtml": () => (/* binding */ ɵɵsanitizeHtml),
          /* harmony export */   "ɵɵsanitizeResourceUrl": () => (/* binding */ ɵɵsanitizeResourceUrl),
          /* harmony export */   "ɵɵsanitizeScript": () => (/* binding */ ɵɵsanitizeScript),
          /* harmony export */   "ɵɵsanitizeStyle": () => (/* binding */ ɵɵsanitizeStyle),
          /* harmony export */   "ɵɵsanitizeUrl": () => (/* binding */ ɵɵsanitizeUrl),
          /* harmony export */   "ɵɵsanitizeUrlOrResourceUrl": () => (/* binding */ ɵɵsanitizeUrlOrResourceUrl),
          /* harmony export */   "ɵɵsetComponentScope": () => (/* binding */ ɵɵsetComponentScope),
          /* harmony export */   "ɵɵsetNgModuleScope": () => (/* binding */ ɵɵsetNgModuleScope),
          /* harmony export */   "ɵɵstyleMap": () => (/* binding */ ɵɵstyleMap),
          /* harmony export */   "ɵɵstyleMapInterpolate1": () => (/* binding */ ɵɵstyleMapInterpolate1),
          /* harmony export */   "ɵɵstyleMapInterpolate2": () => (/* binding */ ɵɵstyleMapInterpolate2),
          /* harmony export */   "ɵɵstyleMapInterpolate3": () => (/* binding */ ɵɵstyleMapInterpolate3),
          /* harmony export */   "ɵɵstyleMapInterpolate4": () => (/* binding */ ɵɵstyleMapInterpolate4),
          /* harmony export */   "ɵɵstyleMapInterpolate5": () => (/* binding */ ɵɵstyleMapInterpolate5),
          /* harmony export */   "ɵɵstyleMapInterpolate6": () => (/* binding */ ɵɵstyleMapInterpolate6),
          /* harmony export */   "ɵɵstyleMapInterpolate7": () => (/* binding */ ɵɵstyleMapInterpolate7),
          /* harmony export */   "ɵɵstyleMapInterpolate8": () => (/* binding */ ɵɵstyleMapInterpolate8),
          /* harmony export */   "ɵɵstyleMapInterpolateV": () => (/* binding */ ɵɵstyleMapInterpolateV),
          /* harmony export */   "ɵɵstyleProp": () => (/* binding */ ɵɵstyleProp),
          /* harmony export */   "ɵɵstylePropInterpolate1": () => (/* binding */ ɵɵstylePropInterpolate1),
          /* harmony export */   "ɵɵstylePropInterpolate2": () => (/* binding */ ɵɵstylePropInterpolate2),
          /* harmony export */   "ɵɵstylePropInterpolate3": () => (/* binding */ ɵɵstylePropInterpolate3),
          /* harmony export */   "ɵɵstylePropInterpolate4": () => (/* binding */ ɵɵstylePropInterpolate4),
          /* harmony export */   "ɵɵstylePropInterpolate5": () => (/* binding */ ɵɵstylePropInterpolate5),
          /* harmony export */   "ɵɵstylePropInterpolate6": () => (/* binding */ ɵɵstylePropInterpolate6),
          /* harmony export */   "ɵɵstylePropInterpolate7": () => (/* binding */ ɵɵstylePropInterpolate7),
          /* harmony export */   "ɵɵstylePropInterpolate8": () => (/* binding */ ɵɵstylePropInterpolate8),
          /* harmony export */   "ɵɵstylePropInterpolateV": () => (/* binding */ ɵɵstylePropInterpolateV),
          /* harmony export */   "ɵɵsyntheticHostListener": () => (/* binding */ ɵɵsyntheticHostListener),
          /* harmony export */   "ɵɵsyntheticHostProperty": () => (/* binding */ ɵɵsyntheticHostProperty),
          /* harmony export */   "ɵɵtemplate": () => (/* binding */ ɵɵtemplate),
          /* harmony export */   "ɵɵtemplateRefExtractor": () => (/* binding */ ɵɵtemplateRefExtractor),
          /* harmony export */   "ɵɵtext": () => (/* binding */ ɵɵtext),
          /* harmony export */   "ɵɵtextInterpolate": () => (/* binding */ ɵɵtextInterpolate),
          /* harmony export */   "ɵɵtextInterpolate1": () => (/* binding */ ɵɵtextInterpolate1),
          /* harmony export */   "ɵɵtextInterpolate2": () => (/* binding */ ɵɵtextInterpolate2),
          /* harmony export */   "ɵɵtextInterpolate3": () => (/* binding */ ɵɵtextInterpolate3),
          /* harmony export */   "ɵɵtextInterpolate4": () => (/* binding */ ɵɵtextInterpolate4),
          /* harmony export */   "ɵɵtextInterpolate5": () => (/* binding */ ɵɵtextInterpolate5),
          /* harmony export */   "ɵɵtextInterpolate6": () => (/* binding */ ɵɵtextInterpolate6),
          /* harmony export */   "ɵɵtextInterpolate7": () => (/* binding */ ɵɵtextInterpolate7),
          /* harmony export */   "ɵɵtextInterpolate8": () => (/* binding */ ɵɵtextInterpolate8),
          /* harmony export */   "ɵɵtextInterpolateV": () => (/* binding */ ɵɵtextInterpolateV),
          /* harmony export */   "ɵɵtrustConstantHtml": () => (/* binding */ ɵɵtrustConstantHtml),
          /* harmony export */   "ɵɵtrustConstantResourceUrl": () => (/* binding */ ɵɵtrustConstantResourceUrl),
          /* harmony export */   "ɵɵvalidateIframeAttribute": () => (/* binding */ ɵɵvalidateIframeAttribute),
          /* harmony export */   "ɵɵviewQuery": () => (/* binding */ ɵɵviewQuery)
          /* harmony export */ });
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 5797);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 1870);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 6647);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 1817);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 2435);
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          function getClosureSafeProperty(objWithPropertyToExtract) {
            for (let key in objWithPropertyToExtract) {
              if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
                return key;
              }
            }
            throw Error('Could not find renamed property on target object.');
          }
          /**
           * Sets properties on a target object from a source object, but only if
           * the property doesn't already exist on the target object.
           * @param target The target to set properties on
           * @param source The source of the property keys and values to set
           */
          function fillProperties(target, source) {
            for (const key in source) {
              if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
                target[key] = source[key];
              }
            }
          }
          function stringify(token) {
            if (typeof token === 'string') {
              return token;
            }
            if (Array.isArray(token)) {
              return '[' + token.map(stringify).join(', ') + ']';
            }
            if (token == null) {
              return '' + token;
            }
            if (token.overriddenName) {
              return `${token.overriddenName}`;
            }
            if (token.name) {
              return `${token.name}`;
            }
            const res = token.toString();
            if (res == null) {
              return '' + res;
            }
            const newLineIndex = res.indexOf('\n');
            return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
          }
          /**
           * Concatenates two strings with separator, allocating new strings only when necessary.
           *
           * @param before before string.
           * @param separator separator string.
           * @param after after string.
           * @returns concatenated string.
           */
          function concatStringsWithSpace(before, after) {
            return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;
          }
          const __forward_ref__ = getClosureSafeProperty({
            __forward_ref__: getClosureSafeProperty
          });
          /**
           * Allows to refer to references which are not yet defined.
           *
           * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
           * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
           * a query is not yet defined.
           *
           * `forwardRef` is also used to break circularities in standalone components imports.
           *
           * @usageNotes
           * ### Circular dependency example
           * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
           *
           * ### Circular standalone reference import example
           * ```ts
           * @Component({
           *   standalone: true,
           *   imports: [ChildComponent],
           *   selector: 'app-parent',
           *   template: `<app-child [hideParent]="hideParent"></app-child>`,
           * })
           * export class ParentComponent {
           *   @Input() hideParent: boolean;
           * }
           *
           *
           * @Component({
           *   standalone: true,
           *   imports: [CommonModule, forwardRef(() => ParentComponent)],
           *   selector: 'app-child',
           *   template: `<app-parent *ngIf="!hideParent"></app-parent>`,
           * })
           * export class ChildComponent {
           *   @Input() hideParent: boolean;
           * }
           * ```
           *
           * @publicApi
           */
          function forwardRef(forwardRefFn) {
            forwardRefFn.__forward_ref__ = forwardRef;
            forwardRefFn.toString = function () {
              return stringify(this());
            };
            return forwardRefFn;
          }
          /**
           * Lazily retrieves the reference value from a forwardRef.
           *
           * Acts as the identity function when given a non-forward-ref value.
           *
           * @usageNotes
           * ### Example
           *
           * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
           *
           * @see {@link forwardRef}
           * @publicApi
           */
          function resolveForwardRef(type) {
            return isForwardRef(type) ? type() : type;
          }
          /** Checks whether a function is wrapped by a `forwardRef`. */
          function isForwardRef(fn) {
            return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;
          }
          function isEnvironmentProviders(value) {
            return value && !!value.ɵproviders;
          }
          
          /**
           * Base URL for the error details page.
           *
           * Keep this constant in sync across:
           *  - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
           *  - packages/core/src/error_details_base_url.ts
           */
          const ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';
          /**
           * URL for the XSS security documentation.
           */
          const XSS_SECURITY_URL = 'https://g.co/ng/security#xss';
          
          /**
           * Class that represents a runtime error.
           * Formats and outputs the error message in a consistent way.
           *
           * Example:
           * ```
           *  throw new RuntimeError(
           *    RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,
           *    ngDevMode && 'Injector has already been destroyed.');
           * ```
           *
           * Note: the `message` argument contains a descriptive error message as a string in development
           * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the
           * `message` argument becomes `false`, thus we account for it in the typings and the runtime
           * logic.
           */
          class RuntimeError extends Error {
            constructor(code, message) {
              super(formatRuntimeError(code, message));
              this.code = code;
            }
          }
          /**
           * Called to format a runtime error.
           * See additional info on the `message` argument type in the `RuntimeError` class description.
           */
          function formatRuntimeError(code, message) {
            // Error code might be a negative number, which is a special marker that instructs the logic to
            // generate a link to the error details page on angular.io.
            // We also prepend `0` to non-compile-time errors.
            const fullCode = `NG0${Math.abs(code)}`;
            let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;
            if (ngDevMode && code < 0) {
              const addPeriodSeparator = !errorMessage.match(/[.,;!?\n]$/);
              const separator = addPeriodSeparator ? '.' : '';
              errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;
            }
            return errorMessage;
          }
          
          /**
           * Used for stringify render output in Ivy.
           * Important! This function is very performance-sensitive and we should
           * be extra careful not to introduce megamorphic reads in it.
           * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
           */
          function renderStringify(value) {
            if (typeof value === 'string') return value;
            if (value == null) return '';
            // Use `String` so that it invokes the `toString` method of the value. Note that this
            // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
            return String(value);
          }
          /**
           * Used to stringify a value so that it can be displayed in an error message.
           * Important! This function contains a megamorphic read and should only be
           * used for error messages.
           */
          function stringifyForError(value) {
            if (typeof value === 'function') return value.name || value.toString();
            if (typeof value === 'object' && value != null && typeof value.type === 'function') {
              return value.type.name || value.type.toString();
            }
            return renderStringify(value);
          }
          
          /** Called when directives inject each other (creating a circular dependency) */
          function throwCyclicDependencyError(token, path) {
            const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';
            throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, `Circular dependency in DI detected for ${token}${depPath}`);
          }
          function throwMixedMultiProviderError() {
            throw new Error(`Cannot mix multi providers and regular providers`);
          }
          function throwInvalidProviderError(ngModuleType, providers, provider) {
            if (ngModuleType && providers) {
              const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');
              throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);
            } else if (isEnvironmentProviders(provider)) {
              if (provider.ɵfromNgModule) {
                throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);
              } else {
                throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);
              }
            } else {
              throw new Error('Invalid provider');
            }
          }
          /** Throws an error when a token is not found in DI. */
          function throwProviderNotFoundError(token, injectorName) {
            const injectorDetails = injectorName ? ` in ${injectorName}` : '';
            throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, ngDevMode && `No provider for ${stringifyForError(token)} found${injectorDetails}`);
          }
          
          // The functions in this file verify that the assumptions we are making
          function assertNumber(actual, msg) {
            if (!(typeof actual === 'number')) {
              throwError(msg, typeof actual, 'number', '===');
            }
          }
          function assertNumberInRange(actual, minInclusive, maxInclusive) {
            assertNumber(actual, 'Expected a number');
            assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');
            assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');
          }
          function assertString(actual, msg) {
            if (!(typeof actual === 'string')) {
              throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
            }
          }
          function assertFunction(actual, msg) {
            if (!(typeof actual === 'function')) {
              throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');
            }
          }
          function assertEqual(actual, expected, msg) {
            if (!(actual == expected)) {
              throwError(msg, actual, expected, '==');
            }
          }
          function assertNotEqual(actual, expected, msg) {
            if (!(actual != expected)) {
              throwError(msg, actual, expected, '!=');
            }
          }
          function assertSame(actual, expected, msg) {
            if (!(actual === expected)) {
              throwError(msg, actual, expected, '===');
            }
          }
          function assertNotSame(actual, expected, msg) {
            if (!(actual !== expected)) {
              throwError(msg, actual, expected, '!==');
            }
          }
          function assertLessThan(actual, expected, msg) {
            if (!(actual < expected)) {
              throwError(msg, actual, expected, '<');
            }
          }
          function assertLessThanOrEqual(actual, expected, msg) {
            if (!(actual <= expected)) {
              throwError(msg, actual, expected, '<=');
            }
          }
          function assertGreaterThan(actual, expected, msg) {
            if (!(actual > expected)) {
              throwError(msg, actual, expected, '>');
            }
          }
          function assertGreaterThanOrEqual(actual, expected, msg) {
            if (!(actual >= expected)) {
              throwError(msg, actual, expected, '>=');
            }
          }
          function assertNotDefined(actual, msg) {
            if (actual != null) {
              throwError(msg, actual, null, '==');
            }
          }
          function assertDefined(actual, msg) {
            if (actual == null) {
              throwError(msg, actual, null, '!=');
            }
          }
          function throwError(msg, actual, expected, comparison) {
            throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));
          }
          function assertDomNode(node) {
            if (!(node instanceof Node)) {
              throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);
            }
          }
          function assertIndexInRange(arr, index) {
            assertDefined(arr, 'Array must be defined.');
            const maxLen = arr.length;
            if (index < 0 || index >= maxLen) {
              throwError(`Index expected to be less than ${maxLen} but got ${index}`);
            }
          }
          function assertOneOf(value, ...validValues) {
            if (validValues.indexOf(value) !== -1) return true;
            throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);
          }
          
          /**
           * Construct an injectable definition which defines how a token will be constructed by the DI
           * system, and in which injectors (if any) it will be available.
           *
           * This should be assigned to a static `ɵprov` field on a type, which will then be an
           * `InjectableType`.
           *
           * Options:
           * * `providedIn` determines which injectors will include the injectable, by either associating it
           *   with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
           *   provided in the `'root'` injector, which will be the application-level injector in most apps.
           * * `factory` gives the zero argument function which will create an instance of the injectable.
           *   The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection
           * of dependencies.
           *
           * @codeGenApi
           * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.
           */
          function ɵɵdefineInjectable(opts) {
            return {
              token: opts.token,
              providedIn: opts.providedIn || null,
              factory: opts.factory,
              value: undefined
            };
          }
          /**
           * @deprecated in v8, delete after v10. This API should be used only by generated code, and that
           * code should now use ɵɵdefineInjectable instead.
           * @publicApi
           */
          const defineInjectable = ɵɵdefineInjectable;
          /**
           * Construct an `InjectorDef` which configures an injector.
           *
           * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
           * `InjectorType`.
           *
           * Options:
           *
           * * `providers`: an optional array of providers to add to the injector. Each provider must
           *   either have a factory or point to a type which has a `ɵprov` static property (the
           *   type must be an `InjectableType`).
           * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
           *   whose providers will also be added to the injector. Locally provided types will override
           *   providers from imports.
           *
           * @codeGenApi
           */
          function ɵɵdefineInjector(options) {
            return {
              providers: options.providers || [],
              imports: options.imports || []
            };
          }
          /**
           * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
           * inherited value.
           *
           * @param type A type which may have its own (non-inherited) `ɵprov`.
           */
          function getInjectableDef(type) {
            return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);
          }
          function isInjectable(type) {
            return getInjectableDef(type) !== null;
          }
          /**
           * Return definition only if it is defined directly on `type` and is not inherited from a base
           * class of `type`.
           */
          function getOwnDefinition(type, field) {
            return type.hasOwnProperty(field) ? type[field] : null;
          }
          /**
           * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.
           *
           * @param type A type which may have `ɵprov`, via inheritance.
           *
           * @deprecated Will be removed in a future version of Angular, where an error will occur in the
           *     scenario if we find the `ɵprov` on an ancestor only.
           */
          function getInheritedInjectableDef(type) {
            const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
            if (def) {
              ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token "${type.name}" that inherits its @Injectable decorator but does not provide one itself.\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the "${type.name}" class.`);
              return def;
            } else {
              return null;
            }
          }
          /**
           * Read the injector def type in a way which is immune to accidentally reading inherited value.
           *
           * @param type type which may have an injector def (`ɵinj`)
           */
          function getInjectorDef(type) {
            return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;
          }
          const NG_PROV_DEF = getClosureSafeProperty({
            ɵprov: getClosureSafeProperty
          });
          const NG_INJ_DEF = getClosureSafeProperty({
            ɵinj: getClosureSafeProperty
          });
          // We need to keep these around so we can read off old defs if new defs are unavailable
          const NG_INJECTABLE_DEF = getClosureSafeProperty({
            ngInjectableDef: getClosureSafeProperty
          });
          const NG_INJECTOR_DEF = getClosureSafeProperty({
            ngInjectorDef: getClosureSafeProperty
          });
          
          /**
           * Injection flags for DI.
           *
           * @publicApi
           * @deprecated use an options object for [`inject`](api/core/inject) instead.
           */
          var InjectFlags;
          (function (InjectFlags) {
            // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer
            // writes exports of it into ngfactory files.
            /** Check self and check parent injector if needed */
            InjectFlags[InjectFlags["Default"] = 0] = "Default";
            /**
             * Specifies that an injector should retrieve a dependency from any injector until reaching the
             * host element of the current component. (Only used with Element Injector)
             */
            InjectFlags[InjectFlags["Host"] = 1] = "Host";
            /** Don't ascend to ancestors of the node requesting injection. */
            InjectFlags[InjectFlags["Self"] = 2] = "Self";
            /** Skip the node that is requesting injection. */
            InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf";
            /** Inject `defaultValue` instead if token not found. */
            InjectFlags[InjectFlags["Optional"] = 8] = "Optional";
          })(InjectFlags || (InjectFlags = {}));
          
          /**
           * Current implementation of inject.
           *
           * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed
           * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this
           * way for two reasons:
           *  1. `Injector` should not depend on ivy logic.
           *  2. To maintain tree shake-ability we don't want to bring in unnecessary code.
           */
          let _injectImplementation;
          function getInjectImplementation() {
            return _injectImplementation;
          }
          /**
           * Sets the current inject implementation.
           */
          function setInjectImplementation(impl) {
            const previous = _injectImplementation;
            _injectImplementation = impl;
            return previous;
          }
          /**
           * Injects `root` tokens in limp mode.
           *
           * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to
           * `"root"`. This is known as the limp mode injection. In such case the value is stored in the
           * injectable definition.
           */
          function injectRootLimpMode(token, notFoundValue, flags) {
            const injectableDef = getInjectableDef(token);
            if (injectableDef && injectableDef.providedIn == 'root') {
              return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;
            }
            if (flags & InjectFlags.Optional) return null;
            if (notFoundValue !== undefined) return notFoundValue;
            throwProviderNotFoundError(stringify(token), 'Injector');
          }
          /**
           * Assert that `_injectImplementation` is not `fn`.
           *
           * This is useful, to prevent infinite recursion.
           *
           * @param fn Function which it should not equal to
           */
          function assertInjectImplementationNotEqual(fn) {
            ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
          }
          const _global = globalThis;
          function ngDevModeResetPerfCounters() {
            const locationString = typeof location !== 'undefined' ? location.toString() : '';
            const newCounters = {
              namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,
              firstCreatePass: 0,
              tNode: 0,
              tView: 0,
              rendererCreateTextNode: 0,
              rendererSetText: 0,
              rendererCreateElement: 0,
              rendererAddEventListener: 0,
              rendererSetAttribute: 0,
              rendererRemoveAttribute: 0,
              rendererSetProperty: 0,
              rendererSetClassName: 0,
              rendererAddClass: 0,
              rendererRemoveClass: 0,
              rendererSetStyle: 0,
              rendererRemoveStyle: 0,
              rendererDestroy: 0,
              rendererDestroyNode: 0,
              rendererMoveNode: 0,
              rendererRemoveNode: 0,
              rendererAppendChild: 0,
              rendererInsertBefore: 0,
              rendererCreateComment: 0,
              hydratedNodes: 0,
              hydratedComponents: 0,
              dehydratedViewsRemoved: 0,
              dehydratedViewsCleanupRuns: 0,
              componentsSkippedHydration: 0
            };
            // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
            const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;
            _global['ngDevMode'] = allowNgDevModeTrue && newCounters;
            return newCounters;
          }
          /**
           * This function checks to see if the `ngDevMode` has been set. If yes,
           * then we honor it, otherwise we default to dev mode with additional checks.
           *
           * The idea is that unless we are doing production build where we explicitly
           * set `ngDevMode == false` we should be helping the developer by providing
           * as much early warning and errors as possible.
           *
           * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions
           * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
           * is defined for the entire instruction set.
           *
           * When checking `ngDevMode` on toplevel, always init it before referencing it
           * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
           *  get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
           *
           * Details on possible values for `ngDevMode` can be found on its docstring.
           *
           * NOTE:
           * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.
           */
          function initNgDevMode() {
            // The below checks are to ensure that calling `initNgDevMode` multiple times does not
            // reset the counters.
            // If the `ngDevMode` is not an object, then it means we have not created the perf counters
            // yet.
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (typeof ngDevMode !== 'object') {
                ngDevModeResetPerfCounters();
              }
              return typeof ngDevMode !== 'undefined' && !!ngDevMode;
            }
            return false;
          }
          
          /**
           * Creates a token that can be used in a DI Provider.
           *
           * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
           * runtime representation) such as when injecting an interface, callable type, array or
           * parameterized type.
           *
           * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
           * the `Injector`. This provides an additional level of type safety.
           *
           * <div class="alert is-helpful">
           *
           * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the
           * provider and the injection call. Creating a new instance of `InjectionToken` in different places,
           * even with the same description, will be treated as different tokens by Angular's DI system,
           * leading to a `NullInjectorError`.
           *
           * </div>
           *
           * <code-example format="typescript" language="typescript" path="injection-token/src/main.ts"
           * region="InjectionToken"></code-example>
           *
           * When creating an `InjectionToken`, you can optionally specify a factory function which returns
           * (possibly by creating) a default value of the parameterized type `T`. This sets up the
           * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
           * application's root injector. If the factory function, which takes zero arguments, needs to inject
           * dependencies, it can do so using the [`inject`](api/core/inject) function.
           * As you can see in the Tree-shakable InjectionToken example below.
           *
           * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
           * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:
           * this option is now deprecated). As mentioned above, `'root'` is the default value for
           * `providedIn`.
           *
           * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.
           *
           * @usageNotes
           * ### Basic Examples
           *
           * ### Plain InjectionToken
           *
           * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
           *
           * ### Tree-shakable InjectionToken
           *
           * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
           *
           * @publicApi
           */
          class InjectionToken {
            /**
             * @param _desc   Description for the token,
             *                used only for debugging purposes,
             *                it should but does not need to be unique
             * @param options Options for the token's usage, as described above
             */
            constructor(_desc, options) {
              this._desc = _desc;
              /** @internal */
              this.ngMetadataName = 'InjectionToken';
              this.ɵprov = undefined;
              if (typeof options == 'number') {
                (typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here');
                // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.
                // See `InjectorMarkers`
                this.__NG_ELEMENT_ID__ = options;
              } else if (options !== undefined) {
                this.ɵprov = ɵɵdefineInjectable({
                  token: this,
                  providedIn: options.providedIn || 'root',
                  factory: options.factory
                });
              }
            }
            /**
             * @internal
             */
            get multi() {
              return this;
            }
            toString() {
              return `InjectionToken ${this._desc}`;
            }
          }
          let _injectorProfilerContext;
          function getInjectorProfilerContext() {
            !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');
            return _injectorProfilerContext;
          }
          function setInjectorProfilerContext(context) {
            !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');
            const previous = _injectorProfilerContext;
            _injectorProfilerContext = context;
            return previous;
          }
          let injectorProfilerCallback = null;
          /**
           * Sets the callback function which will be invoked during certain DI events within the
           * runtime (for example: injecting services, creating injectable instances, configuring providers)
           *
           * Warning: this function is *INTERNAL* and should not be relied upon in application's code.
           * The contract of the function might be changed in any release and/or the function can be removed
           * completely.
           *
           * @param profiler function provided by the caller or null value to disable profiling.
           */
          const setInjectorProfiler = injectorProfiler => {
            !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');
            injectorProfilerCallback = injectorProfiler;
          };
          /**
           * Injector profiler function which emits on DI events executed by the runtime.
           *
           * @param event InjectorProfilerEvent corresponding to the DI event being emitted
           */
          function injectorProfiler(event) {
            !ngDevMode && throwError('Injector profiler should never be called in production mode');
            if (injectorProfilerCallback != null /* both `null` and `undefined` */) {
              injectorProfilerCallback(event);
            }
          }
          /**
           * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the
           * emitted event includes the raw provider, as well as the token that provider is providing.
           *
           * @param eventProvider A provider object
           */
          function emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {
            !ngDevMode && throwError('Injector profiler should never be called in production mode');
            let token;
            // if the provider is a TypeProvider (typeof provider is function) then the token is the
            // provider itself
            if (typeof eventProvider === 'function') {
              token = eventProvider;
            }
            // if the provider is an injection token, then the token is the injection token.
            else if (eventProvider instanceof InjectionToken) {
              token = eventProvider;
            }
            // in all other cases we can access the token via the `provide` property of the provider
            else {
              token = resolveForwardRef(eventProvider.provide);
            }
            let provider = eventProvider;
            // Injection tokens may define their own default provider which gets attached to the token itself
            // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the
            // token itself.
            if (eventProvider instanceof InjectionToken) {
              provider = eventProvider.ɵprov || eventProvider;
            }
            injectorProfiler({
              type: 2 /* InjectorProfilerEventType.ProviderConfigured */,
              context: getInjectorProfilerContext(),
              providerRecord: {
                token,
                provider,
                isViewProvider
              }
            });
          }
          /**
           * Emits an event to the injector profiler with the instance that was created. Note that
           * the injector associated with this emission can be accessed by using getDebugInjectContext()
           *
           * @param instance an object created by an injector
           */
          function emitInstanceCreatedByInjectorEvent(instance) {
            !ngDevMode && throwError('Injector profiler should never be called in production mode');
            injectorProfiler({
              type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,
              context: getInjectorProfilerContext(),
              instance: {
                value: instance
              }
            });
          }
          /**
           * @param token DI token associated with injected service
           * @param value the instance of the injected service (i.e the result of `inject(token)`)
           * @param flags the flags that the token was injected with
           */
          function emitInjectEvent(token, value, flags) {
            !ngDevMode && throwError('Injector profiler should never be called in production mode');
            injectorProfiler({
              type: 0 /* InjectorProfilerEventType.Inject */,
              context: getInjectorProfilerContext(),
              service: {
                token,
                value,
                flags
              }
            });
          }
          function runInInjectorProfilerContext(injector, token, callback) {
            !ngDevMode && throwError('runInInjectorProfilerContext should never be called in production mode');
            const prevInjectContext = setInjectorProfilerContext({
              injector,
              token
            });
            try {
              callback();
            } finally {
              setInjectorProfilerContext(prevInjectContext);
            }
          }
          const _THROW_IF_NOT_FOUND = {};
          const THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;
          /*
           * Name of a property (that we patch onto DI decorator), which is used as an annotation of which
           * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators
           * in the code, thus making them tree-shakable.
           */
          const DI_DECORATOR_FLAG = '__NG_DI_FLAG__';
          const NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';
          const NG_TOKEN_PATH = 'ngTokenPath';
          const NEW_LINE = /\n/gm;
          const NO_NEW_LINE = 'ɵ';
          const SOURCE = '__source';
          /**
           * Current injector value used by `inject`.
           * - `undefined`: it is an error to call `inject`
           * - `null`: `inject` can be called but there is no injector (limp-mode).
           * - Injector instance: Use the injector for resolution.
           */
          let _currentInjector = undefined;
          function getCurrentInjector() {
            return _currentInjector;
          }
          function setCurrentInjector(injector) {
            const former = _currentInjector;
            _currentInjector = injector;
            return former;
          }
          function injectInjectorOnly(token, flags = InjectFlags.Default) {
            if (_currentInjector === undefined) {
              throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);
            } else if (_currentInjector === null) {
              return injectRootLimpMode(token, undefined, flags);
            } else {
              const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);
              ngDevMode && emitInjectEvent(token, value, flags);
              return value;
            }
          }
          function ɵɵinject(token, flags = InjectFlags.Default) {
            return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);
          }
          /**
           * Throws an error indicating that a factory function could not be generated by the compiler for a
           * particular class.
           *
           * The name of the class is not mentioned here, but will be in the generated factory function name
           * and thus in the stack trace.
           *
           * @codeGenApi
           */
          function ɵɵinvalidFactoryDep(index) {
            throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode && `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.
          This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
          
          Please check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);
          }
          /**
           * Injects a token from the currently active injector.
           * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can
           * be used during:
           * - Construction (via the `constructor`) of a class being instantiated by the DI system, such
           * as an `@Injectable` or `@Component`.
           * - In the initializer for fields of such classes.
           * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.
           * - In the `factory` function specified for an `InjectionToken`.
           * - In a stackframe of a function call in a DI context
           *
           * @param token A token that represents a dependency that should be injected.
           * @param flags Optional flags that control how injection is executed.
           * The flags correspond to injection strategies that can be specified with
           * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.
           * @returns the injected value if operation is successful, `null` otherwise.
           * @throws if called outside of a supported context.
           *
           * @usageNotes
           * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a
           * field initializer:
           *
           * ```typescript
           * @Injectable({providedIn: 'root'})
           * export class Car {
           *   radio: Radio|undefined;
           *   // OK: field initializer
           *   spareTyre = inject(Tyre);
           *
           *   constructor() {
           *     // OK: constructor body
           *     this.radio = inject(Radio);
           *   }
           * }
           * ```
           *
           * It is also legal to call `inject` from a provider's factory:
           *
           * ```typescript
           * providers: [
           *   {provide: Car, useFactory: () => {
           *     // OK: a class factory
           *     const engine = inject(Engine);
           *     return new Car(engine);
           *   }}
           * ]
           * ```
           *
           * Calls to the `inject()` function outside of the class creation context will result in error. Most
           * notably, calls to `inject()` are disallowed after a class instance was created, in methods
           * (including lifecycle hooks):
           *
           * ```typescript
           * @Component({ ... })
           * export class CarComponent {
           *   ngOnInit() {
           *     // ERROR: too late, the component instance was already created
           *     const engine = inject(Engine);
           *     engine.start();
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          function inject(token, flags = InjectFlags.Default) {
            return ɵɵinject(token, convertToBitFlags(flags));
          }
          // Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).
          function convertToBitFlags(flags) {
            if (typeof flags === 'undefined' || typeof flags === 'number') {
              return flags;
            }
            // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in
            // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from
            // `InjectOptions` to `InjectFlags`.
            return 0 /* InternalInjectFlags.Default */ | (
            // comment to force a line break in the formatter
            flags.optional && 8 /* InternalInjectFlags.Optional */) | (flags.host && 1 /* InternalInjectFlags.Host */) | (flags.self && 2 /* InternalInjectFlags.Self */) | (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */);
          }
          
          function injectArgs(types) {
            const args = [];
            for (let i = 0; i < types.length; i++) {
              const arg = resolveForwardRef(types[i]);
              if (Array.isArray(arg)) {
                if (arg.length === 0) {
                  throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');
                }
                let type = undefined;
                let flags = InjectFlags.Default;
                for (let j = 0; j < arg.length; j++) {
                  const meta = arg[j];
                  const flag = getInjectFlag(meta);
                  if (typeof flag === 'number') {
                    // Special case when we handle @Inject decorator.
                    if (flag === -1 /* DecoratorFlags.Inject */) {
                      type = meta.token;
                    } else {
                      flags |= flag;
                    }
                  } else {
                    type = meta;
                  }
                }
                args.push(ɵɵinject(type, flags));
              } else {
                args.push(ɵɵinject(arg));
              }
            }
            return args;
          }
          /**
           * Attaches a given InjectFlag to a given decorator using monkey-patching.
           * Since DI decorators can be used in providers `deps` array (when provider is configured using
           * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we
           * attach the flag to make it available both as a static property and as a field on decorator
           * instance.
           *
           * @param decorator Provided DI decorator.
           * @param flag InjectFlag that should be applied.
           */
          function attachInjectFlag(decorator, flag) {
            decorator[DI_DECORATOR_FLAG] = flag;
            decorator.prototype[DI_DECORATOR_FLAG] = flag;
            return decorator;
          }
          /**
           * Reads monkey-patched property that contains InjectFlag attached to a decorator.
           *
           * @param token Token that may contain monkey-patched DI flags property.
           */
          function getInjectFlag(token) {
            return token[DI_DECORATOR_FLAG];
          }
          function catchInjectorError(e, token, injectorErrorName, source) {
            const tokenPath = e[NG_TEMP_TOKEN_PATH];
            if (token[SOURCE]) {
              tokenPath.unshift(token[SOURCE]);
            }
            e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source);
            e[NG_TOKEN_PATH] = tokenPath;
            e[NG_TEMP_TOKEN_PATH] = null;
            throw e;
          }
          function formatError(text, obj, injectorErrorName, source = null) {
            text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;
            let context = stringify(obj);
            if (Array.isArray(obj)) {
              context = obj.map(stringify).join(' -> ');
            } else if (typeof obj === 'object') {
              let parts = [];
              for (let key in obj) {
                if (obj.hasOwnProperty(key)) {
                  let value = obj[key];
                  parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));
                }
              }
              context = `{${parts.join(', ')}}`;
            }
            return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\n  ')}`;
          }
          
          /**
           * Convince closure compiler that the wrapped function has no side-effects.
           *
           * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
           * allow us to execute a function but have closure compiler mark the call as no-side-effects.
           * It is important that the return value for the `noSideEffects` function be assigned
           * to something which is retained otherwise the call to `noSideEffects` will be removed by closure
           * compiler.
           */
          function noSideEffects(fn) {
            return {
              toString: fn
            }.toString();
          }
          
          /**
           * The strategy that the default change detector uses to detect changes.
           * When set, takes effect the next time change detection is triggered.
           *
           * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
           *
           * @publicApi
           */
          var ChangeDetectionStrategy;
          (function (ChangeDetectionStrategy) {
            /**
             * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
             * until reactivated by setting the strategy to `Default` (`CheckAlways`).
             * Change detection can still be explicitly invoked.
             * This strategy applies to all child directives and cannot be overridden.
             */
            ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
            /**
             * Use the default `CheckAlways` strategy, in which change detection is automatic until
             * explicitly deactivated.
             */
            ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
          })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
          
          /**
           * Defines the CSS styles encapsulation policies for the {@link Component} decorator's
           * `encapsulation` option.
           *
           * See {@link Component#encapsulation encapsulation}.
           *
           * @usageNotes
           * ### Example
           *
           * {@example core/ts/metadata/encapsulation.ts region='longform'}
           *
           * @publicApi
           */
          var ViewEncapsulation$1;
          (function (ViewEncapsulation) {
            // TODO: consider making `ViewEncapsulation` a `const enum` instead. See
            // https://github.com/angular/angular/issues/44119 for additional information.
            /**
             * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the
             * component's host element and applying the same attribute to all the CSS selectors provided
             * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.
             *
             * This is the default option.
             */
            ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
            // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
            /**
             * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided
             * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable
             * to any HTML element of the application regardless of their host Component.
             */
            ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
            /**
             * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates
             * a ShadowRoot for the component's host element which is then used to encapsulate
             * all the Component's styling.
             */
            ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
          })(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
          
          /**
           * This file contains reuseable "empty" symbols that can be used as default return values
           * in different parts of the rendering code. Because the same symbols are returned, this
           * allows for identity checks against these values to be consistently used by the framework
           * code.
           */
          const EMPTY_OBJ = {};
          const EMPTY_ARRAY = [];
          // freezing the values prevents any code from accidentally inserting new values in
          if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
            // These property accesses can be ignored because ngDevMode will be set to false
            // when optimizing code and the whole if statement will be dropped.
            // tslint:disable-next-line:no-toplevel-property-access
            Object.freeze(EMPTY_OBJ);
            // tslint:disable-next-line:no-toplevel-property-access
            Object.freeze(EMPTY_ARRAY);
          }
          const NG_COMP_DEF = getClosureSafeProperty({
            ɵcmp: getClosureSafeProperty
          });
          const NG_DIR_DEF = getClosureSafeProperty({
            ɵdir: getClosureSafeProperty
          });
          const NG_PIPE_DEF = getClosureSafeProperty({
            ɵpipe: getClosureSafeProperty
          });
          const NG_MOD_DEF = getClosureSafeProperty({
            ɵmod: getClosureSafeProperty
          });
          const NG_FACTORY_DEF = getClosureSafeProperty({
            ɵfac: getClosureSafeProperty
          });
          /**
           * If a directive is diPublic, bloomAdd sets a property on the type with this constant as
           * the key and the directive's unique ID as the value. This allows us to map directives to their
           * bloom filter bit for DI.
           */
          // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
          const NG_ELEMENT_ID = getClosureSafeProperty({
            __NG_ELEMENT_ID__: getClosureSafeProperty
          });
          /**
           * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:
           * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution
           * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.
           *
           * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and
           * improve tree-shaking.
           */
          const NG_ENV_ID = getClosureSafeProperty({
            __NG_ENV_ID__: getClosureSafeProperty
          });
          
          /**
           * Returns an index of `classToSearch` in `className` taking token boundaries into account.
           *
           * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)
           *
           * @param className A string containing classes (whitespace separated)
           * @param classToSearch A class name to locate
           * @param startingIndex Starting location of search
           * @returns an index of the located class (or -1 if not found)
           */
          function classIndexOf(className, classToSearch, startingIndex) {
            ngDevMode && assertNotEqual(classToSearch, '', 'can not look for "" string.');
            let end = className.length;
            while (true) {
              const foundIndex = className.indexOf(classToSearch, startingIndex);
              if (foundIndex === -1) return foundIndex;
              if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {
                // Ensure that it has leading whitespace
                const length = classToSearch.length;
                if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {
                  // Ensure that it has trailing whitespace
                  return foundIndex;
                }
              }
              // False positive, keep searching from where we left off.
              startingIndex = foundIndex + 1;
            }
          }
          
          /**
           * Assigns all attribute values to the provided element via the inferred renderer.
           *
           * This function accepts two forms of attribute entries:
           *
           * default: (key, value):
           *  attrs = [key1, value1, key2, value2]
           *
           * namespaced: (NAMESPACE_MARKER, uri, name, value)
           *  attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]
           *
           * The `attrs` array can contain a mix of both the default and namespaced entries.
           * The "default" values are set without a marker, but if the function comes across
           * a marker value then it will attempt to set a namespaced value. If the marker is
           * not of a namespaced value then the function will quit and return the index value
           * where it stopped during the iteration of the attrs array.
           *
           * See [AttributeMarker] to understand what the namespace marker value is.
           *
           * Note that this instruction does not support assigning style and class values to
           * an element. See `elementStart` and `elementHostAttrs` to learn how styling values
           * are applied to an element.
           * @param renderer The renderer to be used
           * @param native The element that the attributes will be assigned to
           * @param attrs The attribute array of values that will be assigned to the element
           * @returns the index value that was last accessed in the attributes array
           */
          function setUpAttributes(renderer, native, attrs) {
            let i = 0;
            while (i < attrs.length) {
              const value = attrs[i];
              if (typeof value === 'number') {
                // only namespaces are supported. Other value types (such as style/class
                // entries) are not supported in this function.
                if (value !== 0 /* AttributeMarker.NamespaceURI */) {
                  break;
                }
                // we just landed on the marker value ... therefore
                // we should skip to the next entry
                i++;
                const namespaceURI = attrs[i++];
                const attrName = attrs[i++];
                const attrVal = attrs[i++];
                ngDevMode && ngDevMode.rendererSetAttribute++;
                renderer.setAttribute(native, attrName, attrVal, namespaceURI);
              } else {
                // attrName is string;
                const attrName = value;
                const attrVal = attrs[++i];
                // Standard attributes
                ngDevMode && ngDevMode.rendererSetAttribute++;
                if (isAnimationProp(attrName)) {
                  renderer.setProperty(native, attrName, attrVal);
                } else {
                  renderer.setAttribute(native, attrName, attrVal);
                }
                i++;
              }
            }
            // another piece of code may iterate over the same attributes array. Therefore
            // it may be helpful to return the exact spot where the attributes array exited
            // whether by running into an unsupported marker or if all the static values were
            // iterated over.
            return i;
          }
          /**
           * Test whether the given value is a marker that indicates that the following
           * attribute values in a `TAttributes` array are only the names of attributes,
           * and not name-value pairs.
           * @param marker The attribute marker to test.
           * @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
           */
          function isNameOnlyAttributeMarker(marker) {
            return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ || marker === 6 /* AttributeMarker.I18n */;
          }
          
          function isAnimationProp(name) {
            // Perf note: accessing charCodeAt to check for the first character of a string is faster as
            // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
            // charCodeAt doesn't allocate memory to return a substring.
            return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;
          }
          /**
           * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.
           *
           * This merge function keeps the order of attrs same.
           *
           * @param dst Location of where the merged `TAttributes` should end up.
           * @param src `TAttributes` which should be appended to `dst`
           */
          function mergeHostAttrs(dst, src) {
            if (src === null || src.length === 0) {
              // do nothing
            } else if (dst === null || dst.length === 0) {
              // We have source, but dst is empty, just make a copy.
              dst = src.slice();
            } else {
              let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;
              for (let i = 0; i < src.length; i++) {
                const item = src[i];
                if (typeof item === 'number') {
                  srcMarker = item;
                } else {
                  if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {
                    // Case where we need to consume `key1`, `key2`, `value` items.
                  } else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ || srcMarker === 2 /* AttributeMarker.Styles */) {
                    // Case where we have to consume `key1` and `value` only.
                    mergeHostAttribute(dst, srcMarker, item, null, src[++i]);
                  } else {
                    // Case where we have to consume `key1` only.
                    mergeHostAttribute(dst, srcMarker, item, null, null);
                  }
                }
              }
            }
            return dst;
          }
          /**
           * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.
           *
           * @param dst `TAttributes` to append to.
           * @param marker Region where the `key`/`value` should be added.
           * @param key1 Key to add to `TAttributes`
           * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)
           * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.
           */
          function mergeHostAttribute(dst, marker, key1, key2, value) {
            let i = 0;
            // Assume that new markers will be inserted at the end.
            let markerInsertPosition = dst.length;
            // scan until correct type.
            if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {
              markerInsertPosition = -1;
            } else {
              while (i < dst.length) {
                const dstValue = dst[i++];
                if (typeof dstValue === 'number') {
                  if (dstValue === marker) {
                    markerInsertPosition = -1;
                    break;
                  } else if (dstValue > marker) {
                    // We need to save this as we want the markers to be inserted in specific order.
                    markerInsertPosition = i - 1;
                    break;
                  }
                }
              }
            }
            // search until you find place of insertion
            while (i < dst.length) {
              const item = dst[i];
              if (typeof item === 'number') {
                // since `i` started as the index after the marker, we did not find it if we are at the next
                // marker
                break;
              } else if (item === key1) {
                // We already have same token
                if (key2 === null) {
                  if (value !== null) {
                    dst[i + 1] = value;
                  }
                  return;
                } else if (key2 === dst[i + 1]) {
                  dst[i + 2] = value;
                  return;
                }
              }
              // Increment counter.
              i++;
              if (key2 !== null) i++;
              if (value !== null) i++;
            }
            // insert at location.
            if (markerInsertPosition !== -1) {
              dst.splice(markerInsertPosition, 0, marker);
              i = markerInsertPosition + 1;
            }
            dst.splice(i++, 0, key1);
            if (key2 !== null) {
              dst.splice(i++, 0, key2);
            }
            if (value !== null) {
              dst.splice(i++, 0, value);
            }
          }
          const NG_TEMPLATE_SELECTOR = 'ng-template';
          /**
           * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)
           *
           * @param attrs `TAttributes` to search through.
           * @param cssClassToMatch class to match (lowercase)
           * @param isProjectionMode Whether or not class matching should look into the attribute `class` in
           *    addition to the `AttributeMarker.Classes`.
           */
          function isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {
            // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.
            // It is strange to me that sometimes the class information comes in form of `class` attribute
            // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine
            // if that is the right behavior.
            ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');
            let i = 0;
            // Indicates whether we are processing value from the implicit
            // attribute section (i.e. before the first marker in the array).
            let isImplicitAttrsSection = true;
            while (i < attrs.length) {
              let item = attrs[i++];
              if (typeof item === 'string' && isImplicitAttrsSection) {
                const value = attrs[i++];
                if (isProjectionMode && item === 'class') {
                  // We found a `class` attribute in the implicit attribute section,
                  // check if it matches the value of the `cssClassToMatch` argument.
                  if (classIndexOf(value.toLowerCase(), cssClassToMatch, 0) !== -1) {
                    return true;
                  }
                }
              } else if (item === 1 /* AttributeMarker.Classes */) {
                // We found the classes section. Start searching for the class.
                while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {
                  // while we have strings
                  if (item.toLowerCase() === cssClassToMatch) return true;
                }
                return false;
              } else if (typeof item === 'number') {
                // We've came across a first marker, which indicates
                // that the implicit attribute section is over.
                isImplicitAttrsSection = false;
              }
            }
            return false;
          }
          /**
           * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).
           *
           * @param tNode current TNode
           */
          function isInlineTemplate(tNode) {
            return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;
          }
          /**
           * Function that checks whether a given tNode matches tag-based selector and has a valid type.
           *
           * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular
           * directive matching mode:
           * - in the "directive matching" mode we do _not_ take TContainer's tagName into account if it is
           * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a
           * tag name was extracted from * syntax so we would match the same directive twice);
           * - in the "projection" mode, we use a tag name potentially extracted from the * syntax processing
           * (applicable to TNodeType.Container only).
           */
          function hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {
            const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;
            return currentSelector === tagNameToCompare;
          }
          /**
           * A utility function to match an Ivy node static data against a simple CSS selector
           *
           * @param node static data of the node to match
           * @param selector The selector to try matching against the node.
           * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing
           * directive matching.
           * @returns true if node matches the selector.
           */
          function isNodeMatchingSelector(tNode, selector, isProjectionMode) {
            ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');
            let mode = 4 /* SelectorFlags.ELEMENT */;
            const nodeAttrs = tNode.attrs || [];
            // Find the index of first attribute that has no value, only a name.
            const nameOnlyMarkerIdx = getNameOnlyMarkerIndex(nodeAttrs);
            // When processing ":not" selectors, we skip to the next ":not" if the
            // current one doesn't match
            let skipToNextSelector = false;
            for (let i = 0; i < selector.length; i++) {
              const current = selector[i];
              if (typeof current === 'number') {
                // If we finish processing a :not selector and it hasn't failed, return false
                if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {
                  return false;
                }
                // If we are skipping to the next :not() and this mode flag is positive,
                // it's a part of the current :not() selector, and we should keep skipping
                if (skipToNextSelector && isPositive(current)) continue;
                skipToNextSelector = false;
                mode = current | mode & 1 /* SelectorFlags.NOT */;
                continue;
              }
              if (skipToNextSelector) continue;
              if (mode & 4 /* SelectorFlags.ELEMENT */) {
                mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;
                if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {
                  if (isPositive(mode)) return false;
                  skipToNextSelector = true;
                }
              } else {
                const selectorAttrValue = mode & 8 /* SelectorFlags.CLASS */ ? current : selector[++i];
                // special case for matching against classes when a tNode has been instantiated with
                // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])
                if (mode & 8 /* SelectorFlags.CLASS */ && tNode.attrs !== null) {
                  if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {
                    if (isPositive(mode)) return false;
                    skipToNextSelector = true;
                  }
                  continue;
                }
                const attrName = mode & 8 /* SelectorFlags.CLASS */ ? 'class' : current;
                const attrIndexInNode = findAttrIndexInNode(attrName, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);
                if (attrIndexInNode === -1) {
                  if (isPositive(mode)) return false;
                  skipToNextSelector = true;
                  continue;
                }
                if (selectorAttrValue !== '') {
                  let nodeAttrValue;
                  if (attrIndexInNode > nameOnlyMarkerIdx) {
                    nodeAttrValue = '';
                  } else {
                    ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');
                    // we lowercase the attribute value to be able to match
                    // selectors without case-sensitivity
                    // (selectors are already in lowercase when generated)
                    nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();
                  }
                  const compareAgainstClassName = mode & 8 /* SelectorFlags.CLASS */ ? nodeAttrValue : null;
                  if (compareAgainstClassName && classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 || mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {
                    if (isPositive(mode)) return false;
                    skipToNextSelector = true;
                  }
                }
              }
            }
            return isPositive(mode) || skipToNextSelector;
          }
          function isPositive(mode) {
            return (mode & 1 /* SelectorFlags.NOT */) === 0;
          }
          /**
           * Examines the attribute's definition array for a node to find the index of the
           * attribute that matches the given `name`.
           *
           * NOTE: This will not match namespaced attributes.
           *
           * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.
           * The following table summarizes which types of attributes we attempt to match:
           *
           * ===========================================================================================================
           * Modes                   | Normal Attributes | Bindings Attributes | Template Attributes | I18n
           * Attributes
           * ===========================================================================================================
           * Inline + Projection     | YES               | YES                 | NO                  | YES
           * -----------------------------------------------------------------------------------------------------------
           * Inline + Directive      | NO                | NO                  | YES                 | NO
           * -----------------------------------------------------------------------------------------------------------
           * Non-inline + Projection | YES               | YES                 | NO                  | YES
           * -----------------------------------------------------------------------------------------------------------
           * Non-inline + Directive  | YES               | YES                 | NO                  | YES
           * ===========================================================================================================
           *
           * @param name the name of the attribute to find
           * @param attrs the attribute array to examine
           * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)
           * rather than a manually expanded template node (e.g `<ng-template>`).
           * @param isProjectionMode true if we are matching against content projection otherwise we are
           * matching against directives.
           */
          function findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {
            if (attrs === null) return -1;
            let i = 0;
            if (isProjectionMode || !isInlineTemplate) {
              let bindingsMode = false;
              while (i < attrs.length) {
                const maybeAttrName = attrs[i];
                if (maybeAttrName === name) {
                  return i;
                } else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {
                  bindingsMode = true;
                } else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {
                  let value = attrs[++i];
                  // We should skip classes here because we have a separate mechanism for
                  // matching classes in projection mode.
                  while (typeof value === 'string') {
                    value = attrs[++i];
                  }
                  continue;
                } else if (maybeAttrName === 4 /* AttributeMarker.Template */) {
                  // We do not care about Template attributes in this scenario.
                  break;
                } else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {
                  // Skip the whole namespaced attribute and value. This is by design.
                  i += 4;
                  continue;
                }
                // In binding mode there are only names, rather than name-value pairs.
                i += bindingsMode ? 1 : 2;
              }
              // We did not match the attribute
              return -1;
            } else {
              return matchTemplateAttribute(attrs, name);
            }
          }
          function isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {
            for (let i = 0; i < selector.length; i++) {
              if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {
                return true;
              }
            }
            return false;
          }
          function getProjectAsAttrValue(tNode) {
            const nodeAttrs = tNode.attrs;
            if (nodeAttrs != null) {
              const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);
              // only check for ngProjectAs in attribute names, don't accidentally match attribute's value
              // (attribute names are stored at even indexes)
              if ((ngProjectAsAttrIdx & 1) === 0) {
                return nodeAttrs[ngProjectAsAttrIdx + 1];
              }
            }
            return null;
          }
          function getNameOnlyMarkerIndex(nodeAttrs) {
            for (let i = 0; i < nodeAttrs.length; i++) {
              const nodeAttr = nodeAttrs[i];
              if (isNameOnlyAttributeMarker(nodeAttr)) {
                return i;
              }
            }
            return nodeAttrs.length;
          }
          function matchTemplateAttribute(attrs, name) {
            let i = attrs.indexOf(4 /* AttributeMarker.Template */);
            if (i > -1) {
              i++;
              while (i < attrs.length) {
                const attr = attrs[i];
                // Return in case we checked all template attrs and are switching to the next section in the
                // attrs array (that starts with a number that represents an attribute marker).
                if (typeof attr === 'number') return -1;
                if (attr === name) return i;
                i++;
              }
            }
            return -1;
          }
          /**
           * Checks whether a selector is inside a CssSelectorList
           * @param selector Selector to be checked.
           * @param list List in which to look for the selector.
           */
          function isSelectorInSelectorList(selector, list) {
            selectorListLoop: for (let i = 0; i < list.length; i++) {
              const currentSelectorInList = list[i];
              if (selector.length !== currentSelectorInList.length) {
                continue;
              }
              for (let j = 0; j < selector.length; j++) {
                if (selector[j] !== currentSelectorInList[j]) {
                  continue selectorListLoop;
                }
              }
              return true;
            }
            return false;
          }
          function maybeWrapInNotSelector(isNegativeMode, chunk) {
            return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;
          }
          function stringifyCSSSelector(selector) {
            let result = selector[0];
            let i = 1;
            let mode = 2 /* SelectorFlags.ATTRIBUTE */;
            let currentChunk = '';
            let isNegativeMode = false;
            while (i < selector.length) {
              let valueOrMarker = selector[i];
              if (typeof valueOrMarker === 'string') {
                if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {
                  const attrValue = selector[++i];
                  currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '="' + attrValue + '"' : '') + ']';
                } else if (mode & 8 /* SelectorFlags.CLASS */) {
                  currentChunk += '.' + valueOrMarker;
                } else if (mode & 4 /* SelectorFlags.ELEMENT */) {
                  currentChunk += ' ' + valueOrMarker;
                }
              } else {
                //
                // Append current chunk to the final result in case we come across SelectorFlag, which
                // indicates that the previous section of a selector is over. We need to accumulate content
                // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.
                // ```
                //  ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']
                // ```
                // should be transformed to `.classA :not(.classB .classC)`.
                //
                // Note: for negative selector part, we accumulate content between flags until we find the
                // next negative flag. This is needed to support a case where `:not()` rule contains more than
                // one chunk, e.g. the following selector:
                // ```
                //  ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']
                // ```
                // should be stringified to `:not(p.foo) :not(.bar)`
                //
                if (currentChunk !== '' && !isPositive(valueOrMarker)) {
                  result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
                  currentChunk = '';
                }
                mode = valueOrMarker;
                // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
                // mode is maintained for remaining chunks of a selector.
                isNegativeMode = isNegativeMode || !isPositive(mode);
              }
              i++;
            }
            if (currentChunk !== '') {
              result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
            }
            return result;
          }
          /**
           * Generates string representation of CSS selector in parsed form.
           *
           * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing
           * additional parsing at runtime (for example, for directive matching). However in some cases (for
           * example, while bootstrapping a component), a string version of the selector is required to query
           * for the host element on the page. This function takes the parsed form of a selector and returns
           * its string representation.
           *
           * @param selectorList selector in parsed form
           * @returns string representation of a given selector
           */
          function stringifyCSSSelectorList(selectorList) {
            return selectorList.map(stringifyCSSSelector).join(',');
          }
          /**
           * Extracts attributes and classes information from a given CSS selector.
           *
           * This function is used while creating a component dynamically. In this case, the host element
           * (that is created dynamically) should contain attributes and classes specified in component's CSS
           * selector.
           *
           * @param selector CSS selector in parsed form (in a form of array)
           * @returns object with `attrs` and `classes` fields that contain extracted information
           */
          function extractAttrsAndClassesFromSelector(selector) {
            const attrs = [];
            const classes = [];
            let i = 1;
            let mode = 2 /* SelectorFlags.ATTRIBUTE */;
            while (i < selector.length) {
              let valueOrMarker = selector[i];
              if (typeof valueOrMarker === 'string') {
                if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {
                  if (valueOrMarker !== '') {
                    attrs.push(valueOrMarker, selector[++i]);
                  }
                } else if (mode === 8 /* SelectorFlags.CLASS */) {
                  classes.push(valueOrMarker);
                }
              } else {
                // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
                // mode is maintained for remaining chunks of a selector. Since attributes and classes are
                // extracted only for "positive" part of the selector, we can stop here.
                if (!isPositive(mode)) break;
                mode = valueOrMarker;
              }
              i++;
            }
            return {
              attrs,
              classes
            };
          }
          
          /**
           * Create a component definition object.
           *
           *
           * # Example
           * ```
           * class MyComponent {
           *   // Generated by Angular Template Compiler
           *   // [Symbol] syntax will not be supported by TypeScript until v2.7
           *   static ɵcmp = defineComponent({
           *     ...
           *   });
           * }
           * ```
           * @codeGenApi
           */
          function ɵɵdefineComponent(componentDefinition) {
            return noSideEffects(() => {
              // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.
              // See the `initNgDevMode` docstring for more information.
              (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
              const baseDef = getNgDirectiveDef(componentDefinition);
              const def = {
                ...baseDef,
                decls: componentDefinition.decls,
                vars: componentDefinition.vars,
                template: componentDefinition.template,
                consts: componentDefinition.consts || null,
                ngContentSelectors: componentDefinition.ngContentSelectors,
                onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,
                directiveDefs: null,
                pipeDefs: null,
                dependencies: baseDef.standalone && componentDefinition.dependencies || null,
                getStandaloneInjector: null,
                signals: componentDefinition.signals ?? false,
                data: componentDefinition.data || {},
                encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,
                styles: componentDefinition.styles || EMPTY_ARRAY,
                _: null,
                schemas: componentDefinition.schemas || null,
                tView: null,
                id: ''
              };
              initFeatures(def);
              const dependencies = componentDefinition.dependencies;
              def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */false);
              def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */true);
              def.id = getComponentId(def);
              return def;
            });
          }
          /**
           * Generated next to NgModules to monkey-patch directive and pipe references onto a component's
           * definition, when generating a direct reference in the component file would otherwise create an
           * import cycle.
           *
           * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.
           *
           * @codeGenApi
           */
          function ɵɵsetComponentScope(type, directives, pipes) {
            const def = type.ɵcmp;
            def.directiveDefs = extractDefListOrFactory(directives, /* pipeDef */false);
            def.pipeDefs = extractDefListOrFactory(pipes, /* pipeDef */true);
          }
          function extractDirectiveDef(type) {
            return getComponentDef(type) || getDirectiveDef(type);
          }
          function nonNull(value) {
            return value !== null;
          }
          /**
           * @codeGenApi
           */
          function ɵɵdefineNgModule(def) {
            return noSideEffects(() => {
              const res = {
                type: def.type,
                bootstrap: def.bootstrap || EMPTY_ARRAY,
                declarations: def.declarations || EMPTY_ARRAY,
                imports: def.imports || EMPTY_ARRAY,
                exports: def.exports || EMPTY_ARRAY,
                transitiveCompileScopes: null,
                schemas: def.schemas || null,
                id: def.id || null
              };
              return res;
            });
          }
          /**
           * Adds the module metadata that is necessary to compute the module's transitive scope to an
           * existing module definition.
           *
           * Scope metadata of modules is not used in production builds, so calls to this function can be
           * marked pure to tree-shake it from the bundle, allowing for all referenced declarations
           * to become eligible for tree-shaking as well.
           *
           * @codeGenApi
           */
          function ɵɵsetNgModuleScope(type, scope) {
            return noSideEffects(() => {
              const ngModuleDef = getNgModuleDef(type, true);
              ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
              ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
              ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
            });
          }
          /**
           * Inverts an inputs or outputs lookup such that the keys, which were the
           * minified keys, are part of the values, and the values are parsed so that
           * the publicName of the property is the new key
           *
           * e.g. for
           *
           * ```
           * class Comp {
           *   @Input()
           *   propName1: string;
           *
           *   @Input('publicName2')
           *   declaredPropName2: number;
           * }
           * ```
           *
           * will be serialized as
           *
           * ```
           * {
           *   propName1: 'propName1',
           *   declaredPropName2: ['publicName2', 'declaredPropName2'],
           * }
           * ```
           *
           * which is than translated by the minifier as:
           *
           * ```
           * {
           *   minifiedPropName1: 'propName1',
           *   minifiedPropName2: ['publicName2', 'declaredPropName2'],
           * }
           * ```
           *
           * becomes: (public name => minifiedName)
           *
           * ```
           * {
           *  'propName1': 'minifiedPropName1',
           *  'publicName2': 'minifiedPropName2',
           * }
           * ```
           *
           * Optionally the function can take `secondary` which will result in: (public name => declared name)
           *
           * ```
           * {
           *  'propName1': 'propName1',
           *  'publicName2': 'declaredPropName2',
           * }
           * ```
           *
          
           */
          function invertObject(obj, secondary) {
            if (obj == null) return EMPTY_OBJ;
            const newLookup = {};
            for (const minifiedKey in obj) {
              if (obj.hasOwnProperty(minifiedKey)) {
                let publicName = obj[minifiedKey];
                let declaredName = publicName;
                if (Array.isArray(publicName)) {
                  declaredName = publicName[1];
                  publicName = publicName[0];
                }
                newLookup[publicName] = minifiedKey;
                if (secondary) {
                  secondary[publicName] = declaredName;
                }
              }
            }
            return newLookup;
          }
          /**
           * Create a directive definition object.
           *
           * # Example
           * ```ts
           * class MyDirective {
           *   // Generated by Angular Template Compiler
           *   // [Symbol] syntax will not be supported by TypeScript until v2.7
           *   static ɵdir = ɵɵdefineDirective({
           *     ...
           *   });
           * }
           * ```
           *
           * @codeGenApi
           */
          function ɵɵdefineDirective(directiveDefinition) {
            return noSideEffects(() => {
              const def = getNgDirectiveDef(directiveDefinition);
              initFeatures(def);
              return def;
            });
          }
          /**
           * Create a pipe definition object.
           *
           * # Example
           * ```
           * class MyPipe implements PipeTransform {
           *   // Generated by Angular Template Compiler
           *   static ɵpipe = definePipe({
           *     ...
           *   });
           * }
           * ```
           * @param pipeDef Pipe definition generated by the compiler
           *
           * @codeGenApi
           */
          function ɵɵdefinePipe(pipeDef) {
            return {
              type: pipeDef.type,
              name: pipeDef.name,
              factory: null,
              pure: pipeDef.pure !== false,
              standalone: pipeDef.standalone === true,
              onDestroy: pipeDef.type.prototype.ngOnDestroy || null
            };
          }
          /**
           * The following getter methods retrieve the definition from the type. Currently the retrieval
           * honors inheritance, but in the future we may change the rule to require that definitions are
           * explicit. This would require some sort of migration strategy.
           */
          function getComponentDef(type) {
            return type[NG_COMP_DEF] || null;
          }
          function getDirectiveDef(type) {
            return type[NG_DIR_DEF] || null;
          }
          function getPipeDef$1(type) {
            return type[NG_PIPE_DEF] || null;
          }
          /**
           * Checks whether a given Component, Directive or Pipe is marked as standalone.
           * This will return false if passed anything other than a Component, Directive, or Pipe class
           * See [this guide](/guide/standalone-components) for additional information:
           *
           * @param type A reference to a Component, Directive or Pipe.
           * @publicApi
           */
          function isStandalone(type) {
            const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);
            return def !== null ? def.standalone : false;
          }
          function getNgModuleDef(type, throwNotFound) {
            const ngModuleDef = type[NG_MOD_DEF] || null;
            if (!ngModuleDef && throwNotFound === true) {
              throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);
            }
            return ngModuleDef;
          }
          function getNgDirectiveDef(directiveDefinition) {
            const declaredInputs = {};
            return {
              type: directiveDefinition.type,
              providersResolver: null,
              factory: null,
              hostBindings: directiveDefinition.hostBindings || null,
              hostVars: directiveDefinition.hostVars || 0,
              hostAttrs: directiveDefinition.hostAttrs || null,
              contentQueries: directiveDefinition.contentQueries || null,
              declaredInputs,
              inputTransforms: null,
              inputConfig: directiveDefinition.inputs || EMPTY_OBJ,
              exportAs: directiveDefinition.exportAs || null,
              standalone: directiveDefinition.standalone === true,
              signals: directiveDefinition.signals === true,
              selectors: directiveDefinition.selectors || EMPTY_ARRAY,
              viewQuery: directiveDefinition.viewQuery || null,
              features: directiveDefinition.features || null,
              setInput: null,
              findHostDirectiveDefs: null,
              hostDirectives: null,
              inputs: invertObject(directiveDefinition.inputs, declaredInputs),
              outputs: invertObject(directiveDefinition.outputs)
            };
          }
          function initFeatures(definition) {
            definition.features?.forEach(fn => fn(definition));
          }
          function extractDefListOrFactory(dependencies, pipeDef) {
            if (!dependencies) {
              return null;
            }
            const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;
            return () => (typeof dependencies === 'function' ? dependencies() : dependencies).map(dep => defExtractor(dep)).filter(nonNull);
          }
          /**
           * A map that contains the generated component IDs and type.
           */
          const GENERATED_COMP_IDS = new Map();
          /**
           * A method can returns a component ID from the component definition using a variant of DJB2 hash
           * algorithm.
           */
          function getComponentId(componentDef) {
            let hash = 0;
            // We cannot rely solely on the component selector as the same selector can be used in different
            // modules.
            //
            // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server
            // component styles has no sourcemaps and browsers do.
            //
            // Example:
            // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248
            // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32
            const hashSelectors = [componentDef.selectors, componentDef.ngContentSelectors, componentDef.hostVars, componentDef.hostAttrs, componentDef.consts, componentDef.vars, componentDef.decls, componentDef.encapsulation, componentDef.standalone, componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs),
            // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
            // match in the server and browser bundles.
            Object.getOwnPropertyNames(componentDef.type.prototype), !!componentDef.contentQueries, !!componentDef.viewQuery].join('|');
            for (const char of hashSelectors) {
              hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;
            }
            // Force positive number hash.
            // 2147483647 = equivalent of Integer.MAX_VALUE.
            hash += 2147483647 + 1;
            const compId = 'c' + hash;
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (GENERATED_COMP_IDS.has(compId)) {
                const previousCompDefType = GENERATED_COMP_IDS.get(compId);
                if (previousCompDefType !== componentDef.type) {
                  console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));
                }
              } else {
                GENERATED_COMP_IDS.set(compId, componentDef.type);
              }
            }
            return compId;
          }
          
          // Below are constants for LView indices to help us look up LView members
          // without having to remember the specific indices.
          // Uglify will inline these when minifying so there shouldn't be a cost.
          const HOST = 0;
          const TVIEW = 1;
          const FLAGS = 2;
          const PARENT = 3;
          const NEXT = 4;
          const DESCENDANT_VIEWS_TO_REFRESH = 5;
          const T_HOST = 6;
          const CLEANUP = 7;
          const CONTEXT = 8;
          const INJECTOR$1 = 9;
          const ENVIRONMENT = 10;
          const RENDERER = 11;
          const CHILD_HEAD = 12;
          const CHILD_TAIL = 13;
          // FIXME(misko): Investigate if the three declarations aren't all same thing.
          const DECLARATION_VIEW = 14;
          const DECLARATION_COMPONENT_VIEW = 15;
          const DECLARATION_LCONTAINER = 16;
          const PREORDER_HOOK_FLAGS = 17;
          const QUERIES = 18;
          const ID = 19;
          const EMBEDDED_VIEW_INJECTOR = 20;
          const ON_DESTROY_HOOKS = 21;
          const HYDRATION = 22;
          const REACTIVE_TEMPLATE_CONSUMER = 23;
          const REACTIVE_HOST_BINDING_CONSUMER = 24;
          /**
           * Size of LView's header. Necessary to adjust for it when setting slots.
           *
           * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate
           * instruction index into `LView` index. All other indexes should be in the `LView` index space and
           * there should be no need to refer to `HEADER_OFFSET` anywhere else.
           */
          const HEADER_OFFSET = 25;
          // Note: This hack is necessary so we don't erroneously get a circular dependency
          // failure based on types.
          const unusedValueExportToPlacateAjd$4 = 1;
          
          /**
           * Special location which allows easy identification of type. If we have an array which was
           * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
           * `LContainer`.
           */
          const TYPE = 1;
          /**
           * Below are constants for LContainer indices to help us look up LContainer members
           * without having to remember the specific indices.
           * Uglify will inline these when minifying so there shouldn't be a cost.
           */
          /**
           * Flag to signify that this `LContainer` may have transplanted views which need to be change
           * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
           *
           * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
           * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
           * that the `MOVED_VIEWS` are transplanted and on-push.
           */
          const HAS_TRANSPLANTED_VIEWS = 2;
          // PARENT, NEXT, DESCENDANT_VIEWS_TO_REFRESH are indices 3, 4, and 5
          // As we already have these constants in LView, we don't need to re-create them.
          // T_HOST is index 6
          // We already have this constants in LView, we don't need to re-create it.
          const NATIVE = 7;
          const VIEW_REFS = 8;
          const MOVED_VIEWS = 9;
          const DEHYDRATED_VIEWS = 10;
          /**
           * Size of LContainer's header. Represents the index after which all views in the
           * container will be inserted. We need to keep a record of current views so we know
           * which views are already in the DOM (and don't need to be re-added) and so we can
           * remove views from the DOM when they are no longer required.
           */
          const CONTAINER_HEADER_OFFSET = 11;
          // Note: This hack is necessary so we don't erroneously get a circular dependency
          // failure based on types.
          const unusedValueExportToPlacateAjd$3 = 1;
          
          /**
           * True if `value` is `LView`.
           * @param value wrapped value of `RNode`, `LView`, `LContainer`
           */
          function isLView(value) {
            return Array.isArray(value) && typeof value[TYPE] === 'object';
          }
          /**
           * True if `value` is `LContainer`.
           * @param value wrapped value of `RNode`, `LView`, `LContainer`
           */
          function isLContainer(value) {
            return Array.isArray(value) && value[TYPE] === true;
          }
          function isContentQueryHost(tNode) {
            return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;
          }
          function isComponentHost(tNode) {
            return tNode.componentOffset > -1;
          }
          function isDirectiveHost(tNode) {
            return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;
          }
          
          function isComponentDef(def) {
            return !!def.template;
          }
          function isRootView(target) {
            return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;
          }
          function isProjectionTNode(tNode) {
            return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;
          }
          
          function hasI18n(lView) {
            return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;
          }
          
          // [Assert functions do not constraint type when they are guarded by a truthy
          // expression.](https://github.com/microsoft/TypeScript/issues/37295)
          function assertTNodeForLView(tNode, lView) {
            assertTNodeForTView(tNode, lView[TVIEW]);
          }
          function assertTNodeForTView(tNode, tView) {
            assertTNode(tNode);
            const tData = tView.data;
            for (let i = HEADER_OFFSET; i < tData.length; i++) {
              if (tData[i] === tNode) {
                return;
              }
            }
            throwError('This TNode does not belong to this TView.');
          }
          function assertTNode(tNode) {
            assertDefined(tNode, 'TNode must be defined');
            if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {
              throwError('Not of type TNode, got: ' + tNode);
            }
          }
          function assertTIcu(tIcu) {
            assertDefined(tIcu, 'Expected TIcu to be defined');
            if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {
              throwError('Object is not of TIcu type.');
            }
          }
          function assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.') {
            if (!getComponentDef(actual)) {
              throwError(msg);
            }
          }
          function assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.') {
            if (!getNgModuleDef(actual)) {
              throwError(msg);
            }
          }
          function assertCurrentTNodeIsParent(isParent) {
            assertEqual(isParent, true, 'currentTNode should be a parent');
          }
          function assertHasParent(tNode) {
            assertDefined(tNode, 'currentTNode should exist!');
            assertDefined(tNode.parent, 'currentTNode should have a parent');
          }
          function assertLContainer(value) {
            assertDefined(value, 'LContainer must be defined');
            assertEqual(isLContainer(value), true, 'Expecting LContainer');
          }
          function assertLViewOrUndefined(value) {
            value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');
          }
          function assertLView(value) {
            assertDefined(value, 'LView must be defined');
            assertEqual(isLView(value), true, 'Expecting LView');
          }
          function assertFirstCreatePass(tView, errMessage) {
            assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');
          }
          function assertFirstUpdatePass(tView, errMessage) {
            assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');
          }
          /**
           * This is a basic sanity check that an object is probably a directive def. DirectiveDef is
           * an interface, so we can't do a direct instanceof check.
           */
          function assertDirectiveDef(obj) {
            if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {
              throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);
            }
          }
          function assertIndexInDeclRange(lView, index) {
            const tView = lView[1];
            assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);
          }
          function assertIndexInExpandoRange(lView, index) {
            const tView = lView[1];
            assertBetween(tView.expandoStartIndex, lView.length, index);
          }
          function assertBetween(lower, upper, index) {
            if (!(lower <= index && index < upper)) {
              throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);
            }
          }
          function assertProjectionSlots(lView, errMessage) {
            assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');
            assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage || 'Components with projection nodes (<ng-content>) must have projection slots defined.');
          }
          function assertParentView(lView, errMessage) {
            assertDefined(lView, errMessage || 'Component views should always have a parent view (component\'s host view)');
          }
          /**
           * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a
           * NodeInjector data structure.
           *
           * @param lView `LView` which should be checked.
           * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.
           */
          function assertNodeInjector(lView, injectorIndex) {
            assertIndexInExpandoRange(lView, injectorIndex);
            assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);
            assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');
            assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');
          }
          function getFactoryDef(type, throwNotFound) {
            const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
            if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
              throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);
            }
            return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
          }
          
          /**
           * Symbol used to tell `Signal`s apart from other functions.
           *
           * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.
           */
          const SIGNAL = /* @__PURE__ */Symbol('SIGNAL');
          /**
           * Checks if the given `value` is a reactive `Signal`.
           *
           * @developerPreview
           */
          function isSignal(value) {
            return typeof value === 'function' && value[SIGNAL] !== undefined;
          }
          /**
           * The default equality function used for `signal` and `computed`, which treats objects and arrays
           * as never equal, and all other primitive values using identity semantics.
           *
           * This allows signals to hold non-primitive values (arrays, objects, other collections) and still
           * propagate change notification upon explicit mutation without identity change.
           *
           * @developerPreview
           */
          function defaultEquals(a, b) {
            // `Object.is` compares two values using identity semantics which is desired behavior for
            // primitive values. If `Object.is` determines two values to be equal we need to make sure that
            // those don't represent objects (we want to make sure that 2 objects are always considered
            // "unequal"). The null check is needed for the special case of JavaScript reporting null values
            // as objects (`typeof null === 'object'`).
            return (a === null || typeof a !== 'object') && Object.is(a, b);
          }
          
          // Required as the signals library is in a separate package, so we need to explicitly ensure the
          /**
           * The currently active consumer `ReactiveNode`, if running code in a reactive context.
           *
           * Change this via `setActiveConsumer`.
           */
          let activeConsumer = null;
          let inNotificationPhase = false;
          function setActiveConsumer(consumer) {
            const prev = activeConsumer;
            activeConsumer = consumer;
            return prev;
          }
          const REACTIVE_NODE = {
            version: 0,
            dirty: false,
            producerNode: undefined,
            producerLastReadVersion: undefined,
            producerIndexOfThis: undefined,
            nextProducerIndex: 0,
            liveConsumerNode: undefined,
            liveConsumerIndexOfThis: undefined,
            consumerAllowSignalWrites: false,
            consumerIsAlwaysLive: false,
            producerMustRecompute: () => false,
            producerRecomputeValue: () => {},
            consumerMarkedDirty: () => {}
          };
          /**
           * Called by implementations when a producer's signal is read.
           */
          function producerAccessed(node) {
            if (inNotificationPhase) {
              throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');
            }
            if (activeConsumer === null) {
              // Accessed outside of a reactive context, so nothing to record.
              return;
            }
            // This producer is the `idx`th dependency of `activeConsumer`.
            const idx = activeConsumer.nextProducerIndex++;
            assertConsumerNode(activeConsumer);
            if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {
              // There's been a change in producers since the last execution of `activeConsumer`.
              // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and
              // replaced with `this`.
              //
              // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in
              // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need
              // to remove it from the stale producer's `liveConsumer`s.
              if (consumerIsLive(activeConsumer)) {
                const staleProducer = activeConsumer.producerNode[idx];
                producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);
                // At this point, the only record of `staleProducer` is the reference at
                // `activeConsumer.producerNode[idx]` which will be overwritten below.
              }
            }
          
            if (activeConsumer.producerNode[idx] !== node) {
              // We're a new dependency of the consumer (at `idx`).
              activeConsumer.producerNode[idx] = node;
              // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a
              // placeholder value.
              activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;
            }
            activeConsumer.producerLastReadVersion[idx] = node.version;
          }
          /**
           * Ensure this producer's `version` is up-to-date.
           */
          function producerUpdateValueVersion(node) {
            if (consumerIsLive(node) && !node.dirty) {
              // A live consumer will be marked dirty by producers, so a clean state means that its version
              // is guaranteed to be up-to-date.
              return;
            }
            if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {
              // None of our producers report a change since the last time they were read, so no
              // recomputation of our value is necessary, and we can consider ourselves clean.
              node.dirty = false;
              return;
            }
            node.producerRecomputeValue(node);
            // After recomputing the value, we're no longer dirty.
            node.dirty = false;
          }
          /**
           * Propagate a dirty notification to live consumers of this producer.
           */
          function producerNotifyConsumers(node) {
            if (node.liveConsumerNode === undefined) {
              return;
            }
            // Prevent signal reads when we're updating the graph
            const prev = inNotificationPhase;
            inNotificationPhase = true;
            try {
              for (const consumer of node.liveConsumerNode) {
                if (!consumer.dirty) {
                  consumerMarkDirty(consumer);
                }
              }
            } finally {
              inNotificationPhase = prev;
            }
          }
          /**
           * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,
           * based on the current consumer context.
           */
          function producerUpdatesAllowed() {
            return activeConsumer?.consumerAllowSignalWrites !== false;
          }
          function consumerMarkDirty(node) {
            node.dirty = true;
            producerNotifyConsumers(node);
            node.consumerMarkedDirty?.(node);
          }
          /**
           * Prepare this consumer to run a computation in its reactive context.
           *
           * Must be called by subclasses which represent reactive computations, before those computations
           * begin.
           */
          function consumerBeforeComputation(node) {
            node && (node.nextProducerIndex = 0);
            return setActiveConsumer(node);
          }
          /**
           * Finalize this consumer's state after a reactive computation has run.
           *
           * Must be called by subclasses which represent reactive computations, after those computations
           * have finished.
           */
          function consumerAfterComputation(node, prevConsumer) {
            setActiveConsumer(prevConsumer);
            if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {
              return;
            }
            if (consumerIsLive(node)) {
              // For live consumers, we need to remove the producer -> consumer edge for any stale producers
              // which weren't dependencies after the recomputation.
              for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {
                producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);
              }
            }
            // Truncate the producer tracking arrays.
            // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but
            // benchmarking has shown that individual pop operations are faster.
            while (node.producerNode.length > node.nextProducerIndex) {
              node.producerNode.pop();
              node.producerLastReadVersion.pop();
              node.producerIndexOfThis.pop();
            }
          }
          /**
           * Determine whether this consumer has any dependencies which have changed since the last time
           * they were read.
           */
          function consumerPollProducersForChange(node) {
            assertConsumerNode(node);
            // Poll producers for change.
            for (let i = 0; i < node.producerNode.length; i++) {
              const producer = node.producerNode[i];
              const seenVersion = node.producerLastReadVersion[i];
              // First check the versions. A mismatch means that the producer's value is known to have
              // changed since the last time we read it.
              if (seenVersion !== producer.version) {
                return true;
              }
              // The producer's version is the same as the last time we read it, but it might itself be
              // stale. Force the producer to recompute its version (calculating a new value if necessary).
              producerUpdateValueVersion(producer);
              // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the
              // versions still match then it has not changed since the last time we read it.
              if (seenVersion !== producer.version) {
                return true;
              }
            }
            return false;
          }
          /**
           * Disconnect this consumer from the graph.
           */
          function consumerDestroy(node) {
            assertConsumerNode(node);
            if (consumerIsLive(node)) {
              // Drop all connections from the graph to this node.
              for (let i = 0; i < node.producerNode.length; i++) {
                producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);
              }
            }
            // Truncate all the arrays to drop all connection from this node to the graph.
            node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;
            if (node.liveConsumerNode) {
              node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;
            }
          }
          /**
           * Add `consumer` as a live consumer of this node.
           *
           * Note that this operation is potentially transitive. If this node becomes live, then it becomes
           * a live consumer of all of its current producers.
           */
          function producerAddLiveConsumer(node, consumer, indexOfThis) {
            assertProducerNode(node);
            assertConsumerNode(node);
            if (node.liveConsumerNode.length === 0) {
              // When going from 0 to 1 live consumers, we become a live consumer to our producers.
              for (let i = 0; i < node.producerNode.length; i++) {
                node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);
              }
            }
            node.liveConsumerIndexOfThis.push(indexOfThis);
            return node.liveConsumerNode.push(consumer) - 1;
          }
          /**
           * Remove the live consumer at `idx`.
           */
          function producerRemoveLiveConsumerAtIndex(node, idx) {
            assertProducerNode(node);
            assertConsumerNode(node);
            if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {
              throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);
            }
            if (node.liveConsumerNode.length === 1) {
              // When removing the last live consumer, we will no longer be live. We need to remove
              // ourselves from our producers' tracking (which may cause consumer-producers to lose
              // liveness as well).
              for (let i = 0; i < node.producerNode.length; i++) {
                producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);
              }
            }
            // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single
            // live consumer, this is a no-op.
            const lastIdx = node.liveConsumerNode.length - 1;
            node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];
            node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];
            // Truncate the array.
            node.liveConsumerNode.length--;
            node.liveConsumerIndexOfThis.length--;
            // If the index is still valid, then we need to fix the index pointer from the producer to this
            // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).
            if (idx < node.liveConsumerNode.length) {
              const idxProducer = node.liveConsumerIndexOfThis[idx];
              const consumer = node.liveConsumerNode[idx];
              assertConsumerNode(consumer);
              consumer.producerIndexOfThis[idxProducer] = idx;
            }
          }
          function consumerIsLive(node) {
            return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;
          }
          function assertConsumerNode(node) {
            node.producerNode ??= [];
            node.producerIndexOfThis ??= [];
            node.producerLastReadVersion ??= [];
          }
          function assertProducerNode(node) {
            node.liveConsumerNode ??= [];
            node.liveConsumerIndexOfThis ??= [];
          }
          
          /**
           * Create a computed `Signal` which derives a reactive value from an expression.
           *
           * @developerPreview
           */
          function computed(computation, options) {
            const node = Object.create(COMPUTED_NODE);
            node.computation = computation;
            options?.equal && (node.equal = options.equal);
            const computed = () => {
              // Check if the value needs updating before returning it.
              producerUpdateValueVersion(node);
              // Record that someone looked at this signal.
              producerAccessed(node);
              if (node.value === ERRORED) {
                throw node.error;
              }
              return node.value;
            };
            computed[SIGNAL] = node;
            return computed;
          }
          /**
           * A dedicated symbol used before a computed value has been calculated for the first time.
           * Explicitly typed as `any` so we can use it as signal's value.
           */
          const UNSET = /* @__PURE__ */Symbol('UNSET');
          /**
           * A dedicated symbol used in place of a computed signal value to indicate that a given computation
           * is in progress. Used to detect cycles in computation chains.
           * Explicitly typed as `any` so we can use it as signal's value.
           */
          const COMPUTING = /* @__PURE__ */Symbol('COMPUTING');
          /**
           * A dedicated symbol used in place of a computed signal value to indicate that a given computation
           * failed. The thrown error is cached until the computation gets dirty again.
           * Explicitly typed as `any` so we can use it as signal's value.
           */
          const ERRORED = /* @__PURE__ */Symbol('ERRORED');
          // Note: Using an IIFE here to ensure that the spread assignment is not considered
          // a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.
          // TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.
          const COMPUTED_NODE = /* @__PURE__ */(() => {
            return {
              ...REACTIVE_NODE,
              value: UNSET,
              dirty: true,
              error: null,
              equal: defaultEquals,
              producerMustRecompute(node) {
                // Force a recomputation if there's no current value, or if the current value is in the
                // process of being calculated (which should throw an error).
                return node.value === UNSET || node.value === COMPUTING;
              },
              producerRecomputeValue(node) {
                if (node.value === COMPUTING) {
                  // Our computation somehow led to a cyclic read of itself.
                  throw new Error('Detected cycle in computations.');
                }
                const oldValue = node.value;
                node.value = COMPUTING;
                const prevConsumer = consumerBeforeComputation(node);
                let newValue;
                try {
                  newValue = node.computation();
                } catch (err) {
                  newValue = ERRORED;
                  node.error = err;
                } finally {
                  consumerAfterComputation(node, prevConsumer);
                }
                if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {
                  // No change to `valueVersion` - old and new values are
                  // semantically equivalent.
                  node.value = oldValue;
                  return;
                }
                node.value = newValue;
                node.version++;
              }
            };
          })();
          function defaultThrowError() {
            throw new Error();
          }
          let throwInvalidWriteToSignalErrorFn = defaultThrowError;
          function throwInvalidWriteToSignalError() {
            throwInvalidWriteToSignalErrorFn();
          }
          function setThrowInvalidWriteToSignalError(fn) {
            throwInvalidWriteToSignalErrorFn = fn;
          }
          
          /**
           * If set, called after `WritableSignal`s are updated.
           *
           * This hook can be used to achieve various effects, such as running effects synchronously as part
           * of setting a signal.
           */
          let postSignalSetFn = null;
          /**
           * Create a `Signal` that can be set or updated directly.
           *
           * @developerPreview
           */
          function signal(initialValue, options) {
            const node = Object.create(SIGNAL_NODE);
            node.value = initialValue;
            options?.equal && (node.equal = options.equal);
            function signalFn() {
              producerAccessed(node);
              return node.value;
            }
            signalFn.set = signalSetFn;
            signalFn.update = signalUpdateFn;
            signalFn.mutate = signalMutateFn;
            signalFn.asReadonly = signalAsReadonlyFn;
            signalFn[SIGNAL] = node;
            return signalFn;
          }
          function setPostSignalSetFn(fn) {
            const prev = postSignalSetFn;
            postSignalSetFn = fn;
            return prev;
          }
          // Note: Using an IIFE here to ensure that the spread assignment is not considered
          // a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.
          // TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.
          const SIGNAL_NODE = /* @__PURE__ */(() => {
            return {
              ...REACTIVE_NODE,
              equal: defaultEquals,
              readonlyFn: undefined
            };
          })();
          function signalValueChanged(node) {
            node.version++;
            producerNotifyConsumers(node);
            postSignalSetFn?.();
          }
          function signalSetFn(newValue) {
            const node = this[SIGNAL];
            if (!producerUpdatesAllowed()) {
              throwInvalidWriteToSignalError();
            }
            if (!node.equal(node.value, newValue)) {
              node.value = newValue;
              signalValueChanged(node);
            }
          }
          function signalUpdateFn(updater) {
            if (!producerUpdatesAllowed()) {
              throwInvalidWriteToSignalError();
            }
            signalSetFn.call(this, updater(this[SIGNAL].value));
          }
          function signalMutateFn(mutator) {
            const node = this[SIGNAL];
            if (!producerUpdatesAllowed()) {
              throwInvalidWriteToSignalError();
            }
            // Mutate bypasses equality checks as it's by definition changing the value.
            mutator(node.value);
            signalValueChanged(node);
          }
          function signalAsReadonlyFn() {
            const node = this[SIGNAL];
            if (node.readonlyFn === undefined) {
              const readonlyFn = () => this();
              readonlyFn[SIGNAL] = node;
              node.readonlyFn = readonlyFn;
            }
            return node.readonlyFn;
          }
          
          /**
           * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function
           * can, optionally, return a value.
           *
           * @developerPreview
           */
          function untracked(nonReactiveReadsFn) {
            const prevConsumer = setActiveConsumer(null);
            // We are not trying to catch any particular errors here, just making sure that the consumers
            // stack is restored in case of errors.
            try {
              return nonReactiveReadsFn();
            } finally {
              setActiveConsumer(prevConsumer);
            }
          }
          function watch(fn, schedule, allowSignalWrites) {
            const node = Object.create(WATCH_NODE);
            if (allowSignalWrites) {
              node.consumerAllowSignalWrites = true;
            }
            node.fn = fn;
            node.schedule = schedule;
            const registerOnCleanup = cleanupFn => {
              node.cleanupFn = cleanupFn;
            };
            const run = () => {
              node.dirty = false;
              if (node.hasRun && !consumerPollProducersForChange(node)) {
                return;
              }
              node.hasRun = true;
              const prevConsumer = consumerBeforeComputation(node);
              try {
                node.cleanupFn();
                node.cleanupFn = NOOP_CLEANUP_FN;
                node.fn(registerOnCleanup);
              } finally {
                consumerAfterComputation(node, prevConsumer);
              }
            };
            node.ref = {
              notify: () => consumerMarkDirty(node),
              run,
              cleanup: () => node.cleanupFn()
            };
            return node.ref;
          }
          const NOOP_CLEANUP_FN = () => {};
          // Note: Using an IIFE here to ensure that the spread assignment is not considered
          // a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.
          // TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.
          const WATCH_NODE = /* @__PURE__ */(() => {
            return {
              ...REACTIVE_NODE,
              consumerIsAlwaysLive: true,
              consumerAllowSignalWrites: false,
              consumerMarkedDirty: node => {
                node.schedule(node.ref);
              },
              hasRun: false,
              cleanupFn: NOOP_CLEANUP_FN
            };
          })();
          function setAlternateWeakRefImpl(impl) {
            // TODO: remove this function
          }
          
          /**
           * Represents a basic change from a previous to a new value for a single
           * property on a directive instance. Passed as a value in a
           * {@link SimpleChanges} object to the `ngOnChanges` hook.
           *
           * @see {@link OnChanges}
           *
           * @publicApi
           */
          class SimpleChange {
            constructor(previousValue, currentValue, firstChange) {
              this.previousValue = previousValue;
              this.currentValue = currentValue;
              this.firstChange = firstChange;
            }
            /**
             * Check whether the new value is the first value assigned.
             */
            isFirstChange() {
              return this.firstChange;
            }
          }
          
          /**
           * The NgOnChangesFeature decorates a component with support for the ngOnChanges
           * lifecycle hook, so it should be included in any component that implements
           * that hook.
           *
           * If the component or directive uses inheritance, the NgOnChangesFeature MUST
           * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise
           * inherited properties will not be propagated to the ngOnChanges lifecycle
           * hook.
           *
           * Example usage:
           *
           * ```
           * static ɵcmp = defineComponent({
           *   ...
           *   inputs: {name: 'publicName'},
           *   features: [NgOnChangesFeature]
           * });
           * ```
           *
           * @codeGenApi
           */
          function ɵɵNgOnChangesFeature() {
            return NgOnChangesFeatureImpl;
          }
          function NgOnChangesFeatureImpl(definition) {
            if (definition.type.prototype.ngOnChanges) {
              definition.setInput = ngOnChangesSetInput;
            }
            return rememberChangeHistoryAndInvokeOnChangesHook;
          }
          // This option ensures that the ngOnChanges lifecycle hook will be inherited
          // from superclasses (in InheritDefinitionFeature).
          /** @nocollapse */
          // tslint:disable-next-line:no-toplevel-property-access
          ɵɵNgOnChangesFeature.ngInherit = true;
          /**
           * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate
           * `ngOnChanges`.
           *
           * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are
           * found it invokes `ngOnChanges` on the component instance.
           *
           * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,
           *     it is guaranteed to be called with component instance.
           */
          function rememberChangeHistoryAndInvokeOnChangesHook() {
            const simpleChangesStore = getSimpleChangesStore(this);
            const current = simpleChangesStore?.current;
            if (current) {
              const previous = simpleChangesStore.previous;
              if (previous === EMPTY_OBJ) {
                simpleChangesStore.previous = current;
              } else {
                // New changes are copied to the previous store, so that we don't lose history for inputs
                // which were not changed this time
                for (let key in current) {
                  previous[key] = current[key];
                }
              }
              simpleChangesStore.current = null;
              this.ngOnChanges(current);
            }
          }
          function ngOnChangesSetInput(instance, value, publicName, privateName) {
            const declaredName = this.declaredInputs[publicName];
            ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');
            const simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {
              previous: EMPTY_OBJ,
              current: null
            });
            const current = simpleChangesStore.current || (simpleChangesStore.current = {});
            const previous = simpleChangesStore.previous;
            const previousChange = previous[declaredName];
            current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);
            instance[privateName] = value;
          }
          const SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';
          function getSimpleChangesStore(instance) {
            return instance[SIMPLE_CHANGES_STORE] || null;
          }
          function setSimpleChangesStore(instance, store) {
            return instance[SIMPLE_CHANGES_STORE] = store;
          }
          let profilerCallback = null;
          /**
           * Sets the callback function which will be invoked before and after performing certain actions at
           * runtime (for example, before and after running change detection).
           *
           * Warning: this function is *INTERNAL* and should not be relied upon in application's code.
           * The contract of the function might be changed in any release and/or the function can be removed
           * completely.
           *
           * @param profiler function provided by the caller or null value to disable profiling.
           */
          const setProfiler = profiler => {
            profilerCallback = profiler;
          };
          /**
           * Profiler function which wraps user code executed by the runtime.
           *
           * @param event ProfilerEvent corresponding to the execution context
           * @param instance component instance
           * @param hookOrListener lifecycle hook function or output listener. The value depends on the
           *  execution context
           * @returns
           */
          const profiler = function (event, instance, hookOrListener) {
            if (profilerCallback != null /* both `null` and `undefined` */) {
              profilerCallback(event, instance, hookOrListener);
            }
          };
          const SVG_NAMESPACE = 'svg';
          const MATH_ML_NAMESPACE = 'math';
          
          /**
           * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)
           * in same location in `LView`. This is because we don't want to pre-allocate space for it
           * because the storage is sparse. This file contains utilities for dealing with such data types.
           *
           * How do we know what is stored at a given location in `LView`.
           * - `Array.isArray(value) === false` => `RNode` (The normal storage value)
           * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.
           *   - `typeof value[TYPE] === 'object'` => `LView`
           *      - This happens when we have a component at a given location
           *   - `typeof value[TYPE] === true` => `LContainer`
           *      - This happens when we have `LContainer` binding at a given location.
           *
           *
           * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.
           */
          /**
           * Returns `RNode`.
           * @param value wrapped value of `RNode`, `LView`, `LContainer`
           */
          function unwrapRNode(value) {
            while (Array.isArray(value)) {
              value = value[HOST];
            }
            return value;
          }
          /**
           * Returns `LView` or `null` if not found.
           * @param value wrapped value of `RNode`, `LView`, `LContainer`
           */
          function unwrapLView(value) {
            while (Array.isArray(value)) {
              // This check is same as `isLView()` but we don't call at as we don't want to call
              // `Array.isArray()` twice and give JITer more work for inlining.
              if (typeof value[TYPE] === 'object') return value;
              value = value[HOST];
            }
            return null;
          }
          /**
           * Retrieves an element value from the provided `viewData`, by unwrapping
           * from any containers, component views, or style contexts.
           */
          function getNativeByIndex(index, lView) {
            ngDevMode && assertIndexInRange(lView, index);
            ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');
            return unwrapRNode(lView[index]);
          }
          /**
           * Retrieve an `RNode` for a given `TNode` and `LView`.
           *
           * This function guarantees in dev mode to retrieve a non-null `RNode`.
           *
           * @param tNode
           * @param lView
           */
          function getNativeByTNode(tNode, lView) {
            ngDevMode && assertTNodeForLView(tNode, lView);
            ngDevMode && assertIndexInRange(lView, tNode.index);
            const node = unwrapRNode(lView[tNode.index]);
            return node;
          }
          /**
           * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.
           *
           * Some `TNode`s don't have associated `RNode`s. For example `Projection`
           *
           * @param tNode
           * @param lView
           */
          function getNativeByTNodeOrNull(tNode, lView) {
            const index = tNode === null ? -1 : tNode.index;
            if (index !== -1) {
              ngDevMode && assertTNodeForLView(tNode, lView);
              const node = unwrapRNode(lView[index]);
              return node;
            }
            return null;
          }
          // fixme(misko): The return Type should be `TNode|null`
          function getTNode(tView, index) {
            ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');
            ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');
            const tNode = tView.data[index];
            ngDevMode && tNode !== null && assertTNode(tNode);
            return tNode;
          }
          /** Retrieves a value from any `LView` or `TData`. */
          function load(view, index) {
            ngDevMode && assertIndexInRange(view, index);
            return view[index];
          }
          function getComponentLViewByIndex(nodeIndex, hostView) {
            // Could be an LView or an LContainer. If LContainer, unwrap to find LView.
            ngDevMode && assertIndexInRange(hostView, nodeIndex);
            const slotValue = hostView[nodeIndex];
            const lView = isLView(slotValue) ? slotValue : slotValue[HOST];
            return lView;
          }
          /** Checks whether a given view is in creation mode */
          function isCreationMode(view) {
            return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;
          }
          /**
           * Returns a boolean for whether the view is attached to the change detection tree.
           *
           * Note: This determines whether a view should be checked, not whether it's inserted
           * into a container. For that, you'll want `viewAttachedToContainer` below.
           */
          function viewAttachedToChangeDetector(view) {
            return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;
          }
          /** Returns a boolean for whether the view is attached to a container. */
          function viewAttachedToContainer(view) {
            return isLContainer(view[PARENT]);
          }
          function getConstant(consts, index) {
            if (index === null || index === undefined) return null;
            ngDevMode && assertIndexInRange(consts, index);
            return consts[index];
          }
          /**
           * Resets the pre-order hook flags of the view.
           * @param lView the LView on which the flags are reset
           */
          function resetPreOrderHookFlags(lView) {
            lView[PREORDER_HOOK_FLAGS] = 0;
          }
          /**
           * Adds the `RefreshView` flag from the lView and updates DESCENDANT_VIEWS_TO_REFRESH counters of
           * parents.
           */
          function markViewForRefresh(lView) {
            if ((lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) === 0) {
              lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;
              updateViewsToRefresh(lView, 1);
            }
          }
          /**
           * Removes the `RefreshView` flag from the lView and updates DESCENDANT_VIEWS_TO_REFRESH counters of
           * parents.
           */
          function clearViewRefreshFlag(lView) {
            if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {
              lView[FLAGS] &= ~1024 /* LViewFlags.RefreshView */;
              updateViewsToRefresh(lView, -1);
            }
          }
          /**
           * Updates the `DESCENDANT_VIEWS_TO_REFRESH` counter on the parents of the `LView` as well as the
           * parents above that whose
           *  1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh
           *  or
           *  2. counter goes from 1 to 0, indicating there are no more descendant views to refresh
           */
          function updateViewsToRefresh(lView, amount) {
            let parent = lView[PARENT];
            if (parent === null) {
              return;
            }
            parent[DESCENDANT_VIEWS_TO_REFRESH] += amount;
            let viewOrContainer = parent;
            parent = parent[PARENT];
            while (parent !== null && (amount === 1 && viewOrContainer[DESCENDANT_VIEWS_TO_REFRESH] === 1 || amount === -1 && viewOrContainer[DESCENDANT_VIEWS_TO_REFRESH] === 0)) {
              parent[DESCENDANT_VIEWS_TO_REFRESH] += amount;
              viewOrContainer = parent;
              parent = parent[PARENT];
            }
          }
          /**
           * Stores a LView-specific destroy callback.
           */
          function storeLViewOnDestroy(lView, onDestroyCallback) {
            if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {
              throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');
            }
            if (lView[ON_DESTROY_HOOKS] === null) {
              lView[ON_DESTROY_HOOKS] = [];
            }
            lView[ON_DESTROY_HOOKS].push(onDestroyCallback);
          }
          /**
           * Removes previously registered LView-specific destroy callback.
           */
          function removeLViewOnDestroy(lView, onDestroyCallback) {
            if (lView[ON_DESTROY_HOOKS] === null) return;
            const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);
            if (destroyCBIdx !== -1) {
              lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);
            }
          }
          const instructionState = {
            lFrame: createLFrame(null),
            bindingsEnabled: true,
            skipHydrationRootTNode: null
          };
          /**
           * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.
           *
           * Necessary to support ChangeDetectorRef.checkNoChanges().
           *
           * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended
           * changes exist in the change detector or its children.
           */
          let _isInCheckNoChangesMode = false;
          /**
           * Returns true if the instruction state stack is empty.
           *
           * Intended to be called from tests only (tree shaken otherwise).
           */
          function specOnlyIsInstructionStateEmpty() {
            return instructionState.lFrame.parent === null;
          }
          function getElementDepthCount() {
            return instructionState.lFrame.elementDepthCount;
          }
          function increaseElementDepthCount() {
            instructionState.lFrame.elementDepthCount++;
          }
          function decreaseElementDepthCount() {
            instructionState.lFrame.elementDepthCount--;
          }
          function getBindingsEnabled() {
            return instructionState.bindingsEnabled;
          }
          /**
           * Returns true if currently inside a skip hydration block.
           * @returns boolean
           */
          function isInSkipHydrationBlock$1() {
            return instructionState.skipHydrationRootTNode !== null;
          }
          /**
           * Returns true if this is the root TNode of the skip hydration block.
           * @param tNode the current TNode
           * @returns boolean
           */
          function isSkipHydrationRootTNode(tNode) {
            return instructionState.skipHydrationRootTNode === tNode;
          }
          /**
           * Enables directive matching on elements.
           *
           *  * Example:
           * ```
           * <my-comp my-directive>
           *   Should match component / directive.
           * </my-comp>
           * <div ngNonBindable>
           *   <!-- ɵɵdisableBindings() -->
           *   <my-comp my-directive>
           *     Should not match component / directive because we are in ngNonBindable.
           *   </my-comp>
           *   <!-- ɵɵenableBindings() -->
           * </div>
           * ```
           *
           * @codeGenApi
           */
          function ɵɵenableBindings() {
            instructionState.bindingsEnabled = true;
          }
          /**
           * Sets a flag to specify that the TNode is in a skip hydration block.
           * @param tNode the current TNode
           */
          function enterSkipHydrationBlock(tNode) {
            instructionState.skipHydrationRootTNode = tNode;
          }
          /**
           * Disables directive matching on element.
           *
           *  * Example:
           * ```
           * <my-comp my-directive>
           *   Should match component / directive.
           * </my-comp>
           * <div ngNonBindable>
           *   <!-- ɵɵdisableBindings() -->
           *   <my-comp my-directive>
           *     Should not match component / directive because we are in ngNonBindable.
           *   </my-comp>
           *   <!-- ɵɵenableBindings() -->
           * </div>
           * ```
           *
           * @codeGenApi
           */
          function ɵɵdisableBindings() {
            instructionState.bindingsEnabled = false;
          }
          /**
           * Clears the root skip hydration node when leaving a skip hydration block.
           */
          function leaveSkipHydrationBlock() {
            instructionState.skipHydrationRootTNode = null;
          }
          /**
           * Return the current `LView`.
           */
          function getLView() {
            return instructionState.lFrame.lView;
          }
          /**
           * Return the current `TView`.
           */
          function getTView() {
            return instructionState.lFrame.tView;
          }
          /**
           * Restores `contextViewData` to the given OpaqueViewState instance.
           *
           * Used in conjunction with the getCurrentView() instruction to save a snapshot
           * of the current view and restore it when listeners are invoked. This allows
           * walking the declaration view tree in listeners to get vars from parent views.
           *
           * @param viewToRestore The OpaqueViewState instance to restore.
           * @returns Context of the restored OpaqueViewState instance.
           *
           * @codeGenApi
           */
          function ɵɵrestoreView(viewToRestore) {
            instructionState.lFrame.contextLView = viewToRestore;
            return viewToRestore[CONTEXT];
          }
          /**
           * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in
           * value so that it can be used as a return value of an instruction.
           *
           * @codeGenApi
           */
          function ɵɵresetView(value) {
            instructionState.lFrame.contextLView = null;
            return value;
          }
          function getCurrentTNode() {
            let currentTNode = getCurrentTNodePlaceholderOk();
            while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {
              currentTNode = currentTNode.parent;
            }
            return currentTNode;
          }
          function getCurrentTNodePlaceholderOk() {
            return instructionState.lFrame.currentTNode;
          }
          function getCurrentParentTNode() {
            const lFrame = instructionState.lFrame;
            const currentTNode = lFrame.currentTNode;
            return lFrame.isParent ? currentTNode : currentTNode.parent;
          }
          function setCurrentTNode(tNode, isParent) {
            ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);
            const lFrame = instructionState.lFrame;
            lFrame.currentTNode = tNode;
            lFrame.isParent = isParent;
          }
          function isCurrentTNodeParent() {
            return instructionState.lFrame.isParent;
          }
          function setCurrentTNodeAsNotParent() {
            instructionState.lFrame.isParent = false;
          }
          function getContextLView() {
            const contextLView = instructionState.lFrame.contextLView;
            ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');
            return contextLView;
          }
          function isInCheckNoChangesMode() {
            !ngDevMode && throwError('Must never be called in production mode');
            return _isInCheckNoChangesMode;
          }
          function setIsInCheckNoChangesMode(mode) {
            !ngDevMode && throwError('Must never be called in production mode');
            _isInCheckNoChangesMode = mode;
          }
          // top level variables should not be exported for performance reasons (PERF_NOTES.md)
          function getBindingRoot() {
            const lFrame = instructionState.lFrame;
            let index = lFrame.bindingRootIndex;
            if (index === -1) {
              index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;
            }
            return index;
          }
          function getBindingIndex() {
            return instructionState.lFrame.bindingIndex;
          }
          function setBindingIndex(value) {
            return instructionState.lFrame.bindingIndex = value;
          }
          function nextBindingIndex() {
            return instructionState.lFrame.bindingIndex++;
          }
          function incrementBindingIndex(count) {
            const lFrame = instructionState.lFrame;
            const index = lFrame.bindingIndex;
            lFrame.bindingIndex = lFrame.bindingIndex + count;
            return index;
          }
          function isInI18nBlock() {
            return instructionState.lFrame.inI18n;
          }
          function setInI18nBlock(isInI18nBlock) {
            instructionState.lFrame.inI18n = isInI18nBlock;
          }
          /**
           * Set a new binding root index so that host template functions can execute.
           *
           * Bindings inside the host template are 0 index. But because we don't know ahead of time
           * how many host bindings we have we can't pre-compute them. For this reason they are all
           * 0 index and we just shift the root so that they match next available location in the LView.
           *
           * @param bindingRootIndex Root index for `hostBindings`
           * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive
           *        whose `hostBindings` are being processed.
           */
          function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {
            const lFrame = instructionState.lFrame;
            lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;
            setCurrentDirectiveIndex(currentDirectiveIndex);
          }
          /**
           * When host binding is executing this points to the directive index.
           * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`
           * `LView[getCurrentDirectiveIndex()]` is directive instance.
           */
          function getCurrentDirectiveIndex() {
            return instructionState.lFrame.currentDirectiveIndex;
          }
          /**
           * Sets an index of a directive whose `hostBindings` are being processed.
           *
           * @param currentDirectiveIndex `TData` index where current directive instance can be found.
           */
          function setCurrentDirectiveIndex(currentDirectiveIndex) {
            instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;
          }
          /**
           * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being
           * executed.
           *
           * @param tData Current `TData` where the `DirectiveDef` will be looked up at.
           */
          function getCurrentDirectiveDef(tData) {
            const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;
            return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];
          }
          function getCurrentQueryIndex() {
            return instructionState.lFrame.currentQueryIndex;
          }
          function setCurrentQueryIndex(value) {
            instructionState.lFrame.currentQueryIndex = value;
          }
          /**
           * Returns a `TNode` of the location where the current `LView` is declared at.
           *
           * @param lView an `LView` that we want to find parent `TNode` for.
           */
          function getDeclarationTNode(lView) {
            const tView = lView[TVIEW];
            // Return the declaration parent for embedded views
            if (tView.type === 2 /* TViewType.Embedded */) {
              ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
              return tView.declTNode;
            }
            // Components don't have `TView.declTNode` because each instance of component could be
            // inserted in different location, hence `TView.declTNode` is meaningless.
            // Falling back to `T_HOST` in case we cross component boundary.
            if (tView.type === 1 /* TViewType.Component */) {
              return lView[T_HOST];
            }
            // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.
            return null;
          }
          /**
           * This is a light weight version of the `enterView` which is needed by the DI system.
           *
           * @param lView `LView` location of the DI context.
           * @param tNode `TNode` for DI context
           * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration
           *     tree from `tNode`  until we find parent declared `TElementNode`.
           * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared
           *     `TNode` if `flags` has  `SkipSelf`). Failing to enter DI implies that no associated
           *     `NodeInjector` can be found and we should instead use `ModuleInjector`.
           *     - If `true` than this call must be fallowed by `leaveDI`
           *     - If `false` than this call failed and we should NOT call `leaveDI`
           */
          function enterDI(lView, tNode, flags) {
            ngDevMode && assertLViewOrUndefined(lView);
            if (flags & InjectFlags.SkipSelf) {
              ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);
              let parentTNode = tNode;
              let parentLView = lView;
              while (true) {
                ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');
                parentTNode = parentTNode.parent;
                if (parentTNode === null && !(flags & InjectFlags.Host)) {
                  parentTNode = getDeclarationTNode(parentLView);
                  if (parentTNode === null) break;
                  // In this case, a parent exists and is definitely an element. So it will definitely
                  // have an existing lView as the declaration view, which is why we can assume it's defined.
                  ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');
                  parentLView = parentLView[DECLARATION_VIEW];
                  // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives
                  // We want to skip those and look only at Elements and ElementContainers to ensure
                  // we're looking at true parent nodes, and not content or other types.
                  if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {
                    break;
                  }
                } else {
                  break;
                }
              }
              if (parentTNode === null) {
                // If we failed to find a parent TNode this means that we should use module injector.
                return false;
              } else {
                tNode = parentTNode;
                lView = parentLView;
              }
            }
            ngDevMode && assertTNodeForLView(tNode, lView);
            const lFrame = instructionState.lFrame = allocLFrame();
            lFrame.currentTNode = tNode;
            lFrame.lView = lView;
            return true;
          }
          /**
           * Swap the current lView with a new lView.
           *
           * For performance reasons we store the lView in the top level of the module.
           * This way we minimize the number of properties to read. Whenever a new view
           * is entered we have to store the lView for later, and when the view is
           * exited the state has to be restored
           *
           * @param newView New lView to become active
           * @returns the previously active lView;
           */
          function enterView(newView) {
            ngDevMode && assertNotEqual(newView[0], newView[1], '????');
            ngDevMode && assertLViewOrUndefined(newView);
            const newLFrame = allocLFrame();
            if (ngDevMode) {
              assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');
              assertEqual(newLFrame.lView, null, 'Expected clean LFrame');
              assertEqual(newLFrame.tView, null, 'Expected clean LFrame');
              assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');
              assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');
              assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');
              assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');
              assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');
              assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');
            }
            const tView = newView[TVIEW];
            instructionState.lFrame = newLFrame;
            ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);
            newLFrame.currentTNode = tView.firstChild;
            newLFrame.lView = newView;
            newLFrame.tView = tView;
            newLFrame.contextLView = newView;
            newLFrame.bindingIndex = tView.bindingStartIndex;
            newLFrame.inI18n = false;
          }
          /**
           * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
           */
          function allocLFrame() {
            const currentLFrame = instructionState.lFrame;
            const childLFrame = currentLFrame === null ? null : currentLFrame.child;
            const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
            return newLFrame;
          }
          function createLFrame(parent) {
            const lFrame = {
              currentTNode: null,
              isParent: true,
              lView: null,
              tView: null,
              selectedIndex: -1,
              contextLView: null,
              elementDepthCount: 0,
              currentNamespace: null,
              currentDirectiveIndex: -1,
              bindingRootIndex: -1,
              bindingIndex: -1,
              currentQueryIndex: 0,
              parent: parent,
              child: null,
              inI18n: false
            };
            parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.
            return lFrame;
          }
          /**
           * A lightweight version of leave which is used with DI.
           *
           * This function only resets `currentTNode` and `LView` as those are the only properties
           * used with DI (`enterDI()`).
           *
           * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where
           * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
           */
          function leaveViewLight() {
            const oldLFrame = instructionState.lFrame;
            instructionState.lFrame = oldLFrame.parent;
            oldLFrame.currentTNode = null;
            oldLFrame.lView = null;
            return oldLFrame;
          }
          /**
           * This is a lightweight version of the `leaveView` which is needed by the DI system.
           *
           * NOTE: this function is an alias so that we can change the type of the function to have `void`
           * return type.
           */
          const leaveDI = leaveViewLight;
          /**
           * Leave the current `LView`
           *
           * This pops the `LFrame` with the associated `LView` from the stack.
           *
           * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is
           * because for performance reasons we don't release `LFrame` but rather keep it for next use.
           */
          function leaveView() {
            const oldLFrame = leaveViewLight();
            oldLFrame.isParent = true;
            oldLFrame.tView = null;
            oldLFrame.selectedIndex = -1;
            oldLFrame.contextLView = null;
            oldLFrame.elementDepthCount = 0;
            oldLFrame.currentDirectiveIndex = -1;
            oldLFrame.currentNamespace = null;
            oldLFrame.bindingRootIndex = -1;
            oldLFrame.bindingIndex = -1;
            oldLFrame.currentQueryIndex = 0;
          }
          function nextContextImpl(level) {
            const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);
            return contextLView[CONTEXT];
          }
          function walkUpViews(nestingLevel, currentView) {
            while (nestingLevel > 0) {
              ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');
              currentView = currentView[DECLARATION_VIEW];
              nestingLevel--;
            }
            return currentView;
          }
          /**
           * Gets the currently selected element index.
           *
           * Used with {@link property} instruction (and more in the future) to identify the index in the
           * current `LView` to act on.
           */
          function getSelectedIndex() {
            return instructionState.lFrame.selectedIndex;
          }
          /**
           * Sets the most recent index passed to {@link select}
           *
           * Used with {@link property} instruction (and more in the future) to identify the index in the
           * current `LView` to act on.
           *
           * (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be
           * run if and when the provided `index` value is different from the current selected index value.)
           */
          function setSelectedIndex(index) {
            ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');
            ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\'t set index passed end of LView');
            instructionState.lFrame.selectedIndex = index;
          }
          /**
           * Gets the `tNode` that represents currently selected element.
           */
          function getSelectedTNode() {
            const lFrame = instructionState.lFrame;
            return getTNode(lFrame.tView, lFrame.selectedIndex);
          }
          /**
           * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
           *
           * @codeGenApi
           */
          function ɵɵnamespaceSVG() {
            instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
          }
          /**
           * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
           *
           * @codeGenApi
           */
          function ɵɵnamespaceMathML() {
            instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
          }
          /**
           * Sets the namespace used to create elements to `null`, which forces element creation to use
           * `createElement` rather than `createElementNS`.
           *
           * @codeGenApi
           */
          function ɵɵnamespaceHTML() {
            namespaceHTMLInternal();
          }
          /**
           * Sets the namespace used to create elements to `null`, which forces element creation to use
           * `createElement` rather than `createElementNS`.
           */
          function namespaceHTMLInternal() {
            instructionState.lFrame.currentNamespace = null;
          }
          function getNamespace$1() {
            return instructionState.lFrame.currentNamespace;
          }
          let _wasLastNodeCreated = true;
          /**
           * Retrieves a global flag that indicates whether the most recent DOM node
           * was created or hydrated.
           */
          function wasLastNodeCreated() {
            return _wasLastNodeCreated;
          }
          /**
           * Sets a global flag to indicate whether the most recent DOM node
           * was created or hydrated.
           */
          function lastNodeWasCreated(flag) {
            _wasLastNodeCreated = flag;
          }
          
          /**
           * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.
           *
           * Must be run *only* on the first template pass.
           *
           * Sets up the pre-order hooks on the provided `tView`,
           * see {@link HookData} for details about the data structure.
           *
           * @param directiveIndex The index of the directive in LView
           * @param directiveDef The definition containing the hooks to setup in tView
           * @param tView The current TView
           */
          function registerPreOrderHooks(directiveIndex, directiveDef, tView) {
            ngDevMode && assertFirstCreatePass(tView);
            const {
              ngOnChanges,
              ngOnInit,
              ngDoCheck
            } = directiveDef.type.prototype;
            if (ngOnChanges) {
              const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);
              (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);
              (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);
            }
            if (ngOnInit) {
              (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);
            }
            if (ngDoCheck) {
              (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);
              (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);
            }
          }
          /**
           *
           * Loops through the directives on the provided `tNode` and queues hooks to be
           * run that are not initialization hooks.
           *
           * Should be executed during `elementEnd()` and similar to
           * preserve hook execution order. Content, view, and destroy hooks for projected
           * components and directives must be called *before* their hosts.
           *
           * Sets up the content, view, and destroy hooks on the provided `tView`,
           * see {@link HookData} for details about the data structure.
           *
           * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up
           * separately at `elementStart`.
           *
           * @param tView The current TView
           * @param tNode The TNode whose directives are to be searched for hooks to queue
           */
          function registerPostOrderHooks(tView, tNode) {
            ngDevMode && assertFirstCreatePass(tView);
            // It's necessary to loop through the directives at elementEnd() (rather than processing in
            // directiveCreate) so we can preserve the current hook order. Content, view, and destroy
            // hooks for projected components and directives must be called *before* their hosts.
            for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {
              const directiveDef = tView.data[i];
              ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');
              const lifecycleHooks = directiveDef.type.prototype;
              const {
                ngAfterContentInit,
                ngAfterContentChecked,
                ngAfterViewInit,
                ngAfterViewChecked,
                ngOnDestroy
              } = lifecycleHooks;
              if (ngAfterContentInit) {
                (tView.contentHooks ??= []).push(-i, ngAfterContentInit);
              }
              if (ngAfterContentChecked) {
                (tView.contentHooks ??= []).push(i, ngAfterContentChecked);
                (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);
              }
              if (ngAfterViewInit) {
                (tView.viewHooks ??= []).push(-i, ngAfterViewInit);
              }
              if (ngAfterViewChecked) {
                (tView.viewHooks ??= []).push(i, ngAfterViewChecked);
                (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);
              }
              if (ngOnDestroy != null) {
                (tView.destroyHooks ??= []).push(i, ngOnDestroy);
              }
            }
          }
          /**
           * Executing hooks requires complex logic as we need to deal with 2 constraints.
           *
           * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only
           * once, across many change detection cycles. This must be true even if some hooks throw, or if
           * some recursively trigger a change detection cycle.
           * To solve that, it is required to track the state of the execution of these init hooks.
           * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},
           * and the index within that phase. They can be seen as a cursor in the following structure:
           * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]
           * They are stored as flags in LView[FLAGS].
           *
           * 2. Pre-order hooks can be executed in batches, because of the select instruction.
           * To be able to pause and resume their execution, we also need some state about the hook's array
           * that is being processed:
           * - the index of the next hook to be executed
           * - the number of init hooks already found in the processed part of the  array
           * They are stored as flags in LView[PREORDER_HOOK_FLAGS].
           */
          /**
           * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were
           * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read
           * / write of the init-hooks related flags.
           * @param lView The LView where hooks are defined
           * @param hooks Hooks to be run
           * @param nodeIndex 3 cases depending on the value:
           * - undefined: all hooks from the array should be executed (post-order case)
           * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
           * flushing the remaining hooks)
           * - number: execute hooks only from the saved index until that node index exclusive (pre-order
           * case, when executing select(number))
           */
          function executeCheckHooks(lView, hooks, nodeIndex) {
            callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);
          }
          /**
           * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,
           * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.
           * @param lView The LView where hooks are defined
           * @param hooks Hooks to be run
           * @param initPhase A phase for which hooks should be run
           * @param nodeIndex 3 cases depending on the value:
           * - undefined: all hooks from the array should be executed (post-order case)
           * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
           * flushing the remaining hooks)
           * - number: execute hooks only from the saved index until that node index exclusive (pre-order
           * case, when executing select(number))
           */
          function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {
            ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');
            if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {
              callHooks(lView, hooks, initPhase, nodeIndex);
            }
          }
          function incrementInitPhaseFlags(lView, initPhase) {
            ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');
            let flags = lView[FLAGS];
            if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {
              flags &= 8191 /* LViewFlags.IndexWithinInitPhaseReset */;
              flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;
              lView[FLAGS] = flags;
            }
          }
          /**
           * Calls lifecycle hooks with their contexts, skipping init hooks if it's not
           * the first LView pass
           *
           * @param currentView The current view
           * @param arr The array in which the hooks are found
           * @param initPhaseState the current state of the init phase
           * @param currentNodeIndex 3 cases depending on the value:
           * - undefined: all hooks from the array should be executed (post-order case)
           * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
           * flushing the remaining hooks)
           * - number: execute hooks only from the saved index until that node index exclusive (pre-order
           * case, when executing select(number))
           */
          function callHooks(currentView, arr, initPhase, currentNodeIndex) {
            ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');
            const startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */ : 0;
            const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;
            const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1
            let lastNodeIndexFound = 0;
            for (let i = startIndex; i < max; i++) {
              const hook = arr[i + 1];
              if (typeof hook === 'number') {
                lastNodeIndexFound = arr[i];
                if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {
                  break;
                }
              } else {
                const isInitHook = arr[i] < 0;
                if (isInitHook) {
                  currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;
                }
          
                if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
                  callHook(currentView, initPhase, arr, i);
                  currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i + 2;
                }
                i++;
              }
            }
          }
          /**
           * Executes a single lifecycle hook, making sure that:
           * - it is called in the non-reactive context;
           * - profiling data are registered.
           */
          function callHookInternal(directive, hook) {
            profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);
            const prevConsumer = setActiveConsumer(null);
            try {
              hook.call(directive);
            } finally {
              setActiveConsumer(prevConsumer);
              profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);
            }
          }
          /**
           * Execute one hook against the current `LView`.
           *
           * @param currentView The current view
           * @param initPhaseState the current state of the init phase
           * @param arr The array in which the hooks are found
           * @param i The current index within the hook data array
           */
          function callHook(currentView, initPhase, arr, i) {
            const isInitHook = arr[i] < 0;
            const hook = arr[i + 1];
            const directiveIndex = isInitHook ? -arr[i] : arr[i];
            const directive = currentView[directiveIndex];
            if (isInitHook) {
              const indexWithintInitPhase = currentView[FLAGS] >> 13 /* LViewFlags.IndexWithinInitPhaseShift */;
              // The init phase state must be always checked here as it may have been recursively updated.
              if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */ && (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {
                currentView[FLAGS] += 8192 /* LViewFlags.IndexWithinInitPhaseIncrementer */;
                callHookInternal(directive, hook);
              }
            } else {
              callHookInternal(directive, hook);
            }
          }
          const NO_PARENT_INJECTOR = -1;
          /**
           * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in
           * `TView.data`. This allows us to store information about the current node's tokens (which
           * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be
           * shared, so they live in `LView`).
           *
           * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter
           * determines whether a directive is available on the associated node or not. This prevents us
           * from searching the directives array at this level unless it's probable the directive is in it.
           *
           * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.
           *
           * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed
           * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`
           * will differ based on where it is flattened into the main array, so it's not possible to know
           * the indices ahead of time and save their types here. The interfaces are still included here
           * for documentation purposes.
           *
           * export interface LInjector extends Array<any> {
           *
           *    // Cumulative bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)
           *    [0]: number;
           *
           *    // Cumulative bloom for directive IDs 32-63
           *    [1]: number;
           *
           *    // Cumulative bloom for directive IDs 64-95
           *    [2]: number;
           *
           *    // Cumulative bloom for directive IDs 96-127
           *    [3]: number;
           *
           *    // Cumulative bloom for directive IDs 128-159
           *    [4]: number;
           *
           *    // Cumulative bloom for directive IDs 160 - 191
           *    [5]: number;
           *
           *    // Cumulative bloom for directive IDs 192 - 223
           *    [6]: number;
           *
           *    // Cumulative bloom for directive IDs 224 - 255
           *    [7]: number;
           *
           *    // We need to store a reference to the injector's parent so DI can keep looking up
           *    // the injector tree until it finds the dependency it's looking for.
           *    [PARENT_INJECTOR]: number;
           * }
           *
           * export interface TInjector extends Array<any> {
           *
           *    // Shared node bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)
           *    [0]: number;
           *
           *    // Shared node bloom for directive IDs 32-63
           *    [1]: number;
           *
           *    // Shared node bloom for directive IDs 64-95
           *    [2]: number;
           *
           *    // Shared node bloom for directive IDs 96-127
           *    [3]: number;
           *
           *    // Shared node bloom for directive IDs 128-159
           *    [4]: number;
           *
           *    // Shared node bloom for directive IDs 160 - 191
           *    [5]: number;
           *
           *    // Shared node bloom for directive IDs 192 - 223
           *    [6]: number;
           *
           *    // Shared node bloom for directive IDs 224 - 255
           *    [7]: number;
           *
           *    // Necessary to find directive indices for a particular node.
           *    [TNODE]: TElementNode|TElementContainerNode|TContainerNode;
           *  }
           */
          /**
           * Factory for creating instances of injectors in the NodeInjector.
           *
           * This factory is complicated by the fact that it can resolve `multi` factories as well.
           *
           * NOTE: Some of the fields are optional which means that this class has two hidden classes.
           * - One without `multi` support (most common)
           * - One with `multi` values, (rare).
           *
           * Since VMs can cache up to 4 inline hidden classes this is OK.
           *
           * - Single factory: Only `resolving` and `factory` is defined.
           * - `providers` factory: `componentProviders` is a number and `index = -1`.
           * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.
           */
          class NodeInjectorFactory {
            constructor(
            /**
             * Factory to invoke in order to create a new instance.
             */
            factory,
            /**
             * Set to `true` if the token is declared in `viewProviders` (or if it is component).
             */
            isViewProvider, injectImplementation) {
              this.factory = factory;
              /**
               * Marker set to true during factory invocation to see if we get into recursive loop.
               * Recursive loop causes an error to be displayed.
               */
              this.resolving = false;
              ngDevMode && assertDefined(factory, 'Factory not specified');
              ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');
              this.canSeeViewProviders = isViewProvider;
              this.injectImpl = injectImplementation;
            }
          }
          function isFactory(obj) {
            return obj instanceof NodeInjectorFactory;
          }
          // Note: This hack is necessary so we don't erroneously get a circular dependency
          // failure based on types.
          const unusedValueExportToPlacateAjd$2 = 1;
          
          /**
           * Converts `TNodeType` into human readable text.
           * Make sure this matches with `TNodeType`
           */
          function toTNodeTypeAsString(tNodeType) {
            let text = '';
            tNodeType & 1 /* TNodeType.Text */ && (text += '|Text');
            tNodeType & 2 /* TNodeType.Element */ && (text += '|Element');
            tNodeType & 4 /* TNodeType.Container */ && (text += '|Container');
            tNodeType & 8 /* TNodeType.ElementContainer */ && (text += '|ElementContainer');
            tNodeType & 16 /* TNodeType.Projection */ && (text += '|Projection');
            tNodeType & 32 /* TNodeType.Icu */ && (text += '|IcuContainer');
            tNodeType & 64 /* TNodeType.Placeholder */ && (text += '|Placeholder');
            return text.length > 0 ? text.substring(1) : text;
          }
          // Note: This hack is necessary so we don't erroneously get a circular dependency
          // failure based on types.
          const unusedValueExportToPlacateAjd$1 = 1;
          /**
           * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.
           *
           * ```
           * <div my-dir [class]="exp"></div>
           * ```
           * and
           * ```
           * @Directive({
           * })
           * class MyDirective {
           *   @Input()
           *   class: string;
           * }
           * ```
           *
           * In the above case it is necessary to write the reconciled styling information into the
           * directive's input.
           *
           * @param tNode
           */
          function hasClassInput(tNode) {
            return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;
          }
          /**
           * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.
           *
           * ```
           * <div my-dir [style]="exp"></div>
           * ```
           * and
           * ```
           * @Directive({
           * })
           * class MyDirective {
           *   @Input()
           *   class: string;
           * }
           * ```
           *
           * In the above case it is necessary to write the reconciled styling information into the
           * directive's input.
           *
           * @param tNode
           */
          function hasStyleInput(tNode) {
            return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;
          }
          function assertTNodeType(tNode, expectedTypes, message) {
            assertDefined(tNode, 'should be called with a TNode');
            if ((tNode.type & expectedTypes) === 0) {
              throwError(message || `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);
            }
          }
          function assertPureTNodeType(type) {
            if (!(type === 2 /* TNodeType.Element */ ||
            //
            type === 1 /* TNodeType.Text */ ||
            //
            type === 4 /* TNodeType.Container */ ||
            //
            type === 8 /* TNodeType.ElementContainer */ ||
            //
            type === 32 /* TNodeType.Icu */ ||
            //
            type === 16 /* TNodeType.Projection */ ||
            //
            type === 64 /* TNodeType.Placeholder */)) {
              throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);
            }
          }
          
          /// Parent Injector Utils ///////////////////////////////////////////////////////////////
          function hasParentInjector(parentLocation) {
            return parentLocation !== NO_PARENT_INJECTOR;
          }
          function getParentInjectorIndex(parentLocation) {
            ngDevMode && assertNumber(parentLocation, 'Number expected');
            ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');
            const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;
            ngDevMode && assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');
            return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;
          }
          
          function getParentInjectorViewOffset(parentLocation) {
            return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;
          }
          /**
           * Unwraps a parent injector location number to find the view offset from the current injector,
           * then walks up the declaration view tree until the view is found that contains the parent
           * injector.
           *
           * @param location The location of the parent injector, which contains the view offset
           * @param startView The LView instance from which to start walking up the view tree
           * @returns The LView instance that contains the parent injector
           */
          function getParentInjectorView(location, startView) {
            let viewOffset = getParentInjectorViewOffset(location);
            let parentView = startView;
            // For most cases, the parent injector can be found on the host node (e.g. for component
            // or container), but we must keep the loop here to support the rarer case of deeply nested
            // <ng-template> tags or inline views, where the parent injector might live many views
            // above the child injector.
            while (viewOffset > 0) {
              parentView = parentView[DECLARATION_VIEW];
              viewOffset--;
            }
            return parentView;
          }
          
          /**
           * Defines if the call to `inject` should include `viewProviders` in its resolution.
           *
           * This is set to true when we try to instantiate a component. This value is reset in
           * `getNodeInjectable` to a value which matches the declaration location of the token about to be
           * instantiated. This is done so that if we are injecting a token which was declared outside of
           * `viewProviders` we don't accidentally pull `viewProviders` in.
           *
           * Example:
           *
           * ```
           * @Injectable()
           * class MyService {
           *   constructor(public value: String) {}
           * }
           *
           * @Component({
           *   providers: [
           *     MyService,
           *     {provide: String, value: 'providers' }
           *   ]
           *   viewProviders: [
           *     {provide: String, value: 'viewProviders'}
           *   ]
           * })
           * class MyComponent {
           *   constructor(myService: MyService, value: String) {
           *     // We expect that Component can see into `viewProviders`.
           *     expect(value).toEqual('viewProviders');
           *     // `MyService` was not declared in `viewProviders` hence it can't see it.
           *     expect(myService.value).toEqual('providers');
           *   }
           * }
           *
           * ```
           */
          let includeViewProviders = true;
          function setIncludeViewProviders(v) {
            const oldValue = includeViewProviders;
            includeViewProviders = v;
            return oldValue;
          }
          /**
           * The number of slots in each bloom filter (used by DI). The larger this number, the fewer
           * directives that will share slots, and thus, the fewer false positives when checking for
           * the existence of a directive.
           */
          const BLOOM_SIZE = 256;
          const BLOOM_MASK = BLOOM_SIZE - 1;
          /**
           * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,
           * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash
           * number.
           */
          const BLOOM_BUCKET_BITS = 5;
          /** Counter used to generate unique IDs for directives. */
          let nextNgElementId = 0;
          /** Value used when something wasn't found by an injector. */
          const NOT_FOUND = {};
          /**
           * Registers this directive as present in its node's injector by flipping the directive's
           * corresponding bit in the injector's bloom filter.
           *
           * @param injectorIndex The index of the node injector where this token should be registered
           * @param tView The TView for the injector's bloom filters
           * @param type The directive token to register
           */
          function bloomAdd(injectorIndex, tView, type) {
            ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
            let id;
            if (typeof type === 'string') {
              id = type.charCodeAt(0) || 0;
            } else if (type.hasOwnProperty(NG_ELEMENT_ID)) {
              id = type[NG_ELEMENT_ID];
            }
            // Set a unique ID on the directive type, so if something tries to inject the directive,
            // we can easily retrieve the ID and hash it into the bloom bit that should be checked.
            if (id == null) {
              id = type[NG_ELEMENT_ID] = nextNgElementId++;
            }
            // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),
            // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.
            const bloomHash = id & BLOOM_MASK;
            // Create a mask that targets the specific bit associated with the directive.
            // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
            // to bit positions 0 - 31 in a 32 bit integer.
            const mask = 1 << bloomHash;
            // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.
            // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask
            // should be written to.
            tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;
          }
          /**
           * Creates (or gets an existing) injector for a given element or container.
           *
           * @param tNode for which an injector should be retrieved / created.
           * @param lView View where the node is stored
           * @returns Node injector
           */
          function getOrCreateNodeInjectorForNode(tNode, lView) {
            const existingInjectorIndex = getInjectorIndex(tNode, lView);
            if (existingInjectorIndex !== -1) {
              return existingInjectorIndex;
            }
            const tView = lView[TVIEW];
            if (tView.firstCreatePass) {
              tNode.injectorIndex = lView.length;
              insertBloom(tView.data, tNode); // foundation for node bloom
              insertBloom(lView, null); // foundation for cumulative bloom
              insertBloom(tView.blueprint, null);
            }
            const parentLoc = getParentInjectorLocation(tNode, lView);
            const injectorIndex = tNode.injectorIndex;
            // If a parent injector can't be found, its location is set to -1.
            // In that case, we don't need to set up a cumulative bloom
            if (hasParentInjector(parentLoc)) {
              const parentIndex = getParentInjectorIndex(parentLoc);
              const parentLView = getParentInjectorView(parentLoc, lView);
              const parentData = parentLView[TVIEW].data;
              // Creates a cumulative bloom filter that merges the parent's bloom filter
              // and its own cumulative bloom (which contains tokens for all ancestors)
              for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {
                lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];
              }
            }
            lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;
            return injectorIndex;
          }
          function insertBloom(arr, footer) {
            arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);
          }
          function getInjectorIndex(tNode, lView) {
            if (tNode.injectorIndex === -1 ||
            // If the injector index is the same as its parent's injector index, then the index has been
            // copied down from the parent node. No injector has been created yet on this node.
            tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex ||
            // After the first template pass, the injector index might exist but the parent values
            // might not have been calculated yet for this instance
            lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {
              return -1;
            } else {
              ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);
              return tNode.injectorIndex;
            }
          }
          /**
           * Finds the index of the parent injector, with a view offset if applicable. Used to set the
           * parent injector initially.
           *
           * @returns Returns a number that is the combination of the number of LViews that we have to go up
           * to find the LView containing the parent inject AND the index of the injector within that LView.
           */
          function getParentInjectorLocation(tNode, lView) {
            if (tNode.parent && tNode.parent.injectorIndex !== -1) {
              // If we have a parent `TNode` and there is an injector associated with it we are done, because
              // the parent injector is within the current `LView`.
              return tNode.parent.injectorIndex; // ViewOffset is 0
            }
            // When parent injector location is computed it may be outside of the current view. (ie it could
            // be pointing to a declared parent location). This variable stores number of declaration parents
            // we need to walk up in order to find the parent injector location.
            let declarationViewOffset = 0;
            let parentTNode = null;
            let lViewCursor = lView;
            // The parent injector is not in the current `LView`. We will have to walk the declared parent
            // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent
            // `NodeInjector`.
            while (lViewCursor !== null) {
              parentTNode = getTNodeFromLView(lViewCursor);
              if (parentTNode === null) {
                // If we have no parent, than we are done.
                return NO_PARENT_INJECTOR;
              }
              ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);
              // Every iteration of the loop requires that we go to the declared parent.
              declarationViewOffset++;
              lViewCursor = lViewCursor[DECLARATION_VIEW];
              if (parentTNode.injectorIndex !== -1) {
                // We found a NodeInjector which points to something.
                return parentTNode.injectorIndex | declarationViewOffset << 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;
              }
            }
          
            return NO_PARENT_INJECTOR;
          }
          /**
           * Makes a type or an injection token public to the DI system by adding it to an
           * injector's bloom filter.
           *
           * @param di The node injector in which a directive will be added
           * @param token The type or the injection token to be made public
           */
          function diPublicInInjector(injectorIndex, tView, token) {
            bloomAdd(injectorIndex, tView, token);
          }
          /**
           * Inject static attribute value into directive constructor.
           *
           * This method is used with `factory` functions which are generated as part of
           * `defineDirective` or `defineComponent`. The method retrieves the static value
           * of an attribute. (Dynamic attributes are not supported since they are not resolved
           *  at the time of injection and can change over time.)
           *
           * # Example
           * Given:
           * ```
           * @Component(...)
           * class MyComponent {
           *   constructor(@Attribute('title') title: string) { ... }
           * }
           * ```
           * When instantiated with
           * ```
           * <my-component title="Hello"></my-component>
           * ```
           *
           * Then factory method generated is:
           * ```
           * MyComponent.ɵcmp = defineComponent({
           *   factory: () => new MyComponent(injectAttribute('title'))
           *   ...
           * })
           * ```
           *
           * @publicApi
           */
          function injectAttributeImpl(tNode, attrNameToInject) {
            ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);
            ngDevMode && assertDefined(tNode, 'expecting tNode');
            if (attrNameToInject === 'class') {
              return tNode.classes;
            }
            if (attrNameToInject === 'style') {
              return tNode.styles;
            }
            const attrs = tNode.attrs;
            if (attrs) {
              const attrsLength = attrs.length;
              let i = 0;
              while (i < attrsLength) {
                const value = attrs[i];
                // If we hit a `Bindings` or `Template` marker then we are done.
                if (isNameOnlyAttributeMarker(value)) break;
                // Skip namespaced attributes
                if (value === 0 /* AttributeMarker.NamespaceURI */) {
                  // we skip the next two values
                  // as namespaced attributes looks like
                  // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',
                  // 'existValue', ...]
                  i = i + 2;
                } else if (typeof value === 'number') {
                  // Skip to the first value of the marked attribute.
                  i++;
                  while (i < attrsLength && typeof attrs[i] === 'string') {
                    i++;
                  }
                } else if (value === attrNameToInject) {
                  return attrs[i + 1];
                } else {
                  i = i + 2;
                }
              }
            }
            return null;
          }
          function notFoundValueOrThrow(notFoundValue, token, flags) {
            if (flags & InjectFlags.Optional || notFoundValue !== undefined) {
              return notFoundValue;
            } else {
              throwProviderNotFoundError(token, 'NodeInjector');
            }
          }
          /**
           * Returns the value associated to the given token from the ModuleInjector or throws exception
           *
           * @param lView The `LView` that contains the `tNode`
           * @param token The token to look for
           * @param flags Injection flags
           * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
           * @returns the value from the injector or throws an exception
           */
          function lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {
            if (flags & InjectFlags.Optional && notFoundValue === undefined) {
              // This must be set or the NullInjector will throw for optional deps
              notFoundValue = null;
            }
            if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {
              const moduleInjector = lView[INJECTOR$1];
              // switch to `injectInjectorOnly` implementation for module injector, since module injector
              // should not have access to Component/Directive DI scope (that may happen through
              // `directiveInject` implementation)
              const previousInjectImplementation = setInjectImplementation(undefined);
              try {
                if (moduleInjector) {
                  return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);
                } else {
                  return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);
                }
              } finally {
                setInjectImplementation(previousInjectImplementation);
              }
            }
            return notFoundValueOrThrow(notFoundValue, token, flags);
          }
          /**
           * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.
           *
           * Look for the injector providing the token by walking up the node injector tree and then
           * the module injector tree.
           *
           * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom
           * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)
           *
           * @param tNode The Node where the search for the injector should start
           * @param lView The `LView` that contains the `tNode`
           * @param token The token to look for
           * @param flags Injection flags
           * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
           * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
           */
          function getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {
            if (tNode !== null) {
              // If the view or any of its ancestors have an embedded
              // view injector, we have to look it up there first.
              if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&
              // The token must be present on the current node injector when the `Self`
              // flag is set, so the lookup on embedded view injector(s) can be skipped.
              !(flags & InjectFlags.Self)) {
                const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);
                if (embeddedInjectorValue !== NOT_FOUND) {
                  return embeddedInjectorValue;
                }
              }
              // Otherwise try the node injector.
              const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);
              if (value !== NOT_FOUND) {
                return value;
              }
            }
            // Finally, fall back to the module injector.
            return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
          }
          /**
           * Returns the value associated to the given token from the node injector.
           *
           * @param tNode The Node where the search for the injector should start
           * @param lView The `LView` that contains the `tNode`
           * @param token The token to look for
           * @param flags Injection flags
           * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
           * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
           */
          function lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {
            const bloomHash = bloomHashBitOrFactory(token);
            // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef
            // so just call the factory function to create it.
            if (typeof bloomHash === 'function') {
              if (!enterDI(lView, tNode, flags)) {
                // Failed to enter DI, try module injector instead. If a token is injected with the @Host
                // flag, the module injector is not searched for that token in Ivy.
                return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
              }
              try {
                let value;
                if (ngDevMode) {
                  runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {
                    value = bloomHash(flags);
                    if (value != null) {
                      emitInstanceCreatedByInjectorEvent(value);
                    }
                  });
                } else {
                  value = bloomHash(flags);
                }
                if (value == null && !(flags & InjectFlags.Optional)) {
                  throwProviderNotFoundError(token);
                } else {
                  return value;
                }
              } finally {
                leaveDI();
              }
            } else if (typeof bloomHash === 'number') {
              // A reference to the previous injector TView that was found while climbing the element
              // injector tree. This is used to know if viewProviders can be accessed on the current
              // injector.
              let previousTView = null;
              let injectorIndex = getInjectorIndex(tNode, lView);
              let parentLocation = NO_PARENT_INJECTOR;
              let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;
              // If we should skip this injector, or if there is no injector on this node, start by
              // searching the parent injector.
              if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {
                parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];
                if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {
                  injectorIndex = -1;
                } else {
                  previousTView = lView[TVIEW];
                  injectorIndex = getParentInjectorIndex(parentLocation);
                  lView = getParentInjectorView(parentLocation, lView);
                }
              }
              // Traverse up the injector tree until we find a potential match or until we know there
              // *isn't* a match.
              while (injectorIndex !== -1) {
                ngDevMode && assertNodeInjector(lView, injectorIndex);
                // Check the current injector. If it matches, see if it contains token.
                const tView = lView[TVIEW];
                ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);
                if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {
                  // At this point, we have an injector which *may* contain the token, so we step through
                  // the providers and directives associated with the injector's corresponding node to get
                  // the instance.
                  const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);
                  if (instance !== NOT_FOUND) {
                    return instance;
                  }
                }
                parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];
                if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {
                  // The def wasn't found anywhere on this node, so it was a false positive.
                  // Traverse up the tree and continue searching.
                  previousTView = tView;
                  injectorIndex = getParentInjectorIndex(parentLocation);
                  lView = getParentInjectorView(parentLocation, lView);
                } else {
                  // If we should not search parent OR If the ancestor bloom filter value does not have the
                  // bit corresponding to the directive we can give up on traversing up to find the specific
                  // injector.
                  injectorIndex = -1;
                }
              }
            }
            return notFoundValue;
          }
          function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {
            const currentTView = lView[TVIEW];
            const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];
            // First, we need to determine if view providers can be accessed by the starting element.
            // There are two possibilities
            const canAccessViewProviders = previousTView == null ?
            // 1) This is the first invocation `previousTView == null` which means that we are at the
            // `TNode` of where injector is starting to look. In such a case the only time we are allowed
            // to look into the ViewProviders is if:
            // - we are on a component
            // - AND the injector set `includeViewProviders` to true (implying that the token can see
            // ViewProviders because it is the Component or a Service which itself was declared in
            // ViewProviders)
            isComponentHost(tNode) && includeViewProviders :
            // 2) `previousTView != null` which means that we are now walking across the parent nodes.
            // In such a case we are only allowed to look into the ViewProviders if:
            // - We just crossed from child View to Parent View `previousTView != currentTView`
            // - AND the parent TNode is an Element.
            // This means that we just came from the Component's View and therefore are allowed to see
            // into the ViewProviders.
            previousTView != currentTView && (tNode.type & 3 /* TNodeType.AnyRNode */) !== 0;
            // This special case happens when there is a @host on the inject and when we are searching
            // on the host element node.
            const isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;
            const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);
            if (injectableIdx !== null) {
              return getNodeInjectable(lView, currentTView, injectableIdx, tNode);
            } else {
              return NOT_FOUND;
            }
          }
          /**
           * Searches for the given token among the node's directives and providers.
           *
           * @param tNode TNode on which directives are present.
           * @param tView The tView we are currently processing
           * @param token Provider token or type of a directive to look for.
           * @param canAccessViewProviders Whether view providers should be considered.
           * @param isHostSpecialCase Whether the host special case applies.
           * @returns Index of a found directive or provider, or null when none found.
           */
          function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {
            const nodeProviderIndexes = tNode.providerIndexes;
            const tInjectables = tView.data;
            const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;
            const directivesStart = tNode.directiveStart;
            const directiveEnd = tNode.directiveEnd;
            const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;
            const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;
            // When the host special case applies, only the viewProviders and the component are visible
            const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;
            for (let i = startingIndex; i < endIndex; i++) {
              const providerTokenOrDef = tInjectables[i];
              if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {
                return i;
              }
            }
            if (isHostSpecialCase) {
              const dirDef = tInjectables[directivesStart];
              if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {
                return directivesStart;
              }
            }
            return null;
          }
          /**
           * Retrieve or instantiate the injectable from the `LView` at particular `index`.
           *
           * This function checks to see if the value has already been instantiated and if so returns the
           * cached `injectable`. Otherwise if it detects that the value is still a factory it
           * instantiates the `injectable` and caches the value.
           */
          function getNodeInjectable(lView, tView, index, tNode) {
            let value = lView[index];
            const tData = tView.data;
            if (isFactory(value)) {
              const factory = value;
              if (factory.resolving) {
                throwCyclicDependencyError(stringifyForError(tData[index]));
              }
              const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);
              factory.resolving = true;
              let prevInjectContext;
              if (ngDevMode) {
                // tData indexes mirror the concrete instances in its corresponding LView.
                // lView[index] here is either the injectable instace itself or a factory,
                // therefore tData[index] is the constructor of that injectable or a
                // definition object that contains the constructor in a `.type` field.
                const token = tData[index].type || tData[index];
                const injector = new NodeInjector(tNode, lView);
                prevInjectContext = setInjectorProfilerContext({
                  injector,
                  token
                });
              }
              const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;
              const success = enterDI(lView, tNode, InjectFlags.Default);
              ngDevMode && assertEqual(success, true, 'Because flags do not contain \`SkipSelf\' we expect this to always succeed.');
              try {
                value = lView[index] = factory.factory(undefined, tData, lView, tNode);
                ngDevMode && emitInstanceCreatedByInjectorEvent(value);
                // This code path is hit for both directives and providers.
                // For perf reasons, we want to avoid searching for hooks on providers.
                // It does no harm to try (the hooks just won't exist), but the extra
                // checks are unnecessary and this is a hot path. So we check to see
                // if the index of the dependency is in the directive range for this
                // tNode. If it's not, we know it's a provider and skip hook registration.
                if (tView.firstCreatePass && index >= tNode.directiveStart) {
                  ngDevMode && assertDirectiveDef(tData[index]);
                  registerPreOrderHooks(index, tData[index], tView);
                }
              } finally {
                ngDevMode && setInjectorProfilerContext(prevInjectContext);
                previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);
                setIncludeViewProviders(previousIncludeViewProviders);
                factory.resolving = false;
                leaveDI();
              }
            }
            return value;
          }
          /**
           * Returns the bit in an injector's bloom filter that should be used to determine whether or not
           * the directive might be provided by the injector.
           *
           * When a directive is public, it is added to the bloom filter and given a unique ID that can be
           * retrieved on the Type. When the directive isn't public or the token is not a directive `null`
           * is returned as the node injector can not possibly provide that token.
           *
           * @param token the injection token
           * @returns the matching bit to check in the bloom filter or `null` if the token is not known.
           *   When the returned value is negative then it represents special values such as `Injector`.
           */
          function bloomHashBitOrFactory(token) {
            ngDevMode && assertDefined(token, 'token must be defined');
            if (typeof token === 'string') {
              return token.charCodeAt(0) || 0;
            }
            const tokenId =
            // First check with `hasOwnProperty` so we don't get an inherited ID.
            token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;
            // Negative token IDs are used for special objects such as `Injector`
            if (typeof tokenId === 'number') {
              if (tokenId >= 0) {
                return tokenId & BLOOM_MASK;
              } else {
                ngDevMode && assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');
                return createNodeInjector;
              }
            } else {
              return tokenId;
            }
          }
          function bloomHasToken(bloomHash, injectorIndex, injectorView) {
            // Create a mask that targets the specific bit associated with the directive we're looking for.
            // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
            // to bit positions 0 - 31 in a 32 bit integer.
            const mask = 1 << bloomHash;
            // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of
            // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset
            // that should be used.
            const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];
            // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,
            // this injector is a potential match.
            return !!(value & mask);
          }
          /** Returns true if flags prevent parent injector from being searched for tokens */
          function shouldSearchParent(flags, isFirstHostTNode) {
            return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);
          }
          function getNodeInjectorLView(nodeInjector) {
            return nodeInjector._lView;
          }
          function getNodeInjectorTNode(nodeInjector) {
            return nodeInjector._tNode;
          }
          class NodeInjector {
            constructor(_tNode, _lView) {
              this._tNode = _tNode;
              this._lView = _lView;
            }
            get(token, notFoundValue, flags) {
              return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);
            }
          }
          /** Creates a `NodeInjector` for the current node. */
          function createNodeInjector() {
            return new NodeInjector(getCurrentTNode(), getLView());
          }
          /**
           * @codeGenApi
           */
          function ɵɵgetInheritedFactory(type) {
            return noSideEffects(() => {
              const ownConstructor = type.prototype.constructor;
              const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);
              const objectPrototype = Object.prototype;
              let parent = Object.getPrototypeOf(type.prototype).constructor;
              // Go up the prototype until we hit `Object`.
              while (parent && parent !== objectPrototype) {
                const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);
                // If we hit something that has a factory and the factory isn't the same as the type,
                // we've found the inherited factory. Note the check that the factory isn't the type's
                // own factory is redundant in most cases, but if the user has custom decorators on the
                // class, this lookup will start one level down in the prototype chain, causing us to
                // find the own factory first and potentially triggering an infinite loop downstream.
                if (factory && factory !== ownFactory) {
                  return factory;
                }
                parent = Object.getPrototypeOf(parent);
              }
              // There is no factory defined. Either this was improper usage of inheritance
              // (no Angular decorator on the superclass) or there is no constructor at all
              // in the inheritance chain. Since the two cases cannot be distinguished, the
              // latter has to be assumed.
              return t => new t();
            });
          }
          function getFactoryOf(type) {
            if (isForwardRef(type)) {
              return () => {
                const factory = getFactoryOf(resolveForwardRef(type));
                return factory && factory();
              };
            }
            return getFactoryDef(type);
          }
          /**
           * Returns a value from the closest embedded or node injector.
           *
           * @param tNode The Node where the search for the injector should start
           * @param lView The `LView` that contains the `tNode`
           * @param token The token to look for
           * @param flags Injection flags
           * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
           * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
           */
          function lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {
            let currentTNode = tNode;
            let currentLView = lView;
            // When an LView with an embedded view injector is inserted, it'll likely be interlaced with
            // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).
            // Since the bloom filters for the node injectors have already been constructed and we don't
            // have a way of extracting the records from an injector, the only way to maintain the correct
            // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve
            // the token at each level.
            while (currentTNode !== null && currentLView !== null && currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ && !(currentLView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {
              ngDevMode && assertTNodeForLView(currentTNode, currentLView);
              // Note that this lookup on the node injector is using the `Self` flag, because
              // we don't want the node injector to look at any parent injectors since we
              // may hit the embedded view injector first.
              const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);
              if (nodeInjectorValue !== NOT_FOUND) {
                return nodeInjectorValue;
              }
              // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191
              let parentTNode = currentTNode.parent;
              // `TNode.parent` includes the parent within the current view only. If it doesn't exist,
              // it means that we've hit the view boundary and we need to go up to the next view.
              if (!parentTNode) {
                // Before we go to the next LView, check if the token exists on the current embedded injector.
                const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];
                if (embeddedViewInjector) {
                  const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);
                  if (embeddedViewInjectorValue !== NOT_FOUND) {
                    return embeddedViewInjectorValue;
                  }
                }
                // Otherwise keep going up the tree.
                parentTNode = getTNodeFromLView(currentLView);
                currentLView = currentLView[DECLARATION_VIEW];
              }
              currentTNode = parentTNode;
            }
            return notFoundValue;
          }
          /** Gets the TNode associated with an LView inside of the declaration view. */
          function getTNodeFromLView(lView) {
            const tView = lView[TVIEW];
            const tViewType = tView.type;
            // The parent pointer differs based on `TView.type`.
            if (tViewType === 2 /* TViewType.Embedded */) {
              ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
              return tView.declTNode;
            } else if (tViewType === 1 /* TViewType.Component */) {
              // Components don't have `TView.declTNode` because each instance of component could be
              // inserted in different location, hence `TView.declTNode` is meaningless.
              return lView[T_HOST];
            }
            return null;
          }
          
          /**
           * Facade for the attribute injection from DI.
           *
           * @codeGenApi
           */
          function ɵɵinjectAttribute(attrNameToInject) {
            return injectAttributeImpl(getCurrentTNode(), attrNameToInject);
          }
          const ANNOTATIONS = '__annotations__';
          const PARAMETERS = '__parameters__';
          const PROP_METADATA = '__prop__metadata__';
          /**
           * @suppress {globalThis}
           */
          function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {
            return noSideEffects(() => {
              const metaCtor = makeMetadataCtor(props);
              function DecoratorFactory(...args) {
                if (this instanceof DecoratorFactory) {
                  metaCtor.call(this, ...args);
                  return this;
                }
                const annotationInstance = new DecoratorFactory(...args);
                return function TypeDecorator(cls) {
                  if (typeFn) typeFn(cls, ...args);
                  // Use of Object.defineProperty is important since it creates non-enumerable property which
                  // prevents the property is copied during subclassing.
                  const annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {
                    value: []
                  })[ANNOTATIONS];
                  annotations.push(annotationInstance);
                  if (additionalProcessing) additionalProcessing(cls);
                  return cls;
                };
              }
              if (parentClass) {
                DecoratorFactory.prototype = Object.create(parentClass.prototype);
              }
              DecoratorFactory.prototype.ngMetadataName = name;
              DecoratorFactory.annotationCls = DecoratorFactory;
              return DecoratorFactory;
            });
          }
          function makeMetadataCtor(props) {
            return function ctor(...args) {
              if (props) {
                const values = props(...args);
                for (const propName in values) {
                  this[propName] = values[propName];
                }
              }
            };
          }
          function makeParamDecorator(name, props, parentClass) {
            return noSideEffects(() => {
              const metaCtor = makeMetadataCtor(props);
              function ParamDecoratorFactory(...args) {
                if (this instanceof ParamDecoratorFactory) {
                  metaCtor.apply(this, args);
                  return this;
                }
                const annotationInstance = new ParamDecoratorFactory(...args);
                ParamDecorator.annotation = annotationInstance;
                return ParamDecorator;
                function ParamDecorator(cls, unusedKey, index) {
                  // Use of Object.defineProperty is important since it creates non-enumerable property which
                  // prevents the property is copied during subclassing.
                  const parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {
                    value: []
                  })[PARAMETERS];
                  // there might be gaps if some in between parameters do not have annotations.
                  // we pad with nulls.
                  while (parameters.length <= index) {
                    parameters.push(null);
                  }
                  (parameters[index] = parameters[index] || []).push(annotationInstance);
                  return cls;
                }
              }
              if (parentClass) {
                ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);
              }
              ParamDecoratorFactory.prototype.ngMetadataName = name;
              ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;
              return ParamDecoratorFactory;
            });
          }
          function makePropDecorator(name, props, parentClass, additionalProcessing) {
            return noSideEffects(() => {
              const metaCtor = makeMetadataCtor(props);
              function PropDecoratorFactory(...args) {
                if (this instanceof PropDecoratorFactory) {
                  metaCtor.apply(this, args);
                  return this;
                }
                const decoratorInstance = new PropDecoratorFactory(...args);
                function PropDecorator(target, name) {
                  // target is undefined with standard decorators. This case is not supported and will throw
                  // if this decorator is used in JIT mode with standard decorators.
                  if (target === undefined) {
                    throw new Error('Standard Angular field decorators are not supported in JIT mode.');
                  }
                  const constructor = target.constructor;
                  // Use of Object.defineProperty is important because it creates a non-enumerable property
                  // which prevents the property from being copied during subclassing.
                  const meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {
                    value: {}
                  })[PROP_METADATA];
                  meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
                  meta[name].unshift(decoratorInstance);
                  if (additionalProcessing) additionalProcessing(target, name, ...args);
                }
                return PropDecorator;
              }
              if (parentClass) {
                PropDecoratorFactory.prototype = Object.create(parentClass.prototype);
              }
              PropDecoratorFactory.prototype.ngMetadataName = name;
              PropDecoratorFactory.annotationCls = PropDecoratorFactory;
              return PropDecoratorFactory;
            });
          }
          
          /**
           * Attribute decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Attribute = makeParamDecorator('Attribute', attributeName => ({
            attributeName,
            __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName)
          }));
          
          // Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not
          // explicitly set.
          const emitDistinctChangesOnlyDefaultValue = true;
          /**
           * Base class for query metadata.
           *
           * @see {@link ContentChildren}
           * @see {@link ContentChild}
           * @see {@link ViewChildren}
           * @see {@link ViewChild}
           *
           * @publicApi
           */
          class Query {}
          /**
           * ContentChildren decorator and metadata.
           *
           *
           * @Annotation
           * @publicApi
           */
          const ContentChildren = makePropDecorator('ContentChildren', (selector, data = {}) => ({
            selector,
            first: false,
            isViewQuery: false,
            descendants: false,
            emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,
            ...data
          }), Query);
          /**
           * ContentChild decorator and metadata.
           *
           *
           * @Annotation
           *
           * @publicApi
           */
          const ContentChild = makePropDecorator('ContentChild', (selector, data = {}) => ({
            selector,
            first: true,
            isViewQuery: false,
            descendants: true,
            ...data
          }), Query);
          /**
           * ViewChildren decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const ViewChildren = makePropDecorator('ViewChildren', (selector, data = {}) => ({
            selector,
            first: false,
            isViewQuery: true,
            descendants: true,
            emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,
            ...data
          }), Query);
          /**
           * ViewChild decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const ViewChild = makePropDecorator('ViewChild', (selector, data) => ({
            selector,
            first: true,
            isViewQuery: true,
            descendants: true,
            ...data
          }), Query);
          var FactoryTarget;
          (function (FactoryTarget) {
            FactoryTarget[FactoryTarget["Directive"] = 0] = "Directive";
            FactoryTarget[FactoryTarget["Component"] = 1] = "Component";
            FactoryTarget[FactoryTarget["Injectable"] = 2] = "Injectable";
            FactoryTarget[FactoryTarget["Pipe"] = 3] = "Pipe";
            FactoryTarget[FactoryTarget["NgModule"] = 4] = "NgModule";
          })(FactoryTarget || (FactoryTarget = {}));
          var R3TemplateDependencyKind;
          (function (R3TemplateDependencyKind) {
            R3TemplateDependencyKind[R3TemplateDependencyKind["Directive"] = 0] = "Directive";
            R3TemplateDependencyKind[R3TemplateDependencyKind["Pipe"] = 1] = "Pipe";
            R3TemplateDependencyKind[R3TemplateDependencyKind["NgModule"] = 2] = "NgModule";
          })(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
          var ViewEncapsulation;
          (function (ViewEncapsulation) {
            ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
            // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
            ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
            ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
          })(ViewEncapsulation || (ViewEncapsulation = {}));
          function getCompilerFacade(request) {
            const globalNg = _global['ng'];
            if (globalNg && globalNg.ɵcompilerFacade) {
              return globalNg.ɵcompilerFacade;
            }
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              // Log the type as an error so that a developer can easily navigate to the type from the
              // console.
              console.error(`JIT compilation failed for ${request.kind}`, request.type);
              let message = `The ${request.kind} '${request.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\n\n`;
              if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {
                message += `The ${request.kind} is part of a library that has been partially compiled.\n`;
                message += `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\n`;
                message += '\n';
                message += `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\n`;
              } else {
                message += `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\n`;
              }
              message += `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\n`;
              message += `or manually provide the compiler with 'import "@angular/compiler";' before bootstrapping.`;
              throw new Error(message);
            } else {
              throw new Error('JIT compiler unavailable');
            }
          }
          
          /**
           * @description
           *
           * Represents a type that a Component or other object is instances of.
           *
           * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
           * the `MyCustomComponent` constructor function.
           *
           * @publicApi
           */
          const Type = Function;
          function isType(v) {
            return typeof v === 'function';
          }
          
          /**
           * Determines if the contents of two arrays is identical
           *
           * @param a first array
           * @param b second array
           * @param identityAccessor Optional function for extracting stable object identity from a value in
           *     the array.
           */
          function arrayEquals(a, b, identityAccessor) {
            if (a.length !== b.length) return false;
            for (let i = 0; i < a.length; i++) {
              let valueA = a[i];
              let valueB = b[i];
              if (identityAccessor) {
                valueA = identityAccessor(valueA);
                valueB = identityAccessor(valueB);
              }
              if (valueB !== valueA) {
                return false;
              }
            }
            return true;
          }
          /**
           * Flattens an array.
           */
          function flatten(list) {
            return list.flat(Number.POSITIVE_INFINITY);
          }
          function deepForEach(input, fn) {
            input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));
          }
          function addToArray(arr, index, value) {
            // perf: array.push is faster than array.splice!
            if (index >= arr.length) {
              arr.push(value);
            } else {
              arr.splice(index, 0, value);
            }
          }
          function removeFromArray(arr, index) {
            // perf: array.pop is faster than array.splice!
            if (index >= arr.length - 1) {
              return arr.pop();
            } else {
              return arr.splice(index, 1)[0];
            }
          }
          function newArray(size, value) {
            const list = [];
            for (let i = 0; i < size; i++) {
              list.push(value);
            }
            return list;
          }
          /**
           * Remove item from array (Same as `Array.splice()` but faster.)
           *
           * `Array.splice()` is not as fast because it has to allocate an array for the elements which were
           * removed. This causes memory pressure and slows down code when most of the time we don't
           * care about the deleted items array.
           *
           * https://jsperf.com/fast-array-splice (About 20x faster)
           *
           * @param array Array to splice
           * @param index Index of element in array to remove.
           * @param count Number of items to remove.
           */
          function arraySplice(array, index, count) {
            const length = array.length - count;
            while (index < length) {
              array[index] = array[index + count];
              index++;
            }
            while (count--) {
              array.pop(); // shrink the array
            }
          }
          /**
           * Same as `Array.splice(index, 0, value)` but faster.
           *
           * `Array.splice()` is not fast because it has to allocate an array for the elements which were
           * removed. This causes memory pressure and slows down code when most of the time we don't
           * care about the deleted items array.
           *
           * @param array Array to splice.
           * @param index Index in array where the `value` should be added.
           * @param value Value to add to array.
           */
          function arrayInsert(array, index, value) {
            ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
            let end = array.length;
            while (end > index) {
              const previousEnd = end - 1;
              array[end] = array[previousEnd];
              end = previousEnd;
            }
            array[index] = value;
          }
          /**
           * Same as `Array.splice2(index, 0, value1, value2)` but faster.
           *
           * `Array.splice()` is not fast because it has to allocate an array for the elements which were
           * removed. This causes memory pressure and slows down code when most of the time we don't
           * care about the deleted items array.
           *
           * @param array Array to splice.
           * @param index Index in array where the `value` should be added.
           * @param value1 Value to add to array.
           * @param value2 Value to add to array.
           */
          function arrayInsert2(array, index, value1, value2) {
            ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
            let end = array.length;
            if (end == index) {
              // inserting at the end.
              array.push(value1, value2);
            } else if (end === 1) {
              // corner case when we have less items in array than we have items to insert.
              array.push(value2, array[0]);
              array[0] = value1;
            } else {
              end--;
              array.push(array[end - 1], array[end]);
              while (end > index) {
                const previousEnd = end - 2;
                array[end] = array[previousEnd];
                end--;
              }
              array[index] = value1;
              array[index + 1] = value2;
            }
          }
          /**
           * Get an index of an `value` in a sorted `array`.
           *
           * NOTE:
           * - This uses binary search algorithm for fast removals.
           *
           * @param array A sorted array to binary search.
           * @param value The value to look for.
           * @returns index of the value.
           *   - positive index if value found.
           *   - negative index if value not found. (`~index` to get the value where it should have been
           *     located)
           */
          function arrayIndexOfSorted(array, value) {
            return _arrayIndexOfSorted(array, value, 0);
          }
          /**
           * Set a `value` for a `key`.
           *
           * @param keyValueArray to modify.
           * @param key The key to locate or create.
           * @param value The value to set for a `key`.
           * @returns index (always even) of where the value vas set.
           */
          function keyValueArraySet(keyValueArray, key, value) {
            let index = keyValueArrayIndexOf(keyValueArray, key);
            if (index >= 0) {
              // if we found it set it.
              keyValueArray[index | 1] = value;
            } else {
              index = ~index;
              arrayInsert2(keyValueArray, index, key, value);
            }
            return index;
          }
          /**
           * Retrieve a `value` for a `key` (on `undefined` if not found.)
           *
           * @param keyValueArray to search.
           * @param key The key to locate.
           * @return The `value` stored at the `key` location or `undefined if not found.
           */
          function keyValueArrayGet(keyValueArray, key) {
            const index = keyValueArrayIndexOf(keyValueArray, key);
            if (index >= 0) {
              // if we found it retrieve it.
              return keyValueArray[index | 1];
            }
            return undefined;
          }
          /**
           * Retrieve a `key` index value in the array or `-1` if not found.
           *
           * @param keyValueArray to search.
           * @param key The key to locate.
           * @returns index of where the key is (or should have been.)
           *   - positive (even) index if key found.
           *   - negative index if key not found. (`~index` (even) to get the index where it should have
           *     been inserted.)
           */
          function keyValueArrayIndexOf(keyValueArray, key) {
            return _arrayIndexOfSorted(keyValueArray, key, 1);
          }
          /**
           * Delete a `key` (and `value`) from the `KeyValueArray`.
           *
           * @param keyValueArray to modify.
           * @param key The key to locate or delete (if exist).
           * @returns index of where the key was (or should have been.)
           *   - positive (even) index if key found and deleted.
           *   - negative index if key not found. (`~index` (even) to get the index where it should have
           *     been.)
           */
          function keyValueArrayDelete(keyValueArray, key) {
            const index = keyValueArrayIndexOf(keyValueArray, key);
            if (index >= 0) {
              // if we found it remove it.
              arraySplice(keyValueArray, index, 2);
            }
            return index;
          }
          /**
           * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.
           *
           * NOTE:
           * - This uses binary search algorithm for fast removals.
           *
           * @param array A sorted array to binary search.
           * @param value The value to look for.
           * @param shift grouping shift.
           *   - `0` means look at every location
           *   - `1` means only look at every other (even) location (the odd locations are to be ignored as
           *         they are values.)
           * @returns index of the value.
           *   - positive index if value found.
           *   - negative index if value not found. (`~index` to get the value where it should have been
           * inserted)
           */
          function _arrayIndexOfSorted(array, value, shift) {
            ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');
            let start = 0;
            let end = array.length >> shift;
            while (end !== start) {
              const middle = start + (end - start >> 1); // find the middle.
              const current = array[middle << shift];
              if (value === current) {
                return middle << shift;
              } else if (current > value) {
                end = middle;
              } else {
                start = middle + 1; // We already searched middle so make it non-inclusive by adding 1
              }
            }
          
            return ~(end << shift);
          }
          
          /*
           * #########################
           * Attention: These Regular expressions have to hold even if the code is minified!
           * ##########################
           */
          /**
           * Regular expression that detects pass-through constructors for ES5 output. This Regex
           * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also
           * it intends to capture the pattern where existing constructors have been downleveled from
           * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.
           *
           * ```
           *   function MyClass() {
           *     var _this = _super.apply(this, arguments) || this;
           * ```
           *
           * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:
           * ```
           *   function MyClass() {
           *     var _this = _super.apply(this, __spread(arguments)) || this;
           * ```
           *
           * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:
           * ```
           *   function MyClass() {
           *     var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
           * ```
           *
           * More details can be found in: https://github.com/angular/angular/issues/38453.
           */
          const ES5_DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/;
          /** Regular expression that detects ES2015 classes which extend from other classes. */
          const ES2015_INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/;
          /**
           * Regular expression that detects ES2015 classes which extend from other classes and
           * have an explicit constructor defined.
           */
          const ES2015_INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/;
          /**
           * Regular expression that detects ES2015 classes which extend from other classes
           * and inherit a constructor.
           */
          const ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;
          /**
           * Determine whether a stringified type is a class which delegates its constructor
           * to its parent.
           *
           * This is not trivial since compiled code can actually contain a constructor function
           * even if the original source code did not. For instance, when the child class contains
           * an initialized instance property.
           */
          function isDelegateCtor(typeStr) {
            return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);
          }
          class ReflectionCapabilities {
            constructor(reflect) {
              this._reflect = reflect || _global['Reflect'];
            }
            factory(t) {
              return (...args) => new t(...args);
            }
            /** @internal */
            _zipTypesAndAnnotations(paramTypes, paramAnnotations) {
              let result;
              if (typeof paramTypes === 'undefined') {
                result = newArray(paramAnnotations.length);
              } else {
                result = newArray(paramTypes.length);
              }
              for (let i = 0; i < result.length; i++) {
                // TS outputs Object for parameters without types, while Traceur omits
                // the annotations. For now we preserve the Traceur behavior to aid
                // migration, but this can be revisited.
                if (typeof paramTypes === 'undefined') {
                  result[i] = [];
                } else if (paramTypes[i] && paramTypes[i] != Object) {
                  result[i] = [paramTypes[i]];
                } else {
                  result[i] = [];
                }
                if (paramAnnotations && paramAnnotations[i] != null) {
                  result[i] = result[i].concat(paramAnnotations[i]);
                }
              }
              return result;
            }
            _ownParameters(type, parentCtor) {
              const typeStr = type.toString();
              // If we have no decorators, we only have function.length as metadata.
              // In that case, to detect whether a child class declared an own constructor or not,
              // we need to look inside of that constructor to check whether it is
              // just calling the parent.
              // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
              // that sets 'design:paramtypes' to []
              // if a class inherits from another class but has no ctor declared itself.
              if (isDelegateCtor(typeStr)) {
                return null;
              }
              // Prefer the direct API.
              if (type.parameters && type.parameters !== parentCtor.parameters) {
                return type.parameters;
              }
              // API of tsickle for lowering decorators to properties on the class.
              const tsickleCtorParams = type.ctorParameters;
              if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {
                // Newer tsickle uses a function closure
                // Retain the non-function case for compatibility with older tsickle
                const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;
                const paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);
                const paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
                return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
              }
              // API for metadata created by invoking the decorators.
              const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];
              const paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);
              if (paramTypes || paramAnnotations) {
                return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
              }
              // If a class has no decorators, at least create metadata
              // based on function.length.
              // Note: We know that this is a real constructor as we checked
              // the content of the constructor above.
              return newArray(type.length);
            }
            parameters(type) {
              // Note: only report metadata if we have at least one class decorator
              // to stay in sync with the static reflector.
              if (!isType(type)) {
                return [];
              }
              const parentCtor = getParentCtor(type);
              let parameters = this._ownParameters(type, parentCtor);
              if (!parameters && parentCtor !== Object) {
                parameters = this.parameters(parentCtor);
              }
              return parameters || [];
            }
            _ownAnnotations(typeOrFunc, parentCtor) {
              // Prefer the direct API.
              if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {
                let annotations = typeOrFunc.annotations;
                if (typeof annotations === 'function' && annotations.annotations) {
                  annotations = annotations.annotations;
                }
                return annotations;
              }
              // API of tsickle for lowering decorators to properties on the class.
              if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {
                return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);
              }
              // API for metadata created by invoking the decorators.
              if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {
                return typeOrFunc[ANNOTATIONS];
              }
              return null;
            }
            annotations(typeOrFunc) {
              if (!isType(typeOrFunc)) {
                return [];
              }
              const parentCtor = getParentCtor(typeOrFunc);
              const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
              const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
              return parentAnnotations.concat(ownAnnotations);
            }
            _ownPropMetadata(typeOrFunc, parentCtor) {
              // Prefer the direct API.
              if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {
                let propMetadata = typeOrFunc.propMetadata;
                if (typeof propMetadata === 'function' && propMetadata.propMetadata) {
                  propMetadata = propMetadata.propMetadata;
                }
                return propMetadata;
              }
              // API of tsickle for lowering decorators to properties on the class.
              if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {
                const propDecorators = typeOrFunc.propDecorators;
                const propMetadata = {};
                Object.keys(propDecorators).forEach(prop => {
                  propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
                });
                return propMetadata;
              }
              // API for metadata created by invoking the decorators.
              if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {
                return typeOrFunc[PROP_METADATA];
              }
              return null;
            }
            propMetadata(typeOrFunc) {
              if (!isType(typeOrFunc)) {
                return {};
              }
              const parentCtor = getParentCtor(typeOrFunc);
              const propMetadata = {};
              if (parentCtor !== Object) {
                const parentPropMetadata = this.propMetadata(parentCtor);
                Object.keys(parentPropMetadata).forEach(propName => {
                  propMetadata[propName] = parentPropMetadata[propName];
                });
              }
              const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);
              if (ownPropMetadata) {
                Object.keys(ownPropMetadata).forEach(propName => {
                  const decorators = [];
                  if (propMetadata.hasOwnProperty(propName)) {
                    decorators.push(...propMetadata[propName]);
                  }
                  decorators.push(...ownPropMetadata[propName]);
                  propMetadata[propName] = decorators;
                });
              }
              return propMetadata;
            }
            ownPropMetadata(typeOrFunc) {
              if (!isType(typeOrFunc)) {
                return {};
              }
              return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};
            }
            hasLifecycleHook(type, lcProperty) {
              return type instanceof Type && lcProperty in type.prototype;
            }
          }
          function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
            if (!decoratorInvocations) {
              return [];
            }
            return decoratorInvocations.map(decoratorInvocation => {
              const decoratorType = decoratorInvocation.type;
              const annotationCls = decoratorType.annotationCls;
              const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];
              return new annotationCls(...annotationArgs);
            });
          }
          function getParentCtor(ctor) {
            const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
            const parentCtor = parentProto ? parentProto.constructor : null;
            // Note: We always use `Object` as the null value
            // to simplify checking later on.
            return parentCtor || Object;
          }
          
          /**
           * Inject decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Inject = attachInjectFlag(
          // Disable tslint because `DecoratorFlags` is a const enum which gets inlined.
          // tslint:disable-next-line: no-toplevel-property-access
          makeParamDecorator('Inject', token => ({
            token
          })), -1 /* DecoratorFlags.Inject */);
          /**
           * Optional decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Optional =
          // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
          // tslint:disable-next-line: no-toplevel-property-access
          attachInjectFlag(makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);
          /**
           * Self decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Self =
          // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
          // tslint:disable-next-line: no-toplevel-property-access
          attachInjectFlag(makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);
          /**
           * `SkipSelf` decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const SkipSelf =
          // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
          // tslint:disable-next-line: no-toplevel-property-access
          attachInjectFlag(makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);
          /**
           * Host decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Host =
          // Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.
          // tslint:disable-next-line: no-toplevel-property-access
          attachInjectFlag(makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);
          
          let _reflect = null;
          function getReflect() {
            return _reflect = _reflect || new ReflectionCapabilities();
          }
          function reflectDependencies(type) {
            return convertDependencies(getReflect().parameters(type));
          }
          function convertDependencies(deps) {
            return deps.map(dep => reflectDependency(dep));
          }
          function reflectDependency(dep) {
            const meta = {
              token: null,
              attribute: null,
              host: false,
              optional: false,
              self: false,
              skipSelf: false
            };
            if (Array.isArray(dep) && dep.length > 0) {
              for (let j = 0; j < dep.length; j++) {
                const param = dep[j];
                if (param === undefined) {
                  // param may be undefined if type of dep is not set by ngtsc
                  continue;
                }
                const proto = Object.getPrototypeOf(param);
                if (param instanceof Optional || proto.ngMetadataName === 'Optional') {
                  meta.optional = true;
                } else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {
                  meta.skipSelf = true;
                } else if (param instanceof Self || proto.ngMetadataName === 'Self') {
                  meta.self = true;
                } else if (param instanceof Host || proto.ngMetadataName === 'Host') {
                  meta.host = true;
                } else if (param instanceof Inject) {
                  meta.token = param.token;
                } else if (param instanceof Attribute) {
                  if (param.attributeName === undefined) {
                    throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);
                  }
                  meta.attribute = param.attributeName;
                } else {
                  meta.token = param;
                }
              }
            } else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {
              meta.token = null;
            } else {
              meta.token = dep;
            }
            return meta;
          }
          
          /**
           * Used to resolve resource URLs on `@Component` when used with JIT compilation.
           *
           * Example:
           * ```
           * @Component({
           *   selector: 'my-comp',
           *   templateUrl: 'my-comp.html', // This requires asynchronous resolution
           * })
           * class MyComponent{
           * }
           *
           * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
           * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
           *
           * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
           * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
           *
           * // Use browser's `fetch()` function as the default resource resolution strategy.
           * resolveComponentResources(fetch).then(() => {
           *   // After resolution all URLs have been converted into `template` strings.
           *   renderComponent(MyComponent);
           * });
           *
           * ```
           *
           * NOTE: In AOT the resolution happens during compilation, and so there should be no need
           * to call this method outside JIT mode.
           *
           * @param resourceResolver a function which is responsible for returning a `Promise` to the
           * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
           */
          function resolveComponentResources(resourceResolver) {
            // Store all promises which are fetching the resources.
            const componentResolved = [];
            // Cache so that we don't fetch the same resource more than once.
            const urlMap = new Map();
            function cachedResourceResolve(url) {
              let promise = urlMap.get(url);
              if (!promise) {
                const resp = resourceResolver(url);
                urlMap.set(url, promise = resp.then(unwrapResponse));
              }
              return promise;
            }
            componentResourceResolutionQueue.forEach((component, type) => {
              const promises = [];
              if (component.templateUrl) {
                promises.push(cachedResourceResolve(component.templateUrl).then(template => {
                  component.template = template;
                }));
              }
              const styleUrls = component.styleUrls;
              const styles = component.styles || (component.styles = []);
              const styleOffset = component.styles.length;
              styleUrls && styleUrls.forEach((styleUrl, index) => {
                styles.push(''); // pre-allocate array.
                promises.push(cachedResourceResolve(styleUrl).then(style => {
                  styles[styleOffset + index] = style;
                  styleUrls.splice(styleUrls.indexOf(styleUrl), 1);
                  if (styleUrls.length == 0) {
                    component.styleUrls = undefined;
                  }
                }));
              });
              const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));
              componentResolved.push(fullyResolved);
            });
            clearResolutionOfComponentResourcesQueue();
            return Promise.all(componentResolved).then(() => undefined);
          }
          let componentResourceResolutionQueue = new Map();
          // Track when existing ɵcmp for a Type is waiting on resources.
          const componentDefPendingResolution = new Set();
          function maybeQueueResolutionOfComponentResources(type, metadata) {
            if (componentNeedsResolution(metadata)) {
              componentResourceResolutionQueue.set(type, metadata);
              componentDefPendingResolution.add(type);
            }
          }
          function isComponentDefPendingResolution(type) {
            return componentDefPendingResolution.has(type);
          }
          function componentNeedsResolution(component) {
            return !!(component.templateUrl && !component.hasOwnProperty('template') || component.styleUrls && component.styleUrls.length);
          }
          function clearResolutionOfComponentResourcesQueue() {
            const old = componentResourceResolutionQueue;
            componentResourceResolutionQueue = new Map();
            return old;
          }
          function restoreComponentResolutionQueue(queue) {
            componentDefPendingResolution.clear();
            queue.forEach((_, type) => componentDefPendingResolution.add(type));
            componentResourceResolutionQueue = queue;
          }
          function isComponentResourceResolutionQueueEmpty() {
            return componentResourceResolutionQueue.size === 0;
          }
          function unwrapResponse(response) {
            return typeof response == 'string' ? response : response.text();
          }
          function componentDefResolved(type) {
            componentDefPendingResolution.delete(type);
          }
          
          /**
           * Map of module-id to the corresponding NgModule.
           */
          const modules = new Map();
          /**
           * Whether to check for duplicate NgModule registrations.
           *
           * This can be disabled for testing.
           */
          let checkForDuplicateNgModules = true;
          function assertSameOrNotExisting(id, type, incoming) {
            if (type && type !== incoming && checkForDuplicateNgModules) {
              throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);
            }
          }
          /**
           * Adds the given NgModule type to Angular's NgModule registry.
           *
           * This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in
           * explicitly and not read from the NgModule definition. This is for two reasons: it avoids a
           * megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be
           * fully resolved when it's registered.
           *
           * @codeGenApi
           */
          function registerNgModuleType(ngModuleType, id) {
            const existing = modules.get(id) || null;
            assertSameOrNotExisting(id, existing, ngModuleType);
            modules.set(id, ngModuleType);
          }
          function clearModulesForTest() {
            modules.clear();
          }
          function getRegisteredNgModuleType(id) {
            return modules.get(id);
          }
          /**
           * Control whether the NgModule registration system enforces that each NgModule type registered has
           * a unique id.
           *
           * This is useful for testing as the NgModule registry cannot be properly reset between tests with
           * Angular's current API.
           */
          function setAllowDuplicateNgModuleIdsForTest(allowDuplicates) {
            checkForDuplicateNgModules = !allowDuplicates;
          }
          
          /**
           * Defines a schema that allows an NgModule to contain the following:
           * - Non-Angular elements named with dash case (`-`).
           * - Element properties named with dash case (`-`).
           * Dash case is the naming convention for custom elements.
           *
           * @publicApi
           */
          const CUSTOM_ELEMENTS_SCHEMA = {
            name: 'custom-elements'
          };
          /**
           * Defines a schema that allows any property on any element.
           *
           * This schema allows you to ignore the errors related to any unknown elements or properties in a
           * template. The usage of this schema is generally discouraged because it prevents useful validation
           * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.
           *
           * @publicApi
           */
          const NO_ERRORS_SCHEMA = {
            name: 'no-errors-schema'
          };
          let shouldThrowErrorOnUnknownElement = false;
          /**
           * Sets a strict mode for JIT-compiled components to throw an error on unknown elements,
           * instead of just logging the error.
           * (for AOT-compiled ones this check happens at build time).
           */
          function ɵsetUnknownElementStrictMode(shouldThrow) {
            shouldThrowErrorOnUnknownElement = shouldThrow;
          }
          /**
           * Gets the current value of the strict mode.
           */
          function ɵgetUnknownElementStrictMode() {
            return shouldThrowErrorOnUnknownElement;
          }
          let shouldThrowErrorOnUnknownProperty = false;
          /**
           * Sets a strict mode for JIT-compiled components to throw an error on unknown properties,
           * instead of just logging the error.
           * (for AOT-compiled ones this check happens at build time).
           */
          function ɵsetUnknownPropertyStrictMode(shouldThrow) {
            shouldThrowErrorOnUnknownProperty = shouldThrow;
          }
          /**
           * Gets the current value of the strict mode.
           */
          function ɵgetUnknownPropertyStrictMode() {
            return shouldThrowErrorOnUnknownProperty;
          }
          /**
           * Validates that the element is known at runtime and produces
           * an error if it's not the case.
           * This check is relevant for JIT-compiled components (for AOT-compiled
           * ones this check happens at build time).
           *
           * The element is considered known if either:
           * - it's a known HTML element
           * - it's a known custom element
           * - the element matches any directive
           * - the element is allowed by one of the schemas
           *
           * @param element Element to validate
           * @param lView An `LView` that represents a current component that is being rendered
           * @param tagName Name of the tag to check
           * @param schemas Array of schemas
           * @param hasDirectives Boolean indicating that the element matches any directive
           */
          function validateElementIsKnown(element, lView, tagName, schemas, hasDirectives) {
            // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
            // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
            // defined as an array (as an empty array in case `schemas` field is not defined) and we should
            // execute the check below.
            if (schemas === null) return;
            // If the element matches any directive, it's considered as valid.
            if (!hasDirectives && tagName !== null) {
              // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered
              // as a custom element. Note that unknown elements with a dash in their name won't be instances
              // of HTMLUnknownElement in browsers that support web components.
              const isUnknown =
              // Note that we can't check for `typeof HTMLUnknownElement === 'function'` because
              // Domino doesn't expose HTMLUnknownElement globally.
              typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement && element instanceof HTMLUnknownElement || typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 && !customElements.get(tagName);
              if (isUnknown && !matchingSchemas(schemas, tagName)) {
                const isHostStandalone = isHostComponentStandalone(lView);
                const templateLocation = getTemplateLocationDetails(lView);
                const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;
                let message = `'${tagName}' is not a known element${templateLocation}:\n`;
                message += `1. If '${tagName}' is an Angular component, then verify that it is ${isHostStandalone ? 'included in the \'@Component.imports\' of this component' : 'a part of an @NgModule where this component is declared'}.\n`;
                if (tagName && tagName.indexOf('-') > -1) {
                  message += `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas} of this component to suppress this message.`;
                } else {
                  message += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas} of this component.`;
                }
                if (shouldThrowErrorOnUnknownElement) {
                  throw new RuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message);
                } else {
                  console.error(formatRuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message));
                }
              }
            }
          }
          /**
           * Validates that the property of the element is known at runtime and returns
           * false if it's not the case.
           * This check is relevant for JIT-compiled components (for AOT-compiled
           * ones this check happens at build time).
           *
           * The property is considered known if either:
           * - it's a known property of the element
           * - the element is allowed by one of the schemas
           * - the property is used for animations
           *
           * @param element Element to validate
           * @param propName Name of the property to check
           * @param tagName Name of the tag hosting the property
           * @param schemas Array of schemas
           */
          function isPropertyValid(element, propName, tagName, schemas) {
            // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
            // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
            // defined as an array (as an empty array in case `schemas` field is not defined) and we should
            // execute the check below.
            if (schemas === null) return true;
            // The property is considered valid if the element matches the schema, it exists on the element,
            // or it is synthetic.
            if (matchingSchemas(schemas, tagName) || propName in element || isAnimationProp(propName)) {
              return true;
            }
            // Note: `typeof Node` returns 'function' in most browsers, but is undefined with domino.
            return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
          }
          /**
           * Logs or throws an error that a property is not supported on an element.
           *
           * @param propName Name of the invalid property
           * @param tagName Name of the tag hosting the property
           * @param nodeType Type of the node hosting the property
           * @param lView An `LView` that represents a current component
           */
          function handleUnknownPropertyError(propName, tagName, nodeType, lView) {
            // Special-case a situation when a structural directive is applied to
            // an `<ng-template>` element, for example: `<ng-template *ngIf="true">`.
            // In this case the compiler generates the `ɵɵtemplate` instruction with
            // the `null` as the tagName. The directive matching logic at runtime relies
            // on this effect (see `isInlineTemplate`), thus using the 'ng-template' as
            // a default value of the `tNode.value` is not feasible at this moment.
            if (!tagName && nodeType === 4 /* TNodeType.Container */) {
              tagName = 'ng-template';
            }
            const isHostStandalone = isHostComponentStandalone(lView);
            const templateLocation = getTemplateLocationDetails(lView);
            let message = `Can't bind to '${propName}' since it isn't a known property of '${tagName}'${templateLocation}.`;
            const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;
            const importLocation = isHostStandalone ? 'included in the \'@Component.imports\' of this component' : 'a part of an @NgModule where this component is declared';
            if (KNOWN_CONTROL_FLOW_DIRECTIVES.has(propName)) {
              // Most likely this is a control flow directive (such as `*ngIf`) used in
              // a template, but the directive or the `CommonModule` is not imported.
              const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(propName);
              message += `\nIf the '${propName}' is an Angular control flow directive, ` + `please make sure that either the '${correspondingImport}' directive or the 'CommonModule' is ${importLocation}.`;
            } else {
              // May be an Angular component, which is not imported/declared?
              message += `\n1. If '${tagName}' is an Angular component and it has the ` + `'${propName}' input, then verify that it is ${importLocation}.`;
              // May be a Web Component?
              if (tagName && tagName.indexOf('-') > -1) {
                message += `\n2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' ` + `to the ${schemas} of this component to suppress this message.`;
                message += `\n3. To allow any property add 'NO_ERRORS_SCHEMA' to ` + `the ${schemas} of this component.`;
              } else {
                // If it's expected, the error can be suppressed by the `NO_ERRORS_SCHEMA` schema.
                message += `\n2. To allow any property add 'NO_ERRORS_SCHEMA' to ` + `the ${schemas} of this component.`;
              }
            }
            reportUnknownPropertyError(message);
          }
          function reportUnknownPropertyError(message) {
            if (shouldThrowErrorOnUnknownProperty) {
              throw new RuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message);
            } else {
              console.error(formatRuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message));
            }
          }
          /**
           * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)
           * and must **not** be used in production bundles. The function makes megamorphic reads, which might
           * be too slow for production mode and also it relies on the constructor function being available.
           *
           * Gets a reference to the host component def (where a current component is declared).
           *
           * @param lView An `LView` that represents a current component that is being rendered.
           */
          function getDeclarationComponentDef(lView) {
            !ngDevMode && throwError('Must never be called in production mode');
            const declarationLView = lView[DECLARATION_COMPONENT_VIEW];
            const context = declarationLView[CONTEXT];
            // Unable to obtain a context.
            if (!context) return null;
            return context.constructor ? getComponentDef(context.constructor) : null;
          }
          /**
           * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)
           * and must **not** be used in production bundles. The function makes megamorphic reads, which might
           * be too slow for production mode.
           *
           * Checks if the current component is declared inside of a standalone component template.
           *
           * @param lView An `LView` that represents a current component that is being rendered.
           */
          function isHostComponentStandalone(lView) {
            !ngDevMode && throwError('Must never be called in production mode');
            const componentDef = getDeclarationComponentDef(lView);
            // Treat host component as non-standalone if we can't obtain the def.
            return !!componentDef?.standalone;
          }
          /**
           * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)
           * and must **not** be used in production bundles. The function makes megamorphic reads, which might
           * be too slow for production mode.
           *
           * Constructs a string describing the location of the host component template. The function is used
           * in dev mode to produce error messages.
           *
           * @param lView An `LView` that represents a current component that is being rendered.
           */
          function getTemplateLocationDetails(lView) {
            !ngDevMode && throwError('Must never be called in production mode');
            const hostComponentDef = getDeclarationComponentDef(lView);
            const componentClassName = hostComponentDef?.type?.name;
            return componentClassName ? ` (used in the '${componentClassName}' component template)` : '';
          }
          /**
           * The set of known control flow directives and their corresponding imports.
           * We use this set to produce a more precises error message with a note
           * that the `CommonModule` should also be included.
           */
          const KNOWN_CONTROL_FLOW_DIRECTIVES = new Map([['ngIf', 'NgIf'], ['ngFor', 'NgFor'], ['ngSwitchCase', 'NgSwitchCase'], ['ngSwitchDefault', 'NgSwitchDefault']]);
          /**
           * Returns true if the tag name is allowed by specified schemas.
           * @param schemas Array of schemas
           * @param tagName Name of the tag
           */
          function matchingSchemas(schemas, tagName) {
            if (schemas !== null) {
              for (let i = 0; i < schemas.length; i++) {
                const schema = schemas[i];
                if (schema === NO_ERRORS_SCHEMA || schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {
                  return true;
                }
              }
            }
            return false;
          }
          
          /**
           * The name of an attribute that can be added to the hydration boundary node
           * (component host node) to disable hydration for the content within that boundary.
           */
          const SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';
          /**
           * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.
           */
          function hasSkipHydrationAttrOnTNode(tNode) {
            const SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = SKIP_HYDRATION_ATTR_NAME.toLowerCase();
            const attrs = tNode.mergedAttrs;
            if (attrs === null) return false;
            // only ever look at the attribute name and skip the values
            for (let i = 0; i < attrs.length; i += 2) {
              const value = attrs[i];
              // This is a marker, which means that the static attributes section is over,
              // so we can exit early.
              if (typeof value === 'number') return false;
              if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {
                return true;
              }
            }
            return false;
          }
          /**
           * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.
           */
          function hasSkipHydrationAttrOnRElement(rNode) {
            return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);
          }
          /**
           * Checks whether a TNode has a flag to indicate that it's a part of
           * a skip hydration block.
           */
          function hasInSkipHydrationBlockFlag(tNode) {
            return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;
          }
          /**
           * Helper function that determines if a given node is within a skip hydration block
           * by navigating up the TNode tree to see if any parent nodes have skip hydration
           * attribute.
           *
           * TODO(akushnir): this function should contain the logic of `hasInSkipHydrationBlockFlag`,
           * there is no need to traverse parent nodes when we have a TNode flag (which would also
           * make this lookup O(1)).
           */
          function isInSkipHydrationBlock(tNode) {
            let currentTNode = tNode.parent;
            while (currentTNode) {
              if (hasSkipHydrationAttrOnTNode(currentTNode)) {
                return true;
              }
              currentTNode = currentTNode.parent;
            }
            return false;
          }
          
          /**
           * Flags for renderer-specific style modifiers.
           * @publicApi
           */
          var RendererStyleFlags2;
          (function (RendererStyleFlags2) {
            // TODO(misko): This needs to be refactored into a separate file so that it can be imported from
            // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails
            // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.
            /**
             * Marks a style as important.
             */
            RendererStyleFlags2[RendererStyleFlags2["Important"] = 1] = "Important";
            /**
             * Marks a style as using dash case naming (this-is-dash-case).
             */
            RendererStyleFlags2[RendererStyleFlags2["DashCase"] = 2] = "DashCase";
          })(RendererStyleFlags2 || (RendererStyleFlags2 = {}));
          
          /**
           * Disallowed strings in the comment.
           *
           * see: https://html.spec.whatwg.org/multipage/syntax.html#comments
           */
          const COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;
          /**
           * Delimiter in the disallowed strings which needs to be wrapped with zero with character.
           */
          const COMMENT_DELIMITER = /(<|>)/g;
          const COMMENT_DELIMITER_ESCAPED = '\u200B$1\u200B';
          /**
           * Escape the content of comment strings so that it can be safely inserted into a comment node.
           *
           * The issue is that HTML does not specify any way to escape comment end text inside the comment.
           * Consider: `<!-- The way you close a comment is with ">", and "->" at the beginning or by "-->" or
           * "--!>" at the end. -->`. Above the `"-->"` is meant to be text not an end to the comment. This
           * can be created programmatically through DOM APIs. (`<!--` are also disallowed.)
           *
           * see: https://html.spec.whatwg.org/multipage/syntax.html#comments
           *
           * ```
           * div.innerHTML = div.innerHTML
           * ```
           *
           * One would expect that the above code would be safe to do, but it turns out that because comment
           * text is not escaped, the comment may contain text which will prematurely close the comment
           * opening up the application for XSS attack. (In SSR we programmatically create comment nodes which
           * may contain such text and expect them to be safe.)
           *
           * This function escapes the comment text by looking for comment delimiters (`<` and `>`) and
           * surrounding them with `_>_` where the `_` is a zero width space `\u200B`. The result is that if a
           * comment contains any of the comment start/end delimiters (such as `<!--`, `-->` or `--!>`) the
           * text it will render normally but it will not cause the HTML parser to close/open the comment.
           *
           * @param value text to make safe for comment node by escaping the comment open/close character
           *     sequence.
           */
          function escapeCommentText(value) {
            return value.replace(COMMENT_DISALLOWED, text => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));
          }
          
          // Keeps track of the currently-active LViews.
          const TRACKED_LVIEWS = new Map();
          // Used for generating unique IDs for LViews.
          let uniqueIdCounter = 0;
          /** Gets a unique ID that can be assigned to an LView. */
          function getUniqueLViewId() {
            return uniqueIdCounter++;
          }
          /** Starts tracking an LView. */
          function registerLView(lView) {
            ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');
            TRACKED_LVIEWS.set(lView[ID], lView);
          }
          /** Gets an LView by its unique ID. */
          function getLViewById(id) {
            ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');
            return TRACKED_LVIEWS.get(id) || null;
          }
          /** Stops tracking an LView. */
          function unregisterLView(lView) {
            ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');
            TRACKED_LVIEWS.delete(lView[ID]);
          }
          
          /**
           * The internal view context which is specific to a given DOM element, directive or
           * component instance. Each value in here (besides the LView and element node details)
           * can be present, null or undefined. If undefined then it implies the value has not been
           * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.
           *
           * Each value will get filled when the respective value is examined within the getContext
           * function. The component, element and each directive instance will share the same instance
           * of the context.
           */
          class LContext {
            /** Component's parent view data. */
            get lView() {
              return getLViewById(this.lViewId);
            }
            constructor(
            /**
             * ID of the component's parent view data.
             */
            lViewId,
            /**
             * The index instance of the node.
             */
            nodeIndex,
            /**
             * The instance of the DOM node that is attached to the lNode.
             */
            native) {
              this.lViewId = lViewId;
              this.nodeIndex = nodeIndex;
              this.native = native;
            }
          }
          
          /**
           * Returns the matching `LContext` data for a given DOM node, directive or component instance.
           *
           * This function will examine the provided DOM element, component, or directive instance\'s
           * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched
           * value will be that of the newly created `LContext`.
           *
           * If the monkey-patched value is the `LView` instance then the context value for that
           * target will be created and the monkey-patch reference will be updated. Therefore when this
           * function is called it may mutate the provided element\'s, component\'s or any of the associated
           * directive\'s monkey-patch values.
           *
           * If the monkey-patch value is not detected then the code will walk up the DOM until an element
           * is found which contains a monkey-patch reference. When that occurs then the provided element
           * will be updated with a new context (which is then returned). If the monkey-patch value is not
           * detected for a component/directive instance then it will throw an error (all components and
           * directives should be automatically monkey-patched by ivy).
           *
           * @param target Component, Directive or DOM Node.
           */
          function getLContext(target) {
            let mpValue = readPatchedData(target);
            if (mpValue) {
              // only when it's an array is it considered an LView instance
              // ... otherwise it's an already constructed LContext instance
              if (isLView(mpValue)) {
                const lView = mpValue;
                let nodeIndex;
                let component = undefined;
                let directives = undefined;
                if (isComponentInstance(target)) {
                  nodeIndex = findViaComponent(lView, target);
                  if (nodeIndex == -1) {
                    throw new Error('The provided component was not found in the application');
                  }
                  component = target;
                } else if (isDirectiveInstance(target)) {
                  nodeIndex = findViaDirective(lView, target);
                  if (nodeIndex == -1) {
                    throw new Error('The provided directive was not found in the application');
                  }
                  directives = getDirectivesAtNodeIndex(nodeIndex, lView);
                } else {
                  nodeIndex = findViaNativeElement(lView, target);
                  if (nodeIndex == -1) {
                    return null;
                  }
                }
                // the goal is not to fill the entire context full of data because the lookups
                // are expensive. Instead, only the target data (the element, component, container, ICU
                // expression or directive details) are filled into the context. If called multiple times
                // with different target values then the missing target data will be filled in.
                const native = unwrapRNode(lView[nodeIndex]);
                const existingCtx = readPatchedData(native);
                const context = existingCtx && !Array.isArray(existingCtx) ? existingCtx : createLContext(lView, nodeIndex, native);
                // only when the component has been discovered then update the monkey-patch
                if (component && context.component === undefined) {
                  context.component = component;
                  attachPatchData(context.component, context);
                }
                // only when the directives have been discovered then update the monkey-patch
                if (directives && context.directives === undefined) {
                  context.directives = directives;
                  for (let i = 0; i < directives.length; i++) {
                    attachPatchData(directives[i], context);
                  }
                }
                attachPatchData(context.native, context);
                mpValue = context;
              }
            } else {
              const rElement = target;
              ngDevMode && assertDomNode(rElement);
              // if the context is not found then we need to traverse upwards up the DOM
              // to find the nearest element that has already been monkey patched with data
              let parent = rElement;
              while (parent = parent.parentNode) {
                const parentContext = readPatchedData(parent);
                if (parentContext) {
                  const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;
                  // the edge of the app was also reached here through another means
                  // (maybe because the DOM was changed manually).
                  if (!lView) {
                    return null;
                  }
                  const index = findViaNativeElement(lView, rElement);
                  if (index >= 0) {
                    const native = unwrapRNode(lView[index]);
                    const context = createLContext(lView, index, native);
                    attachPatchData(native, context);
                    mpValue = context;
                    break;
                  }
                }
              }
            }
            return mpValue || null;
          }
          /**
           * Creates an empty instance of a `LContext` context
           */
          function createLContext(lView, nodeIndex, native) {
            return new LContext(lView[ID], nodeIndex, native);
          }
          /**
           * Takes a component instance and returns the view for that component.
           *
           * @param componentInstance
           * @returns The component's view
           */
          function getComponentViewByInstance(componentInstance) {
            let patchedData = readPatchedData(componentInstance);
            let lView;
            if (isLView(patchedData)) {
              const contextLView = patchedData;
              const nodeIndex = findViaComponent(contextLView, componentInstance);
              lView = getComponentLViewByIndex(nodeIndex, contextLView);
              const context = createLContext(contextLView, nodeIndex, lView[HOST]);
              context.component = componentInstance;
              attachPatchData(componentInstance, context);
              attachPatchData(context.native, context);
            } else {
              const context = patchedData;
              const contextLView = context.lView;
              ngDevMode && assertLView(contextLView);
              lView = getComponentLViewByIndex(context.nodeIndex, contextLView);
            }
            return lView;
          }
          /**
           * This property will be monkey-patched on elements, components and directives.
           */
          const MONKEY_PATCH_KEY_NAME = '__ngContext__';
          /**
           * Assigns the given data to the given target (which could be a component,
           * directive or DOM node instance) using monkey-patching.
           */
          function attachPatchData(target, data) {
            ngDevMode && assertDefined(target, 'Target expected');
            // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this
            // for `LView`, because we have control over when an `LView` is created and destroyed, whereas
            // we can't know when to remove an `LContext`.
            if (isLView(data)) {
              target[MONKEY_PATCH_KEY_NAME] = data[ID];
              registerLView(data);
            } else {
              target[MONKEY_PATCH_KEY_NAME] = data;
            }
          }
          /**
           * Returns the monkey-patch value data present on the target (which could be
           * a component, directive or a DOM node).
           */
          function readPatchedData(target) {
            ngDevMode && assertDefined(target, 'Target expected');
            const data = target[MONKEY_PATCH_KEY_NAME];
            return typeof data === 'number' ? getLViewById(data) : data || null;
          }
          function readPatchedLView(target) {
            const value = readPatchedData(target);
            if (value) {
              return isLView(value) ? value : value.lView;
            }
            return null;
          }
          function isComponentInstance(instance) {
            return instance && instance.constructor && instance.constructor.ɵcmp;
          }
          function isDirectiveInstance(instance) {
            return instance && instance.constructor && instance.constructor.ɵdir;
          }
          /**
           * Locates the element within the given LView and returns the matching index
           */
          function findViaNativeElement(lView, target) {
            const tView = lView[TVIEW];
            for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
              if (unwrapRNode(lView[i]) === target) {
                return i;
              }
            }
            return -1;
          }
          /**
           * Locates the next tNode (child, sibling or parent).
           */
          function traverseNextElement(tNode) {
            if (tNode.child) {
              return tNode.child;
            } else if (tNode.next) {
              return tNode.next;
            } else {
              // Let's take the following template: <div><span>text</span></div><component/>
              // After checking the text node, we need to find the next parent that has a "next" TNode,
              // in this case the parent `div`, so that we can find the component.
              while (tNode.parent && !tNode.parent.next) {
                tNode = tNode.parent;
              }
              return tNode.parent && tNode.parent.next;
            }
          }
          /**
           * Locates the component within the given LView and returns the matching index
           */
          function findViaComponent(lView, componentInstance) {
            const componentIndices = lView[TVIEW].components;
            if (componentIndices) {
              for (let i = 0; i < componentIndices.length; i++) {
                const elementComponentIndex = componentIndices[i];
                const componentView = getComponentLViewByIndex(elementComponentIndex, lView);
                if (componentView[CONTEXT] === componentInstance) {
                  return elementComponentIndex;
                }
              }
            } else {
              const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);
              const rootComponent = rootComponentView[CONTEXT];
              if (rootComponent === componentInstance) {
                // we are dealing with the root element here therefore we know that the
                // element is the very first element after the HEADER data in the lView
                return HEADER_OFFSET;
              }
            }
            return -1;
          }
          /**
           * Locates the directive within the given LView and returns the matching index
           */
          function findViaDirective(lView, directiveInstance) {
            // if a directive is monkey patched then it will (by default)
            // have a reference to the LView of the current view. The
            // element bound to the directive being search lives somewhere
            // in the view data. We loop through the nodes and check their
            // list of directives for the instance.
            let tNode = lView[TVIEW].firstChild;
            while (tNode) {
              const directiveIndexStart = tNode.directiveStart;
              const directiveIndexEnd = tNode.directiveEnd;
              for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {
                if (lView[i] === directiveInstance) {
                  return tNode.index;
                }
              }
              tNode = traverseNextElement(tNode);
            }
            return -1;
          }
          /**
           * Returns a list of directives applied to a node at a specific index. The list includes
           * directives matched by selector and any host directives, but it excludes components.
           * Use `getComponentAtNodeIndex` to find the component applied to a node.
           *
           * @param nodeIndex The node index
           * @param lView The target view data
           */
          function getDirectivesAtNodeIndex(nodeIndex, lView) {
            const tNode = lView[TVIEW].data[nodeIndex];
            if (tNode.directiveStart === 0) return EMPTY_ARRAY;
            const results = [];
            for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {
              const directiveInstance = lView[i];
              if (!isComponentInstance(directiveInstance)) {
                results.push(directiveInstance);
              }
            }
            return results;
          }
          function getComponentAtNodeIndex(nodeIndex, lView) {
            const tNode = lView[TVIEW].data[nodeIndex];
            const {
              directiveStart,
              componentOffset
            } = tNode;
            return componentOffset > -1 ? lView[directiveStart + componentOffset] : null;
          }
          /**
           * Returns a map of local references (local reference name => element or directive instance) that
           * exist on a given element.
           */
          function discoverLocalRefs(lView, nodeIndex) {
            const tNode = lView[TVIEW].data[nodeIndex];
            if (tNode && tNode.localNames) {
              const result = {};
              let localIndex = tNode.index + 1;
              for (let i = 0; i < tNode.localNames.length; i += 2) {
                result[tNode.localNames[i]] = lView[localIndex];
                localIndex++;
              }
              return result;
            }
            return null;
          }
          let _icuContainerIterate;
          /**
           * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.
           */
          function icuContainerIterate(tIcuContainerNode, lView) {
            return _icuContainerIterate(tIcuContainerNode, lView);
          }
          /**
           * Ensures that `IcuContainerVisitor`'s implementation is present.
           *
           * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the
           * bundler to tree shake ICU logic and only load it if ICU instruction is executed.
           */
          function ensureIcuContainerVisitorLoaded(loader) {
            if (_icuContainerIterate === undefined) {
              // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it
              // can be inlined into call-site.
              _icuContainerIterate = loader();
            }
          }
          
          /**
           * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of
           * that LContainer, which is an LView
           * @param lView the lView whose parent to get
           */
          function getLViewParent(lView) {
            ngDevMode && assertLView(lView);
            const parent = lView[PARENT];
            return isLContainer(parent) ? parent[PARENT] : parent;
          }
          /**
           * Retrieve the root view from any component or `LView` by walking the parent `LView` until
           * reaching the root `LView`.
           *
           * @param componentOrLView any component or `LView`
           */
          function getRootView(componentOrLView) {
            ngDevMode && assertDefined(componentOrLView, 'component');
            let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);
            while (lView && !(lView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {
              lView = getLViewParent(lView);
            }
            ngDevMode && assertLView(lView);
            return lView;
          }
          /**
           * Returns the context information associated with the application where the target is situated. It
           * does this by walking the parent views until it gets to the root view, then getting the context
           * off of that.
           *
           * @param viewOrComponent the `LView` or component to get the root context for.
           */
          function getRootContext(viewOrComponent) {
            const rootView = getRootView(viewOrComponent);
            ngDevMode && assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');
            return rootView[CONTEXT];
          }
          /**
           * Gets the first `LContainer` in the LView or `null` if none exists.
           */
          function getFirstLContainer(lView) {
            return getNearestLContainer(lView[CHILD_HEAD]);
          }
          /**
           * Gets the next `LContainer` that is a sibling of the given container.
           */
          function getNextLContainer(container) {
            return getNearestLContainer(container[NEXT]);
          }
          function getNearestLContainer(viewOrContainer) {
            while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {
              viewOrContainer = viewOrContainer[NEXT];
            }
            return viewOrContainer;
          }
          
          /**
           * NOTE: for performance reasons, the possible actions are inlined within the function instead of
           * being passed as an argument.
           */
          function applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {
            // If this slot was allocated for a text node dynamically created by i18n, the text node itself
            // won't be created until i18nApply() in the update block, so this node should be skipped.
            // For more info, see "ICU expressions should work inside an ngTemplateOutlet inside an ngFor"
            // in `i18n_spec.ts`.
            if (lNodeToHandle != null) {
              let lContainer;
              let isComponent = false;
              // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is
              // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if
              // it has LContainer so that we can process all of those cases appropriately.
              if (isLContainer(lNodeToHandle)) {
                lContainer = lNodeToHandle;
              } else if (isLView(lNodeToHandle)) {
                isComponent = true;
                ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');
                lNodeToHandle = lNodeToHandle[HOST];
              }
              const rNode = unwrapRNode(lNodeToHandle);
              if (action === 0 /* WalkTNodeTreeAction.Create */ && parent !== null) {
                if (beforeNode == null) {
                  nativeAppendChild(renderer, parent, rNode);
                } else {
                  nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
                }
              } else if (action === 1 /* WalkTNodeTreeAction.Insert */ && parent !== null) {
                nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
              } else if (action === 2 /* WalkTNodeTreeAction.Detach */) {
                nativeRemoveNode(renderer, rNode, isComponent);
              } else if (action === 3 /* WalkTNodeTreeAction.Destroy */) {
                ngDevMode && ngDevMode.rendererDestroyNode++;
                renderer.destroyNode(rNode);
              }
              if (lContainer != null) {
                applyContainer(renderer, action, lContainer, parent, beforeNode);
              }
            }
          }
          function createTextNode(renderer, value) {
            ngDevMode && ngDevMode.rendererCreateTextNode++;
            ngDevMode && ngDevMode.rendererSetText++;
            return renderer.createText(value);
          }
          function updateTextNode(renderer, rNode, value) {
            ngDevMode && ngDevMode.rendererSetText++;
            renderer.setValue(rNode, value);
          }
          function createCommentNode(renderer, value) {
            ngDevMode && ngDevMode.rendererCreateComment++;
            return renderer.createComment(escapeCommentText(value));
          }
          /**
           * Creates a native element from a tag name, using a renderer.
           * @param renderer A renderer to use
           * @param name the tag name
           * @param namespace Optional namespace for element.
           * @returns the element created
           */
          function createElementNode(renderer, name, namespace) {
            ngDevMode && ngDevMode.rendererCreateElement++;
            return renderer.createElement(name, namespace);
          }
          /**
           * Removes all DOM elements associated with a view.
           *
           * Because some root nodes of the view may be containers, we sometimes need
           * to propagate deeply into the nested containers to remove all elements in the
           * views beneath it.
           *
           * @param tView The `TView' of the `LView` from which elements should be added or removed
           * @param lView The view from which elements should be added or removed
           */
          function removeViewFromDOM(tView, lView) {
            const renderer = lView[RENDERER];
            applyView(tView, lView, renderer, 2 /* WalkTNodeTreeAction.Detach */, null, null);
            lView[HOST] = null;
            lView[T_HOST] = null;
          }
          /**
           * Adds all DOM elements associated with a view.
           *
           * Because some root nodes of the view may be containers, we sometimes need
           * to propagate deeply into the nested containers to add all elements in the
           * views beneath it.
           *
           * @param tView The `TView' of the `LView` from which elements should be added or removed
           * @param parentTNode The `TNode` where the `LView` should be attached to.
           * @param renderer Current renderer to use for DOM manipulations.
           * @param lView The view from which elements should be added or removed
           * @param parentNativeNode The parent `RElement` where it should be inserted into.
           * @param beforeNode The node before which elements should be added, if insert mode
           */
          function addViewToDOM(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {
            lView[HOST] = parentNativeNode;
            lView[T_HOST] = parentTNode;
            applyView(tView, lView, renderer, 1 /* WalkTNodeTreeAction.Insert */, parentNativeNode, beforeNode);
          }
          /**
           * Detach a `LView` from the DOM by detaching its nodes.
           *
           * @param tView The `TView' of the `LView` to be detached
           * @param lView the `LView` to be detached.
           */
          function detachViewFromDOM(tView, lView) {
            applyView(tView, lView, lView[RENDERER], 2 /* WalkTNodeTreeAction.Detach */, null, null);
          }
          /**
           * Traverses down and up the tree of views and containers to remove listeners and
           * call onDestroy callbacks.
           *
           * Notes:
           *  - Because it's used for onDestroy calls, it needs to be bottom-up.
           *  - Must process containers instead of their views to avoid splicing
           *  when views are destroyed and re-added.
           *  - Using a while loop because it's faster than recursion
           *  - Destroy only called on movement to sibling or movement to parent (laterally or up)
           *
           *  @param rootView The view to destroy
           */
          function destroyViewTree(rootView) {
            // If the view has no children, we can clean it up and return early.
            let lViewOrLContainer = rootView[CHILD_HEAD];
            if (!lViewOrLContainer) {
              return cleanUpView(rootView[TVIEW], rootView);
            }
            while (lViewOrLContainer) {
              let next = null;
              if (isLView(lViewOrLContainer)) {
                // If LView, traverse down to child.
                next = lViewOrLContainer[CHILD_HEAD];
              } else {
                ngDevMode && assertLContainer(lViewOrLContainer);
                // If container, traverse down to its first LView.
                const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];
                if (firstView) next = firstView;
              }
              if (!next) {
                // Only clean up view when moving to the side or up, as destroy hooks
                // should be called in order from the bottom up.
                while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {
                  if (isLView(lViewOrLContainer)) {
                    cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
                  }
                  lViewOrLContainer = lViewOrLContainer[PARENT];
                }
                if (lViewOrLContainer === null) lViewOrLContainer = rootView;
                if (isLView(lViewOrLContainer)) {
                  cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
                }
                next = lViewOrLContainer && lViewOrLContainer[NEXT];
              }
              lViewOrLContainer = next;
            }
          }
          /**
           * Inserts a view into a container.
           *
           * This adds the view to the container's array of active views in the correct
           * position. It also adds the view's elements to the DOM if the container isn't a
           * root node of another view (in that case, the view's elements will be added when
           * the container's parent view is added later).
           *
           * @param tView The `TView' of the `LView` to insert
           * @param lView The view to insert
           * @param lContainer The container into which the view should be inserted
           * @param index Which index in the container to insert the child view into
           */
          function insertView(tView, lView, lContainer, index) {
            ngDevMode && assertLView(lView);
            ngDevMode && assertLContainer(lContainer);
            const indexInContainer = CONTAINER_HEADER_OFFSET + index;
            const containerLength = lContainer.length;
            if (index > 0) {
              // This is a new view, we need to add it to the children.
              lContainer[indexInContainer - 1][NEXT] = lView;
            }
            if (index < containerLength - CONTAINER_HEADER_OFFSET) {
              lView[NEXT] = lContainer[indexInContainer];
              addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);
            } else {
              lContainer.push(lView);
              lView[NEXT] = null;
            }
            lView[PARENT] = lContainer;
            // track views where declaration and insertion points are different
            const declarationLContainer = lView[DECLARATION_LCONTAINER];
            if (declarationLContainer !== null && lContainer !== declarationLContainer) {
              trackMovedView(declarationLContainer, lView);
            }
            // notify query that a new view has been added
            const lQueries = lView[QUERIES];
            if (lQueries !== null) {
              lQueries.insertView(tView);
            }
            // Sets the attached flag
            lView[FLAGS] |= 128 /* LViewFlags.Attached */;
          }
          /**
           * Track views created from the declaration container (TemplateRef) and inserted into a
           * different LContainer.
           */
          function trackMovedView(declarationContainer, lView) {
            ngDevMode && assertDefined(lView, 'LView required');
            ngDevMode && assertLContainer(declarationContainer);
            const movedViews = declarationContainer[MOVED_VIEWS];
            const insertedLContainer = lView[PARENT];
            ngDevMode && assertLContainer(insertedLContainer);
            const insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];
            ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');
            const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];
            ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');
            if (declaredComponentLView !== insertedComponentLView) {
              // At this point the declaration-component is not same as insertion-component; this means that
              // this is a transplanted view. Mark the declared lView as having transplanted views so that
              // those views can participate in CD.
              declarationContainer[HAS_TRANSPLANTED_VIEWS] = true;
            }
            if (movedViews === null) {
              declarationContainer[MOVED_VIEWS] = [lView];
            } else {
              movedViews.push(lView);
            }
          }
          function detachMovedView(declarationContainer, lView) {
            ngDevMode && assertLContainer(declarationContainer);
            ngDevMode && assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');
            const movedViews = declarationContainer[MOVED_VIEWS];
            const declarationViewIndex = movedViews.indexOf(lView);
            const insertionLContainer = lView[PARENT];
            ngDevMode && assertLContainer(insertionLContainer);
            // If the view was marked for refresh but then detached before it was checked (where the flag
            // would be cleared and the counter decremented), we need to update the status here.
            clearViewRefreshFlag(lView);
            movedViews.splice(declarationViewIndex, 1);
          }
          /**
           * Detaches a view from a container.
           *
           * This method removes the view from the container's array of active views. It also
           * removes the view's elements from the DOM.
           *
           * @param lContainer The container from which to detach a view
           * @param removeIndex The index of the view to detach
           * @returns Detached LView instance.
           */
          function detachView(lContainer, removeIndex) {
            if (lContainer.length <= CONTAINER_HEADER_OFFSET) return;
            const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;
            const viewToDetach = lContainer[indexInContainer];
            if (viewToDetach) {
              const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];
              if (declarationLContainer !== null && declarationLContainer !== lContainer) {
                detachMovedView(declarationLContainer, viewToDetach);
              }
              if (removeIndex > 0) {
                lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];
              }
              const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);
              removeViewFromDOM(viewToDetach[TVIEW], viewToDetach);
              // notify query that a view has been removed
              const lQueries = removedLView[QUERIES];
              if (lQueries !== null) {
                lQueries.detachView(removedLView[TVIEW]);
              }
              viewToDetach[PARENT] = null;
              viewToDetach[NEXT] = null;
              // Unsets the attached flag
              viewToDetach[FLAGS] &= ~128 /* LViewFlags.Attached */;
            }
          
            return viewToDetach;
          }
          /**
           * A standalone function which destroys an LView,
           * conducting clean up (e.g. removing listeners, calling onDestroys).
           *
           * @param tView The `TView' of the `LView` to be destroyed
           * @param lView The view to be destroyed.
           */
          function destroyLView(tView, lView) {
            if (!(lView[FLAGS] & 256 /* LViewFlags.Destroyed */)) {
              const renderer = lView[RENDERER];
              lView[REACTIVE_TEMPLATE_CONSUMER] && consumerDestroy(lView[REACTIVE_TEMPLATE_CONSUMER]);
              lView[REACTIVE_HOST_BINDING_CONSUMER] && consumerDestroy(lView[REACTIVE_HOST_BINDING_CONSUMER]);
              if (renderer.destroyNode) {
                applyView(tView, lView, renderer, 3 /* WalkTNodeTreeAction.Destroy */, null, null);
              }
              destroyViewTree(lView);
            }
          }
          /**
           * Calls onDestroys hooks for all directives and pipes in a given view and then removes all
           * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks
           * can be propagated to @Output listeners.
           *
           * @param tView `TView` for the `LView` to clean up.
           * @param lView The LView to clean up
           */
          function cleanUpView(tView, lView) {
            if (!(lView[FLAGS] & 256 /* LViewFlags.Destroyed */)) {
              // Usually the Attached flag is removed when the view is detached from its parent, however
              // if it's a root view, the flag won't be unset hence why we're also removing on destroy.
              lView[FLAGS] &= ~128 /* LViewFlags.Attached */;
              // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook
              // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If
              // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.
              // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is
              // really more of an "afterDestroy" hook if you think about it.
              lView[FLAGS] |= 256 /* LViewFlags.Destroyed */;
              executeOnDestroys(tView, lView);
              processCleanups(tView, lView);
              // For component views only, the local renderer is destroyed at clean up time.
              if (lView[TVIEW].type === 1 /* TViewType.Component */) {
                ngDevMode && ngDevMode.rendererDestroy++;
                lView[RENDERER].destroy();
              }
              const declarationContainer = lView[DECLARATION_LCONTAINER];
              // we are dealing with an embedded view that is still inserted into a container
              if (declarationContainer !== null && isLContainer(lView[PARENT])) {
                // and this is a projected view
                if (declarationContainer !== lView[PARENT]) {
                  detachMovedView(declarationContainer, lView);
                }
                // For embedded views still attached to a container: remove query result from this view.
                const lQueries = lView[QUERIES];
                if (lQueries !== null) {
                  lQueries.detachView(tView);
                }
              }
              // Unregister the view once everything else has been cleaned up.
              unregisterLView(lView);
            }
          }
          /** Removes listeners and unsubscribes from output subscriptions */
          function processCleanups(tView, lView) {
            const tCleanup = tView.cleanup;
            const lCleanup = lView[CLEANUP];
            if (tCleanup !== null) {
              for (let i = 0; i < tCleanup.length - 1; i += 2) {
                if (typeof tCleanup[i] === 'string') {
                  // This is a native DOM listener. It will occupy 4 entries in the TCleanup array (hence i +=
                  // 2 at the end of this block).
                  const targetIdx = tCleanup[i + 3];
                  ngDevMode && assertNumber(targetIdx, 'cleanup target must be a number');
                  if (targetIdx >= 0) {
                    // unregister
                    lCleanup[targetIdx]();
                  } else {
                    // Subscription
                    lCleanup[-targetIdx].unsubscribe();
                  }
                  i += 2;
                } else {
                  // This is a cleanup function that is grouped with the index of its context
                  const context = lCleanup[tCleanup[i + 1]];
                  tCleanup[i].call(context);
                }
              }
            }
            if (lCleanup !== null) {
              lView[CLEANUP] = null;
            }
            const destroyHooks = lView[ON_DESTROY_HOOKS];
            if (destroyHooks !== null) {
              // Reset the ON_DESTROY_HOOKS array before iterating over it to prevent hooks that unregister
              // themselves from mutating the array during iteration.
              lView[ON_DESTROY_HOOKS] = null;
              for (let i = 0; i < destroyHooks.length; i++) {
                const destroyHooksFn = destroyHooks[i];
                ngDevMode && assertFunction(destroyHooksFn, 'Expecting destroy hook to be a function.');
                destroyHooksFn();
              }
            }
          }
          /** Calls onDestroy hooks for this view */
          function executeOnDestroys(tView, lView) {
            let destroyHooks;
            if (tView != null && (destroyHooks = tView.destroyHooks) != null) {
              for (let i = 0; i < destroyHooks.length; i += 2) {
                const context = lView[destroyHooks[i]];
                // Only call the destroy hook if the context has been requested.
                if (!(context instanceof NodeInjectorFactory)) {
                  const toCall = destroyHooks[i + 1];
                  if (Array.isArray(toCall)) {
                    for (let j = 0; j < toCall.length; j += 2) {
                      const callContext = context[toCall[j]];
                      const hook = toCall[j + 1];
                      profiler(4 /* ProfilerEvent.LifecycleHookStart */, callContext, hook);
                      try {
                        hook.call(callContext);
                      } finally {
                        profiler(5 /* ProfilerEvent.LifecycleHookEnd */, callContext, hook);
                      }
                    }
                  } else {
                    profiler(4 /* ProfilerEvent.LifecycleHookStart */, context, toCall);
                    try {
                      toCall.call(context);
                    } finally {
                      profiler(5 /* ProfilerEvent.LifecycleHookEnd */, context, toCall);
                    }
                  }
                }
              }
            }
          }
          /**
           * Returns a native element if a node can be inserted into the given parent.
           *
           * There are two reasons why we may not be able to insert a element immediately.
           * - Projection: When creating a child content element of a component, we have to skip the
           *   insertion because the content of a component will be projected.
           *   `<component><content>delayed due to projection</content></component>`
           * - Parent container is disconnected: This can happen when we are inserting a view into
           *   parent container, which itself is disconnected. For example the parent container is part
           *   of a View which has not be inserted or is made for projection but has not been inserted
           *   into destination.
           *
           * @param tView: Current `TView`.
           * @param tNode: `TNode` for which we wish to retrieve render parent.
           * @param lView: Current `LView`.
           */
          function getParentRElement(tView, tNode, lView) {
            return getClosestRElement(tView, tNode.parent, lView);
          }
          /**
           * Get closest `RElement` or `null` if it can't be found.
           *
           * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.
           * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).
           * If `TNode` is `null` then return host `RElement`:
           *   - return `null` if projection
           *   - return `null` if parent container is disconnected (we have no parent.)
           *
           * @param tView: Current `TView`.
           * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is
           *     needed).
           * @param lView: Current `LView`.
           * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)
           */
          function getClosestRElement(tView, tNode, lView) {
            let parentTNode = tNode;
            // Skip over element and ICU containers as those are represented by a comment node and
            // can't be used as a render parent.
            while (parentTNode !== null && parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {
              tNode = parentTNode;
              parentTNode = tNode.parent;
            }
            // If the parent tNode is null, then we are inserting across views: either into an embedded view
            // or a component view.
            if (parentTNode === null) {
              // We are inserting a root element of the component view into the component host element and
              // it should always be eager.
              return lView[HOST];
            } else {
              ngDevMode && assertTNodeType(parentTNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);
              const {
                componentOffset
              } = parentTNode;
              if (componentOffset > -1) {
                ngDevMode && assertTNodeForLView(parentTNode, lView);
                const {
                  encapsulation
                } = tView.data[parentTNode.directiveStart + componentOffset];
                // We've got a parent which is an element in the current view. We just need to verify if the
                // parent element is not a component. Component's content nodes are not inserted immediately
                // because they will be projected, and so doing insert at this point would be wasteful.
                // Since the projection would then move it to its final destination. Note that we can't
                // make this assumption when using the Shadow DOM, because the native projection placeholders
                // (<content> or <slot>) have to be in place as elements are being inserted.
                if (encapsulation === ViewEncapsulation$1.None || encapsulation === ViewEncapsulation$1.Emulated) {
                  return null;
                }
              }
              return getNativeByTNode(parentTNode, lView);
            }
          }
          /**
           * Inserts a native node before another native node for a given parent.
           * This is a utility function that can be used when native nodes were determined.
           */
          function nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {
            ngDevMode && ngDevMode.rendererInsertBefore++;
            renderer.insertBefore(parent, child, beforeNode, isMove);
          }
          function nativeAppendChild(renderer, parent, child) {
            ngDevMode && ngDevMode.rendererAppendChild++;
            ngDevMode && assertDefined(parent, 'parent node must be defined');
            renderer.appendChild(parent, child);
          }
          function nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {
            if (beforeNode !== null) {
              nativeInsertBefore(renderer, parent, child, beforeNode, isMove);
            } else {
              nativeAppendChild(renderer, parent, child);
            }
          }
          /** Removes a node from the DOM given its native parent. */
          function nativeRemoveChild(renderer, parent, child, isHostElement) {
            renderer.removeChild(parent, child, isHostElement);
          }
          /** Checks if an element is a `<template>` node. */
          function isTemplateNode(node) {
            return node.tagName === 'TEMPLATE' && node.content !== undefined;
          }
          /**
           * Returns a native parent of a given native node.
           */
          function nativeParentNode(renderer, node) {
            return renderer.parentNode(node);
          }
          /**
           * Returns a native sibling of a given native node.
           */
          function nativeNextSibling(renderer, node) {
            return renderer.nextSibling(node);
          }
          /**
           * Find a node in front of which `currentTNode` should be inserted.
           *
           * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
           * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.
           *
           * @param parentTNode parent `TNode`
           * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
           * @param lView current `LView`
           */
          function getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {
            return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);
          }
          /**
           * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into
           * account)
           *
           * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
           * does not take `TNode.insertBeforeIndex` into account.
           *
           * @param parentTNode parent `TNode`
           * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
           * @param lView current `LView`
           */
          function getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {
            if (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {
              return getNativeByTNode(parentTNode, lView);
            }
            return null;
          }
          /**
           * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.
           *
           * This function will only be set if i18n code runs.
           */
          let _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;
          /**
           * Tree shakable boundary for `processI18nInsertBefore` function.
           *
           * This function will only be set if i18n code runs.
           */
          let _processI18nInsertBefore;
          function setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {
            _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;
            _processI18nInsertBefore = processI18nInsertBefore;
          }
          /**
           * Appends the `child` native node (or a collection of nodes) to the `parent`.
           *
           * @param tView The `TView' to be appended
           * @param lView The current LView
           * @param childRNode The native child (or children) that should be appended
           * @param childTNode The TNode of the child element
           */
          function appendChild(tView, lView, childRNode, childTNode) {
            const parentRNode = getParentRElement(tView, childTNode, lView);
            const renderer = lView[RENDERER];
            const parentTNode = childTNode.parent || lView[T_HOST];
            const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);
            if (parentRNode != null) {
              if (Array.isArray(childRNode)) {
                for (let i = 0; i < childRNode.length; i++) {
                  nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);
                }
              } else {
                nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);
              }
            }
            _processI18nInsertBefore !== undefined && _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);
          }
          /**
           * Returns the first native node for a given LView, starting from the provided TNode.
           *
           * Native nodes are returned in the order in which those appear in the native tree (DOM).
           */
          function getFirstNativeNode(lView, tNode) {
            if (tNode !== null) {
              ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */ | 16 /* TNodeType.Projection */);
              const tNodeType = tNode.type;
              if (tNodeType & 3 /* TNodeType.AnyRNode */) {
                return getNativeByTNode(tNode, lView);
              } else if (tNodeType & 4 /* TNodeType.Container */) {
                return getBeforeNodeForView(-1, lView[tNode.index]);
              } else if (tNodeType & 8 /* TNodeType.ElementContainer */) {
                const elIcuContainerChild = tNode.child;
                if (elIcuContainerChild !== null) {
                  return getFirstNativeNode(lView, elIcuContainerChild);
                } else {
                  const rNodeOrLContainer = lView[tNode.index];
                  if (isLContainer(rNodeOrLContainer)) {
                    return getBeforeNodeForView(-1, rNodeOrLContainer);
                  } else {
                    return unwrapRNode(rNodeOrLContainer);
                  }
                }
              } else if (tNodeType & 32 /* TNodeType.Icu */) {
                let nextRNode = icuContainerIterate(tNode, lView);
                let rNode = nextRNode();
                // If the ICU container has no nodes, than we use the ICU anchor as the node.
                return rNode || unwrapRNode(lView[tNode.index]);
              } else {
                const projectionNodes = getProjectionNodes(lView, tNode);
                if (projectionNodes !== null) {
                  if (Array.isArray(projectionNodes)) {
                    return projectionNodes[0];
                  }
                  const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);
                  ngDevMode && assertParentView(parentView);
                  return getFirstNativeNode(parentView, projectionNodes);
                } else {
                  return getFirstNativeNode(lView, tNode.next);
                }
              }
            }
            return null;
          }
          function getProjectionNodes(lView, tNode) {
            if (tNode !== null) {
              const componentView = lView[DECLARATION_COMPONENT_VIEW];
              const componentHost = componentView[T_HOST];
              const slotIdx = tNode.projection;
              ngDevMode && assertProjectionSlots(lView);
              return componentHost.projection[slotIdx];
            }
            return null;
          }
          function getBeforeNodeForView(viewIndexInContainer, lContainer) {
            const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;
            if (nextViewIndex < lContainer.length) {
              const lView = lContainer[nextViewIndex];
              const firstTNodeOfView = lView[TVIEW].firstChild;
              if (firstTNodeOfView !== null) {
                return getFirstNativeNode(lView, firstTNodeOfView);
              }
            }
            return lContainer[NATIVE];
          }
          /**
           * Removes a native node itself using a given renderer. To remove the node we are looking up its
           * parent from the native tree as not all platforms / browsers support the equivalent of
           * node.remove().
           *
           * @param renderer A renderer to be used
           * @param rNode The native node that should be removed
           * @param isHostElement A flag indicating if a node to be removed is a host of a component.
           */
          function nativeRemoveNode(renderer, rNode, isHostElement) {
            ngDevMode && ngDevMode.rendererRemoveNode++;
            const nativeParent = nativeParentNode(renderer, rNode);
            if (nativeParent) {
              nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);
            }
          }
          /**
           * Clears the contents of a given RElement.
           *
           * @param rElement the native RElement to be cleared
           */
          function clearElementContents(rElement) {
            rElement.textContent = '';
          }
          /**
           * Performs the operation of `action` on the node. Typically this involves inserting or removing
           * nodes on the LView or projection boundary.
           */
          function applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {
            while (tNode != null) {
              ngDevMode && assertTNodeForLView(tNode, lView);
              ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);
              const rawSlotValue = lView[tNode.index];
              const tNodeType = tNode.type;
              if (isProjection) {
                if (action === 0 /* WalkTNodeTreeAction.Create */) {
                  rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);
                  tNode.flags |= 2 /* TNodeFlags.isProjected */;
                }
              }
          
              if ((tNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {
                if (tNodeType & 8 /* TNodeType.ElementContainer */) {
                  applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);
                  applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
                } else if (tNodeType & 32 /* TNodeType.Icu */) {
                  const nextRNode = icuContainerIterate(tNode, lView);
                  let rNode;
                  while (rNode = nextRNode()) {
                    applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
                  }
                  applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
                } else if (tNodeType & 16 /* TNodeType.Projection */) {
                  applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);
                } else {
                  ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);
                  applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
                }
              }
              tNode = isProjection ? tNode.projectionNext : tNode.next;
            }
          }
          function applyView(tView, lView, renderer, action, parentRElement, beforeNode) {
            applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);
          }
          /**
           * `applyProjection` performs operation on the projection.
           *
           * Inserting a projection requires us to locate the projected nodes from the parent component. The
           * complication is that those nodes themselves could be re-projected from their parent component.
           *
           * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed
           * @param lView The `LView` which needs to be inserted, detached, destroyed.
           * @param tProjectionNode node to project
           */
          function applyProjection(tView, lView, tProjectionNode) {
            const renderer = lView[RENDERER];
            const parentRNode = getParentRElement(tView, tProjectionNode, lView);
            const parentTNode = tProjectionNode.parent || lView[T_HOST];
            let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
            applyProjectionRecursive(renderer, 0 /* WalkTNodeTreeAction.Create */, lView, tProjectionNode, parentRNode, beforeNode);
          }
          /**
           * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,
           * detach, destroy)
           *
           * Inserting a projection requires us to locate the projected nodes from the parent component. The
           * complication is that those nodes themselves could be re-projected from their parent component.
           *
           * @param renderer Render to use
           * @param action action to perform (insert, detach, destroy)
           * @param lView The LView which needs to be inserted, detached, destroyed.
           * @param tProjectionNode node to project
           * @param parentRElement parent DOM element for insertion/removal.
           * @param beforeNode Before which node the insertions should happen.
           */
          function applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {
            const componentLView = lView[DECLARATION_COMPONENT_VIEW];
            const componentNode = componentLView[T_HOST];
            ngDevMode && assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');
            const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];
            if (Array.isArray(nodeToProjectOrRNodes)) {
              // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we
              // need to support passing projectable nodes, so we cheat and put them in the TNode
              // of the Host TView. (Yes we put instance info at the T Level). We can get away with it
              // because we know that that TView is not shared and therefore it will not be a problem.
              // This should be refactored and cleaned up.
              for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {
                const rNode = nodeToProjectOrRNodes[i];
                applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
              }
            } else {
              let nodeToProject = nodeToProjectOrRNodes;
              const projectedComponentLView = componentLView[PARENT];
              // If a parent <ng-content> is located within a skip hydration block,
              // annotate an actual node that is being projected with the same flag too.
              if (hasInSkipHydrationBlockFlag(tProjectionNode)) {
                nodeToProject.flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;
              }
          
              applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);
            }
          }
          /**
           * `applyContainer` performs an operation on the container and its views as specified by
           * `action` (insert, detach, destroy)
           *
           * Inserting a Container is complicated by the fact that the container may have Views which
           * themselves have containers or projections.
           *
           * @param renderer Renderer to use
           * @param action action to perform (insert, detach, destroy)
           * @param lContainer The LContainer which needs to be inserted, detached, destroyed.
           * @param parentRElement parent DOM element for insertion/removal.
           * @param beforeNode Before which node the insertions should happen.
           */
          function applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {
            ngDevMode && assertLContainer(lContainer);
            const anchor = lContainer[NATIVE]; // LContainer has its own before node.
            const native = unwrapRNode(lContainer);
            // An LContainer can be created dynamically on any node by injecting ViewContainerRef.
            // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor
            // node (comment in the DOM) that will be different from the LContainer's host node. In this
            // particular case we need to execute action on 2 nodes:
            // - container's host node (this is done in the executeActionOnElementOrContainer)
            // - container's host node (this is done here)
            if (anchor !== native) {
              // This is very strange to me (Misko). I would expect that the native is same as anchor. I
              // don't see a reason why they should be different, but they are.
              //
              // If they are we need to process the second anchor as well.
              applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);
            }
            for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
              const lView = lContainer[i];
              applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);
            }
          }
          /**
           * Writes class/style to element.
           *
           * @param renderer Renderer to use.
           * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)
           * @param rNode The Node to write to.
           * @param prop Property to write to. This would be the class/style name.
           * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add
           *        otherwise).
           */
          function applyStyling(renderer, isClassBased, rNode, prop, value) {
            if (isClassBased) {
              // We actually want JS true/false here because any truthy value should add the class
              if (!value) {
                ngDevMode && ngDevMode.rendererRemoveClass++;
                renderer.removeClass(rNode, prop);
              } else {
                ngDevMode && ngDevMode.rendererAddClass++;
                renderer.addClass(rNode, prop);
              }
            } else {
              let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;
              if (value == null /** || value === undefined */) {
                ngDevMode && ngDevMode.rendererRemoveStyle++;
                renderer.removeStyle(rNode, prop, flags);
              } else {
                // A value is important if it ends with `!important`. The style
                // parser strips any semicolons at the end of the value.
                const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;
                if (isImportant) {
                  // !important has to be stripped from the value for it to be valid.
                  value = value.slice(0, -10);
                  flags |= RendererStyleFlags2.Important;
                }
                ngDevMode && ngDevMode.rendererSetStyle++;
                renderer.setStyle(rNode, prop, value, flags);
              }
            }
          }
          /**
           * Write `cssText` to `RElement`.
           *
           * This function does direct write without any reconciliation. Used for writing initial values, so
           * that static styling values do not pull in the style parser.
           *
           * @param renderer Renderer to use
           * @param element The element which needs to be updated.
           * @param newValue The new class list to write.
           */
          function writeDirectStyle(renderer, element, newValue) {
            ngDevMode && assertString(newValue, '\'newValue\' should be a string');
            renderer.setAttribute(element, 'style', newValue);
            ngDevMode && ngDevMode.rendererSetStyle++;
          }
          /**
           * Write `className` to `RElement`.
           *
           * This function does direct write without any reconciliation. Used for writing initial values, so
           * that static styling values do not pull in the style parser.
           *
           * @param renderer Renderer to use
           * @param element The element which needs to be updated.
           * @param newValue The new class list to write.
           */
          function writeDirectClass(renderer, element, newValue) {
            ngDevMode && assertString(newValue, '\'newValue\' should be a string');
            if (newValue === '') {
              // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.
              renderer.removeAttribute(element, 'class');
            } else {
              renderer.setAttribute(element, 'class', newValue);
            }
            ngDevMode && ngDevMode.rendererSetClassName++;
          }
          /** Sets up the static DOM attributes on an `RNode`. */
          function setupStaticAttributes(renderer, element, tNode) {
            const {
              mergedAttrs,
              classes,
              styles
            } = tNode;
            if (mergedAttrs !== null) {
              setUpAttributes(renderer, element, mergedAttrs);
            }
            if (classes !== null) {
              writeDirectClass(renderer, element, classes);
            }
            if (styles !== null) {
              writeDirectStyle(renderer, element, styles);
            }
          }
          
          /**
           * @fileoverview
           * A module to facilitate use of a Trusted Types policy internally within
           * Angular. It lazily constructs the Trusted Types policy, providing helper
           * utilities for promoting strings to Trusted Types. When Trusted Types are not
           * available, strings are used as a fallback.
           * @security All use of this module is security-sensitive and should go through
           * security review.
           */
          /**
           * The Trusted Types policy, or null if Trusted Types are not
           * enabled/supported, or undefined if the policy has not been created yet.
           */
          let policy$1;
          /**
           * Returns the Trusted Types policy, or null if Trusted Types are not
           * enabled/supported. The first call to this function will create the policy.
           */
          function getPolicy$1() {
            if (policy$1 === undefined) {
              policy$1 = null;
              if (_global.trustedTypes) {
                try {
                  policy$1 = _global.trustedTypes.createPolicy('angular', {
                    createHTML: s => s,
                    createScript: s => s,
                    createScriptURL: s => s
                  });
                } catch {
                  // trustedTypes.createPolicy throws if called with a name that is
                  // already registered, even in report-only mode. Until the API changes,
                  // catch the error not to break the applications functionally. In such
                  // cases, the code will fall back to using strings.
                }
              }
            }
            return policy$1;
          }
          /**
           * Unsafely promote a string to a TrustedHTML, falling back to strings when
           * Trusted Types are not available.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that the
           * provided string will never cause an XSS vulnerability if used in a context
           * that will be interpreted as HTML by a browser, e.g. when assigning to
           * element.innerHTML.
           */
          function trustedHTMLFromString(html) {
            return getPolicy$1()?.createHTML(html) || html;
          }
          /**
           * Unsafely promote a string to a TrustedScript, falling back to strings when
           * Trusted Types are not available.
           * @security In particular, it must be assured that the provided string will
           * never cause an XSS vulnerability if used in a context that will be
           * interpreted and executed as a script by a browser, e.g. when calling eval.
           */
          function trustedScriptFromString(script) {
            return getPolicy$1()?.createScript(script) || script;
          }
          /**
           * Unsafely promote a string to a TrustedScriptURL, falling back to strings
           * when Trusted Types are not available.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that the
           * provided string will never cause an XSS vulnerability if used in a context
           * that will cause a browser to load and execute a resource, e.g. when
           * assigning to script.src.
           */
          function trustedScriptURLFromString(url) {
            return getPolicy$1()?.createScriptURL(url) || url;
          }
          /**
           * Unsafely call the Function constructor with the given string arguments. It
           * is only available in development mode, and should be stripped out of
           * production code.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that it
           * is only called from development code, as use in production code can lead to
           * XSS vulnerabilities.
           */
          function newTrustedFunctionForDev(...args) {
            if (typeof ngDevMode === 'undefined') {
              throw new Error('newTrustedFunctionForDev should never be called in production');
            }
            if (!_global.trustedTypes) {
              // In environments that don't support Trusted Types, fall back to the most
              // straightforward implementation:
              return new Function(...args);
            }
            // Chrome currently does not support passing TrustedScript to the Function
            // constructor. The following implements the workaround proposed on the page
            // below, where the Chromium bug is also referenced:
            // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor
            const fnArgs = args.slice(0, -1).join(',');
            const fnBody = args[args.length - 1];
            const body = `(function anonymous(${fnArgs}
          ) { ${fnBody}
          })`;
            // Using eval directly confuses the compiler and prevents this module from
            // being stripped out of JS binaries even if not used. The global['eval']
            // indirection fixes that.
            const fn = _global['eval'](trustedScriptFromString(body));
            if (fn.bind === undefined) {
              // Workaround for a browser bug that only exists in Chrome 83, where passing
              // a TrustedScript to eval just returns the TrustedScript back without
              // evaluating it. In that case, fall back to the most straightforward
              // implementation:
              return new Function(...args);
            }
            // To completely mimic the behavior of calling "new Function", two more
            // things need to happen:
            // 1. Stringifying the resulting function should return its source code
            fn.toString = () => body;
            // 2. When calling the resulting function, `this` should refer to `global`
            return fn.bind(_global);
            // When Trusted Types support in Function constructors is widely available,
            // the implementation of this function can be simplified to:
            // return new Function(...args.map(a => trustedScriptFromString(a)));
          }
          
          /**
           * Validation function invoked at runtime for each binding that might potentially
           * represent a security-sensitive attribute of an <iframe>.
           * See `IFRAME_SECURITY_SENSITIVE_ATTRS` in the
           * `packages/compiler/src/schema/dom_security_schema.ts` script for the full list
           * of such attributes.
           *
           * @codeGenApi
           */
          function ɵɵvalidateIframeAttribute(attrValue, tagName, attrName) {
            const lView = getLView();
            const tNode = getSelectedTNode();
            const element = getNativeByTNode(tNode, lView);
            // Restrict any dynamic bindings of security-sensitive attributes/properties
            // on an <iframe> for security reasons.
            if (tNode.type === 2 /* TNodeType.Element */ && tagName.toLowerCase() === 'iframe') {
              const iframe = element;
              // Unset previously applied `src` and `srcdoc` if we come across a situation when
              // a security-sensitive attribute is set later via an attribute/property binding.
              iframe.src = '';
              iframe.srcdoc = trustedHTMLFromString('');
              // Also remove the <iframe> from the document.
              nativeRemoveNode(lView[RENDERER], iframe);
              const errorMessage = ngDevMode && `Angular has detected that the \`${attrName}\` was applied ` + `as a binding to an <iframe>${getTemplateLocationDetails(lView)}. ` + `For security reasons, the \`${attrName}\` can be set on an <iframe> ` + `as a static attribute only. \n` + `To fix this, switch the \`${attrName}\` binding to a static attribute ` + `in a template or in host bindings section.`;
              throw new RuntimeError(-910 /* RuntimeErrorCode.UNSAFE_IFRAME_ATTRS */, errorMessage);
            }
            return attrValue;
          }
          
          /**
           * Most of the use of `document` in Angular is from within the DI system so it is possible to simply
           * inject the `DOCUMENT` token and are done.
           *
           * Ivy is special because it does not rely upon the DI and must get hold of the document some other
           * way.
           *
           * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.
           * Wherever ivy needs the global document, it calls `getDocument()` instead.
           *
           * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to
           * tell ivy what the global `document` is.
           *
           * Angular does this for us in each of the standard platforms (`Browser` and `Server`)
           * by calling `setDocument()` when providing the `DOCUMENT` token.
           */
          let DOCUMENT = undefined;
          /**
           * Tell ivy what the `document` is for this platform.
           *
           * It is only necessary to call this if the current platform is not a browser.
           *
           * @param document The object representing the global `document` in this environment.
           */
          function setDocument(document) {
            DOCUMENT = document;
          }
          /**
           * Access the object that represents the `document` for this platform.
           *
           * Ivy calls this whenever it needs to access the `document` object.
           * For example to create the renderer or to do sanitization.
           */
          function getDocument() {
            if (DOCUMENT !== undefined) {
              return DOCUMENT;
            } else if (typeof document !== 'undefined') {
              return document;
            }
            throw new RuntimeError(210 /* RuntimeErrorCode.MISSING_DOCUMENT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);
            // No "document" can be found. This should only happen if we are running ivy outside Angular and
            // the current platform is not a browser. Since this is not a supported scenario at the moment
            // this should not happen in Angular apps.
            // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a
            // public API.
          }
          
          /**
           * @fileoverview
           * A module to facilitate use of a Trusted Types policy internally within
           * Angular specifically for bypassSecurityTrust* and custom sanitizers. It
           * lazily constructs the Trusted Types policy, providing helper utilities for
           * promoting strings to Trusted Types. When Trusted Types are not available,
           * strings are used as a fallback.
           * @security All use of this module is security-sensitive and should go through
           * security review.
           */
          /**
           * The Trusted Types policy, or null if Trusted Types are not
           * enabled/supported, or undefined if the policy has not been created yet.
           */
          let policy;
          /**
           * Returns the Trusted Types policy, or null if Trusted Types are not
           * enabled/supported. The first call to this function will create the policy.
           */
          function getPolicy() {
            if (policy === undefined) {
              policy = null;
              if (_global.trustedTypes) {
                try {
                  policy = _global.trustedTypes.createPolicy('angular#unsafe-bypass', {
                    createHTML: s => s,
                    createScript: s => s,
                    createScriptURL: s => s
                  });
                } catch {
                  // trustedTypes.createPolicy throws if called with a name that is
                  // already registered, even in report-only mode. Until the API changes,
                  // catch the error not to break the applications functionally. In such
                  // cases, the code will fall back to using strings.
                }
              }
            }
            return policy;
          }
          /**
           * Unsafely promote a string to a TrustedHTML, falling back to strings when
           * Trusted Types are not available.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that it
           * is only passed strings that come directly from custom sanitizers or the
           * bypassSecurityTrust* functions.
           */
          function trustedHTMLFromStringBypass(html) {
            return getPolicy()?.createHTML(html) || html;
          }
          /**
           * Unsafely promote a string to a TrustedScript, falling back to strings when
           * Trusted Types are not available.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that it
           * is only passed strings that come directly from custom sanitizers or the
           * bypassSecurityTrust* functions.
           */
          function trustedScriptFromStringBypass(script) {
            return getPolicy()?.createScript(script) || script;
          }
          /**
           * Unsafely promote a string to a TrustedScriptURL, falling back to strings
           * when Trusted Types are not available.
           * @security This is a security-sensitive function; any use of this function
           * must go through security review. In particular, it must be assured that it
           * is only passed strings that come directly from custom sanitizers or the
           * bypassSecurityTrust* functions.
           */
          function trustedScriptURLFromStringBypass(url) {
            return getPolicy()?.createScriptURL(url) || url;
          }
          class SafeValueImpl {
            constructor(changingThisBreaksApplicationSecurity) {
              this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;
            }
            toString() {
              return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` + ` (see ${XSS_SECURITY_URL})`;
            }
          }
          class SafeHtmlImpl extends SafeValueImpl {
            getTypeName() {
              return "HTML" /* BypassType.Html */;
            }
          }
          
          class SafeStyleImpl extends SafeValueImpl {
            getTypeName() {
              return "Style" /* BypassType.Style */;
            }
          }
          
          class SafeScriptImpl extends SafeValueImpl {
            getTypeName() {
              return "Script" /* BypassType.Script */;
            }
          }
          
          class SafeUrlImpl extends SafeValueImpl {
            getTypeName() {
              return "URL" /* BypassType.Url */;
            }
          }
          
          class SafeResourceUrlImpl extends SafeValueImpl {
            getTypeName() {
              return "ResourceURL" /* BypassType.ResourceUrl */;
            }
          }
          
          function unwrapSafeValue(value) {
            return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity : value;
          }
          function allowSanitizationBypassAndThrow(value, type) {
            const actualType = getSanitizationBypassType(value);
            if (actualType != null && actualType !== type) {
              // Allow ResourceURLs in URL contexts, they are strictly more trusted.
              if (actualType === "ResourceURL" /* BypassType.ResourceUrl */ && type === "URL" /* BypassType.Url */) return true;
              throw new Error(`Required a safe ${type}, got a ${actualType} (see ${XSS_SECURITY_URL})`);
            }
            return actualType === type;
          }
          function getSanitizationBypassType(value) {
            return value instanceof SafeValueImpl && value.getTypeName() || null;
          }
          /**
           * Mark `html` string as trusted.
           *
           * This function wraps the trusted string in `String` and brands it in a way which makes it
           * recognizable to {@link htmlSanitizer} to be trusted implicitly.
           *
           * @param trustedHtml `html` string which needs to be implicitly trusted.
           * @returns a `html` which has been branded to be implicitly trusted.
           */
          function bypassSanitizationTrustHtml(trustedHtml) {
            return new SafeHtmlImpl(trustedHtml);
          }
          /**
           * Mark `style` string as trusted.
           *
           * This function wraps the trusted string in `String` and brands it in a way which makes it
           * recognizable to {@link styleSanitizer} to be trusted implicitly.
           *
           * @param trustedStyle `style` string which needs to be implicitly trusted.
           * @returns a `style` hich has been branded to be implicitly trusted.
           */
          function bypassSanitizationTrustStyle(trustedStyle) {
            return new SafeStyleImpl(trustedStyle);
          }
          /**
           * Mark `script` string as trusted.
           *
           * This function wraps the trusted string in `String` and brands it in a way which makes it
           * recognizable to {@link scriptSanitizer} to be trusted implicitly.
           *
           * @param trustedScript `script` string which needs to be implicitly trusted.
           * @returns a `script` which has been branded to be implicitly trusted.
           */
          function bypassSanitizationTrustScript(trustedScript) {
            return new SafeScriptImpl(trustedScript);
          }
          /**
           * Mark `url` string as trusted.
           *
           * This function wraps the trusted string in `String` and brands it in a way which makes it
           * recognizable to {@link urlSanitizer} to be trusted implicitly.
           *
           * @param trustedUrl `url` string which needs to be implicitly trusted.
           * @returns a `url`  which has been branded to be implicitly trusted.
           */
          function bypassSanitizationTrustUrl(trustedUrl) {
            return new SafeUrlImpl(trustedUrl);
          }
          /**
           * Mark `url` string as trusted.
           *
           * This function wraps the trusted string in `String` and brands it in a way which makes it
           * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
           *
           * @param trustedResourceUrl `url` string which needs to be implicitly trusted.
           * @returns a `url` which has been branded to be implicitly trusted.
           */
          function bypassSanitizationTrustResourceUrl(trustedResourceUrl) {
            return new SafeResourceUrlImpl(trustedResourceUrl);
          }
          
          /**
           * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML
           * that needs sanitizing.
           * Depending upon browser support we use one of two strategies for doing this.
           * Default: DOMParser strategy
           * Fallback: InertDocument strategy
           */
          function getInertBodyHelper(defaultDoc) {
            const inertDocumentHelper = new InertDocumentHelper(defaultDoc);
            return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;
          }
          /**
           * Uses DOMParser to create and fill an inert body element.
           * This is the default strategy used in browsers that support it.
           */
          class DOMParserHelper {
            constructor(inertDocumentHelper) {
              this.inertDocumentHelper = inertDocumentHelper;
            }
            getInertBodyElement(html) {
              // We add these extra elements to ensure that the rest of the content is parsed as expected
              // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the
              // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags
              // in `html` from consuming the otherwise explicit `</body>` tag.
              html = '<body><remove></remove>' + html;
              try {
                const body = new window.DOMParser().parseFromString(trustedHTMLFromString(html), 'text/html').body;
                if (body === null) {
                  // In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only
                  // becomes available in the following tick of the JS engine. In that case we fall back to
                  // the `inertDocumentHelper` instead.
                  return this.inertDocumentHelper.getInertBodyElement(html);
                }
                body.removeChild(body.firstChild);
                return body;
              } catch {
                return null;
              }
            }
          }
          /**
           * Use an HTML5 `template` element to create and fill an inert DOM element.
           * This is the fallback strategy if the browser does not support DOMParser.
           */
          class InertDocumentHelper {
            constructor(defaultDoc) {
              this.defaultDoc = defaultDoc;
              this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
            }
            getInertBodyElement(html) {
              const templateEl = this.inertDocument.createElement('template');
              templateEl.innerHTML = trustedHTMLFromString(html);
              return templateEl;
            }
          }
          /**
           * We need to determine whether the DOMParser exists in the global context and
           * supports parsing HTML; HTML parsing support is not as wide as other formats, see
           * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.
           *
           * @suppress {uselessCode}
           */
          function isDOMParserAvailable() {
            try {
              return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');
            } catch {
              return false;
            }
          }
          
          /**
           * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation
           * contexts.
           *
           * This regular expression matches a subset of URLs that will not cause script
           * execution if used in URL context within a HTML document. Specifically, this
           * regular expression matches if:
           * (1) Either a protocol that is not javascript:, and that has valid characters
           *     (alphanumeric or [+-.]).
           * (2) or no protocol.  A protocol must be followed by a colon. The below
           *     allows that by allowing colons only after one of the characters [/?#].
           *     A colon after a hash (#) must be in the fragment.
           *     Otherwise, a colon after a (?) must be in a query.
           *     Otherwise, a colon after a single solidus (/) must be in a path.
           *     Otherwise, a colon after a double solidus (//) must be in the authority
           *     (before port).
           *
           * The pattern disallows &, used in HTML entity declarations before
           * one of the characters in [/?#]. This disallows HTML entities used in the
           * protocol name, which should never happen, e.g. "h&#116;tp" for "http".
           * It also disallows HTML entities in the first path part of a relative path,
           * e.g. "foo&lt;bar/baz".  Our existing escaping functions should not produce
           * that. More importantly, it disallows masking of a colon,
           * e.g. "javascript&#58;...".
           *
           * This regular expression was taken from the Closure sanitization library.
           */
          const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;
          function _sanitizeUrl(url) {
            url = String(url);
            if (url.match(SAFE_URL_PATTERN)) return url;
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              console.warn(`WARNING: sanitizing unsafe URL value ${url} (see ${XSS_SECURITY_URL})`);
            }
            return 'unsafe:' + url;
          }
          function tagSet(tags) {
            const res = {};
            for (const t of tags.split(',')) res[t] = true;
            return res;
          }
          function merge(...sets) {
            const res = {};
            for (const s of sets) {
              for (const v in s) {
                if (s.hasOwnProperty(v)) res[v] = true;
              }
            }
            return res;
          }
          // Good source of info about elements and attributes
          // https://html.spec.whatwg.org/#semantics
          // https://simon.html5.org/html-elements
          // Safe Void Elements - HTML5
          // https://html.spec.whatwg.org/#void-elements
          const VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');
          // Elements that you can, intentionally, leave open (and which close themselves)
          // https://html.spec.whatwg.org/#optional-tags
          const OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');
          const OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');
          const OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);
          // Safe Block Elements - HTML5
          const BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' + 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));
          // Inline Elements - HTML5
          const INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' + 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));
          const VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);
          // Attributes that have href and hence need to be sanitized
          const URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');
          const HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' + 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' + 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' + 'scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,' + 'valign,value,vspace,width');
          // Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)
          const ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' + 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' + 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' + 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' + 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' + 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' + 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext');
          // NB: This currently consciously doesn't support SVG. SVG sanitization has had several security
          // issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via
          // innerHTML is required, SVG attributes should be added here.
          // NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those
          // can be sanitized, but they increase security surface area without a legitimate use case, so they
          // are left out here.
          const VALID_ATTRS = merge(URI_ATTRS, HTML_ATTRS, ARIA_ATTRS);
          // Elements whose content should not be traversed/preserved, if the elements themselves are invalid.
          //
          // Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)
          // `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we
          // don't want to preserve the content, if the elements themselves are going to be removed.
          const SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');
          /**
           * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe
           * attributes.
           */
          class SanitizingHtmlSerializer {
            constructor() {
              // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just
              // because characters were re-encoded.
              this.sanitizedSomething = false;
              this.buf = [];
            }
            sanitizeChildren(el) {
              // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.
              // However this code never accesses properties off of `document` before deleting its contents
              // again, so it shouldn't be vulnerable to DOM clobbering.
              let current = el.firstChild;
              let traverseContent = true;
              while (current) {
                if (current.nodeType === Node.ELEMENT_NODE) {
                  traverseContent = this.startElement(current);
                } else if (current.nodeType === Node.TEXT_NODE) {
                  this.chars(current.nodeValue);
                } else {
                  // Strip non-element, non-text nodes.
                  this.sanitizedSomething = true;
                }
                if (traverseContent && current.firstChild) {
                  current = current.firstChild;
                  continue;
                }
                while (current) {
                  // Leaving the element. Walk up and to the right, closing tags as we go.
                  if (current.nodeType === Node.ELEMENT_NODE) {
                    this.endElement(current);
                  }
                  let next = this.checkClobberedElement(current, current.nextSibling);
                  if (next) {
                    current = next;
                    break;
                  }
                  current = this.checkClobberedElement(current, current.parentNode);
                }
              }
              return this.buf.join('');
            }
            /**
             * Sanitizes an opening element tag (if valid) and returns whether the element's contents should
             * be traversed. Element content must always be traversed (even if the element itself is not
             * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.
             *
             * @param element The element to sanitize.
             * @return True if the element's contents should be traversed.
             */
            startElement(element) {
              const tagName = element.nodeName.toLowerCase();
              if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {
                this.sanitizedSomething = true;
                return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);
              }
              this.buf.push('<');
              this.buf.push(tagName);
              const elAttrs = element.attributes;
              for (let i = 0; i < elAttrs.length; i++) {
                const elAttr = elAttrs.item(i);
                const attrName = elAttr.name;
                const lower = attrName.toLowerCase();
                if (!VALID_ATTRS.hasOwnProperty(lower)) {
                  this.sanitizedSomething = true;
                  continue;
                }
                let value = elAttr.value;
                // TODO(martinprobst): Special case image URIs for data:image/...
                if (URI_ATTRS[lower]) value = _sanitizeUrl(value);
                this.buf.push(' ', attrName, '="', encodeEntities(value), '"');
              }
              this.buf.push('>');
              return true;
            }
            endElement(current) {
              const tagName = current.nodeName.toLowerCase();
              if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {
                this.buf.push('</');
                this.buf.push(tagName);
                this.buf.push('>');
              }
            }
            chars(chars) {
              this.buf.push(encodeEntities(chars));
            }
            checkClobberedElement(node, nextNode) {
              if (nextNode && (node.compareDocumentPosition(nextNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) === Node.DOCUMENT_POSITION_CONTAINED_BY) {
                throw new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);
              }
              return nextNode;
            }
          }
          // Regular Expressions for parsing tags and attributes
          const SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
          // ! to ~ is the ASCII range.
          const NON_ALPHANUMERIC_REGEXP = /([^\#-~ |!])/g;
          /**
           * Escapes all potentially dangerous characters, so that the
           * resulting string can be safely inserted into attribute or
           * element text.
           * @param value
           */
          function encodeEntities(value) {
            return value.replace(/&/g, '&amp;').replace(SURROGATE_PAIR_REGEXP, function (match) {
              const hi = match.charCodeAt(0);
              const low = match.charCodeAt(1);
              return '&#' + ((hi - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000) + ';';
            }).replace(NON_ALPHANUMERIC_REGEXP, function (match) {
              return '&#' + match.charCodeAt(0) + ';';
            }).replace(/</g, '&lt;').replace(/>/g, '&gt;');
          }
          let inertBodyHelper;
          /**
           * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
           * the DOM in a browser environment.
           */
          function _sanitizeHtml(defaultDoc, unsafeHtmlInput) {
            let inertBodyElement = null;
            try {
              inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);
              // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).
              let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';
              inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
              // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser
              // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.
              let mXSSAttempts = 5;
              let parsedHtml = unsafeHtml;
              do {
                if (mXSSAttempts === 0) {
                  throw new Error('Failed to sanitize html because the input is unstable');
                }
                mXSSAttempts--;
                unsafeHtml = parsedHtml;
                parsedHtml = inertBodyElement.innerHTML;
                inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
              } while (unsafeHtml !== parsedHtml);
              const sanitizer = new SanitizingHtmlSerializer();
              const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {
                console.warn(`WARNING: sanitizing HTML stripped some content, see ${XSS_SECURITY_URL}`);
              }
              return trustedHTMLFromString(safeHtml);
            } finally {
              // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.
              if (inertBodyElement) {
                const parent = getTemplateContent(inertBodyElement) || inertBodyElement;
                while (parent.firstChild) {
                  parent.removeChild(parent.firstChild);
                }
              }
            }
          }
          function getTemplateContent(el) {
            return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ? el.content : null;
          }
          function isTemplateElement(el) {
            return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';
          }
          
          /**
           * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property
           * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly
           * handled.
           *
           * See DomSanitizer for more details on security in Angular applications.
           *
           * @publicApi
           */
          var SecurityContext;
          (function (SecurityContext) {
            SecurityContext[SecurityContext["NONE"] = 0] = "NONE";
            SecurityContext[SecurityContext["HTML"] = 1] = "HTML";
            SecurityContext[SecurityContext["STYLE"] = 2] = "STYLE";
            SecurityContext[SecurityContext["SCRIPT"] = 3] = "SCRIPT";
            SecurityContext[SecurityContext["URL"] = 4] = "URL";
            SecurityContext[SecurityContext["RESOURCE_URL"] = 5] = "RESOURCE_URL";
          })(SecurityContext || (SecurityContext = {}));
          
          /**
           * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing
           * dangerous content.
           *
           * This method parses the `html` and locates potentially dangerous content (such as urls and
           * javascript) and removes it.
           *
           * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.
           *
           * @param unsafeHtml untrusted `html`, typically from the user.
           * @returns `html` string which is safe to display to user, because all of the dangerous javascript
           * and urls have been removed.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeHtml(unsafeHtml) {
            const sanitizer = getSanitizer();
            if (sanitizer) {
              return trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '');
            }
            if (allowSanitizationBypassAndThrow(unsafeHtml, "HTML" /* BypassType.Html */)) {
              return trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml));
            }
            return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));
          }
          /**
           * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing
           * dangerous content.
           *
           * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.
           *
           * @param unsafeStyle untrusted `style`, typically from the user.
           * @returns `style` string which is safe to bind to the `style` properties.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeStyle(unsafeStyle) {
            const sanitizer = getSanitizer();
            if (sanitizer) {
              return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';
            }
            if (allowSanitizationBypassAndThrow(unsafeStyle, "Style" /* BypassType.Style */)) {
              return unwrapSafeValue(unsafeStyle);
            }
            return renderStringify(unsafeStyle);
          }
          /**
           * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing
           * dangerous
           * content.
           *
           * This method parses the `url` and locates potentially dangerous content (such as javascript) and
           * removes it.
           *
           * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.
           *
           * @param unsafeUrl untrusted `url`, typically from the user.
           * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
           * all of the dangerous javascript has been removed.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeUrl(unsafeUrl) {
            const sanitizer = getSanitizer();
            if (sanitizer) {
              return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';
            }
            if (allowSanitizationBypassAndThrow(unsafeUrl, "URL" /* BypassType.Url */)) {
              return unwrapSafeValue(unsafeUrl);
            }
            return _sanitizeUrl(renderStringify(unsafeUrl));
          }
          /**
           * A `url` sanitizer which only lets trusted `url`s through.
           *
           * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.
           *
           * @param unsafeResourceUrl untrusted `url`, typically from the user.
           * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
           * only trusted `url`s have been allowed to pass.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
            const sanitizer = getSanitizer();
            if (sanitizer) {
              return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '');
            }
            if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL" /* BypassType.ResourceUrl */)) {
              return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));
            }
            throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode && `unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);
          }
          /**
           * A `script` sanitizer which only lets trusted javascript through.
           *
           * This passes only `script`s marked trusted by calling {@link
           * bypassSanitizationTrustScript}.
           *
           * @param unsafeScript untrusted `script`, typically from the user.
           * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,
           * because only trusted `scripts` have been allowed to pass.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeScript(unsafeScript) {
            const sanitizer = getSanitizer();
            if (sanitizer) {
              return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '');
            }
            if (allowSanitizationBypassAndThrow(unsafeScript, "Script" /* BypassType.Script */)) {
              return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));
            }
            throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');
          }
          /**
           * A template tag function for promoting the associated constant literal to a
           * TrustedHTML. Interpolation is explicitly not allowed.
           *
           * @param html constant template literal containing trusted HTML.
           * @returns TrustedHTML wrapping `html`.
           *
           * @security This is a security-sensitive function and should only be used to
           * convert constant values of attributes and properties found in
           * application-provided Angular templates to TrustedHTML.
           *
           * @codeGenApi
           */
          function ɵɵtrustConstantHtml(html) {
            // The following runtime check ensures that the function was called as a
            // template tag (e.g. ɵɵtrustConstantHtml`content`), without any interpolation
            // (e.g. not ɵɵtrustConstantHtml`content ${variable}`). A TemplateStringsArray
            // is an array with a `raw` property that is also an array. The associated
            // template literal has no interpolation if and only if the length of the
            // TemplateStringsArray is 1.
            if (ngDevMode && (!Array.isArray(html) || !Array.isArray(html.raw) || html.length !== 1)) {
              throw new Error(`Unexpected interpolation in trusted HTML constant: ${html.join('?')}`);
            }
            return trustedHTMLFromString(html[0]);
          }
          /**
           * A template tag function for promoting the associated constant literal to a
           * TrustedScriptURL. Interpolation is explicitly not allowed.
           *
           * @param url constant template literal containing a trusted script URL.
           * @returns TrustedScriptURL wrapping `url`.
           *
           * @security This is a security-sensitive function and should only be used to
           * convert constant values of attributes and properties found in
           * application-provided Angular templates to TrustedScriptURL.
           *
           * @codeGenApi
           */
          function ɵɵtrustConstantResourceUrl(url) {
            // The following runtime check ensures that the function was called as a
            // template tag (e.g. ɵɵtrustConstantResourceUrl`content`), without any
            // interpolation (e.g. not ɵɵtrustConstantResourceUrl`content ${variable}`). A
            // TemplateStringsArray is an array with a `raw` property that is also an
            // array. The associated template literal has no interpolation if and only if
            // the length of the TemplateStringsArray is 1.
            if (ngDevMode && (!Array.isArray(url) || !Array.isArray(url.raw) || url.length !== 1)) {
              throw new Error(`Unexpected interpolation in trusted URL constant: ${url.join('?')}`);
            }
            return trustedScriptURLFromString(url[0]);
          }
          /**
           * Detects which sanitizer to use for URL property, based on tag name and prop name.
           *
           * The rules are based on the RESOURCE_URL context config from
           * `packages/compiler/src/schema/dom_security_schema.ts`.
           * If tag and prop names don't match Resource URL schema, use URL sanitizer.
           */
          function getUrlSanitizer(tag, prop) {
            if (prop === 'src' && (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' || tag === 'script') || prop === 'href' && (tag === 'base' || tag === 'link')) {
              return ɵɵsanitizeResourceUrl;
            }
            return ɵɵsanitizeUrl;
          }
          /**
           * Sanitizes URL, selecting sanitizer function based on tag and property names.
           *
           * This function is used in case we can't define security context at compile time, when only prop
           * name is available. This happens when we generate host bindings for Directives/Components. The
           * host element is unknown at compile time, so we defer calculation of specific sanitizer to
           * runtime.
           *
           * @param unsafeUrl untrusted `url`, typically from the user.
           * @param tag target element tag name.
           * @param prop name of the property that contains the value.
           * @returns `url` string which is safe to bind.
           *
           * @codeGenApi
           */
          function ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {
            return getUrlSanitizer(tag, prop)(unsafeUrl);
          }
          function validateAgainstEventProperties(name) {
            if (name.toLowerCase().startsWith('on')) {
              const errorMessage = `Binding to event property '${name}' is disallowed for security reasons, ` + `please use (${name.slice(2)})=...` + `\nIf '${name}' is a directive input, make sure the directive is imported by the` + ` current module.`;
              throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);
            }
          }
          function validateAgainstEventAttributes(name) {
            if (name.toLowerCase().startsWith('on')) {
              const errorMessage = `Binding to event attribute '${name}' is disallowed for security reasons, ` + `please use (${name.slice(2)})=...`;
              throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);
            }
          }
          function getSanitizer() {
            const lView = getLView();
            return lView && lView[ENVIRONMENT].sanitizer;
          }
          
          /**
           * A multi-provider token for initialization functions that will run upon construction of an
           * environment injector.
           *
           * @publicApi
           */
          const ENVIRONMENT_INITIALIZER = new InjectionToken('ENVIRONMENT_INITIALIZER');
          
          /**
           * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
           *
           * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
           * project.
           *
           * @publicApi
           */
          const INJECTOR = new InjectionToken('INJECTOR',
          // Disable tslint because this is const enum which gets inlined not top level prop access.
          // tslint:disable-next-line: no-toplevel-property-access
          -1 /* InjectorMarkers.Injector */);
          
          const INJECTOR_DEF_TYPES = new InjectionToken('INJECTOR_DEF_TYPES');
          class NullInjector {
            get(token, notFoundValue = THROW_IF_NOT_FOUND) {
              if (notFoundValue === THROW_IF_NOT_FOUND) {
                const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);
                error.name = 'NullInjectorError';
                throw error;
              }
              return notFoundValue;
            }
          }
          
          /**
           * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally
           * referenced in `@Component` in a component injector.
           */
          function makeEnvironmentProviders(providers) {
            return {
              ɵproviders: providers
            };
          }
          /**
           * Collects providers from all NgModules and standalone components, including transitively imported
           * ones.
           *
           * Providers extracted via `importProvidersFrom` are only usable in an application injector or
           * another environment injector (such as a route injector). They should not be used in component
           * providers.
           *
           * More information about standalone components can be found in [this
           * guide](guide/standalone-components).
           *
           * @usageNotes
           * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
           *
           * ```typescript
           * await bootstrapApplication(RootComponent, {
           *   providers: [
           *     importProvidersFrom(NgModuleOne, NgModuleTwo)
           *   ]
           * });
           * ```
           *
           * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
           * standalone component is used:
           *
           * ```typescript
           * export const ROUTES: Route[] = [
           *   {
           *     path: 'foo',
           *     providers: [
           *       importProvidersFrom(NgModuleOne, NgModuleTwo)
           *     ],
           *     component: YourStandaloneComponent
           *   }
           * ];
           * ```
           *
           * @returns Collected providers from the specified list of types.
           * @publicApi
           */
          function importProvidersFrom(...sources) {
            return {
              ɵproviders: internalImportProvidersFrom(true, sources),
              ɵfromNgModule: true
            };
          }
          function internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {
            const providersOut = [];
            const dedup = new Set(); // already seen types
            let injectorTypesWithProviders;
            const collectProviders = provider => {
              providersOut.push(provider);
            };
            deepForEach(sources, source => {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {
                const cmpDef = getComponentDef(source);
                if (cmpDef?.standalone) {
                  throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${stringifyForError(source)}"`);
                }
              }
              // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.
              const internalSource = source;
              if (walkProviderTree(internalSource, collectProviders, [], dedup)) {
                injectorTypesWithProviders ||= [];
                injectorTypesWithProviders.push(internalSource);
              }
            });
            // Collect all providers from `ModuleWithProviders` types.
            if (injectorTypesWithProviders !== undefined) {
              processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);
            }
            return providersOut;
          }
          /**
           * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided
           * array.
           */
          function processInjectorTypesWithProviders(typesWithProviders, visitor) {
            for (let i = 0; i < typesWithProviders.length; i++) {
              const {
                ngModule,
                providers
              } = typesWithProviders[i];
              deepForEachProvider(providers, provider => {
                ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);
                visitor(provider, ngModule);
              });
            }
          }
          /**
           * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone
           * `ComponentType`, and all of its transitive providers and collects providers.
           *
           * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,
           * the function will return "true" to indicate that the providers of the type definition need
           * to be processed. This allows us to process providers of injector types after all imports of
           * an injector definition are processed. (following View Engine semantics: see FW-1349)
           */
          function walkProviderTree(container, visitor, parents, dedup) {
            container = resolveForwardRef(container);
            if (!container) return false;
            // The actual type which had the definition. Usually `container`, but may be an unwrapped type
            // from `InjectorTypeWithProviders`.
            let defType = null;
            let injDef = getInjectorDef(container);
            const cmpDef = !injDef && getComponentDef(container);
            if (!injDef && !cmpDef) {
              // `container` is not an injector type or a component type. It might be:
              //  * An `InjectorTypeWithProviders` that wraps an injector type.
              //  * A standalone directive or pipe that got pulled in from a standalone component's
              //    dependencies.
              // Try to unwrap it as an `InjectorTypeWithProviders` first.
              const ngModule = container.ngModule;
              injDef = getInjectorDef(ngModule);
              if (injDef) {
                defType = ngModule;
              } else {
                // Not a component or injector type, so ignore it.
                return false;
              }
            } else if (cmpDef && !cmpDef.standalone) {
              return false;
            } else {
              defType = container;
            }
            // Check for circular dependencies.
            if (ngDevMode && parents.indexOf(defType) !== -1) {
              const defName = stringify(defType);
              const path = parents.map(stringify);
              throwCyclicDependencyError(defName, path);
            }
            // Check for multiple imports of the same module
            const isDuplicate = dedup.has(defType);
            if (cmpDef) {
              if (isDuplicate) {
                // This component definition has already been processed.
                return false;
              }
              dedup.add(defType);
              if (cmpDef.dependencies) {
                const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;
                for (const dep of deps) {
                  walkProviderTree(dep, visitor, parents, dedup);
                }
              }
            } else if (injDef) {
              // First, include providers from any imports.
              if (injDef.imports != null && !isDuplicate) {
                // Before processing defType's imports, add it to the set of parents. This way, if it ends
                // up deeply importing itself, this can be detected.
                ngDevMode && parents.push(defType);
                // Add it to the set of dedups. This way we can detect multiple imports of the same module
                dedup.add(defType);
                let importTypesWithProviders;
                try {
                  deepForEach(injDef.imports, imported => {
                    if (walkProviderTree(imported, visitor, parents, dedup)) {
                      importTypesWithProviders ||= [];
                      // If the processed import is an injector type with providers, we store it in the
                      // list of import types with providers, so that we can process those afterwards.
                      importTypesWithProviders.push(imported);
                    }
                  });
                } finally {
                  // Remove it from the parents set when finished.
                  ngDevMode && parents.pop();
                }
                // Imports which are declared with providers (TypeWithProviders) need to be processed
                // after all imported modules are processed. This is similar to how View Engine
                // processes/merges module imports in the metadata resolver. See: FW-1349.
                if (importTypesWithProviders !== undefined) {
                  processInjectorTypesWithProviders(importTypesWithProviders, visitor);
                }
              }
              if (!isDuplicate) {
                // Track the InjectorType and add a provider for it.
                // It's important that this is done after the def's imports.
                const factory = getFactoryDef(defType) || (() => new defType());
                // Append extra providers to make more info available for consumers (to retrieve an injector
                // type), as well as internally (to calculate an injection scope correctly and eagerly
                // instantiate a `defType` when an injector is created).
                // Provider to create `defType` using its factory.
                visitor({
                  provide: defType,
                  useFactory: factory,
                  deps: EMPTY_ARRAY
                }, defType);
                // Make this `defType` available to an internal logic that calculates injector scope.
                visitor({
                  provide: INJECTOR_DEF_TYPES,
                  useValue: defType,
                  multi: true
                }, defType);
                // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.
                visitor({
                  provide: ENVIRONMENT_INITIALIZER,
                  useValue: () => ɵɵinject(defType),
                  multi: true
                }, defType);
              }
              // Next, include providers listed on the definition itself.
              const defProviders = injDef.providers;
              if (defProviders != null && !isDuplicate) {
                const injectorType = container;
                deepForEachProvider(defProviders, provider => {
                  ngDevMode && validateProvider(provider, defProviders, injectorType);
                  visitor(provider, injectorType);
                });
              }
            } else {
              // Should not happen, but just in case.
              return false;
            }
            return defType !== container && container.providers !== undefined;
          }
          function validateProvider(provider, providers, containerType) {
            if (isTypeProvider(provider) || isValueProvider(provider) || isFactoryProvider(provider) || isExistingProvider(provider)) {
              return;
            }
            // Here we expect the provider to be a `useClass` provider (by elimination).
            const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));
            if (!classRef) {
              throwInvalidProviderError(containerType, providers, provider);
            }
          }
          function deepForEachProvider(providers, fn) {
            for (let provider of providers) {
              if (isEnvironmentProviders(provider)) {
                provider = provider.ɵproviders;
              }
              if (Array.isArray(provider)) {
                deepForEachProvider(provider, fn);
              } else {
                fn(provider);
              }
            }
          }
          const USE_VALUE$1 = getClosureSafeProperty({
            provide: String,
            useValue: getClosureSafeProperty
          });
          function isValueProvider(value) {
            return value !== null && typeof value == 'object' && USE_VALUE$1 in value;
          }
          function isExistingProvider(value) {
            return !!(value && value.useExisting);
          }
          function isFactoryProvider(value) {
            return !!(value && value.useFactory);
          }
          function isTypeProvider(value) {
            return typeof value === 'function';
          }
          function isClassProvider(value) {
            return !!value.useClass;
          }
          
          /**
           * An internal token whose presence in an injector indicates that the injector should treat itself
           * as a root scoped injector when processing requests for unknown tokens which may indicate
           * they are provided in the root scope.
           */
          const INJECTOR_SCOPE = new InjectionToken('Set Injector scope.');
          
          /**
           * Marker which indicates that a value has not yet been created from the factory function.
           */
          const NOT_YET = {};
          /**
           * Marker which indicates that the factory function for a token is in the process of being called.
           *
           * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates
           * injection of a dependency has recursively attempted to inject the original token, and there is
           * a circular dependency among the providers.
           */
          const CIRCULAR = {};
          /**
           * A lazily initialized NullInjector.
           */
          let NULL_INJECTOR = undefined;
          function getNullInjector() {
            if (NULL_INJECTOR === undefined) {
              NULL_INJECTOR = new NullInjector();
            }
            return NULL_INJECTOR;
          }
          /**
           * An `Injector` that's part of the environment injector hierarchy, which exists outside of the
           * component tree.
           */
          class EnvironmentInjector {}
          class R3Injector extends EnvironmentInjector {
            /**
             * Flag indicating that this injector was previously destroyed.
             */
            get destroyed() {
              return this._destroyed;
            }
            constructor(providers, parent, source, scopes) {
              super();
              this.parent = parent;
              this.source = source;
              this.scopes = scopes;
              /**
               * Map of tokens to records which contain the instances of those tokens.
               * - `null` value implies that we don't have the record. Used by tree-shakable injectors
               * to prevent further searches.
               */
              this.records = new Map();
              /**
               * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.
               */
              this._ngOnDestroyHooks = new Set();
              this._onDestroyHooks = [];
              this._destroyed = false;
              // Start off by creating Records for every provider.
              forEachSingleProvider(providers, provider => this.processProvider(provider));
              // Make sure the INJECTOR token provides this injector.
              this.records.set(INJECTOR, makeRecord(undefined, this));
              // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.
              if (scopes.has('environment')) {
                this.records.set(EnvironmentInjector, makeRecord(undefined, this));
              }
              // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide
              // any injectable scoped to APP_ROOT_SCOPE.
              const record = this.records.get(INJECTOR_SCOPE);
              if (record != null && typeof record.value === 'string') {
                this.scopes.add(record.value);
              }
              this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES.multi, EMPTY_ARRAY, InjectFlags.Self));
            }
            /**
             * Destroy the injector and release references to every instance or provider associated with it.
             *
             * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a
             * hook was found.
             */
            destroy() {
              this.assertNotDestroyed();
              // Set destroyed = true first, in case lifecycle hooks re-enter destroy().
              this._destroyed = true;
              try {
                // Call all the lifecycle hooks.
                for (const service of this._ngOnDestroyHooks) {
                  service.ngOnDestroy();
                }
                const onDestroyHooks = this._onDestroyHooks;
                // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister
                // themselves from mutating the array during iteration.
                this._onDestroyHooks = [];
                for (const hook of onDestroyHooks) {
                  hook();
                }
              } finally {
                // Release all references.
                this.records.clear();
                this._ngOnDestroyHooks.clear();
                this.injectorDefTypes.clear();
              }
            }
            onDestroy(callback) {
              this.assertNotDestroyed();
              this._onDestroyHooks.push(callback);
              return () => this.removeOnDestroy(callback);
            }
            runInContext(fn) {
              this.assertNotDestroyed();
              const previousInjector = setCurrentInjector(this);
              const previousInjectImplementation = setInjectImplementation(undefined);
              let prevInjectContext;
              if (ngDevMode) {
                prevInjectContext = setInjectorProfilerContext({
                  injector: this,
                  token: null
                });
              }
              try {
                return fn();
              } finally {
                setCurrentInjector(previousInjector);
                setInjectImplementation(previousInjectImplementation);
                ngDevMode && setInjectorProfilerContext(prevInjectContext);
              }
            }
            get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {
              this.assertNotDestroyed();
              if (token.hasOwnProperty(NG_ENV_ID)) {
                return token[NG_ENV_ID](this);
              }
              flags = convertToBitFlags(flags);
              // Set the injection context.
              let prevInjectContext;
              if (ngDevMode) {
                prevInjectContext = setInjectorProfilerContext({
                  injector: this,
                  token: token
                });
              }
              const previousInjector = setCurrentInjector(this);
              const previousInjectImplementation = setInjectImplementation(undefined);
              try {
                // Check for the SkipSelf flag.
                if (!(flags & InjectFlags.SkipSelf)) {
                  // SkipSelf isn't set, check if the record belongs to this injector.
                  let record = this.records.get(token);
                  if (record === undefined) {
                    // No record, but maybe the token is scoped to this injector. Look for an injectable
                    // def with a scope matching this injector.
                    const def = couldBeInjectableType(token) && getInjectableDef(token);
                    if (def && this.injectableDefInScope(def)) {
                      // Found an injectable def and it's scoped to this injector. Pretend as if it was here
                      // all along.
                      if (ngDevMode) {
                        runInInjectorProfilerContext(this, token, () => {
                          emitProviderConfiguredEvent(token);
                        });
                      }
                      record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);
                    } else {
                      record = null;
                    }
                    this.records.set(token, record);
                  }
                  // If a record was found, get the instance for it and return it.
                  if (record != null /* NOT null || undefined */) {
                    return this.hydrate(token, record);
                  }
                }
                // Select the next injector based on the Self flag - if self is set, the next injector is
                // the NullInjector, otherwise it's the parent.
                const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();
                // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue
                // is undefined, the value is null, otherwise it's the notFoundValue.
                notFoundValue = flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;
                return nextInjector.get(token, notFoundValue);
              } catch (e) {
                if (e.name === 'NullInjectorError') {
                  const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];
                  path.unshift(stringify(token));
                  if (previousInjector) {
                    // We still have a parent injector, keep throwing
                    throw e;
                  } else {
                    // Format & throw the final error message when we don't have any previous injector
                    return catchInjectorError(e, token, 'R3InjectorError', this.source);
                  }
                } else {
                  throw e;
                }
              } finally {
                // Lastly, restore the previous injection context.
                setInjectImplementation(previousInjectImplementation);
                setCurrentInjector(previousInjector);
                ngDevMode && setInjectorProfilerContext(prevInjectContext);
              }
            }
            /** @internal */
            resolveInjectorInitializers() {
              const previousInjector = setCurrentInjector(this);
              const previousInjectImplementation = setInjectImplementation(undefined);
              let prevInjectContext;
              if (ngDevMode) {
                prevInjectContext = setInjectorProfilerContext({
                  injector: this,
                  token: null
                });
              }
              try {
                const initializers = this.get(ENVIRONMENT_INITIALIZER.multi, EMPTY_ARRAY, InjectFlags.Self);
                if (ngDevMode && !Array.isArray(initializers)) {
                  throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' + `(expected an array, but got ${typeof initializers}). ` + 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' + '`multi: true` provider.');
                }
                for (const initializer of initializers) {
                  initializer();
                }
              } finally {
                setCurrentInjector(previousInjector);
                setInjectImplementation(previousInjectImplementation);
                ngDevMode && setInjectorProfilerContext(prevInjectContext);
              }
            }
            toString() {
              const tokens = [];
              const records = this.records;
              for (const token of records.keys()) {
                tokens.push(stringify(token));
              }
              return `R3Injector[${tokens.join(', ')}]`;
            }
            assertNotDestroyed() {
              if (this._destroyed) {
                throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');
              }
            }
            /**
             * Process a `SingleProvider` and add it.
             */
            processProvider(provider) {
              // Determine the token from the provider. Either it's its own token, or has a {provide: ...}
              // property.
              provider = resolveForwardRef(provider);
              let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);
              // Construct a `Record` for the provider.
              const record = providerToRecord(provider);
              if (ngDevMode) {
                runInInjectorProfilerContext(this, token, () => {
                  // Emit InjectorProfilerEventType.Create if provider is a value provider because
                  // these are the only providers that do not go through the value hydration logic
                  // where this event would normally be emitted from.
                  if (isValueProvider(provider)) {
                    emitInstanceCreatedByInjectorEvent(provider.useValue);
                  }
                  emitProviderConfiguredEvent(provider);
                });
              }
              if (!isTypeProvider(provider) && provider.multi === true) {
                // If the provider indicates that it's a multi-provider, process it specially.
                // First check whether it's been defined already.
                let multiRecord = this.records.get(token);
                if (multiRecord) {
                  // It has. Throw a nice error if
                  if (ngDevMode && multiRecord.multi === undefined) {
                    throwMixedMultiProviderError();
                  }
                } else {
                  multiRecord = makeRecord(undefined, NOT_YET, true);
                  multiRecord.factory = () => injectArgs(multiRecord.multi);
                  this.records.set(token, multiRecord);
                }
                token = provider;
                multiRecord.multi.push(provider);
              } else {
                const existing = this.records.get(token);
                if (ngDevMode && existing && existing.multi !== undefined) {
                  throwMixedMultiProviderError();
                }
              }
              this.records.set(token, record);
            }
            hydrate(token, record) {
              if (ngDevMode && record.value === CIRCULAR) {
                throwCyclicDependencyError(stringify(token));
              } else if (record.value === NOT_YET) {
                record.value = CIRCULAR;
                if (ngDevMode) {
                  runInInjectorProfilerContext(this, token, () => {
                    record.value = record.factory();
                    emitInstanceCreatedByInjectorEvent(record.value);
                  });
                } else {
                  record.value = record.factory();
                }
              }
              if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {
                this._ngOnDestroyHooks.add(record.value);
              }
              return record.value;
            }
            injectableDefInScope(def) {
              if (!def.providedIn) {
                return false;
              }
              const providedIn = resolveForwardRef(def.providedIn);
              if (typeof providedIn === 'string') {
                return providedIn === 'any' || this.scopes.has(providedIn);
              } else {
                return this.injectorDefTypes.has(providedIn);
              }
            }
            removeOnDestroy(callback) {
              const destroyCBIdx = this._onDestroyHooks.indexOf(callback);
              if (destroyCBIdx !== -1) {
                this._onDestroyHooks.splice(destroyCBIdx, 1);
              }
            }
          }
          function injectableDefOrInjectorDefFactory(token) {
            // Most tokens will have an injectable def directly on them, which specifies a factory directly.
            const injectableDef = getInjectableDef(token);
            const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);
            if (factory !== null) {
              return factory;
            }
            // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.
            // If it's missing that, it's an error.
            if (token instanceof InjectionToken) {
              throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);
            }
            // Undecorated types can sometimes be created if they have no constructor arguments.
            if (token instanceof Function) {
              return getUndecoratedInjectableFactory(token);
            }
            // There was no way to resolve a factory for this token.
            throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');
          }
          function getUndecoratedInjectableFactory(token) {
            // If the token has parameters then it has dependencies that we cannot resolve implicitly.
            const paramLength = token.length;
            if (paramLength > 0) {
              const args = newArray(paramLength, '?');
              throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Can't resolve all parameters for ${stringify(token)}: (${args.join(', ')}).`);
            }
            // The constructor function appears to have no parameters.
            // This might be because it inherits from a super-class. In which case, use an injectable
            // def from an ancestor if there is one.
            // Otherwise this really is a simple class with no dependencies, so return a factory that
            // just instantiates the zero-arg constructor.
            const inheritedInjectableDef = getInheritedInjectableDef(token);
            if (inheritedInjectableDef !== null) {
              return () => inheritedInjectableDef.factory(token);
            } else {
              return () => new token();
            }
          }
          function providerToRecord(provider) {
            if (isValueProvider(provider)) {
              return makeRecord(undefined, provider.useValue);
            } else {
              const factory = providerToFactory(provider);
              return makeRecord(factory, NOT_YET);
            }
          }
          /**
           * Converts a `SingleProvider` into a factory function.
           *
           * @param provider provider to convert to factory
           */
          function providerToFactory(provider, ngModuleType, providers) {
            let factory = undefined;
            if (ngDevMode && isEnvironmentProviders(provider)) {
              throwInvalidProviderError(undefined, providers, provider);
            }
            if (isTypeProvider(provider)) {
              const unwrappedProvider = resolveForwardRef(provider);
              return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);
            } else {
              if (isValueProvider(provider)) {
                factory = () => resolveForwardRef(provider.useValue);
              } else if (isFactoryProvider(provider)) {
                factory = () => provider.useFactory(...injectArgs(provider.deps || []));
              } else if (isExistingProvider(provider)) {
                factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));
              } else {
                const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));
                if (ngDevMode && !classRef) {
                  throwInvalidProviderError(ngModuleType, providers, provider);
                }
                if (hasDeps(provider)) {
                  factory = () => new classRef(...injectArgs(provider.deps));
                } else {
                  return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);
                }
              }
            }
            return factory;
          }
          function makeRecord(factory, value, multi = false) {
            return {
              factory: factory,
              value: value,
              multi: multi ? [] : undefined
            };
          }
          function hasDeps(value) {
            return !!value.deps;
          }
          function hasOnDestroy(value) {
            return value !== null && typeof value === 'object' && typeof value.ngOnDestroy === 'function';
          }
          function couldBeInjectableType(value) {
            return typeof value === 'function' || typeof value === 'object' && value instanceof InjectionToken;
          }
          function forEachSingleProvider(providers, fn) {
            for (const provider of providers) {
              if (Array.isArray(provider)) {
                forEachSingleProvider(provider, fn);
              } else if (provider && isEnvironmentProviders(provider)) {
                forEachSingleProvider(provider.ɵproviders, fn);
              } else {
                fn(provider);
              }
            }
          }
          
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") representing a string ID, used
           * primarily for prefixing application attributes and CSS styles when
           * {@link ViewEncapsulation#Emulated} is being used.
           *
           * The token is needed in cases when multiple applications are bootstrapped on a page
           * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications
           * have different `APP_ID` value setup. For example:
           *
           * ```
           * bootstrapApplication(ComponentA, {
           *   providers: [
           *     { provide: APP_ID, useValue: 'app-a' },
           *     // ... other providers ...
           *   ]
           * });
           *
           * bootstrapApplication(ComponentB, {
           *   providers: [
           *     { provide: APP_ID, useValue: 'app-b' },
           *     // ... other providers ...
           *   ]
           * });
           * ```
           *
           * By default, when there is only one application bootstrapped, you don't need to provide the
           * `APP_ID` token (the `ng` will be used as an app ID).
           *
           * @publicApi
           */
          const APP_ID = new InjectionToken('AppId', {
            providedIn: 'root',
            factory: () => DEFAULT_APP_ID
          });
          /** Default value of the `APP_ID` token. */
          const DEFAULT_APP_ID = 'ng';
          /**
           * A function that is executed when a platform is initialized.
           * @publicApi
           */
          const PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
          /**
           * A token that indicates an opaque platform ID.
           * @publicApi
           */
          const PLATFORM_ID = new InjectionToken('Platform ID', {
            providedIn: 'platform',
            factory: () => 'unknown' // set a default platform name, when none set explicitly
          });
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
           * the application
           * @publicApi
           * @deprecated
           */
          const PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');
          // We keep this token here, rather than the animations package, so that modules that only care
          // about which animations module is loaded (e.g. the CDK) can retrieve it without having to
          // include extra dependencies. See #44970 for more context.
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") that indicates which animations
           * module has been loaded.
           * @publicApi
           */
          const ANIMATION_MODULE_TYPE = new InjectionToken('AnimationModuleType');
          // TODO(crisbeto): link to CSP guide here.
          /**
           * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that
           * Angular will apply when inserting inline styles. If not provided, Angular will look up its value
           * from the `ngCspNonce` attribute of the application root node.
           *
           * @publicApi
           */
          const CSP_NONCE = new InjectionToken('CSP nonce', {
            providedIn: 'root',
            factory: () => {
              // Ideally we wouldn't have to use `querySelector` here since we know that the nonce will be on
              // the root node, but because the token value is used in renderers, it has to be available
              // *very* early in the bootstrapping process. This should be a fairly shallow search, because
              // the app won't have been added to the DOM yet. Some approaches that were considered:
              // 1. Find the root node through `ApplicationRef.components[i].location` - normally this would
              // be enough for our purposes, but the token is injected very early so the `components` array
              // isn't populated yet.
              // 2. Find the root `LView` through the current `LView` - renderers are a prerequisite to
              // creating the `LView`. This means that no `LView` will have been entered when this factory is
              // invoked for the root component.
              // 3. Have the token factory return `() => string` which is invoked when a nonce is requested -
              // the slightly later execution does allow us to get an `LView` reference, but the fact that
              // it is a function means that it could be executed at *any* time (including immediately) which
              // may lead to weird bugs.
              // 4. Have the `ComponentFactory` read the attribute and provide it to the injector under the
              // hood - has the same problem as #1 and #2 in that the renderer is used to query for the root
              // node and the nonce value needs to be available when the renderer is created.
              return getDocument().body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;
            }
          });
          /**
           * Internal token to collect all SSR-related features enabled for this application.
           *
           * Note: the token is in `core` to let other packages register features (the `core`
           * package is imported in other packages).
           */
          const ENABLED_SSR_FEATURES = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'ENABLED_SSR_FEATURES' : '', {
            providedIn: 'root',
            factory: () => new Set()
          });
          
          /**
           * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
           *
           * Example:
           *
           * ```
           * const COUNTER_KEY = makeStateKey<number>('counter');
           * let value = 10;
           *
           * transferState.set(COUNTER_KEY, value);
           * ```
           *
           * @publicApi
           */
          function makeStateKey(key) {
            return key;
          }
          function initTransferState() {
            const transferState = new TransferState();
            if (inject(PLATFORM_ID) === 'browser') {
              transferState.store = retrieveTransferredState(getDocument(), inject(APP_ID));
            }
            return transferState;
          }
          /**
           * A key value store that is transferred from the application on the server side to the application
           * on the client side.
           *
           * The `TransferState` is available as an injectable token.
           * On the client, just inject this token using DI and use it, it will be lazily initialized.
           * On the server it's already included if `renderApplication` function is used. Otherwise, import
           * the `ServerTransferStateModule` module to make the `TransferState` available.
           *
           * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
           * boolean, number, string, null and non-class objects will be serialized and deserialized in a
           * non-lossy manner.
           *
           * @publicApi
           */
          class TransferState {
            constructor() {
              /** @internal */
              this.store = {};
              this.onSerializeCallbacks = {};
            }
            /** @nocollapse */
            static {
              this.ɵprov = /** @pureOrBreakMyCode */ɵɵdefineInjectable({
                token: TransferState,
                providedIn: 'root',
                factory: initTransferState
              });
            }
            /**
             * Get the value corresponding to a key. Return `defaultValue` if key is not found.
             */
            get(key, defaultValue) {
              return this.store[key] !== undefined ? this.store[key] : defaultValue;
            }
            /**
             * Set the value corresponding to a key.
             */
            set(key, value) {
              this.store[key] = value;
            }
            /**
             * Remove a key from the store.
             */
            remove(key) {
              delete this.store[key];
            }
            /**
             * Test whether a key exists in the store.
             */
            hasKey(key) {
              return this.store.hasOwnProperty(key);
            }
            /**
             * Indicates whether the state is empty.
             */
            get isEmpty() {
              return Object.keys(this.store).length === 0;
            }
            /**
             * Register a callback to provide the value for a key when `toJson` is called.
             */
            onSerialize(key, callback) {
              this.onSerializeCallbacks[key] = callback;
            }
            /**
             * Serialize the current state of the store to JSON.
             */
            toJson() {
              // Call the onSerialize callbacks and put those values into the store.
              for (const key in this.onSerializeCallbacks) {
                if (this.onSerializeCallbacks.hasOwnProperty(key)) {
                  try {
                    this.store[key] = this.onSerializeCallbacks[key]();
                  } catch (e) {
                    console.warn('Exception in onSerialize callback: ', e);
                  }
                }
              }
              // Escape script tag to avoid break out of <script> tag in serialized output.
              // Encoding of `<` is the same behaviour as G3 script_builders.
              return JSON.stringify(this.store).replace(/</g, '\\u003C');
            }
          }
          function retrieveTransferredState(doc, appId) {
            // Locate the script tag with the JSON data transferred from the server.
            // The id of the script tag is set to the Angular appId + 'state'.
            const script = doc.getElementById(appId + '-state');
            if (script?.textContent) {
              try {
                // Avoid using any here as it triggers lint errors in google3 (any is not allowed).
                // Decoding of `<` is done of the box by browsers and node.js, same behaviour as G3
                // script_builders.
                return JSON.parse(script.textContent);
              } catch (e) {
                console.warn('Exception while restoring TransferState for app ' + appId, e);
              }
            }
            return {};
          }
          
          /** Encodes that the node lookup should start from the host node of this component. */
          const REFERENCE_NODE_HOST = 'h';
          /** Encodes that the node lookup should start from the document body node. */
          const REFERENCE_NODE_BODY = 'b';
          /**
           * Describes navigation steps that the runtime logic need to perform,
           * starting from a given (known) element.
           */
          var NodeNavigationStep;
          (function (NodeNavigationStep) {
            NodeNavigationStep["FirstChild"] = "f";
            NodeNavigationStep["NextSibling"] = "n";
          })(NodeNavigationStep || (NodeNavigationStep = {}));
          /**
           * Keys within serialized view data structure to represent various
           * parts. See the `SerializedView` interface below for additional information.
           */
          const ELEMENT_CONTAINERS = 'e';
          const TEMPLATES = 't';
          const CONTAINERS = 'c';
          const MULTIPLIER = 'x';
          const NUM_ROOT_NODES = 'r';
          const TEMPLATE_ID = 'i'; // as it's also an "id"
          const NODES = 'n';
          const DISCONNECTED_NODES = 'd';
          
          /**
           * The name of the key used in the TransferState collection,
           * where hydration information is located.
           */
          const TRANSFER_STATE_TOKEN_ID = '__ɵnghData__';
          /**
           * Lookup key used to reference DOM hydration data (ngh) in `TransferState`.
           */
          const NGH_DATA_KEY = makeStateKey(TRANSFER_STATE_TOKEN_ID);
          /**
           * The name of the attribute that would be added to host component
           * nodes and contain a reference to a particular slot in transferred
           * state that contains the necessary hydration info for this component.
           */
          const NGH_ATTR_NAME = 'ngh';
          /**
           * Marker used in a comment node to ensure hydration content integrity
           */
          const SSR_CONTENT_INTEGRITY_MARKER = 'nghm';
          /**
           * Reference to a function that reads `ngh` attribute value from a given RNode
           * and retrieves hydration information from the TransferState using that value
           * as an index. Returns `null` by default, when hydration is not enabled.
           *
           * @param rNode Component's host element.
           * @param injector Injector that this component has access to.
           * @param isRootView Specifies whether we trying to read hydration info for the root view.
           */
          let _retrieveHydrationInfoImpl = (rNode, injector, isRootView) => null;
          function retrieveHydrationInfoImpl(rNode, injector, isRootView = false) {
            let nghAttrValue = rNode.getAttribute(NGH_ATTR_NAME);
            if (nghAttrValue == null) return null;
            // For cases when a root component also acts as an anchor node for a ViewContainerRef
            // (for example, when ViewContainerRef is injected in a root component), there is a need
            // to serialize information about the component itself, as well as an LContainer that
            // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:
            // (1) hydration info for the root component itself and (2) hydration info for the
            // ViewContainerRef instance (an LContainer). Each piece of information is included into
            // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.
            // Since we only have 1 root element, we encode both bits of info into a single string:
            // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view
            // and 25 is the `ngh` for a root view which holds LContainer).
            const [componentViewNgh, rootViewNgh] = nghAttrValue.split('|');
            nghAttrValue = isRootView ? rootViewNgh : componentViewNgh;
            if (!nghAttrValue) return null;
            // We've read one of the ngh ids, keep the remaining one, so that
            // we can set it back on the DOM element.
            const remainingNgh = isRootView ? componentViewNgh : rootViewNgh ? `|${rootViewNgh}` : '';
            let data = {};
            // An element might have an empty `ngh` attribute value (e.g. `<comp ngh="" />`),
            // which means that no special annotations are required. Do not attempt to read
            // from the TransferState in this case.
            if (nghAttrValue !== '') {
              const transferState = injector.get(TransferState, null, {
                optional: true
              });
              if (transferState !== null) {
                const nghData = transferState.get(NGH_DATA_KEY, []);
                // The nghAttrValue is always a number referencing an index
                // in the hydration TransferState data.
                data = nghData[Number(nghAttrValue)];
                // If the `ngh` attribute exists and has a non-empty value,
                // the hydration info *must* be present in the TransferState.
                // If there is no data for some reasons, this is an error.
                ngDevMode && assertDefined(data, 'Unable to retrieve hydration info from the TransferState.');
              }
            }
            const dehydratedView = {
              data,
              firstChild: rNode.firstChild ?? null
            };
            if (isRootView) {
              // If there is hydration info present for the root view, it means that there was
              // a ViewContainerRef injected in the root component. The root component host element
              // acted as an anchor node in this scenario. As a result, the DOM nodes that represent
              // embedded views in this ViewContainerRef are located as siblings to the host node,
              // i.e. `<app-root /><#VIEW1><#VIEW2>...<!--container-->`. In this case, the current
              // node becomes the first child of this root view and the next sibling is the first
              // element in the DOM segment.
              dehydratedView.firstChild = rNode;
              // We use `0` here, since this is the slot (right after the HEADER_OFFSET)
              // where a component LView or an LContainer is located in a root LView.
              setSegmentHead(dehydratedView, 0, rNode.nextSibling);
            }
            if (remainingNgh) {
              // If we have only used one of the ngh ids, store the remaining one
              // back on this RNode.
              rNode.setAttribute(NGH_ATTR_NAME, remainingNgh);
            } else {
              // The `ngh` attribute is cleared from the DOM node now
              // that the data has been retrieved for all indices.
              rNode.removeAttribute(NGH_ATTR_NAME);
            }
            // Note: don't check whether this node was claimed for hydration,
            // because this node might've been previously claimed while processing
            // template instructions.
            ngDevMode && markRNodeAsClaimedByHydration(rNode, /* checkIfAlreadyClaimed */false);
            ngDevMode && ngDevMode.hydratedComponents++;
            return dehydratedView;
          }
          /**
           * Sets the implementation for the `retrieveHydrationInfo` function.
           */
          function enableRetrieveHydrationInfoImpl() {
            _retrieveHydrationInfoImpl = retrieveHydrationInfoImpl;
          }
          /**
           * Retrieves hydration info by reading the value from the `ngh` attribute
           * and accessing a corresponding slot in TransferState storage.
           */
          function retrieveHydrationInfo(rNode, injector, isRootView = false) {
            return _retrieveHydrationInfoImpl(rNode, injector, isRootView);
          }
          /**
           * Retrieves the necessary object from a given ViewRef to serialize:
           *  - an LView for component views
           *  - an LContainer for cases when component acts as a ViewContainerRef anchor
           *  - `null` in case of an embedded view
           */
          function getLNodeForHydration(viewRef) {
            // Reading an internal field from `ViewRef` instance.
            let lView = viewRef._lView;
            const tView = lView[TVIEW];
            // A registered ViewRef might represent an instance of an
            // embedded view, in which case we do not need to annotate it.
            if (tView.type === 2 /* TViewType.Embedded */) {
              return null;
            }
            // Check if it's a root view and if so, retrieve component's
            // LView from the first slot after the header.
            if (isRootView(lView)) {
              lView = lView[HEADER_OFFSET];
            }
            return lView;
          }
          function getTextNodeContent(node) {
            return node.textContent?.replace(/\s/gm, '');
          }
          /**
           * Restores text nodes and separators into the DOM that were lost during SSR
           * serialization. The hydration process replaces empty text nodes and text
           * nodes that are immediately adjacent to other text nodes with comment nodes
           * that this method filters on to restore those missing nodes that the
           * hydration process is expecting to be present.
           *
           * @param node The app's root HTML Element
           */
          function processTextNodeMarkersBeforeHydration(node) {
            const doc = getDocument();
            const commentNodesIterator = doc.createNodeIterator(node, NodeFilter.SHOW_COMMENT, {
              acceptNode(node) {
                const content = getTextNodeContent(node);
                const isTextNodeMarker = content === "ngetn" /* TextNodeMarker.EmptyNode */ || content === "ngtns" /* TextNodeMarker.Separator */;
                return isTextNodeMarker ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
              }
            });
            let currentNode;
            // We cannot modify the DOM while using the commentIterator,
            // because it throws off the iterator state.
            // So we collect all marker nodes first and then follow up with
            // applying the changes to the DOM: either inserting an empty node
            // or just removing the marker if it was used as a separator.
            const nodes = [];
            while (currentNode = commentNodesIterator.nextNode()) {
              nodes.push(currentNode);
            }
            for (const node of nodes) {
              if (node.textContent === "ngetn" /* TextNodeMarker.EmptyNode */) {
                node.replaceWith(doc.createTextNode(''));
              } else {
                node.remove();
              }
            }
          }
          /**
           * Marks a node as "claimed" by hydration process.
           * This is needed to make assessments in tests whether
           * the hydration process handled all nodes.
           */
          function markRNodeAsClaimedByHydration(node, checkIfAlreadyClaimed = true) {
            if (!ngDevMode) {
              throw new Error('Calling `markRNodeAsClaimedByHydration` in prod mode ' + 'is not supported and likely a mistake.');
            }
            if (checkIfAlreadyClaimed && isRNodeClaimedForHydration(node)) {
              throw new Error('Trying to claim a node, which was claimed already.');
            }
            node.__claimed = true;
            ngDevMode.hydratedNodes++;
          }
          function isRNodeClaimedForHydration(node) {
            return !!node.__claimed;
          }
          function setSegmentHead(hydrationInfo, index, node) {
            hydrationInfo.segmentHeads ??= {};
            hydrationInfo.segmentHeads[index] = node;
          }
          function getSegmentHead(hydrationInfo, index) {
            return hydrationInfo.segmentHeads?.[index] ?? null;
          }
          /**
           * Returns the size of an <ng-container>, using either the information
           * serialized in `ELEMENT_CONTAINERS` (element container size) or by
           * computing the sum of root nodes in all dehydrated views in a given
           * container (in case this `<ng-container>` was also used as a view
           * container host node, e.g. <ng-container *ngIf>).
           */
          function getNgContainerSize(hydrationInfo, index) {
            const data = hydrationInfo.data;
            let size = data[ELEMENT_CONTAINERS]?.[index] ?? null;
            // If there is no serialized information available in the `ELEMENT_CONTAINERS` slot,
            // check if we have info about view containers at this location (e.g.
            // `<ng-container *ngIf>`) and use container size as a number of root nodes in this
            // element container.
            if (size === null && data[CONTAINERS]?.[index]) {
              size = calcSerializedContainerSize(hydrationInfo, index);
            }
            return size;
          }
          function getSerializedContainerViews(hydrationInfo, index) {
            return hydrationInfo.data[CONTAINERS]?.[index] ?? null;
          }
          /**
           * Computes the size of a serialized container (the number of root nodes)
           * by calculating the sum of root nodes in all dehydrated views in this container.
           */
          function calcSerializedContainerSize(hydrationInfo, index) {
            const views = getSerializedContainerViews(hydrationInfo, index) ?? [];
            let numNodes = 0;
            for (let view of views) {
              numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1);
            }
            return numNodes;
          }
          /**
           * Checks whether a node is annotated as "disconnected", i.e. not present
           * in the DOM at serialization time. We should not attempt hydration for
           * such nodes and instead, use a regular "creation mode".
           */
          function isDisconnectedNode$1(hydrationInfo, index) {
            // Check if we are processing disconnected info for the first time.
            if (typeof hydrationInfo.disconnectedNodes === 'undefined') {
              const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];
              hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;
            }
            return !!hydrationInfo.disconnectedNodes?.has(index);
          }
          
          /**
           * Represents a component created by a `ComponentFactory`.
           * Provides access to the component instance and related objects,
           * and provides the means of destroying the instance.
           *
           * @publicApi
           */
          class ComponentRef$1 {}
          /**
           * Base class for a factory that can create a component dynamically.
           * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
           * Use the resulting `ComponentFactory.create()` method to create a component of that type.
           *
           * @see [Dynamic Components](guide/dynamic-component-loader)
           *
           * @publicApi
           *
           * @deprecated Angular no longer requires Component factories. Please use other APIs where
           *     Component class can be used directly.
           */
          class ComponentFactory$1 {}
          function noComponentFactoryError(component) {
            const error = Error(`No component factory found for ${stringify(component)}.`);
            error[ERROR_COMPONENT] = component;
            return error;
          }
          const ERROR_COMPONENT = 'ngComponent';
          function getComponent$1(error) {
            return error[ERROR_COMPONENT];
          }
          class _NullComponentFactoryResolver {
            resolveComponentFactory(component) {
              throw noComponentFactoryError(component);
            }
          }
          /**
           * A simple registry that maps `Components` to generated `ComponentFactory` classes
           * that can be used to create instances of components.
           * Use to obtain the factory for a given component type,
           * then use the factory's `create()` method to create a component of that type.
           *
           * Note: since v13, dynamic component creation via
           * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)
           * does **not** require resolving component factory: component class can be used directly.
           *
           * @publicApi
           *
           * @deprecated Angular no longer requires Component factories. Please use other APIs where
           *     Component class can be used directly.
           */
          class ComponentFactoryResolver$1 {
            static {
              this.NULL = /* @__PURE__ */new _NullComponentFactoryResolver();
            }
          }
          
          /**
           * Creates an ElementRef from the most recent node.
           *
           * @returns The ElementRef instance to use
           */
          function injectElementRef() {
            return createElementRef(getCurrentTNode(), getLView());
          }
          /**
           * Creates an ElementRef given a node.
           *
           * @param tNode The node for which you'd like an ElementRef
           * @param lView The view to which the node belongs
           * @returns The ElementRef instance to use
           */
          function createElementRef(tNode, lView) {
            return new ElementRef(getNativeByTNode(tNode, lView));
          }
          /**
           * A wrapper around a native element inside of a View.
           *
           * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
           * element.
           *
           * @security Permitting direct access to the DOM can make your application more vulnerable to
           * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the
           * [Security Guide](https://g.co/ng/security).
           *
           * @publicApi
           */
          // Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
          // i.e. users have to ask for what they need. With that, we can build better analysis tools
          // and could do better codegen in the future.
          class ElementRef {
            constructor(nativeElement) {
              this.nativeElement = nativeElement;
            }
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = injectElementRef;
            }
          }
          /**
           * Unwraps `ElementRef` and return the `nativeElement`.
           *
           * @param value value to unwrap
           * @returns `nativeElement` if `ElementRef` otherwise returns value as is.
           */
          function unwrapElementRef(value) {
            return value instanceof ElementRef ? value.nativeElement : value;
          }
          
          /**
           * Creates and initializes a custom renderer that implements the `Renderer2` base class.
           *
           * @publicApi
           */
          class RendererFactory2 {}
          /**
           * Extend this base class to implement custom rendering. By default, Angular
           * renders a template into DOM. You can use custom rendering to intercept
           * rendering calls, or to render to something other than DOM.
           *
           * Create your custom renderer using `RendererFactory2`.
           *
           * Use a custom renderer to bypass Angular's templating and
           * make custom UI changes that can't be expressed declaratively.
           * For example if you need to set a property or an attribute whose name is
           * not statically known, use the `setProperty()` or
           * `setAttribute()` method.
           *
           * @publicApi
           */
          class Renderer2 {
            constructor() {
              /**
               * If null or undefined, the view engine won't call it.
               * This is used as a performance optimization for production mode.
               */
              this.destroyNode = null;
            }
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = () => injectRenderer2();
            }
          }
          /** Injects a Renderer2 for the current component. */
          function injectRenderer2() {
            // We need the Renderer to be based on the component that it's being injected into, however since
            // DI happens before we've entered its view, `getLView` will return the parent view instead.
            const lView = getLView();
            const tNode = getCurrentTNode();
            const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);
            return (isLView(nodeAtIndex) ? nodeAtIndex : lView)[RENDERER];
          }
          
          /**
           * Sanitizer is used by the views to sanitize potentially dangerous values.
           *
           * @publicApi
           */
          class Sanitizer {
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: Sanitizer,
                providedIn: 'root',
                factory: () => null
              });
            }
          }
          
          /**
           * @description Represents the version of Angular
           *
           * @publicApi
           */
          class Version {
            constructor(full) {
              this.full = full;
              this.major = full.split('.')[0];
              this.minor = full.split('.')[1];
              this.patch = full.split('.').slice(2).join('.');
            }
          }
          /**
           * @publicApi
           */
          const VERSION = new Version('16.2.12');
          
          // This default value is when checking the hierarchy for a token.
          //
          // It means both:
          // - the token is not provided by the current injector,
          // - only the element injectors should be checked (ie do not check module injectors
          //
          //          mod1
          //         /
          //       el1   mod2
          //         \  /
          //         el2
          //
          // When requesting el2.injector.get(token), we should check in the following order and return the
          // first found value:
          // - el2.injector.get(token, default)
          // - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module
          // - mod2.injector.get(token, default)
          const NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};
          
          /**
           * Runs the given function in the [context](guide/dependency-injection-context) of the given
           * `Injector`.
           *
           * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies
           * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in
           * any asynchronous callbacks or after any `await` points.
           *
           * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`
           *     is executing
           * @param fn the closure to be run in the context of `injector`
           * @returns the return value of the function, if any
           * @publicApi
           */
          function runInInjectionContext(injector, fn) {
            if (injector instanceof R3Injector) {
              injector.assertNotDestroyed();
            }
            let prevInjectorProfilerContext;
            if (ngDevMode) {
              prevInjectorProfilerContext = setInjectorProfilerContext({
                injector,
                token: null
              });
            }
            const prevInjector = setCurrentInjector(injector);
            const previousInjectImplementation = setInjectImplementation(undefined);
            try {
              return fn();
            } finally {
              setCurrentInjector(prevInjector);
              ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);
              setInjectImplementation(previousInjectImplementation);
            }
          }
          /**
           * Asserts that the current stack frame is within an [injection
           * context](guide/dependency-injection-context) and has access to `inject`.
           *
           * @param debugFn a reference to the function making the assertion (used for the error message).
           *
           * @publicApi
           */
          function assertInInjectionContext(debugFn) {
            // Taking a `Function` instead of a string name here prevents the unminified name of the function
            // from being retained in the bundle regardless of minification.
            if (!getInjectImplementation() && !getCurrentInjector()) {
              throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && debugFn.name + '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`');
            }
          }
          
          /**
           * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
           *
           * This should be kept up to date with the public exports of @angular/core.
           */
          const angularCoreDiEnv = {
            'ɵɵdefineInjectable': ɵɵdefineInjectable,
            'ɵɵdefineInjector': ɵɵdefineInjector,
            'ɵɵinject': ɵɵinject,
            'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
            'resolveForwardRef': resolveForwardRef
          };
          
          /**
           * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting
           * injectable def (`ɵprov`) onto the injectable type.
           */
          function compileInjectable(type, meta) {
            let ngInjectableDef = null;
            let ngFactoryDef = null;
            // if NG_PROV_DEF is already defined on this class then don't overwrite it
            if (!type.hasOwnProperty(NG_PROV_DEF)) {
              Object.defineProperty(type, NG_PROV_DEF, {
                get: () => {
                  if (ngInjectableDef === null) {
                    const compiler = getCompilerFacade({
                      usage: 0 /* JitCompilerUsage.Decorator */,
                      kind: 'injectable',
                      type
                    });
                    ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));
                  }
                  return ngInjectableDef;
                }
              });
            }
            // if NG_FACTORY_DEF is already defined on this class then don't overwrite it
            if (!type.hasOwnProperty(NG_FACTORY_DEF)) {
              Object.defineProperty(type, NG_FACTORY_DEF, {
                get: () => {
                  if (ngFactoryDef === null) {
                    const compiler = getCompilerFacade({
                      usage: 0 /* JitCompilerUsage.Decorator */,
                      kind: 'injectable',
                      type
                    });
                    ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {
                      name: type.name,
                      type,
                      typeArgumentCount: 0,
                      deps: reflectDependencies(type),
                      target: compiler.FactoryTarget.Injectable
                    });
                  }
                  return ngFactoryDef;
                },
                // Leave this configurable so that the factories from directives or pipes can take precedence.
                configurable: true
              });
            }
          }
          const USE_VALUE = getClosureSafeProperty({
            provide: String,
            useValue: getClosureSafeProperty
          });
          function isUseClassProvider(meta) {
            return meta.useClass !== undefined;
          }
          function isUseValueProvider(meta) {
            return USE_VALUE in meta;
          }
          function isUseFactoryProvider(meta) {
            return meta.useFactory !== undefined;
          }
          function isUseExistingProvider(meta) {
            return meta.useExisting !== undefined;
          }
          function getInjectableMetadata(type, srcMeta) {
            // Allow the compilation of a class with a `@Injectable()` decorator without parameters
            const meta = srcMeta || {
              providedIn: null
            };
            const compilerMeta = {
              name: type.name,
              type: type,
              typeArgumentCount: 0,
              providedIn: meta.providedIn
            };
            if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {
              compilerMeta.deps = convertDependencies(meta.deps);
            }
            // Check to see if the user explicitly provided a `useXxxx` property.
            if (isUseClassProvider(meta)) {
              compilerMeta.useClass = meta.useClass;
            } else if (isUseValueProvider(meta)) {
              compilerMeta.useValue = meta.useValue;
            } else if (isUseFactoryProvider(meta)) {
              compilerMeta.useFactory = meta.useFactory;
            } else if (isUseExistingProvider(meta)) {
              compilerMeta.useExisting = meta.useExisting;
            }
            return compilerMeta;
          }
          
          /**
           * Injectable decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Injectable = makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));
          
          /**
           * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
           */
          function createInjector(defType, parent = null, additionalProviders = null, name) {
            const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);
            injector.resolveInjectorInitializers();
            return injector;
          }
          /**
           * Creates a new injector without eagerly resolving its injector types. Can be used in places
           * where resolving the injector types immediately can lead to an infinite loop. The injector types
           * should be resolved at a later point by calling `_resolveInjectorDefTypes`.
           */
          function createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {
            const providers = [additionalProviders || EMPTY_ARRAY, importProvidersFrom(defType)];
            name = name || (typeof defType === 'object' ? undefined : stringify(defType));
            return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);
          }
          
          /**
           * Concrete injectors implement this interface. Injectors are configured
           * with [providers](guide/glossary#provider) that associate
           * dependencies of various types with [injection tokens](guide/glossary#di-token).
           *
           * @see ["DI Providers"](guide/dependency-injection-providers).
           * @see {@link StaticProvider}
           *
           * @usageNotes
           *
           *  The following example creates a service injector instance.
           *
           * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
           *
           * ### Usage example
           *
           * {@example core/di/ts/injector_spec.ts region='Injector'}
           *
           * `Injector` returns itself when given `Injector` as a token:
           *
           * {@example core/di/ts/injector_spec.ts region='injectInjector'}
           *
           * @publicApi
           */
          class Injector {
            static {
              this.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
            }
            static {
              this.NULL = /* @__PURE__ */new NullInjector();
            }
            static create(options, parent) {
              if (Array.isArray(options)) {
                return createInjector({
                  name: ''
                }, parent, options, '');
              } else {
                const name = options.name ?? '';
                return createInjector({
                  name
                }, options.parent, options.providers, name);
              }
            }
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: Injector,
                providedIn: 'any',
                factory: () => ɵɵinject(INJECTOR)
              });
            }
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;
            }
          }
          
          /**
           * @module
           * @description
           * The `di` module provides dependency injection container services.
           */
          
          /**
           * This file should not be necessary because node resolution should just default to `./di/index`!
           *
           * However it does not seem to work and it breaks:
           *  - //packages/animations/browser/test:test_web_chromium-local
           *  - //packages/compiler-cli/test:extract_i18n
           *  - //packages/compiler-cli/test:ngc
           *  - //packages/compiler-cli/test:perform_watch
           *  - //packages/compiler-cli/test/diagnostics:check_types
           *  - //packages/compiler-cli/test/transformers:test
           *  - //packages/compiler/test:test
           *  - //tools/public_api_guard:core_api
           *
           * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be
           * safe to delete this file.
           */
          
          const ERROR_ORIGINAL_ERROR = 'ngOriginalError';
          function wrappedError(message, originalError) {
            const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;
            const error = Error(msg);
            error[ERROR_ORIGINAL_ERROR] = originalError;
            return error;
          }
          function getOriginalError(error) {
            return error[ERROR_ORIGINAL_ERROR];
          }
          
          /**
           * Provides a hook for centralized exception handling.
           *
           * The default implementation of `ErrorHandler` prints error messages to the `console`. To
           * intercept error handling, write a custom exception handler that replaces this default as
           * appropriate for your app.
           *
           * @usageNotes
           * ### Example
           *
           * ```
           * class MyErrorHandler implements ErrorHandler {
           *   handleError(error) {
           *     // do something with the exception
           *   }
           * }
           *
           * @NgModule({
           *   providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]
           * })
           * class MyModule {}
           * ```
           *
           * @publicApi
           */
          class ErrorHandler {
            constructor() {
              /**
               * @internal
               */
              this._console = console;
            }
            handleError(error) {
              const originalError = this._findOriginalError(error);
              this._console.error('ERROR', error);
              if (originalError) {
                this._console.error('ORIGINAL ERROR', originalError);
              }
            }
            /** @internal */
            _findOriginalError(error) {
              let e = error && getOriginalError(error);
              while (e && getOriginalError(e)) {
                e = getOriginalError(e);
              }
              return e || null;
            }
          }
          
          /**
           * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.
           * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`
           * is injected in a component or directive, the callbacks run when that component or
           * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.
           *
           * @publicApi
           */
          class DestroyRef {
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = injectDestroyRef;
            }
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ENV_ID__ = injector => injector;
            }
          }
          class NodeInjectorDestroyRef extends DestroyRef {
            constructor(_lView) {
              super();
              this._lView = _lView;
            }
            onDestroy(callback) {
              storeLViewOnDestroy(this._lView, callback);
              return () => removeLViewOnDestroy(this._lView, callback);
            }
          }
          function injectDestroyRef() {
            return new NodeInjectorDestroyRef(getLView());
          }
          
          /// <reference types="rxjs" />
          class EventEmitter_ extends rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject {
            constructor(isAsync = false) {
              super();
              this.__isAsync = isAsync;
            }
            emit(value) {
              super.next(value);
            }
            subscribe(observerOrNext, error, complete) {
              let nextFn = observerOrNext;
              let errorFn = error || (() => null);
              let completeFn = complete;
              if (observerOrNext && typeof observerOrNext === 'object') {
                const observer = observerOrNext;
                nextFn = observer.next?.bind(observer);
                errorFn = observer.error?.bind(observer);
                completeFn = observer.complete?.bind(observer);
              }
              if (this.__isAsync) {
                errorFn = _wrapInTimeout(errorFn);
                if (nextFn) {
                  nextFn = _wrapInTimeout(nextFn);
                }
                if (completeFn) {
                  completeFn = _wrapInTimeout(completeFn);
                }
              }
              const sink = super.subscribe({
                next: nextFn,
                error: errorFn,
                complete: completeFn
              });
              if (observerOrNext instanceof rxjs__WEBPACK_IMPORTED_MODULE_1__.Subscription) {
                observerOrNext.add(sink);
              }
              return sink;
            }
          }
          function _wrapInTimeout(fn) {
            return value => {
              setTimeout(fn, undefined, value);
            };
          }
          /**
           * @publicApi
           */
          const EventEmitter = EventEmitter_;
          function noop(...args) {
            // Do nothing.
          }
          function getNativeRequestAnimationFrame() {
            // Note: the `getNativeRequestAnimationFrame` is used in the `NgZone` class, but we cannot use the
            // `inject` function. The `NgZone` instance may be created manually, and thus the injection
            // context will be unavailable. This might be enough to check whether `requestAnimationFrame` is
            // available because otherwise, we'll fall back to `setTimeout`.
            const isBrowser = typeof _global['requestAnimationFrame'] === 'function';
            // Note: `requestAnimationFrame` is unavailable when the code runs in the Node.js environment. We
            // use `setTimeout` because no changes are required other than checking if the current platform is
            // the browser. `setTimeout` is a well-established API that is available in both environments.
            // `requestAnimationFrame` is used in the browser to coalesce event tasks since event tasks are
            // usually executed within the same rendering frame (but this is more implementation details of
            // browsers).
            let nativeRequestAnimationFrame = _global[isBrowser ? 'requestAnimationFrame' : 'setTimeout'];
            let nativeCancelAnimationFrame = _global[isBrowser ? 'cancelAnimationFrame' : 'clearTimeout'];
            if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {
              // Note: zone.js sets original implementations on patched APIs behind the
              // `__zone_symbol__OriginalDelegate` key (see `attachOriginToPatched`). Given the following
              // example: `window.requestAnimationFrame.__zone_symbol__OriginalDelegate`; this would return an
              // unpatched implementation of the `requestAnimationFrame`, which isn't intercepted by the
              // Angular zone. We use the unpatched implementation to avoid another change detection when
              // coalescing tasks.
              const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];
              if (unpatchedRequestAnimationFrame) {
                nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;
              }
              const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];
              if (unpatchedCancelAnimationFrame) {
                nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;
              }
            }
            return {
              nativeRequestAnimationFrame,
              nativeCancelAnimationFrame
            };
          }
          class AsyncStackTaggingZoneSpec {
            constructor(namePrefix, consoleAsyncStackTaggingImpl = console) {
              this.name = 'asyncStackTagging for ' + namePrefix;
              this.createTask = consoleAsyncStackTaggingImpl?.createTask ?? (() => null);
            }
            onScheduleTask(delegate, _current, target, task) {
              task.consoleTask = this.createTask(`Zone - ${task.source || task.type}`);
              return delegate.scheduleTask(target, task);
            }
            onInvokeTask(delegate, _currentZone, targetZone, task, applyThis, applyArgs) {
              let ret;
              if (task.consoleTask) {
                ret = task.consoleTask.run(() => delegate.invokeTask(targetZone, task, applyThis, applyArgs));
              } else {
                ret = delegate.invokeTask(targetZone, task, applyThis, applyArgs);
              }
              return ret;
            }
          }
          
          /**
           * An injectable service for executing work inside or outside of the Angular zone.
           *
           * The most common use of this service is to optimize performance when starting a work consisting of
           * one or more asynchronous tasks that don't require UI updates or error handling to be handled by
           * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks
           * can reenter the Angular zone via {@link #run}.
           *
           * <!-- TODO: add/fix links to:
           *   - docs explaining zones and the use of zones in Angular and change-detection
           *   - link to runOutsideAngular/run (throughout this file!)
           *   -->
           *
           * @usageNotes
           * ### Example
           *
           * ```
           * import {Component, NgZone} from '@angular/core';
           * import {NgIf} from '@angular/common';
           *
           * @Component({
           *   selector: 'ng-zone-demo',
           *   template: `
           *     <h2>Demo: NgZone</h2>
           *
           *     <p>Progress: {{progress}}%</p>
           *     <p *ngIf="progress >= 100">Done processing {{label}} of Angular zone!</p>
           *
           *     <button (click)="processWithinAngularZone()">Process within Angular zone</button>
           *     <button (click)="processOutsideOfAngularZone()">Process outside of Angular zone</button>
           *   `,
           * })
           * export class NgZoneDemo {
           *   progress: number = 0;
           *   label: string;
           *
           *   constructor(private _ngZone: NgZone) {}
           *
           *   // Loop inside the Angular zone
           *   // so the UI DOES refresh after each setTimeout cycle
           *   processWithinAngularZone() {
           *     this.label = 'inside';
           *     this.progress = 0;
           *     this._increaseProgress(() => console.log('Inside Done!'));
           *   }
           *
           *   // Loop outside of the Angular zone
           *   // so the UI DOES NOT refresh after each setTimeout cycle
           *   processOutsideOfAngularZone() {
           *     this.label = 'outside';
           *     this.progress = 0;
           *     this._ngZone.runOutsideAngular(() => {
           *       this._increaseProgress(() => {
           *         // reenter the Angular zone and display done
           *         this._ngZone.run(() => { console.log('Outside Done!'); });
           *       });
           *     });
           *   }
           *
           *   _increaseProgress(doneCallback: () => void) {
           *     this.progress += 1;
           *     console.log(`Current progress: ${this.progress}%`);
           *
           *     if (this.progress < 100) {
           *       window.setTimeout(() => this._increaseProgress(doneCallback), 10);
           *     } else {
           *       doneCallback();
           *     }
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class NgZone {
            constructor({
              enableLongStackTrace = false,
              shouldCoalesceEventChangeDetection = false,
              shouldCoalesceRunChangeDetection = false
            }) {
              this.hasPendingMacrotasks = false;
              this.hasPendingMicrotasks = false;
              /**
               * Whether there are no outstanding microtasks or macrotasks.
               */
              this.isStable = true;
              /**
               * Notifies when code enters Angular Zone. This gets fired first on VM Turn.
               */
              this.onUnstable = new EventEmitter(false);
              /**
               * Notifies when there is no more microtasks enqueued in the current VM Turn.
               * This is a hint for Angular to do change detection, which may enqueue more microtasks.
               * For this reason this event can fire multiple times per VM Turn.
               */
              this.onMicrotaskEmpty = new EventEmitter(false);
              /**
               * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which
               * implies we are about to relinquish VM turn.
               * This event gets called just once.
               */
              this.onStable = new EventEmitter(false);
              /**
               * Notifies that an error has been delivered.
               */
              this.onError = new EventEmitter(false);
              if (typeof Zone == 'undefined') {
                throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);
              }
              Zone.assertZonePatched();
              const self = this;
              self._nesting = 0;
              self._outer = self._inner = Zone.current;
              // AsyncStackTaggingZoneSpec provides `linked stack traces` to show
              // where the async operation is scheduled. For more details, refer
              // to this article, https://developer.chrome.com/blog/devtools-better-angular-debugging/
              // And we only import this AsyncStackTaggingZoneSpec in development mode,
              // in the production mode, the AsyncStackTaggingZoneSpec will be tree shaken away.
              if (ngDevMode) {
                self._inner = self._inner.fork(new AsyncStackTaggingZoneSpec('Angular'));
              }
              if (Zone['TaskTrackingZoneSpec']) {
                self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']());
              }
              if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {
                self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);
              }
              // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be
              // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.
              self.shouldCoalesceEventChangeDetection = !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;
              self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;
              self.lastRequestAnimationFrameId = -1;
              self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;
              forkInnerZoneWithAngularBehavior(self);
            }
            /**
              This method checks whether the method call happens within an Angular Zone instance.
            */
            static isInAngularZone() {
              // Zone needs to be checked, because this method might be called even when NoopNgZone is used.
              return typeof Zone !== 'undefined' && Zone.current.get('isAngularZone') === true;
            }
            /**
              Assures that the method is called within the Angular Zone, otherwise throws an error.
            */
            static assertInAngularZone() {
              if (!NgZone.isInAngularZone()) {
                throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');
              }
            }
            /**
              Assures that the method is called outside of the Angular Zone, otherwise throws an error.
            */
            static assertNotInAngularZone() {
              if (NgZone.isInAngularZone()) {
                throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');
              }
            }
            /**
             * Executes the `fn` function synchronously within the Angular zone and returns value returned by
             * the function.
             *
             * Running functions via `run` allows you to reenter Angular zone from a task that was executed
             * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
             *
             * Any future tasks or microtasks scheduled from within this function will continue executing from
             * within the Angular zone.
             *
             * If a synchronous error happens it will be rethrown and not reported via `onError`.
             */
            run(fn, applyThis, applyArgs) {
              return this._inner.run(fn, applyThis, applyArgs);
            }
            /**
             * Executes the `fn` function synchronously within the Angular zone as a task and returns value
             * returned by the function.
             *
             * Running functions via `run` allows you to reenter Angular zone from a task that was executed
             * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
             *
             * Any future tasks or microtasks scheduled from within this function will continue executing from
             * within the Angular zone.
             *
             * If a synchronous error happens it will be rethrown and not reported via `onError`.
             */
            runTask(fn, applyThis, applyArgs, name) {
              const zone = this._inner;
              const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);
              try {
                return zone.runTask(task, applyThis, applyArgs);
              } finally {
                zone.cancelTask(task);
              }
            }
            /**
             * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not
             * rethrown.
             */
            runGuarded(fn, applyThis, applyArgs) {
              return this._inner.runGuarded(fn, applyThis, applyArgs);
            }
            /**
             * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by
             * the function.
             *
             * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do
             * work that
             * doesn't trigger Angular change-detection or is subject to Angular's error handling.
             *
             * Any future tasks or microtasks scheduled from within this function will continue executing from
             * outside of the Angular zone.
             *
             * Use {@link #run} to reenter the Angular zone and do work that updates the application model.
             */
            runOutsideAngular(fn) {
              return this._outer.run(fn);
            }
          }
          const EMPTY_PAYLOAD = {};
          function checkStable(zone) {
            // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent
            // re-entry. The case is:
            //
            // @Component({...})
            // export class AppComponent {
            // constructor(private ngZone: NgZone) {
            //   this.ngZone.onStable.subscribe(() => {
            //     this.ngZone.run(() => console.log('stable'););
            //   });
            // }
            //
            // The onStable subscriber run another function inside ngZone
            // which causes `checkStable()` re-entry.
            // But this fix causes some issues in g3, so this fix will be
            // launched in another PR.
            if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {
              try {
                zone._nesting++;
                zone.onMicrotaskEmpty.emit(null);
              } finally {
                zone._nesting--;
                if (!zone.hasPendingMicrotasks) {
                  try {
                    zone.runOutsideAngular(() => zone.onStable.emit(null));
                  } finally {
                    zone.isStable = true;
                  }
                }
              }
            }
          }
          function delayChangeDetectionForEvents(zone) {
            /**
             * We also need to check _nesting here
             * Consider the following case with shouldCoalesceRunChangeDetection = true
             *
             * ngZone.run(() => {});
             * ngZone.run(() => {});
             *
             * We want the two `ngZone.run()` only trigger one change detection
             * when shouldCoalesceRunChangeDetection is true.
             * And because in this case, change detection run in async way(requestAnimationFrame),
             * so we also need to check the _nesting here to prevent multiple
             * change detections.
             */
            if (zone.isCheckStableRunning || zone.lastRequestAnimationFrameId !== -1) {
              return;
            }
            zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {
              // This is a work around for https://github.com/angular/angular/issues/36839.
              // The core issue is that when event coalescing is enabled it is possible for microtasks
              // to get flushed too early (As is the case with `Promise.then`) between the
              // coalescing eventTasks.
              //
              // To workaround this we schedule a "fake" eventTask before we process the
              // coalescing eventTasks. The benefit of this is that the "fake" container eventTask
              //  will prevent the microtasks queue from getting drained in between the coalescing
              // eventTask execution.
              if (!zone.fakeTopEventTask) {
                zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {
                  zone.lastRequestAnimationFrameId = -1;
                  updateMicroTaskStatus(zone);
                  zone.isCheckStableRunning = true;
                  checkStable(zone);
                  zone.isCheckStableRunning = false;
                }, undefined, () => {}, () => {});
              }
              zone.fakeTopEventTask.invoke();
            });
            updateMicroTaskStatus(zone);
          }
          function forkInnerZoneWithAngularBehavior(zone) {
            const delayChangeDetectionForEventsDelegate = () => {
              delayChangeDetectionForEvents(zone);
            };
            zone._inner = zone._inner.fork({
              name: 'angular',
              properties: {
                'isAngularZone': true
              },
              onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {
                if (shouldBeIgnoredByZone(applyArgs)) {
                  return delegate.invokeTask(target, task, applyThis, applyArgs);
                }
                try {
                  onEnter(zone);
                  return delegate.invokeTask(target, task, applyThis, applyArgs);
                } finally {
                  if (zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask' || zone.shouldCoalesceRunChangeDetection) {
                    delayChangeDetectionForEventsDelegate();
                  }
                  onLeave(zone);
                }
              },
              onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {
                try {
                  onEnter(zone);
                  return delegate.invoke(target, callback, applyThis, applyArgs, source);
                } finally {
                  if (zone.shouldCoalesceRunChangeDetection) {
                    delayChangeDetectionForEventsDelegate();
                  }
                  onLeave(zone);
                }
              },
              onHasTask: (delegate, current, target, hasTaskState) => {
                delegate.hasTask(target, hasTaskState);
                if (current === target) {
                  // We are only interested in hasTask events which originate from our zone
                  // (A child hasTask event is not interesting to us)
                  if (hasTaskState.change == 'microTask') {
                    zone._hasPendingMicrotasks = hasTaskState.microTask;
                    updateMicroTaskStatus(zone);
                    checkStable(zone);
                  } else if (hasTaskState.change == 'macroTask') {
                    zone.hasPendingMacrotasks = hasTaskState.macroTask;
                  }
                }
              },
              onHandleError: (delegate, current, target, error) => {
                delegate.handleError(target, error);
                zone.runOutsideAngular(() => zone.onError.emit(error));
                return false;
              }
            });
          }
          function updateMicroTaskStatus(zone) {
            if (zone._hasPendingMicrotasks || (zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) && zone.lastRequestAnimationFrameId !== -1) {
              zone.hasPendingMicrotasks = true;
            } else {
              zone.hasPendingMicrotasks = false;
            }
          }
          function onEnter(zone) {
            zone._nesting++;
            if (zone.isStable) {
              zone.isStable = false;
              zone.onUnstable.emit(null);
            }
          }
          function onLeave(zone) {
            zone._nesting--;
            checkStable(zone);
          }
          /**
           * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
           * to framework to perform rendering.
           */
          class NoopNgZone {
            constructor() {
              this.hasPendingMicrotasks = false;
              this.hasPendingMacrotasks = false;
              this.isStable = true;
              this.onUnstable = new EventEmitter();
              this.onMicrotaskEmpty = new EventEmitter();
              this.onStable = new EventEmitter();
              this.onError = new EventEmitter();
            }
            run(fn, applyThis, applyArgs) {
              return fn.apply(applyThis, applyArgs);
            }
            runGuarded(fn, applyThis, applyArgs) {
              return fn.apply(applyThis, applyArgs);
            }
            runOutsideAngular(fn) {
              return fn();
            }
            runTask(fn, applyThis, applyArgs, name) {
              return fn.apply(applyThis, applyArgs);
            }
          }
          /**
           * Token used to drive ApplicationRef.isStable
           *
           * TODO: This should be moved entirely to NgZone (as a breaking change) so it can be tree-shakeable
           * for `NoopNgZone` which is always just an `Observable` of `true`. Additionally, we should consider
           * whether the property on `NgZone` should be `Observable` or `Signal`.
           */
          const ZONE_IS_STABLE_OBSERVABLE = new InjectionToken(ngDevMode ? 'isStable Observable' : '', {
            providedIn: 'root',
            // TODO(atscott): Replace this with a suitable default like `new
            // BehaviorSubject(true).asObservable`. Again, long term this won't exist on ApplicationRef at
            // all but until we can remove it, we need a default value zoneless.
            factory: isStableFactory
          });
          function isStableFactory() {
            const zone = inject(NgZone);
            let _stable = true;
            const isCurrentlyStable = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
              _stable = zone.isStable && !zone.hasPendingMacrotasks && !zone.hasPendingMicrotasks;
              zone.runOutsideAngular(() => {
                observer.next(_stable);
                observer.complete();
              });
            });
            const isStable = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable(observer => {
              // Create the subscription to onStable outside the Angular Zone so that
              // the callback is run outside the Angular Zone.
              let stableSub;
              zone.runOutsideAngular(() => {
                stableSub = zone.onStable.subscribe(() => {
                  NgZone.assertNotInAngularZone();
                  // Check whether there are no pending macro/micro tasks in the next tick
                  // to allow for NgZone to update the state.
                  queueMicrotask(() => {
                    if (!_stable && !zone.hasPendingMacrotasks && !zone.hasPendingMicrotasks) {
                      _stable = true;
                      observer.next(true);
                    }
                  });
                });
              });
              const unstableSub = zone.onUnstable.subscribe(() => {
                NgZone.assertInAngularZone();
                if (_stable) {
                  _stable = false;
                  zone.runOutsideAngular(() => {
                    observer.next(false);
                  });
                }
              });
              return () => {
                stableSub.unsubscribe();
                unstableSub.unsubscribe();
              };
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.merge)(isCurrentlyStable, isStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.share)()));
          }
          function shouldBeIgnoredByZone(applyArgs) {
            if (!Array.isArray(applyArgs)) {
              return false;
            }
            // We should only ever get 1 arg passed through to invokeTask.
            // Short circuit here incase that behavior changes.
            if (applyArgs.length !== 1) {
              return false;
            }
            // Prevent triggering change detection when the __ignore_ng_zone__ flag is detected.
            return applyArgs[0].data?.['__ignore_ng_zone__'] === true;
          }
          
          // Public API for Zone
          
          /**
           *
           * @codeGenApi
           */
          function ɵɵresolveWindow(element) {
            return element.ownerDocument.defaultView;
          }
          /**
           *
           * @codeGenApi
           */
          function ɵɵresolveDocument(element) {
            return element.ownerDocument;
          }
          /**
           *
           * @codeGenApi
           */
          function ɵɵresolveBody(element) {
            return element.ownerDocument.body;
          }
          /**
           * The special delimiter we use to separate property names, prefixes, and suffixes
           * in property binding metadata. See storeBindingMetadata().
           *
           * We intentionally use the Unicode "REPLACEMENT CHARACTER" (U+FFFD) as a delimiter
           * because it is a very uncommon character that is unlikely to be part of a user's
           * property names or interpolation strings. If it is in fact used in a property
           * binding, DebugElement.properties will not return the correct value for that
           * binding. However, there should be no runtime effect for real applications.
           *
           * This character is typically rendered as a question mark inside of a diamond.
           * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)
           *
           */
          const INTERPOLATION_DELIMITER = `�`;
          /**
           * Unwrap a value which might be behind a closure (for forward declaration reasons).
           */
          function maybeUnwrapFn(value) {
            if (value instanceof Function) {
              return value();
            } else {
              return value;
            }
          }
          /**
           * Detects whether the code is invoked in a browser.
           * Later on, this check should be replaced with a tree-shakable
           * flag (e.g. `!isServer`).
           */
          function isPlatformBrowser(injector) {
            return (injector ?? inject(Injector)).get(PLATFORM_ID) === 'browser';
          }
          
          /**
           * Register a callback to be invoked each time the application
           * finishes rendering.
           *
           * Note that the callback will run
           * - in the order it was registered
           * - once per render
           * - on browser platforms only
           *
           * <div class="alert is-important">
           *
           * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.
           * You must use caution when directly reading or writing the DOM and layout.
           *
           * </div>
           *
           * @param callback A callback function to register
           *
           * @usageNotes
           *
           * Use `afterRender` to read or write the DOM after each render.
           *
           * ### Example
           * ```ts
           * @Component({
           *   selector: 'my-cmp',
           *   template: `<span #content>{{ ... }}</span>`,
           * })
           * export class MyComponent {
           *   @ViewChild('content') contentRef: ElementRef;
           *
           *   constructor() {
           *     afterRender(() => {
           *       console.log('content height: ' + this.contentRef.nativeElement.scrollHeight);
           *     });
           *   }
           * }
           * ```
           *
           * @developerPreview
           */
          function afterRender(callback, options) {
            !options && assertInInjectionContext(afterRender);
            const injector = options?.injector ?? inject(Injector);
            if (!isPlatformBrowser(injector)) {
              return {
                destroy() {}
              };
            }
            let destroy;
            const unregisterFn = injector.get(DestroyRef).onDestroy(() => destroy?.());
            const afterRenderEventManager = injector.get(AfterRenderEventManager);
            // Lazily initialize the handler implementation, if necessary. This is so that it can be
            // tree-shaken if `afterRender` and `afterNextRender` aren't used.
            const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();
            const ngZone = injector.get(NgZone);
            const errorHandler = injector.get(ErrorHandler, null, {
              optional: true
            });
            const instance = new AfterRenderCallback(ngZone, errorHandler, callback);
            destroy = () => {
              callbackHandler.unregister(instance);
              unregisterFn();
            };
            callbackHandler.register(instance);
            return {
              destroy
            };
          }
          /**
           * Register a callback to be invoked the next time the application
           * finishes rendering.
           *
           * Note that the callback will run
           * - in the order it was registered
           * - on browser platforms only
           *
           * <div class="alert is-important">
           *
           * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.
           * You must use caution when directly reading or writing the DOM and layout.
           *
           * </div>
           *
           * @param callback A callback function to register
           *
           * @usageNotes
           *
           * Use `afterNextRender` to read or write the DOM once,
           * for example to initialize a non-Angular library.
           *
           * ### Example
           * ```ts
           * @Component({
           *   selector: 'my-chart-cmp',
           *   template: `<div #chart>{{ ... }}</div>`,
           * })
           * export class MyChartCmp {
           *   @ViewChild('chart') chartRef: ElementRef;
           *   chart: MyChart|null;
           *
           *   constructor() {
           *     afterNextRender(() => {
           *       this.chart = new MyChart(this.chartRef.nativeElement);
           *     });
           *   }
           * }
           * ```
           *
           * @developerPreview
           */
          function afterNextRender(callback, options) {
            !options && assertInInjectionContext(afterNextRender);
            const injector = options?.injector ?? inject(Injector);
            if (!isPlatformBrowser(injector)) {
              return {
                destroy() {}
              };
            }
            let destroy;
            const unregisterFn = injector.get(DestroyRef).onDestroy(() => destroy?.());
            const afterRenderEventManager = injector.get(AfterRenderEventManager);
            // Lazily initialize the handler implementation, if necessary. This is so that it can be
            // tree-shaken if `afterRender` and `afterNextRender` aren't used.
            const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();
            const ngZone = injector.get(NgZone);
            const errorHandler = injector.get(ErrorHandler, null, {
              optional: true
            });
            const instance = new AfterRenderCallback(ngZone, errorHandler, () => {
              destroy?.();
              callback();
            });
            destroy = () => {
              callbackHandler.unregister(instance);
              unregisterFn();
            };
            callbackHandler.register(instance);
            return {
              destroy
            };
          }
          /**
           * A wrapper around a function to be used as an after render callback.
           */
          class AfterRenderCallback {
            constructor(zone, errorHandler, callbackFn) {
              this.zone = zone;
              this.errorHandler = errorHandler;
              this.callbackFn = callbackFn;
            }
            invoke() {
              try {
                this.zone.runOutsideAngular(this.callbackFn);
              } catch (err) {
                this.errorHandler?.handleError(err);
              }
            }
          }
          /**
           * Core functionality for `afterRender` and `afterNextRender`. Kept separate from
           * `AfterRenderEventManager` for tree-shaking.
           */
          class AfterRenderCallbackHandlerImpl {
            constructor() {
              this.executingCallbacks = false;
              this.callbacks = new Set();
              this.deferredCallbacks = new Set();
            }
            validateBegin() {
              if (this.executingCallbacks) {
                throw new RuntimeError(102 /* RuntimeErrorCode.RECURSIVE_APPLICATION_RENDER */, ngDevMode && 'A new render operation began before the previous operation ended. ' + 'Did you trigger change detection from afterRender or afterNextRender?');
              }
            }
            register(callback) {
              // If we're currently running callbacks, new callbacks should be deferred
              // until the next render operation.
              const target = this.executingCallbacks ? this.deferredCallbacks : this.callbacks;
              target.add(callback);
            }
            unregister(callback) {
              this.callbacks.delete(callback);
              this.deferredCallbacks.delete(callback);
            }
            execute() {
              this.executingCallbacks = true;
              for (const callback of this.callbacks) {
                callback.invoke();
              }
              this.executingCallbacks = false;
              for (const callback of this.deferredCallbacks) {
                this.callbacks.add(callback);
              }
              this.deferredCallbacks.clear();
            }
            destroy() {
              this.callbacks.clear();
              this.deferredCallbacks.clear();
            }
          }
          /**
           * Implements core timing for `afterRender` and `afterNextRender` events.
           * Delegates to an optional `AfterRenderCallbackHandler` for implementation.
           */
          class AfterRenderEventManager {
            constructor() {
              this.renderDepth = 0;
              /* @internal */
              this.handler = null;
            }
            /**
             * Mark the beginning of a render operation (i.e. CD cycle).
             * Throws if called while executing callbacks.
             */
            begin() {
              this.handler?.validateBegin();
              this.renderDepth++;
            }
            /**
             * Mark the end of a render operation. Callbacks will be
             * executed if there are no more pending operations.
             */
            end() {
              ngDevMode && assertGreaterThan(this.renderDepth, 0, 'renderDepth must be greater than 0');
              this.renderDepth--;
              if (this.renderDepth === 0) {
                this.handler?.execute();
              }
            }
            ngOnDestroy() {
              this.handler?.destroy();
              this.handler = null;
            }
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: AfterRenderEventManager,
                providedIn: 'root',
                factory: () => new AfterRenderEventManager()
              });
            }
          }
          
          /**
           * Marks current view and all ancestors dirty.
           *
           * Returns the root view because it is found as a byproduct of marking the view tree
           * dirty, and can be used by methods that consume markViewDirty() to easily schedule
           * change detection. Otherwise, such methods would need to traverse up the view tree
           * an additional time to get the root view and schedule a tick on it.
           *
           * @param lView The starting LView to mark dirty
           * @returns the root LView
           */
          function markViewDirty(lView) {
            while (lView) {
              lView[FLAGS] |= 64 /* LViewFlags.Dirty */;
              const parent = getLViewParent(lView);
              // Stop traversing up as soon as you find a root view that wasn't attached to any container
              if (isRootView(lView) && !parent) {
                return lView;
              }
              // continue otherwise
              lView = parent;
            }
            return null;
          }
          
          /**
           * Internal token that specifies whether DOM reuse logic
           * during hydration is enabled.
           */
          const IS_HYDRATION_DOM_REUSE_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_HYDRATION_DOM_REUSE_ENABLED' : '');
          // By default (in client rendering mode), we remove all the contents
          // of the host element and render an application after that.
          const PRESERVE_HOST_CONTENT_DEFAULT = false;
          /**
           * Internal token that indicates whether host element content should be
           * retained during the bootstrap.
           */
          const PRESERVE_HOST_CONTENT = new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'PRESERVE_HOST_CONTENT' : '', {
            providedIn: 'root',
            factory: () => PRESERVE_HOST_CONTENT_DEFAULT
          });
          function normalizeDebugBindingName(name) {
            // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers
            name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));
            return `ng-reflect-${name}`;
          }
          const CAMEL_CASE_REGEXP = /([A-Z])/g;
          function camelCaseToDashCase(input) {
            return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
          }
          function normalizeDebugBindingValue(value) {
            try {
              // Limit the size of the value as otherwise the DOM just gets polluted.
              return value != null ? value.toString().slice(0, 30) : value;
            } catch (e) {
              return '[ERROR] Exception while trying to serialize the value';
            }
          }
          
          /**
           * The max length of the string representation of a value in an error message
           */
          const VALUE_STRING_LENGTH_LIMIT = 200;
          /** Verifies that a given type is a Standalone Component. */
          function assertStandaloneComponentType(type) {
            assertComponentDef(type);
            const componentDef = getComponentDef(type);
            if (!componentDef.standalone) {
              throw new RuntimeError(907 /* RuntimeErrorCode.TYPE_IS_NOT_STANDALONE */, `The ${stringifyForError(type)} component is not marked as standalone, ` + `but Angular expects to have a standalone component here. ` + `Please make sure the ${stringifyForError(type)} component has ` + `the \`standalone: true\` flag in the decorator.`);
            }
          }
          /** Verifies whether a given type is a component */
          function assertComponentDef(type) {
            if (!getComponentDef(type)) {
              throw new RuntimeError(906 /* RuntimeErrorCode.MISSING_GENERATED_DEF */, `The ${stringifyForError(type)} is not an Angular component, ` + `make sure it has the \`@Component\` decorator.`);
            }
          }
          /** Called when there are multiple component selectors that match a given node */
          function throwMultipleComponentError(tNode, first, second) {
            throw new RuntimeError(-300 /* RuntimeErrorCode.MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}: ` + `${stringifyForError(first)} and ` + `${stringifyForError(second)}`);
          }
          /** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */
          function throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName, lView) {
            const hostComponentDef = getDeclarationComponentDef(lView);
            const componentClassName = hostComponentDef?.type?.name;
            const field = propName ? ` for '${propName}'` : '';
            let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${formatValue(oldValue)}'. Current value: '${formatValue(currValue)}'.${componentClassName ? ` Expression location: ${componentClassName} component` : ''}`;
            if (creationMode) {
              msg += ` It seems like the view has been created after its parent and its children have been dirty checked.` + ` Has it been created in a change detection hook?`;
            }
            throw new RuntimeError(-100 /* RuntimeErrorCode.EXPRESSION_CHANGED_AFTER_CHECKED */, msg);
          }
          function formatValue(value) {
            let strValue = String(value);
            // JSON.stringify will throw on circular references
            try {
              if (Array.isArray(value) || strValue === '[object Object]') {
                strValue = JSON.stringify(value);
              }
            } catch (error) {}
            return strValue.length > VALUE_STRING_LENGTH_LIMIT ? strValue.substring(0, VALUE_STRING_LENGTH_LIMIT) + '…' : strValue;
          }
          function constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {
            const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);
            let oldValue = prefix,
              newValue = prefix;
            for (let i = 0; i < chunks.length; i++) {
              const slotIdx = rootIndex + i;
              oldValue += `${lView[slotIdx]}${chunks[i]}`;
              newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;
            }
            return {
              propName,
              oldValue,
              newValue
            };
          }
          /**
           * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:
           * - property name (for property bindings or interpolations)
           * - old and new values, enriched using information from metadata
           *
           * More information on the metadata storage format can be found in `storePropertyBindingMetadata`
           * function description.
           */
          function getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {
            const tData = lView[TVIEW].data;
            const metadata = tData[bindingIndex];
            if (typeof metadata === 'string') {
              // metadata for property interpolation
              if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {
                return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);
              }
              // metadata for property binding
              return {
                propName: metadata,
                oldValue,
                newValue
              };
            }
            // metadata is not available for this expression, check if this expression is a part of the
            // property interpolation by going from the current binding index left and look for a string that
            // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:
            // [..., 'id�Prefix � and � suffix', null, null, null, ...]
            if (metadata === null) {
              let idx = bindingIndex - 1;
              while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {
                idx--;
              }
              const meta = tData[idx];
              if (typeof meta === 'string') {
                const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));
                // first interpolation delimiter separates property name from interpolation parts (in case of
                // property interpolations), so we subtract one from total number of found delimiters
                if (matches && matches.length - 1 > bindingIndex - idx) {
                  return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);
                }
              }
            }
            return {
              propName: undefined,
              oldValue,
              newValue
            };
          }
          let currentConsumer = null;
          /**
           * Create a new template consumer pointing at the specified LView.
           * Sometimes, a previously created consumer may be reused, in order to save on allocations. In that
           * case, the LView will be updated.
           */
          function getReactiveLViewConsumer(lView, slot) {
            return lView[slot] ?? getOrCreateCurrentLViewConsumer();
          }
          /**
           * Assigns the `currentTemplateContext` to its LView's `REACTIVE_CONSUMER` slot if there are tracked
           * producers.
           *
           * The presence of producers means that a signal was read while the consumer was the active
           * consumer.
           *
           * If no producers are present, we do not assign the current template context. This also means we
           * can just reuse the template context for the next LView.
           */
          function commitLViewConsumerIfHasProducers(lView, slot) {
            const consumer = getOrCreateCurrentLViewConsumer();
            if (!consumer.producerNode?.length) {
              return;
            }
            lView[slot] = currentConsumer;
            consumer.lView = lView;
            currentConsumer = createLViewConsumer();
          }
          const REACTIVE_LVIEW_CONSUMER_NODE = {
            ...REACTIVE_NODE,
            consumerIsAlwaysLive: true,
            consumerMarkedDirty: node => {
              (typeof ngDevMode === 'undefined' || ngDevMode) && assertDefined(node.lView, 'Updating a signal during template or host binding execution is not allowed.');
              markViewDirty(node.lView);
            },
            lView: null
          };
          function createLViewConsumer() {
            return Object.create(REACTIVE_LVIEW_CONSUMER_NODE);
          }
          function getOrCreateCurrentLViewConsumer() {
            currentConsumer ??= createLViewConsumer();
            return currentConsumer;
          }
          
          /** A special value which designates that a value has not changed. */
          const NO_CHANGE = typeof ngDevMode === 'undefined' || ngDevMode ? {
            __brand__: 'NO_CHANGE'
          } : {};
          
          /**
           * Advances to an element for later binding instructions.
           *
           * Used in conjunction with instructions like {@link property} to act on elements with specified
           * indices, for example those created with {@link element} or {@link elementStart}.
           *
           * ```ts
           * (rf: RenderFlags, ctx: any) => {
           *   if (rf & 1) {
           *     text(0, 'Hello');
           *     text(1, 'Goodbye')
           *     element(2, 'div');
           *   }
           *   if (rf & 2) {
           *     advance(2); // Advance twice to the <div>.
           *     property('title', 'test');
           *   }
           *  }
           * ```
           * @param delta Number of elements to advance forwards by.
           *
           * @codeGenApi
           */
          function ɵɵadvance(delta) {
            ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');
            selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, !!ngDevMode && isInCheckNoChangesMode());
          }
          function selectIndexInternal(tView, lView, index, checkNoChangesMode) {
            ngDevMode && assertIndexInDeclRange(lView, index);
            // Flush the initial hooks for elements in the view that have been added up to this point.
            // PERF WARNING: do NOT extract this to a separate function without running benchmarks
            if (!checkNoChangesMode) {
              const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;
              if (hooksInitPhaseCompleted) {
                const preOrderCheckHooks = tView.preOrderCheckHooks;
                if (preOrderCheckHooks !== null) {
                  executeCheckHooks(lView, preOrderCheckHooks, index);
                }
              } else {
                const preOrderHooks = tView.preOrderHooks;
                if (preOrderHooks !== null) {
                  executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, index);
                }
              }
            }
            // We must set the selected index *after* running the hooks, because hooks may have side-effects
            // that cause other template functions to run, thus updating the selected index, which is global
            // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index
            // will be altered by the time we leave the `ɵɵadvance` instruction.
            setSelectedIndex(index);
          }
          function ɵɵdirectiveInject(token, flags = InjectFlags.Default) {
            const lView = getLView();
            // Fall back to inject() if view hasn't been created. This situation can happen in tests
            // if inject utilities are used before bootstrapping.
            if (lView === null) {
              // Verify that we will not get into infinite loop.
              ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);
              return ɵɵinject(token, flags);
            }
            const tNode = getCurrentTNode();
            const value = getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);
            ngDevMode && emitInjectEvent(token, value, flags);
            return value;
          }
          /**
           * Throws an error indicating that a factory function could not be generated by the compiler for a
           * particular class.
           *
           * This instruction allows the actual error message to be optimized away when ngDevMode is turned
           * off, saving bytes of generated code while still providing a good experience in dev mode.
           *
           * The name of the class is not mentioned here, but will be in the generated factory function name
           * and thus in the stack trace.
           *
           * @codeGenApi
           */
          function ɵɵinvalidFactory() {
            const msg = ngDevMode ? `This constructor was not compatible with Dependency Injection.` : 'invalid';
            throw new Error(msg);
          }
          
          /**
           * Invoke `HostBindingsFunction`s for view.
           *
           * This methods executes `TView.hostBindingOpCodes`. It is used to execute the
           * `HostBindingsFunction`s associated with the current `LView`.
           *
           * @param tView Current `TView`.
           * @param lView Current `LView`.
           */
          function processHostBindingOpCodes(tView, lView) {
            const hostBindingOpCodes = tView.hostBindingOpCodes;
            if (hostBindingOpCodes === null) return;
            const consumer = getReactiveLViewConsumer(lView, REACTIVE_HOST_BINDING_CONSUMER);
            try {
              for (let i = 0; i < hostBindingOpCodes.length; i++) {
                const opCode = hostBindingOpCodes[i];
                if (opCode < 0) {
                  // Negative numbers are element indexes.
                  setSelectedIndex(~opCode);
                } else {
                  // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.
                  const directiveIdx = opCode;
                  const bindingRootIndx = hostBindingOpCodes[++i];
                  const hostBindingFn = hostBindingOpCodes[++i];
                  setBindingRootForHostBindings(bindingRootIndx, directiveIdx);
                  consumer.dirty = false;
                  const prevConsumer = consumerBeforeComputation(consumer);
                  try {
                    const context = lView[directiveIdx];
                    hostBindingFn(2 /* RenderFlags.Update */, context);
                  } finally {
                    consumerAfterComputation(consumer, prevConsumer);
                  }
                }
              }
            } finally {
              if (lView[REACTIVE_HOST_BINDING_CONSUMER] === null) {
                commitLViewConsumerIfHasProducers(lView, REACTIVE_HOST_BINDING_CONSUMER);
              }
              setSelectedIndex(-1);
            }
          }
          function createLView(parentLView, tView, context, flags, host, tHostNode, environment, renderer, injector, embeddedViewInjector, hydrationInfo) {
            const lView = tView.blueprint.slice();
            lView[HOST] = host;
            lView[FLAGS] = flags | 4 /* LViewFlags.CreationMode */ | 128 /* LViewFlags.Attached */ | 8 /* LViewFlags.FirstLViewPass */;
            if (embeddedViewInjector !== null || parentLView && parentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */) {
              lView[FLAGS] |= 2048 /* LViewFlags.HasEmbeddedViewInjector */;
            }
          
            resetPreOrderHookFlags(lView);
            ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);
            lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;
            lView[CONTEXT] = context;
            lView[ENVIRONMENT] = environment || parentLView && parentLView[ENVIRONMENT];
            ngDevMode && assertDefined(lView[ENVIRONMENT], 'LViewEnvironment is required');
            lView[RENDERER] = renderer || parentLView && parentLView[RENDERER];
            ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');
            lView[INJECTOR$1] = injector || parentLView && parentLView[INJECTOR$1] || null;
            lView[T_HOST] = tHostNode;
            lView[ID] = getUniqueLViewId();
            lView[HYDRATION] = hydrationInfo;
            lView[EMBEDDED_VIEW_INJECTOR] = embeddedViewInjector;
            ngDevMode && assertEqual(tView.type == 2 /* TViewType.Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');
            lView[DECLARATION_COMPONENT_VIEW] = tView.type == 2 /* TViewType.Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;
            return lView;
          }
          function getOrCreateTNode(tView, index, type, name, attrs) {
            ngDevMode && index !== 0 &&
            // 0 are bogus nodes and they are OK. See `createContainerRef` in
            // `view_engine_compatibility` for additional context.
            assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.');
            // Keep this function short, so that the VM will inline it.
            ngDevMode && assertPureTNodeType(type);
            let tNode = tView.data[index];
            if (tNode === null) {
              tNode = createTNodeAtIndex(tView, index, type, name, attrs);
              if (isInI18nBlock()) {
                // If we are in i18n block then all elements should be pre declared through `Placeholder`
                // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
                // If the `TNode` was not pre-declared than it means it was not mentioned which means it was
                // removed, so we mark it as detached.
                tNode.flags |= 32 /* TNodeFlags.isDetached */;
              }
            } else if (tNode.type & 64 /* TNodeType.Placeholder */) {
              tNode.type = type;
              tNode.value = name;
              tNode.attrs = attrs;
              const parent = getCurrentParentTNode();
              tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;
              ngDevMode && assertTNodeForTView(tNode, tView);
              ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');
            }
            setCurrentTNode(tNode, true);
            return tNode;
          }
          function createTNodeAtIndex(tView, index, type, name, attrs) {
            const currentTNode = getCurrentTNodePlaceholderOk();
            const isParent = isCurrentTNodeParent();
            const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;
            // Parents cannot cross component boundaries because components will be used in multiple places.
            const tNode = tView.data[index] = createTNode(tView, parent, type, index, name, attrs);
            // Assign a pointer to the first child node of a given view. The first node is not always the one
            // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has
            // the index 1 or more, so we can't just check node index.
            if (tView.firstChild === null) {
              tView.firstChild = tNode;
            }
            if (currentTNode !== null) {
              if (isParent) {
                // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?
                if (currentTNode.child == null && tNode.parent !== null) {
                  // We are in the same view, which means we are adding content node to the parent view.
                  currentTNode.child = tNode;
                }
              } else {
                if (currentTNode.next === null) {
                  // In the case of i18n the `currentTNode` may already be linked, in which case we don't want
                  // to break the links which i18n created.
                  currentTNode.next = tNode;
                  tNode.prev = currentTNode;
                }
              }
            }
            return tNode;
          }
          /**
           * When elements are created dynamically after a view blueprint is created (e.g. through
           * i18nApply()), we need to adjust the blueprint for future
           * template passes.
           *
           * @param tView `TView` associated with `LView`
           * @param lView The `LView` containing the blueprint to adjust
           * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0
           * @param initialValue Initial value to store in blueprint
           */
          function allocExpando(tView, lView, numSlotsToAlloc, initialValue) {
            if (numSlotsToAlloc === 0) return -1;
            if (ngDevMode) {
              assertFirstCreatePass(tView);
              assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');
              assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');
              assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');
              assertFirstUpdatePass(tView);
            }
            const allocIdx = lView.length;
            for (let i = 0; i < numSlotsToAlloc; i++) {
              lView.push(initialValue);
              tView.blueprint.push(initialValue);
              tView.data.push(null);
            }
            return allocIdx;
          }
          function executeTemplate(tView, lView, templateFn, rf, context) {
            const consumer = getReactiveLViewConsumer(lView, REACTIVE_TEMPLATE_CONSUMER);
            const prevSelectedIndex = getSelectedIndex();
            const isUpdatePhase = rf & 2 /* RenderFlags.Update */;
            try {
              setSelectedIndex(-1);
              if (isUpdatePhase && lView.length > HEADER_OFFSET) {
                // When we're updating, inherently select 0 so we don't
                // have to generate that instruction for most update blocks.
                selectIndexInternal(tView, lView, HEADER_OFFSET, !!ngDevMode && isInCheckNoChangesMode());
              }
              const preHookType = isUpdatePhase ? 2 /* ProfilerEvent.TemplateUpdateStart */ : 0 /* ProfilerEvent.TemplateCreateStart */;
              profiler(preHookType, context);
              const effectiveConsumer = isUpdatePhase ? consumer : null;
              const prevConsumer = consumerBeforeComputation(effectiveConsumer);
              try {
                if (effectiveConsumer !== null) {
                  effectiveConsumer.dirty = false;
                }
                templateFn(rf, context);
              } finally {
                consumerAfterComputation(effectiveConsumer, prevConsumer);
              }
            } finally {
              if (isUpdatePhase && lView[REACTIVE_TEMPLATE_CONSUMER] === null) {
                commitLViewConsumerIfHasProducers(lView, REACTIVE_TEMPLATE_CONSUMER);
              }
              setSelectedIndex(prevSelectedIndex);
              const postHookType = isUpdatePhase ? 3 /* ProfilerEvent.TemplateUpdateEnd */ : 1 /* ProfilerEvent.TemplateCreateEnd */;
              profiler(postHookType, context);
            }
          }
          //////////////////////////
          //// Element
          //////////////////////////
          function executeContentQueries(tView, tNode, lView) {
            if (isContentQueryHost(tNode)) {
              const prevConsumer = setActiveConsumer(null);
              try {
                const start = tNode.directiveStart;
                const end = tNode.directiveEnd;
                for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {
                  const def = tView.data[directiveIndex];
                  if (def.contentQueries) {
                    def.contentQueries(1 /* RenderFlags.Create */, lView[directiveIndex], directiveIndex);
                  }
                }
              } finally {
                setActiveConsumer(prevConsumer);
              }
            }
          }
          /**
           * Creates directive instances.
           */
          function createDirectivesInstances(tView, lView, tNode) {
            if (!getBindingsEnabled()) return;
            instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));
            if ((tNode.flags & 64 /* TNodeFlags.hasHostBindings */) === 64 /* TNodeFlags.hasHostBindings */) {
              invokeDirectivesHostBindings(tView, lView, tNode);
            }
          }
          /**
           * Takes a list of local names and indices and pushes the resolved local variable values
           * to LView in the same order as they are loaded in the template with load().
           */
          function saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {
            const localNames = tNode.localNames;
            if (localNames !== null) {
              let localIndex = tNode.index + 1;
              for (let i = 0; i < localNames.length; i += 2) {
                const index = localNames[i + 1];
                const value = index === -1 ? localRefExtractor(tNode, viewData) : viewData[index];
                viewData[localIndex++] = value;
              }
            }
          }
          /**
           * Gets TView from a template function or creates a new TView
           * if it doesn't already exist.
           *
           * @param def ComponentDef
           * @returns TView
           */
          function getOrCreateComponentTView(def) {
            const tView = def.tView;
            // Create a TView if there isn't one, or recreate it if the first create pass didn't
            // complete successfully since we can't know for sure whether it's in a usable shape.
            if (tView === null || tView.incompleteFirstPass) {
              // Declaration node here is null since this function is called when we dynamically create a
              // component and hence there is no declaration.
              const declTNode = null;
              return def.tView = createTView(1 /* TViewType.Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts, def.id);
            }
            return tView;
          }
          /**
           * Creates a TView instance
           *
           * @param type Type of `TView`.
           * @param declTNode Declaration location of this `TView`.
           * @param templateFn Template function
           * @param decls The number of nodes, local refs, and pipes in this template
           * @param directives Registry of directives for this view
           * @param pipes Registry of pipes for this view
           * @param viewQuery View queries for this view
           * @param schemas Schemas for this view
           * @param consts Constants for this view
           */
          function createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory, ssrId) {
            ngDevMode && ngDevMode.tView++;
            const bindingStartIndex = HEADER_OFFSET + decls;
            // This length does not yet contain host bindings from child directives because at this point,
            // we don't know which directives are active on this template. As soon as a directive is matched
            // that has a host binding, we will update the blueprint with that def's hostVars count.
            const initialViewLength = bindingStartIndex + vars;
            const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);
            const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;
            const tView = blueprint[TVIEW] = {
              type: type,
              blueprint: blueprint,
              template: templateFn,
              queries: null,
              viewQuery: viewQuery,
              declTNode: declTNode,
              data: blueprint.slice().fill(null, bindingStartIndex),
              bindingStartIndex: bindingStartIndex,
              expandoStartIndex: initialViewLength,
              hostBindingOpCodes: null,
              firstCreatePass: true,
              firstUpdatePass: true,
              staticViewQueries: false,
              staticContentQueries: false,
              preOrderHooks: null,
              preOrderCheckHooks: null,
              contentHooks: null,
              contentCheckHooks: null,
              viewHooks: null,
              viewCheckHooks: null,
              destroyHooks: null,
              cleanup: null,
              contentQueries: null,
              components: null,
              directiveRegistry: typeof directives === 'function' ? directives() : directives,
              pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,
              firstChild: null,
              schemas: schemas,
              consts: consts,
              incompleteFirstPass: false,
              ssrId
            };
            if (ngDevMode) {
              // For performance reasons it is important that the tView retains the same shape during runtime.
              // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
              // prevent class transitions.
              Object.seal(tView);
            }
            return tView;
          }
          function createViewBlueprint(bindingStartIndex, initialViewLength) {
            const blueprint = [];
            for (let i = 0; i < initialViewLength; i++) {
              blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);
            }
            return blueprint;
          }
          /**
           * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.
           *
           * @param renderer the renderer used to locate the element.
           * @param elementOrSelector Render element or CSS selector to locate the element.
           * @param encapsulation View Encapsulation defined for component that requests host element.
           * @param injector Root view injector instance.
           */
          function locateHostElement(renderer, elementOrSelector, encapsulation, injector) {
            // Note: we use default value for the `PRESERVE_HOST_CONTENT` here even though it's a
            // tree-shakable one (providedIn:'root'). This code path can be triggered during dynamic
            // component creation (after calling ViewContainerRef.createComponent) when an injector
            // instance can be provided. The injector instance might be disconnected from the main DI
            // tree, thus the `PRESERVE_HOST_CONTENT` would not be able to instantiate. In this case, the
            // default value will be used.
            const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);
            // When using native Shadow DOM, do not clear host element to allow native slot
            // projection.
            const preserveContent = preserveHostContent || encapsulation === ViewEncapsulation$1.ShadowDom;
            const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);
            applyRootElementTransform(rootElement);
            return rootElement;
          }
          /**
           * Applies any root element transformations that are needed. If hydration is enabled,
           * this will process corrupted text nodes.
           *
           * @param rootElement the app root HTML Element
           */
          function applyRootElementTransform(rootElement) {
            _applyRootElementTransformImpl(rootElement);
          }
          /**
           * Reference to a function that applies transformations to the root HTML element
           * of an app. When hydration is enabled, this processes any corrupt text nodes
           * so they are properly hydratable on the client.
           *
           * @param rootElement the app root HTML Element
           */
          let _applyRootElementTransformImpl = rootElement => null;
          /**
           * Processes text node markers before hydration begins. This replaces any special comment
           * nodes that were added prior to serialization are swapped out to restore proper text
           * nodes before hydration.
           *
           * @param rootElement the app root HTML Element
           */
          function applyRootElementTransformImpl(rootElement) {
            if (hasSkipHydrationAttrOnRElement(rootElement)) {
              // Handle a situation when the `ngSkipHydration` attribute is applied
              // to the root node of an application. In this case, we should clear
              // the contents and render everything from scratch.
              clearElementContents(rootElement);
            } else {
              processTextNodeMarkersBeforeHydration(rootElement);
            }
          }
          /**
           * Sets the implementation for the `applyRootElementTransform` function.
           */
          function enableApplyRootElementTransformImpl() {
            _applyRootElementTransformImpl = applyRootElementTransformImpl;
          }
          /**
           * Saves context for this cleanup function in LView.cleanupInstances.
           *
           * On the first template pass, saves in TView:
           * - Cleanup function
           * - Index of context we just saved in LView.cleanupInstances
           */
          function storeCleanupWithContext(tView, lView, context, cleanupFn) {
            const lCleanup = getOrCreateLViewCleanup(lView);
            // Historically the `storeCleanupWithContext` was used to register both framework-level and
            // user-defined cleanup callbacks, but over time those two types of cleanups were separated.
            // This dev mode checks assures that user-level cleanup callbacks are _not_ stored in data
            // structures reserved for framework-specific hooks.
            ngDevMode && assertDefined(context, 'Cleanup context is mandatory when registering framework-level destroy hooks');
            lCleanup.push(context);
            if (tView.firstCreatePass) {
              getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
            } else {
              // Make sure that no new framework-level cleanup functions are registered after the first
              // template pass is done (and TView data structures are meant to fully constructed).
              if (ngDevMode) {
                Object.freeze(getOrCreateTViewCleanup(tView));
              }
            }
          }
          function createTNode(tView, tParent, type, index, value, attrs) {
            ngDevMode && index !== 0 &&
            // 0 are bogus nodes and they are OK. See `createContainerRef` in
            // `view_engine_compatibility` for additional context.
            assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.');
            ngDevMode && assertNotSame(attrs, undefined, '\'undefined\' is not valid value for \'attrs\'');
            ngDevMode && ngDevMode.tNode++;
            ngDevMode && tParent && assertTNodeForTView(tParent, tView);
            let injectorIndex = tParent ? tParent.injectorIndex : -1;
            let flags = 0;
            if (isInSkipHydrationBlock$1()) {
              flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;
            }
          
            const tNode = {
              type,
              index,
              insertBeforeIndex: null,
              injectorIndex,
              directiveStart: -1,
              directiveEnd: -1,
              directiveStylingLast: -1,
              componentOffset: -1,
              propertyBindings: null,
              flags,
              providerIndexes: 0,
              value: value,
              attrs: attrs,
              mergedAttrs: null,
              localNames: null,
              initialInputs: undefined,
              inputs: null,
              outputs: null,
              tView: null,
              next: null,
              prev: null,
              projectionNext: null,
              child: null,
              parent: tParent,
              projection: null,
              styles: null,
              stylesWithoutHost: null,
              residualStyles: undefined,
              classes: null,
              classesWithoutHost: null,
              residualClasses: undefined,
              classBindings: 0,
              styleBindings: 0
            };
            if (ngDevMode) {
              // For performance reasons it is important that the tNode retains the same shape during runtime.
              // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
              // prevent class transitions.
              Object.seal(tNode);
            }
            return tNode;
          }
          /**
           * Generates the `PropertyAliases` data structure from the provided input/output mapping.
           * @param aliasMap Input/output mapping from the directive definition.
           * @param directiveIndex Index of the directive.
           * @param propertyAliases Object in which to store the results.
           * @param hostDirectiveAliasMap Object used to alias or filter out properties for host directives.
           * If the mapping is provided, it'll act as an allowlist, as well as a mapping of what public
           * name inputs/outputs should be exposed under.
           */
          function generatePropertyAliases(aliasMap, directiveIndex, propertyAliases, hostDirectiveAliasMap) {
            for (let publicName in aliasMap) {
              if (aliasMap.hasOwnProperty(publicName)) {
                propertyAliases = propertyAliases === null ? {} : propertyAliases;
                const internalName = aliasMap[publicName];
                // If there are no host directive mappings, we want to remap using the alias map from the
                // definition itself. If there is an alias map, it has two functions:
                // 1. It serves as an allowlist of bindings that are exposed by the host directives. Only the
                // ones inside the host directive map will be exposed on the host.
                // 2. The public name of the property is aliased using the host directive alias map, rather
                // than the alias map from the definition.
                if (hostDirectiveAliasMap === null) {
                  addPropertyAlias(propertyAliases, directiveIndex, publicName, internalName);
                } else if (hostDirectiveAliasMap.hasOwnProperty(publicName)) {
                  addPropertyAlias(propertyAliases, directiveIndex, hostDirectiveAliasMap[publicName], internalName);
                }
              }
            }
            return propertyAliases;
          }
          function addPropertyAlias(propertyAliases, directiveIndex, publicName, internalName) {
            if (propertyAliases.hasOwnProperty(publicName)) {
              propertyAliases[publicName].push(directiveIndex, internalName);
            } else {
              propertyAliases[publicName] = [directiveIndex, internalName];
            }
          }
          /**
           * Initializes data structures required to work with directive inputs and outputs.
           * Initialization is done for all directives matched on a given TNode.
           */
          function initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefinitionMap) {
            ngDevMode && assertFirstCreatePass(tView);
            const start = tNode.directiveStart;
            const end = tNode.directiveEnd;
            const tViewData = tView.data;
            const tNodeAttrs = tNode.attrs;
            const inputsFromAttrs = [];
            let inputsStore = null;
            let outputsStore = null;
            for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {
              const directiveDef = tViewData[directiveIndex];
              const aliasData = hostDirectiveDefinitionMap ? hostDirectiveDefinitionMap.get(directiveDef) : null;
              const aliasedInputs = aliasData ? aliasData.inputs : null;
              const aliasedOutputs = aliasData ? aliasData.outputs : null;
              inputsStore = generatePropertyAliases(directiveDef.inputs, directiveIndex, inputsStore, aliasedInputs);
              outputsStore = generatePropertyAliases(directiveDef.outputs, directiveIndex, outputsStore, aliasedOutputs);
              // Do not use unbound attributes as inputs to structural directives, since structural
              // directive inputs can only be set using microsyntax (e.g. `<div *dir="exp">`).
              // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which
              // should be set for inline templates.
              const initialInputs = inputsStore !== null && tNodeAttrs !== null && !isInlineTemplate(tNode) ? generateInitialInputs(inputsStore, directiveIndex, tNodeAttrs) : null;
              inputsFromAttrs.push(initialInputs);
            }
            if (inputsStore !== null) {
              if (inputsStore.hasOwnProperty('class')) {
                tNode.flags |= 8 /* TNodeFlags.hasClassInput */;
              }
          
              if (inputsStore.hasOwnProperty('style')) {
                tNode.flags |= 16 /* TNodeFlags.hasStyleInput */;
              }
            }
          
            tNode.initialInputs = inputsFromAttrs;
            tNode.inputs = inputsStore;
            tNode.outputs = outputsStore;
          }
          /**
           * Mapping between attributes names that don't correspond to their element property names.
           *
           * Performance note: this function is written as a series of if checks (instead of, say, a property
           * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of
           * mapping property names. Do NOT change without benchmarking.
           *
           * Note: this mapping has to be kept in sync with the equally named mapping in the template
           * type-checking machinery of ngtsc.
           */
          function mapPropName(name) {
            if (name === 'class') return 'className';
            if (name === 'for') return 'htmlFor';
            if (name === 'formaction') return 'formAction';
            if (name === 'innerHtml') return 'innerHTML';
            if (name === 'readonly') return 'readOnly';
            if (name === 'tabindex') return 'tabIndex';
            return name;
          }
          function elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {
            ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
            const element = getNativeByTNode(tNode, lView);
            let inputData = tNode.inputs;
            let dataValue;
            if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {
              setInputsForProperty(tView, lView, dataValue, propName, value);
              if (isComponentHost(tNode)) markDirtyIfOnPush(lView, tNode.index);
              if (ngDevMode) {
                setNgReflectProperties(lView, element, tNode.type, dataValue, value);
              }
            } else if (tNode.type & 3 /* TNodeType.AnyRNode */) {
              propName = mapPropName(propName);
              if (ngDevMode) {
                validateAgainstEventProperties(propName);
                if (!isPropertyValid(element, propName, tNode.value, tView.schemas)) {
                  handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);
                }
                ngDevMode.rendererSetProperty++;
              }
              // It is assumed that the sanitizer is only added when the compiler determines that the
              // property is risky, so sanitization can be done without further checks.
              value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;
              renderer.setProperty(element, propName, value);
            } else if (tNode.type & 12 /* TNodeType.AnyContainer */) {
              // If the node is a container and the property didn't
              // match any of the inputs or schemas we should throw.
              if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {
                handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);
              }
            }
          }
          /** If node is an OnPush component, marks its LView dirty. */
          function markDirtyIfOnPush(lView, viewIndex) {
            ngDevMode && assertLView(lView);
            const childComponentLView = getComponentLViewByIndex(viewIndex, lView);
            if (!(childComponentLView[FLAGS] & 16 /* LViewFlags.CheckAlways */)) {
              childComponentLView[FLAGS] |= 64 /* LViewFlags.Dirty */;
            }
          }
          
          function setNgReflectProperty(lView, element, type, attrName, value) {
            const renderer = lView[RENDERER];
            attrName = normalizeDebugBindingName(attrName);
            const debugValue = normalizeDebugBindingValue(value);
            if (type & 3 /* TNodeType.AnyRNode */) {
              if (value == null) {
                renderer.removeAttribute(element, attrName);
              } else {
                renderer.setAttribute(element, attrName, debugValue);
              }
            } else {
              const textContent = escapeCommentText(`bindings=${JSON.stringify({
                [attrName]: debugValue
              }, null, 2)}`);
              renderer.setValue(element, textContent);
            }
          }
          function setNgReflectProperties(lView, element, type, dataValue, value) {
            if (type & (3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */)) {
              /**
               * dataValue is an array containing runtime input or output names for the directives:
               * i+0: directive instance index
               * i+1: privateName
               *
               * e.g. [0, 'change', 'change-minified']
               * we want to set the reflected property with the privateName: dataValue[i+1]
               */
              for (let i = 0; i < dataValue.length; i += 2) {
                setNgReflectProperty(lView, element, type, dataValue[i + 1], value);
              }
            }
          }
          /**
           * Resolve the matched directives on a node.
           */
          function resolveDirectives(tView, lView, tNode, localRefs) {
            // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in
            // tsickle.
            ngDevMode && assertFirstCreatePass(tView);
            if (getBindingsEnabled()) {
              const exportsMap = localRefs === null ? null : {
                '': -1
              };
              const matchResult = findDirectiveDefMatches(tView, tNode);
              let directiveDefs;
              let hostDirectiveDefs;
              if (matchResult === null) {
                directiveDefs = hostDirectiveDefs = null;
              } else {
                [directiveDefs, hostDirectiveDefs] = matchResult;
              }
              if (directiveDefs !== null) {
                initializeDirectives(tView, lView, tNode, directiveDefs, exportsMap, hostDirectiveDefs);
              }
              if (exportsMap) cacheMatchingLocalNames(tNode, localRefs, exportsMap);
            }
            // Merge the template attrs last so that they have the highest priority.
            tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);
          }
          /** Initializes the data structures necessary for a list of directives to be instantiated. */
          function initializeDirectives(tView, lView, tNode, directives, exportsMap, hostDirectiveDefs) {
            ngDevMode && assertFirstCreatePass(tView);
            // Publishes the directive types to DI so they can be injected. Needs to
            // happen in a separate pass before the TNode flags have been initialized.
            for (let i = 0; i < directives.length; i++) {
              diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, directives[i].type);
            }
            initTNodeFlags(tNode, tView.data.length, directives.length);
            // When the same token is provided by several directives on the same node, some rules apply in
            // the viewEngine:
            // - viewProviders have priority over providers
            // - the last directive in NgModule.declarations has priority over the previous one
            // So to match these rules, the order in which providers are added in the arrays is very
            // important.
            for (let i = 0; i < directives.length; i++) {
              const def = directives[i];
              if (def.providersResolver) def.providersResolver(def);
            }
            let preOrderHooksFound = false;
            let preOrderCheckHooksFound = false;
            let directiveIdx = allocExpando(tView, lView, directives.length, null);
            ngDevMode && assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');
            for (let i = 0; i < directives.length; i++) {
              const def = directives[i];
              // Merge the attrs in the order of matches. This assumes that the first directive is the
              // component itself, so that the component has the least priority.
              tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);
              configureViewWithDirective(tView, tNode, lView, directiveIdx, def);
              saveNameToExportMap(directiveIdx, def, exportsMap);
              if (def.contentQueries !== null) tNode.flags |= 4 /* TNodeFlags.hasContentQuery */;
              if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0) tNode.flags |= 64 /* TNodeFlags.hasHostBindings */;
              const lifeCycleHooks = def.type.prototype;
              // Only push a node index into the preOrderHooks array if this is the first
              // pre-order hook found on this node.
              if (!preOrderHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {
                // We will push the actual hook function into this array later during dir instantiation.
                // We cannot do it now because we must ensure hooks are registered in the same
                // order that directives are created (i.e. injection order).
                (tView.preOrderHooks ??= []).push(tNode.index);
                preOrderHooksFound = true;
              }
              if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {
                (tView.preOrderCheckHooks ??= []).push(tNode.index);
                preOrderCheckHooksFound = true;
              }
              directiveIdx++;
            }
            initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefs);
          }
          /**
           * Add `hostBindings` to the `TView.hostBindingOpCodes`.
           *
           * @param tView `TView` to which the `hostBindings` should be added.
           * @param tNode `TNode` the element which contains the directive
           * @param directiveIdx Directive index in view.
           * @param directiveVarsIdx Where will the directive's vars be stored
           * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.
           */
          function registerHostBindingOpCodes(tView, tNode, directiveIdx, directiveVarsIdx, def) {
            ngDevMode && assertFirstCreatePass(tView);
            const hostBindings = def.hostBindings;
            if (hostBindings) {
              let hostBindingOpCodes = tView.hostBindingOpCodes;
              if (hostBindingOpCodes === null) {
                hostBindingOpCodes = tView.hostBindingOpCodes = [];
              }
              const elementIndx = ~tNode.index;
              if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {
                // Conditionally add select element so that we are more efficient in execution.
                // NOTE: this is strictly not necessary and it trades code size for runtime perf.
                // (We could just always add it.)
                hostBindingOpCodes.push(elementIndx);
              }
              hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);
            }
          }
          /**
           * Returns the last selected element index in the `HostBindingOpCodes`
           *
           * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only
           * if it changes. This method returns the last index (or '0' if not found.)
           *
           * Selected element index are only the ones which are negative.
           */
          function lastSelectedElementIdx(hostBindingOpCodes) {
            let i = hostBindingOpCodes.length;
            while (i > 0) {
              const value = hostBindingOpCodes[--i];
              if (typeof value === 'number' && value < 0) {
                return value;
              }
            }
            return 0;
          }
          /**
           * Instantiate all the directives that were previously resolved on the current node.
           */
          function instantiateAllDirectives(tView, lView, tNode, native) {
            const start = tNode.directiveStart;
            const end = tNode.directiveEnd;
            // The component view needs to be created before creating the node injector
            // since it is used to inject some special symbols like `ChangeDetectorRef`.
            if (isComponentHost(tNode)) {
              ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);
              addComponentLogic(lView, tNode, tView.data[start + tNode.componentOffset]);
            }
            if (!tView.firstCreatePass) {
              getOrCreateNodeInjectorForNode(tNode, lView);
            }
            attachPatchData(native, lView);
            const initialInputs = tNode.initialInputs;
            for (let i = start; i < end; i++) {
              const def = tView.data[i];
              const directive = getNodeInjectable(lView, tView, i, tNode);
              attachPatchData(directive, lView);
              if (initialInputs !== null) {
                setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);
              }
              if (isComponentDef(def)) {
                const componentView = getComponentLViewByIndex(tNode.index, lView);
                componentView[CONTEXT] = getNodeInjectable(lView, tView, i, tNode);
              }
            }
          }
          function invokeDirectivesHostBindings(tView, lView, tNode) {
            const start = tNode.directiveStart;
            const end = tNode.directiveEnd;
            const elementIndex = tNode.index;
            const currentDirectiveIndex = getCurrentDirectiveIndex();
            try {
              setSelectedIndex(elementIndex);
              for (let dirIndex = start; dirIndex < end; dirIndex++) {
                const def = tView.data[dirIndex];
                const directive = lView[dirIndex];
                setCurrentDirectiveIndex(dirIndex);
                if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {
                  invokeHostBindingsInCreationMode(def, directive);
                }
              }
            } finally {
              setSelectedIndex(-1);
              setCurrentDirectiveIndex(currentDirectiveIndex);
            }
          }
          /**
           * Invoke the host bindings in creation mode.
           *
           * @param def `DirectiveDef` which may contain the `hostBindings` function.
           * @param directive Instance of directive.
           */
          function invokeHostBindingsInCreationMode(def, directive) {
            if (def.hostBindings !== null) {
              def.hostBindings(1 /* RenderFlags.Create */, directive);
            }
          }
          /**
           * Matches the current node against all available selectors.
           * If a component is matched (at most one), it is returned in first position in the array.
           */
          function findDirectiveDefMatches(tView, tNode) {
            ngDevMode && assertFirstCreatePass(tView);
            ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);
            const registry = tView.directiveRegistry;
            let matches = null;
            let hostDirectiveDefs = null;
            if (registry) {
              for (let i = 0; i < registry.length; i++) {
                const def = registry[i];
                if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */false)) {
                  matches || (matches = []);
                  if (isComponentDef(def)) {
                    if (ngDevMode) {
                      assertTNodeType(tNode, 2 /* TNodeType.Element */, `"${tNode.value}" tags cannot be used as component hosts. ` + `Please use a different tag to activate the ${stringify(def.type)} component.`);
                      if (isComponentHost(tNode)) {
                        throwMultipleComponentError(tNode, matches.find(isComponentDef).type, def.type);
                      }
                    }
                    // Components are inserted at the front of the matches array so that their lifecycle
                    // hooks run before any directive lifecycle hooks. This appears to be for ViewEngine
                    // compatibility. This logic doesn't make sense with host directives, because it
                    // would allow the host directives to undo any overrides the host may have made.
                    // To handle this case, the host directives of components are inserted at the beginning
                    // of the array, followed by the component. As such, the insertion order is as follows:
                    // 1. Host directives belonging to the selector-matched component.
                    // 2. Selector-matched component.
                    // 3. Host directives belonging to selector-matched directives.
                    // 4. Selector-matched directives.
                    if (def.findHostDirectiveDefs !== null) {
                      const hostDirectiveMatches = [];
                      hostDirectiveDefs = hostDirectiveDefs || new Map();
                      def.findHostDirectiveDefs(def, hostDirectiveMatches, hostDirectiveDefs);
                      // Add all host directives declared on this component, followed by the component itself.
                      // Host directives should execute first so the host has a chance to override changes
                      // to the DOM made by them.
                      matches.unshift(...hostDirectiveMatches, def);
                      // Component is offset starting from the beginning of the host directives array.
                      const componentOffset = hostDirectiveMatches.length;
                      markAsComponentHost(tView, tNode, componentOffset);
                    } else {
                      // No host directives on this component, just add the
                      // component def to the beginning of the matches.
                      matches.unshift(def);
                      markAsComponentHost(tView, tNode, 0);
                    }
                  } else {
                    // Append any host directives to the matches first.
                    hostDirectiveDefs = hostDirectiveDefs || new Map();
                    def.findHostDirectiveDefs?.(def, matches, hostDirectiveDefs);
                    matches.push(def);
                  }
                }
              }
            }
            return matches === null ? null : [matches, hostDirectiveDefs];
          }
          /**
           * Marks a given TNode as a component's host. This consists of:
           * - setting the component offset on the TNode.
           * - storing index of component's host element so it will be queued for view refresh during CD.
           */
          function markAsComponentHost(tView, hostTNode, componentOffset) {
            ngDevMode && assertFirstCreatePass(tView);
            ngDevMode && assertGreaterThan(componentOffset, -1, 'componentOffset must be great than -1');
            hostTNode.componentOffset = componentOffset;
            (tView.components ??= []).push(hostTNode.index);
          }
          /** Caches local names and their matching directive indices for query and template lookups. */
          function cacheMatchingLocalNames(tNode, localRefs, exportsMap) {
            if (localRefs) {
              const localNames = tNode.localNames = [];
              // Local names must be stored in tNode in the same order that localRefs are defined
              // in the template to ensure the data is loaded in the same slots as their refs
              // in the template (for template queries).
              for (let i = 0; i < localRefs.length; i += 2) {
                const index = exportsMap[localRefs[i + 1]];
                if (index == null) throw new RuntimeError(-301 /* RuntimeErrorCode.EXPORT_NOT_FOUND */, ngDevMode && `Export of name '${localRefs[i + 1]}' not found!`);
                localNames.push(localRefs[i], index);
              }
            }
          }
          /**
           * Builds up an export map as directives are created, so local refs can be quickly mapped
           * to their directive instances.
           */
          function saveNameToExportMap(directiveIdx, def, exportsMap) {
            if (exportsMap) {
              if (def.exportAs) {
                for (let i = 0; i < def.exportAs.length; i++) {
                  exportsMap[def.exportAs[i]] = directiveIdx;
                }
              }
              if (isComponentDef(def)) exportsMap[''] = directiveIdx;
            }
          }
          /**
           * Initializes the flags on the current node, setting all indices to the initial index,
           * the directive count to 0, and adding the isComponent flag.
           * @param index the initial index
           */
          function initTNodeFlags(tNode, index, numberOfDirectives) {
            ngDevMode && assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');
            tNode.flags |= 1 /* TNodeFlags.isDirectiveHost */;
            // When the first directive is created on a node, save the index
            tNode.directiveStart = index;
            tNode.directiveEnd = index + numberOfDirectives;
            tNode.providerIndexes = index;
          }
          /**
           * Setup directive for instantiation.
           *
           * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well
           * as `LView`. `TView` gets the `DirectiveDef`.
           *
           * @param tView `TView`
           * @param tNode `TNode`
           * @param lView `LView`
           * @param directiveIndex Index where the directive will be stored in the Expando.
           * @param def `DirectiveDef`
           */
          function configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {
            ngDevMode && assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');
            tView.data[directiveIndex] = def;
            const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));
            // Even though `directiveFactory` will already be using `ɵɵdirectiveInject` in its generated code,
            // we also want to support `inject()` directly from the directive constructor context so we set
            // `ɵɵdirectiveInject` as the inject implementation here too.
            const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), ɵɵdirectiveInject);
            tView.blueprint[directiveIndex] = nodeInjectorFactory;
            lView[directiveIndex] = nodeInjectorFactory;
            registerHostBindingOpCodes(tView, tNode, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);
          }
          function addComponentLogic(lView, hostTNode, def) {
            const native = getNativeByTNode(hostTNode, lView);
            const tView = getOrCreateComponentTView(def);
            // Only component views should be added to the view tree directly. Embedded views are
            // accessed through their containers because they may be removed / re-added later.
            const rendererFactory = lView[ENVIRONMENT].rendererFactory;
            let lViewFlags = 16 /* LViewFlags.CheckAlways */;
            if (def.signals) {
              lViewFlags = 4096 /* LViewFlags.SignalView */;
            } else if (def.onPush) {
              lViewFlags = 64 /* LViewFlags.Dirty */;
            }
          
            const componentView = addToViewTree(lView, createLView(lView, tView, null, lViewFlags, native, hostTNode, null, rendererFactory.createRenderer(native, def), null, null, null));
            // Component view will always be created before any injected LContainers,
            // so this is a regular element, wrap it with the component view
            lView[hostTNode.index] = componentView;
          }
          function elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {
            if (ngDevMode) {
              assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
              validateAgainstEventAttributes(name);
              assertTNodeType(tNode, 2 /* TNodeType.Element */, `Attempted to set attribute \`${name}\` on a container node. ` + `Host bindings are not valid on ng-container or ng-template.`);
            }
            const element = getNativeByTNode(tNode, lView);
            setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);
          }
          function setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {
            if (value == null) {
              ngDevMode && ngDevMode.rendererRemoveAttribute++;
              renderer.removeAttribute(element, name, namespace);
            } else {
              ngDevMode && ngDevMode.rendererSetAttribute++;
              const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);
              renderer.setAttribute(element, name, strValue, namespace);
            }
          }
          /**
           * Sets initial input properties on directive instances from attribute data
           *
           * @param lView Current LView that is being processed.
           * @param directiveIndex Index of the directive in directives array
           * @param instance Instance of the directive on which to set the initial inputs
           * @param def The directive def that contains the list of inputs
           * @param tNode The static data for this node
           */
          function setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {
            const initialInputs = initialInputData[directiveIndex];
            if (initialInputs !== null) {
              for (let i = 0; i < initialInputs.length;) {
                const publicName = initialInputs[i++];
                const privateName = initialInputs[i++];
                const value = initialInputs[i++];
                writeToDirectiveInput(def, instance, publicName, privateName, value);
                if (ngDevMode) {
                  const nativeElement = getNativeByTNode(tNode, lView);
                  setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);
                }
              }
            }
          }
          function writeToDirectiveInput(def, instance, publicName, privateName, value) {
            const prevConsumer = setActiveConsumer(null);
            try {
              const inputTransforms = def.inputTransforms;
              if (inputTransforms !== null && inputTransforms.hasOwnProperty(privateName)) {
                value = inputTransforms[privateName].call(instance, value);
              }
              if (def.setInput !== null) {
                def.setInput(instance, value, publicName, privateName);
              } else {
                instance[privateName] = value;
              }
            } finally {
              setActiveConsumer(prevConsumer);
            }
          }
          /**
           * Generates initialInputData for a node and stores it in the template's static storage
           * so subsequent template invocations don't have to recalculate it.
           *
           * initialInputData is an array containing values that need to be set as input properties
           * for directives on this node, but only once on creation. We need this array to support
           * the case where you set an @Input property of a directive using attribute-like syntax.
           * e.g. if you have a `name` @Input, you can set it once like this:
           *
           * <my-component name="Bess"></my-component>
           *
           * @param inputs Input alias map that was generated from the directive def inputs.
           * @param directiveIndex Index of the directive that is currently being processed.
           * @param attrs Static attrs on this node.
           */
          function generateInitialInputs(inputs, directiveIndex, attrs) {
            let inputsToStore = null;
            let i = 0;
            while (i < attrs.length) {
              const attrName = attrs[i];
              if (attrName === 0 /* AttributeMarker.NamespaceURI */) {
                // We do not allow inputs on namespaced attributes.
                i += 4;
                continue;
              } else if (attrName === 5 /* AttributeMarker.ProjectAs */) {
                // Skip over the `ngProjectAs` value.
                i += 2;
                continue;
              }
              // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.
              if (typeof attrName === 'number') break;
              if (inputs.hasOwnProperty(attrName)) {
                if (inputsToStore === null) inputsToStore = [];
                // Find the input's public name from the input store. Note that we can be found easier
                // through the directive def, but we want to do it using the inputs store so that it can
                // account for host directive aliases.
                const inputConfig = inputs[attrName];
                for (let j = 0; j < inputConfig.length; j += 2) {
                  if (inputConfig[j] === directiveIndex) {
                    inputsToStore.push(attrName, inputConfig[j + 1], attrs[i + 1]);
                    // A directive can't have multiple inputs with the same name so we can break here.
                    break;
                  }
                }
              }
              i += 2;
            }
            return inputsToStore;
          }
          //////////////////////////
          //// ViewContainer & View
          //////////////////////////
          /**
           * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.
           *
           * @param hostNative The host element for the LContainer
           * @param hostTNode The host TNode for the LContainer
           * @param currentView The parent view of the LContainer
           * @param native The native comment element
           * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case
           * @returns LContainer
           */
          function createLContainer(hostNative, currentView, native, tNode) {
            ngDevMode && assertLView(currentView);
            const lContainer = [hostNative, true, false, currentView, null, 0, tNode, native, null, null, null // dehydrated views
            ];
          
            ngDevMode && assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');
            return lContainer;
          }
          /** Refreshes all content queries declared by directives in a given view */
          function refreshContentQueries(tView, lView) {
            const contentQueries = tView.contentQueries;
            if (contentQueries !== null) {
              for (let i = 0; i < contentQueries.length; i += 2) {
                const queryStartIdx = contentQueries[i];
                const directiveDefIdx = contentQueries[i + 1];
                if (directiveDefIdx !== -1) {
                  const directiveDef = tView.data[directiveDefIdx];
                  ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');
                  ngDevMode && assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');
                  setCurrentQueryIndex(queryStartIdx);
                  directiveDef.contentQueries(2 /* RenderFlags.Update */, lView[directiveDefIdx], directiveDefIdx);
                }
              }
            }
          }
          /**
           * Adds LView or LContainer to the end of the current view tree.
           *
           * This structure will be used to traverse through nested views to remove listeners
           * and call onDestroy callbacks.
           *
           * @param lView The view where LView or LContainer should be added
           * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header
           * @param lViewOrLContainer The LView or LContainer to add to the view tree
           * @returns The state passed in
           */
          function addToViewTree(lView, lViewOrLContainer) {
            // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer
            // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out
            // of order, the change detection will run out of order, as the act of retrieving the the
            // LContainer from the RNode is what adds it to the queue.
            if (lView[CHILD_HEAD]) {
              lView[CHILD_TAIL][NEXT] = lViewOrLContainer;
            } else {
              lView[CHILD_HEAD] = lViewOrLContainer;
            }
            lView[CHILD_TAIL] = lViewOrLContainer;
            return lViewOrLContainer;
          }
          ///////////////////////////////
          //// Change detection
          ///////////////////////////////
          function executeViewQueryFn(flags, viewQueryFn, component) {
            ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');
            setCurrentQueryIndex(0);
            const prevConsumer = setActiveConsumer(null);
            try {
              viewQueryFn(flags, component);
            } finally {
              setActiveConsumer(prevConsumer);
            }
          }
          ///////////////////////////////
          //// Bindings & interpolations
          ///////////////////////////////
          /**
           * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.
           *
           * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:
           * - a bound property name;
           * - a static parts of interpolated strings;
           *
           * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a
           * property binding metadata will be stored in `TView.data` at the same index as a bound value in
           * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the
           * following format:
           * - `propertyName` for bound properties;
           * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for
           * interpolated properties.
           *
           * @param tData `TData` where meta-data will be saved;
           * @param tNode `TNode` that is a target of the binding;
           * @param propertyName bound property name;
           * @param bindingIndex binding index in `LView`
           * @param interpolationParts static interpolation parts (for property interpolations)
           */
          function storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {
            // Binding meta-data are stored only the first time a given property instruction is processed.
            // Since we don't have a concept of the "first update pass" we need to check for presence of the
            // binding meta-data to decide if one should be stored (or if was stored already).
            if (tData[bindingIndex] === null) {
              if (tNode.inputs == null || !tNode.inputs[propertyName]) {
                const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);
                propBindingIdxs.push(bindingIndex);
                let bindingMetadata = propertyName;
                if (interpolationParts.length > 0) {
                  bindingMetadata += INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);
                }
                tData[bindingIndex] = bindingMetadata;
              }
            }
          }
          function getOrCreateLViewCleanup(view) {
            // top level variables should not be exported for performance reasons (PERF_NOTES.md)
            return view[CLEANUP] || (view[CLEANUP] = []);
          }
          function getOrCreateTViewCleanup(tView) {
            return tView.cleanup || (tView.cleanup = []);
          }
          /**
           * There are cases where the sub component's renderer needs to be included
           * instead of the current renderer (see the componentSyntheticHost* instructions).
           */
          function loadComponentRenderer(currentDef, tNode, lView) {
            // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root
            // component (see packages/core/src/render3/component.ts). This is not consistent with the process
            // of creating inner components, when current directive index is available in the state. In order
            // to avoid relying on current def being `null` (thus special-casing root component creation), the
            // process of creating root component should be unified with the process of creating inner
            // components.
            if (currentDef === null || isComponentDef(currentDef)) {
              lView = unwrapLView(lView[tNode.index]);
            }
            return lView[RENDERER];
          }
          /** Handles an error thrown in an LView. */
          function handleError(lView, error) {
            const injector = lView[INJECTOR$1];
            const errorHandler = injector ? injector.get(ErrorHandler, null) : null;
            errorHandler && errorHandler.handleError(error);
          }
          /**
           * Set the inputs of directives at the current node to corresponding value.
           *
           * @param tView The current TView
           * @param lView the `LView` which contains the directives.
           * @param inputs mapping between the public "input" name and privately-known,
           *        possibly minified, property names to write to.
           * @param value Value to set.
           */
          function setInputsForProperty(tView, lView, inputs, publicName, value) {
            for (let i = 0; i < inputs.length;) {
              const index = inputs[i++];
              const privateName = inputs[i++];
              const instance = lView[index];
              ngDevMode && assertIndexInRange(lView, index);
              const def = tView.data[index];
              writeToDirectiveInput(def, instance, publicName, privateName, value);
            }
          }
          /**
           * Updates a text binding at a given index in a given LView.
           */
          function textBindingInternal(lView, index, value) {
            ngDevMode && assertString(value, 'Value should be a string');
            ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');
            ngDevMode && assertIndexInRange(lView, index);
            const element = getNativeByIndex(index, lView);
            ngDevMode && assertDefined(element, 'native element should exist');
            updateTextNode(lView[RENDERER], element, value);
          }
          function renderComponent(hostLView, componentHostIdx) {
            ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');
            const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);
            const componentTView = componentView[TVIEW];
            syncViewWithBlueprint(componentTView, componentView);
            const hostRNode = componentView[HOST];
            // Populate an LView with hydration info retrieved from the DOM via TransferState.
            if (hostRNode !== null && componentView[HYDRATION] === null) {
              componentView[HYDRATION] = retrieveHydrationInfo(hostRNode, componentView[INJECTOR$1]);
            }
            renderView(componentTView, componentView, componentView[CONTEXT]);
          }
          /**
           * Syncs an LView instance with its blueprint if they have gotten out of sync.
           *
           * Typically, blueprints and their view instances should always be in sync, so the loop here
           * will be skipped. However, consider this case of two components side-by-side:
           *
           * App template:
           * ```
           * <comp></comp>
           * <comp></comp>
           * ```
           *
           * The following will happen:
           * 1. App template begins processing.
           * 2. First <comp> is matched as a component and its LView is created.
           * 3. Second <comp> is matched as a component and its LView is created.
           * 4. App template completes processing, so it's time to check child templates.
           * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.
           * 6. Second <comp> template is checked. Its blueprint has been updated by the first
           * <comp> template, but its LView was created before this update, so it is out of sync.
           *
           * Note that embedded views inside ngFor loops will never be out of sync because these views
           * are processed as soon as they are created.
           *
           * @param tView The `TView` that contains the blueprint for syncing
           * @param lView The view to sync
           */
          function syncViewWithBlueprint(tView, lView) {
            for (let i = lView.length; i < tView.blueprint.length; i++) {
              lView.push(tView.blueprint[i]);
            }
          }
          /**
           * Processes a view in the creation mode. This includes a number of steps in a specific order:
           * - creating view query functions (if any);
           * - executing a template function in the creation mode;
           * - updating static queries (if any);
           * - creating child components defined in a given view.
           */
          function renderView(tView, lView, context) {
            ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');
            enterView(lView);
            try {
              const viewQuery = tView.viewQuery;
              if (viewQuery !== null) {
                executeViewQueryFn(1 /* RenderFlags.Create */, viewQuery, context);
              }
              // Execute a template associated with this view, if it exists. A template function might not be
              // defined for the root component views.
              const templateFn = tView.template;
              if (templateFn !== null) {
                executeTemplate(tView, lView, templateFn, 1 /* RenderFlags.Create */, context);
              }
              // This needs to be set before children are processed to support recursive components.
              // This must be set to false immediately after the first creation run because in an
              // ngFor loop, all the views will be created together before update mode runs and turns
              // off firstCreatePass. If we don't set it here, instances will perform directive
              // matching, etc again and again.
              if (tView.firstCreatePass) {
                tView.firstCreatePass = false;
              }
              // We resolve content queries specifically marked as `static` in creation mode. Dynamic
              // content queries are resolved during change detection (i.e. update mode), after embedded
              // views are refreshed (see block above).
              if (tView.staticContentQueries) {
                refreshContentQueries(tView, lView);
              }
              // We must materialize query results before child components are processed
              // in case a child component has projected a container. The LContainer needs
              // to exist so the embedded views are properly attached by the container.
              if (tView.staticViewQueries) {
                executeViewQueryFn(2 /* RenderFlags.Update */, tView.viewQuery, context);
              }
              // Render child component views.
              const components = tView.components;
              if (components !== null) {
                renderChildComponents(lView, components);
              }
            } catch (error) {
              // If we didn't manage to get past the first template pass due to
              // an error, mark the view as corrupted so we can try to recover.
              if (tView.firstCreatePass) {
                tView.incompleteFirstPass = true;
                tView.firstCreatePass = false;
              }
              throw error;
            } finally {
              lView[FLAGS] &= ~4 /* LViewFlags.CreationMode */;
              leaveView();
            }
          }
          /** Renders child components in the current view (creation mode). */
          function renderChildComponents(hostLView, components) {
            for (let i = 0; i < components.length; i++) {
              renderComponent(hostLView, components[i]);
            }
          }
          
          /**
           * Tracks all effects registered within a given application and runs them via `flush`.
           */
          class EffectManager {
            constructor() {
              this.all = new Set();
              this.queue = new Map();
            }
            create(effectFn, destroyRef, allowSignalWrites) {
              const zone = typeof Zone === 'undefined' ? null : Zone.current;
              const w = watch(effectFn, watch => {
                if (!this.all.has(watch)) {
                  return;
                }
                this.queue.set(watch, zone);
              }, allowSignalWrites);
              this.all.add(w);
              // Effects start dirty.
              w.notify();
              let unregisterOnDestroy;
              const destroy = () => {
                w.cleanup();
                unregisterOnDestroy?.();
                this.all.delete(w);
                this.queue.delete(w);
              };
              unregisterOnDestroy = destroyRef?.onDestroy(destroy);
              return {
                destroy
              };
            }
            flush() {
              if (this.queue.size === 0) {
                return;
              }
              for (const [watch, zone] of this.queue) {
                this.queue.delete(watch);
                if (zone) {
                  zone.run(() => watch.run());
                } else {
                  watch.run();
                }
              }
            }
            get isQueueEmpty() {
              return this.queue.size === 0;
            }
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: EffectManager,
                providedIn: 'root',
                factory: () => new EffectManager()
              });
            }
          }
          /**
           * Create a global `Effect` for the given reactive function.
           *
           * @developerPreview
           */
          function effect(effectFn, options) {
            !options?.injector && assertInInjectionContext(effect);
            const injector = options?.injector ?? inject(Injector);
            const effectManager = injector.get(EffectManager);
            const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;
            return effectManager.create(effectFn, destroyRef, !!options?.allowSignalWrites);
          }
          
          /**
           * Compute the static styling (class/style) from `TAttributes`.
           *
           * This function should be called during `firstCreatePass` only.
           *
           * @param tNode The `TNode` into which the styling information should be loaded.
           * @param attrs `TAttributes` containing the styling information.
           * @param writeToHost Where should the resulting static styles be written?
           *   - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`
           *   - `true` Write to `TNode.styles` / `TNode.classes`
           */
          function computeStaticStyling(tNode, attrs, writeToHost) {
            ngDevMode && assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');
            let styles = writeToHost ? tNode.styles : null;
            let classes = writeToHost ? tNode.classes : null;
            let mode = 0;
            if (attrs !== null) {
              for (let i = 0; i < attrs.length; i++) {
                const value = attrs[i];
                if (typeof value === 'number') {
                  mode = value;
                } else if (mode == 1 /* AttributeMarker.Classes */) {
                  classes = concatStringsWithSpace(classes, value);
                } else if (mode == 2 /* AttributeMarker.Styles */) {
                  const style = value;
                  const styleValue = attrs[++i];
                  styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');
                }
              }
            }
            writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;
            writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;
          }
          function collectNativeNodes(tView, lView, tNode, result, isProjection = false) {
            while (tNode !== null) {
              ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);
              const lNode = lView[tNode.index];
              if (lNode !== null) {
                result.push(unwrapRNode(lNode));
              }
              // A given lNode can represent either a native node or a LContainer (when it is a host of a
              // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes
              // from the views in this container.
              if (isLContainer(lNode)) {
                collectNativeNodesInLContainer(lNode, result);
              }
              const tNodeType = tNode.type;
              if (tNodeType & 8 /* TNodeType.ElementContainer */) {
                collectNativeNodes(tView, lView, tNode.child, result);
              } else if (tNodeType & 32 /* TNodeType.Icu */) {
                const nextRNode = icuContainerIterate(tNode, lView);
                let rNode;
                while (rNode = nextRNode()) {
                  result.push(rNode);
                }
              } else if (tNodeType & 16 /* TNodeType.Projection */) {
                const nodesInSlot = getProjectionNodes(lView, tNode);
                if (Array.isArray(nodesInSlot)) {
                  result.push(...nodesInSlot);
                } else {
                  const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);
                  ngDevMode && assertParentView(parentView);
                  collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);
                }
              }
              tNode = isProjection ? tNode.projectionNext : tNode.next;
            }
            return result;
          }
          /**
           * Collects all root nodes in all views in a given LContainer.
           */
          function collectNativeNodesInLContainer(lContainer, result) {
            for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
              const lViewInAContainer = lContainer[i];
              const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;
              if (lViewFirstChildTNode !== null) {
                collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);
              }
            }
            // When an LContainer is created, the anchor (comment) node is:
            // - (1) either reused in case of an ElementContainer (<ng-container>)
            // - (2) or a new comment node is created
            // In the first case, the anchor comment node would be added to the final
            // list by the code in the `collectNativeNodes` function
            // (see the `result.push(unwrapRNode(lNode))` line), but the second
            // case requires extra handling: the anchor node needs to be added to the
            // final list manually. See additional information in the `createAnchorNode`
            // function in the `view_container_ref.ts`.
            //
            // In the first case, the same reference would be stored in the `NATIVE`
            // and `HOST` slots in an LContainer. Otherwise, this is the second case and
            // we should add an element to the final list.
            if (lContainer[NATIVE] !== lContainer[HOST]) {
              result.push(lContainer[NATIVE]);
            }
          }
          function detectChangesInternal(tView, lView, context, notifyErrorHandler = true) {
            const environment = lView[ENVIRONMENT];
            const rendererFactory = environment.rendererFactory;
            const afterRenderEventManager = environment.afterRenderEventManager;
            // Check no changes mode is a dev only mode used to verify that bindings have not changed
            // since they were assigned. We do not want to invoke renderer factory functions in that mode
            // to avoid any possible side-effects.
            const checkNoChangesMode = !!ngDevMode && isInCheckNoChangesMode();
            if (!checkNoChangesMode) {
              rendererFactory.begin?.();
              afterRenderEventManager?.begin();
            }
            try {
              refreshView(tView, lView, tView.template, context);
            } catch (error) {
              if (notifyErrorHandler) {
                handleError(lView, error);
              }
              throw error;
            } finally {
              if (!checkNoChangesMode) {
                rendererFactory.end?.();
                // One final flush of the effects queue to catch any effects created in `ngAfterViewInit` or
                // other post-order hooks.
                environment.effectManager?.flush();
                // Invoke all callbacks registered via `after*Render`, if needed.
                afterRenderEventManager?.end();
              }
            }
          }
          function checkNoChangesInternal(tView, lView, context, notifyErrorHandler = true) {
            setIsInCheckNoChangesMode(true);
            try {
              detectChangesInternal(tView, lView, context, notifyErrorHandler);
            } finally {
              setIsInCheckNoChangesMode(false);
            }
          }
          /**
           * Synchronously perform change detection on a component (and possibly its sub-components).
           *
           * This function triggers change detection in a synchronous way on a component.
           *
           * @param component The component which the change detection should be performed on.
           */
          function detectChanges(component) {
            const view = getComponentViewByInstance(component);
            detectChangesInternal(view[TVIEW], view, component);
          }
          /**
           * Processes a view in update mode. This includes a number of steps in a specific order:
           * - executing a template function in update mode;
           * - executing hooks;
           * - refreshing queries;
           * - setting host bindings;
           * - refreshing child (embedded and component) views.
           */
          function refreshView(tView, lView, templateFn, context) {
            ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');
            const flags = lView[FLAGS];
            if ((flags & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) return;
            // Check no changes mode is a dev only mode used to verify that bindings have not changed
            // since they were assigned. We do not want to execute lifecycle hooks in that mode.
            const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();
            !isInCheckNoChangesPass && lView[ENVIRONMENT].effectManager?.flush();
            enterView(lView);
            try {
              resetPreOrderHookFlags(lView);
              setBindingIndex(tView.bindingStartIndex);
              if (templateFn !== null) {
                executeTemplate(tView, lView, templateFn, 2 /* RenderFlags.Update */, context);
              }
              const hooksInitPhaseCompleted = (flags & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;
              // execute pre-order hooks (OnInit, OnChanges, DoCheck)
              // PERF WARNING: do NOT extract this to a separate function without running benchmarks
              if (!isInCheckNoChangesPass) {
                if (hooksInitPhaseCompleted) {
                  const preOrderCheckHooks = tView.preOrderCheckHooks;
                  if (preOrderCheckHooks !== null) {
                    executeCheckHooks(lView, preOrderCheckHooks, null);
                  }
                } else {
                  const preOrderHooks = tView.preOrderHooks;
                  if (preOrderHooks !== null) {
                    executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, null);
                  }
                  incrementInitPhaseFlags(lView, 0 /* InitPhaseState.OnInitHooksToBeRun */);
                }
              }
              // First mark transplanted views that are declared in this lView as needing a refresh at their
              // insertion points. This is needed to avoid the situation where the template is defined in this
              // `LView` but its declaration appears after the insertion component.
              markTransplantedViewsForRefresh(lView);
              detectChangesInEmbeddedViews(lView, 2 /* ChangeDetectionMode.BugToForceRefreshAndIgnoreViewFlags */);
              // Content query results must be refreshed before content hooks are called.
              if (tView.contentQueries !== null) {
                refreshContentQueries(tView, lView);
              }
              // execute content hooks (AfterContentInit, AfterContentChecked)
              // PERF WARNING: do NOT extract this to a separate function without running benchmarks
              if (!isInCheckNoChangesPass) {
                if (hooksInitPhaseCompleted) {
                  const contentCheckHooks = tView.contentCheckHooks;
                  if (contentCheckHooks !== null) {
                    executeCheckHooks(lView, contentCheckHooks);
                  }
                } else {
                  const contentHooks = tView.contentHooks;
                  if (contentHooks !== null) {
                    executeInitAndCheckHooks(lView, contentHooks, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);
                  }
          
                  incrementInitPhaseFlags(lView, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);
                }
              }
          
              processHostBindingOpCodes(tView, lView);
              // Refresh child component views.
              const components = tView.components;
              if (components !== null) {
                detectChangesInChildComponents(lView, components, 0 /* ChangeDetectionMode.Global */);
              }
              // View queries must execute after refreshing child components because a template in this view
              // could be inserted in a child component. If the view query executes before child component
              // refresh, the template might not yet be inserted.
              const viewQuery = tView.viewQuery;
              if (viewQuery !== null) {
                executeViewQueryFn(2 /* RenderFlags.Update */, viewQuery, context);
              }
              // execute view hooks (AfterViewInit, AfterViewChecked)
              // PERF WARNING: do NOT extract this to a separate function without running benchmarks
              if (!isInCheckNoChangesPass) {
                if (hooksInitPhaseCompleted) {
                  const viewCheckHooks = tView.viewCheckHooks;
                  if (viewCheckHooks !== null) {
                    executeCheckHooks(lView, viewCheckHooks);
                  }
                } else {
                  const viewHooks = tView.viewHooks;
                  if (viewHooks !== null) {
                    executeInitAndCheckHooks(lView, viewHooks, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);
                  }
          
                  incrementInitPhaseFlags(lView, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);
                }
              }
          
              if (tView.firstUpdatePass === true) {
                // We need to make sure that we only flip the flag on successful `refreshView` only
                // Don't do this in `finally` block.
                // If we did this in `finally` block then an exception could block the execution of styling
                // instructions which in turn would be unable to insert themselves into the styling linked
                // list. The result of this would be that if the exception would not be throw on subsequent CD
                // the styling would be unable to process it data and reflect to the DOM.
                tView.firstUpdatePass = false;
              }
              // Do not reset the dirty state when running in check no changes mode. We don't want components
              // to behave differently depending on whether check no changes is enabled or not. For example:
              // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to
              // refresh a `NgClass` binding should work. If we would reset the dirty state in the check
              // no changes cycle, the component would be not be dirty for the next update pass. This would
              // be different in production mode where the component dirty state is not reset.
              if (!isInCheckNoChangesPass) {
                lView[FLAGS] &= ~(64 /* LViewFlags.Dirty */ | 8 /* LViewFlags.FirstLViewPass */);
              }
          
              clearViewRefreshFlag(lView);
            } finally {
              leaveView();
            }
          }
          /**
           * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes
           * them by executing an associated template function.
           */
          function detectChangesInEmbeddedViews(lView, mode) {
            for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
              for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
                const embeddedLView = lContainer[i];
                detectChangesInView(embeddedLView, mode);
              }
            }
          }
          /**
           * Mark transplanted views as needing to be refreshed at their insertion points.
           *
           * @param lView The `LView` that may have transplanted views.
           */
          function markTransplantedViewsForRefresh(lView) {
            for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
              if (!lContainer[HAS_TRANSPLANTED_VIEWS]) continue;
              const movedViews = lContainer[MOVED_VIEWS];
              ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');
              for (let i = 0; i < movedViews.length; i++) {
                const movedLView = movedViews[i];
                const insertionLContainer = movedLView[PARENT];
                ngDevMode && assertLContainer(insertionLContainer);
                markViewForRefresh(movedLView);
              }
            }
          }
          /**
           * Detects changes in a component by entering the component view and processing its bindings,
           * queries, etc. if it is CheckAlways, OnPush and Dirty, etc.
           *
           * @param componentHostIdx  Element index in LView[] (adjusted for HEADER_OFFSET)
           */
          function detectChangesInComponent(hostLView, componentHostIdx, mode) {
            ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');
            const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);
            detectChangesInView(componentView, mode);
          }
          /**
           * Visits a view as part of change detection traversal.
           *
           * - If the view is detached, no additional traversal happens.
           *
           * The view is refreshed if:
           * - If the view is CheckAlways or Dirty and ChangeDetectionMode is `Global`
           * - If the view has the `RefreshTransplantedView` flag
           *
           * The view is not refreshed, but descendants are traversed in `ChangeDetectionMode.Targeted` if the
           * view has a non-zero TRANSPLANTED_VIEWS_TO_REFRESH counter.
           *
           */
          function detectChangesInView(lView, mode) {
            if (!viewAttachedToChangeDetector(lView)) {
              return;
            }
            const tView = lView[TVIEW];
            const flags = lView[FLAGS];
            if (flags & (16 /* LViewFlags.CheckAlways */ | 64 /* LViewFlags.Dirty */) && mode === 0 /* ChangeDetectionMode.Global */ || flags & 1024 /* LViewFlags.RefreshView */ || mode === 2 /* ChangeDetectionMode.BugToForceRefreshAndIgnoreViewFlags */) {
              refreshView(tView, lView, tView.template, lView[CONTEXT]);
            } else if (lView[DESCENDANT_VIEWS_TO_REFRESH] > 0) {
              detectChangesInEmbeddedViews(lView, 1 /* ChangeDetectionMode.Targeted */);
              const components = tView.components;
              if (components !== null) {
                detectChangesInChildComponents(lView, components, 1 /* ChangeDetectionMode.Targeted */);
              }
            }
          }
          /** Refreshes child components in the current view (update mode). */
          function detectChangesInChildComponents(hostLView, components, mode) {
            for (let i = 0; i < components.length; i++) {
              detectChangesInComponent(hostLView, components[i], mode);
            }
          }
          class ViewRef$1 {
            get rootNodes() {
              const lView = this._lView;
              const tView = lView[TVIEW];
              return collectNativeNodes(tView, lView, tView.firstChild, []);
            }
            constructor(
            /**
             * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
             *
             * When ViewRef is created for a dynamic component, this also represents the `LView` for the
             * component.
             *
             * For a "regular" ViewRef created for an embedded view, this is the `LView` for the embedded
             * view.
             *
             * @internal
             */
            _lView,
            /**
             * This represents the `LView` associated with the point where `ChangeDetectorRef` was
             * requested.
             *
             * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
             */
            _cdRefInjectingView) {
              this._lView = _lView;
              this._cdRefInjectingView = _cdRefInjectingView;
              this._appRef = null;
              this._attachedToViewContainer = false;
            }
            get context() {
              return this._lView[CONTEXT];
            }
            set context(value) {
              this._lView[CONTEXT] = value;
            }
            get destroyed() {
              return (this._lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;
            }
          
            destroy() {
              if (this._appRef) {
                this._appRef.detachView(this);
              } else if (this._attachedToViewContainer) {
                const parent = this._lView[PARENT];
                if (isLContainer(parent)) {
                  const viewRefs = parent[VIEW_REFS];
                  const index = viewRefs ? viewRefs.indexOf(this) : -1;
                  if (index > -1) {
                    ngDevMode && assertEqual(index, parent.indexOf(this._lView) - CONTAINER_HEADER_OFFSET, 'An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array.');
                    detachView(parent, index);
                    removeFromArray(viewRefs, index);
                  }
                }
                this._attachedToViewContainer = false;
              }
              destroyLView(this._lView[TVIEW], this._lView);
            }
            onDestroy(callback) {
              storeLViewOnDestroy(this._lView, callback);
            }
            /**
             * Marks a view and all of its ancestors dirty.
             *
             * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is
             * checked when it needs to be re-rendered but the two normal triggers haven't marked it
             * dirty (i.e. inputs haven't changed and events haven't fired in the view).
             *
             * <!-- TODO: Add a link to a chapter on OnPush components -->
             *
             * @usageNotes
             * ### Example
             *
             * ```typescript
             * @Component({
             *   selector: 'app-root',
             *   template: `Number of ticks: {{numberOfTicks}}`
             *   changeDetection: ChangeDetectionStrategy.OnPush,
             * })
             * class AppComponent {
             *   numberOfTicks = 0;
             *
             *   constructor(private ref: ChangeDetectorRef) {
             *     setInterval(() => {
             *       this.numberOfTicks++;
             *       // the following is required, otherwise the view will not be updated
             *       this.ref.markForCheck();
             *     }, 1000);
             *   }
             * }
             * ```
             */
            markForCheck() {
              markViewDirty(this._cdRefInjectingView || this._lView);
            }
            /**
             * Detaches the view from the change detection tree.
             *
             * Detached views will not be checked during change detection runs until they are
             * re-attached, even if they are dirty. `detach` can be used in combination with
             * {@link ChangeDetectorRef#detectChanges} to implement local change
             * detection checks.
             *
             * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
             * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
             *
             * @usageNotes
             * ### Example
             *
             * The following example defines a component with a large list of readonly data.
             * Imagine the data changes constantly, many times per second. For performance reasons,
             * we want to check and update the list every five seconds. We can do that by detaching
             * the component's change detector and doing a local check every five seconds.
             *
             * ```typescript
             * class DataProvider {
             *   // in a real application the returned data will be different every time
             *   get data() {
             *     return [1,2,3,4,5];
             *   }
             * }
             *
             * @Component({
             *   selector: 'giant-list',
             *   template: `
             *     <li *ngFor="let d of dataProvider.data">Data {{d}}</li>
             *   `,
             * })
             * class GiantList {
             *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
             *     ref.detach();
             *     setInterval(() => {
             *       this.ref.detectChanges();
             *     }, 5000);
             *   }
             * }
             *
             * @Component({
             *   selector: 'app',
             *   providers: [DataProvider],
             *   template: `
             *     <giant-list><giant-list>
             *   `,
             * })
             * class App {
             * }
             * ```
             */
            detach() {
              this._lView[FLAGS] &= ~128 /* LViewFlags.Attached */;
            }
            /**
             * Re-attaches a view to the change detection tree.
             *
             * This can be used to re-attach views that were previously detached from the tree
             * using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.
             *
             * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
             *
             * @usageNotes
             * ### Example
             *
             * The following example creates a component displaying `live` data. The component will detach
             * its change detector from the main change detector tree when the component's live property
             * is set to false.
             *
             * ```typescript
             * class DataProvider {
             *   data = 1;
             *
             *   constructor() {
             *     setInterval(() => {
             *       this.data = this.data * 2;
             *     }, 500);
             *   }
             * }
             *
             * @Component({
             *   selector: 'live-data',
             *   inputs: ['live'],
             *   template: 'Data: {{dataProvider.data}}'
             * })
             * class LiveData {
             *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
             *
             *   set live(value) {
             *     if (value) {
             *       this.ref.reattach();
             *     } else {
             *       this.ref.detach();
             *     }
             *   }
             * }
             *
             * @Component({
             *   selector: 'app-root',
             *   providers: [DataProvider],
             *   template: `
             *     Live Update: <input type="checkbox" [(ngModel)]="live">
             *     <live-data [live]="live"><live-data>
             *   `,
             * })
             * class AppComponent {
             *   live = true;
             * }
             * ```
             */
            reattach() {
              this._lView[FLAGS] |= 128 /* LViewFlags.Attached */;
            }
            /**
             * Checks the view and its children.
             *
             * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement
             * local change detection checks.
             *
             * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
             * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
             *
             * @usageNotes
             * ### Example
             *
             * The following example defines a component with a large list of readonly data.
             * Imagine, the data changes constantly, many times per second. For performance reasons,
             * we want to check and update the list every five seconds.
             *
             * We can do that by detaching the component's change detector and doing a local change detection
             * check every five seconds.
             *
             * See {@link ChangeDetectorRef#detach} for more information.
             */
            detectChanges() {
              detectChangesInternal(this._lView[TVIEW], this._lView, this.context);
            }
            /**
             * Checks the change detector and its children, and throws if any changes are detected.
             *
             * This is used in development mode to verify that running change detection doesn't
             * introduce other changes.
             */
            checkNoChanges() {
              if (ngDevMode) {
                checkNoChangesInternal(this._lView[TVIEW], this._lView, this.context);
              }
            }
            attachToViewContainerRef() {
              if (this._appRef) {
                throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');
              }
              this._attachedToViewContainer = true;
            }
            detachFromAppRef() {
              this._appRef = null;
              detachViewFromDOM(this._lView[TVIEW], this._lView);
            }
            attachToAppRef(appRef) {
              if (this._attachedToViewContainer) {
                throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');
              }
              this._appRef = appRef;
            }
          }
          /** @internal */
          class RootViewRef extends ViewRef$1 {
            constructor(_view) {
              super(_view);
              this._view = _view;
            }
            detectChanges() {
              const lView = this._view;
              const tView = lView[TVIEW];
              const context = lView[CONTEXT];
              detectChangesInternal(tView, lView, context, false);
            }
            checkNoChanges() {
              if (ngDevMode) {
                const lView = this._view;
                const tView = lView[TVIEW];
                const context = lView[CONTEXT];
                checkNoChangesInternal(tView, lView, context, false);
              }
            }
            get context() {
              return null;
            }
          }
          class ComponentFactoryResolver extends ComponentFactoryResolver$1 {
            /**
             * @param ngModule The NgModuleRef to which all resolved factories are bound.
             */
            constructor(ngModule) {
              super();
              this.ngModule = ngModule;
            }
            resolveComponentFactory(component) {
              ngDevMode && assertComponentType(component);
              const componentDef = getComponentDef(component);
              return new ComponentFactory(componentDef, this.ngModule);
            }
          }
          function toRefArray(map) {
            const array = [];
            for (let nonMinified in map) {
              if (map.hasOwnProperty(nonMinified)) {
                const minified = map[nonMinified];
                array.push({
                  propName: minified,
                  templateName: nonMinified
                });
              }
            }
            return array;
          }
          function getNamespace(elementName) {
            const name = elementName.toLowerCase();
            return name === 'svg' ? SVG_NAMESPACE : name === 'math' ? MATH_ML_NAMESPACE : null;
          }
          /**
           * Injector that looks up a value using a specific injector, before falling back to the module
           * injector. Used primarily when creating components or embedded views dynamically.
           */
          class ChainedInjector {
            constructor(injector, parentInjector) {
              this.injector = injector;
              this.parentInjector = parentInjector;
            }
            get(token, notFoundValue, flags) {
              flags = convertToBitFlags(flags);
              const value = this.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);
              if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR || notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {
                // Return the value from the root element injector when
                // - it provides it
                //   (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
                // - the module injector should not be checked
                //   (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
                return value;
              }
              return this.parentInjector.get(token, notFoundValue, flags);
            }
          }
          /**
           * ComponentFactory interface implementation.
           */
          class ComponentFactory extends ComponentFactory$1 {
            get inputs() {
              const componentDef = this.componentDef;
              const inputTransforms = componentDef.inputTransforms;
              const refArray = toRefArray(componentDef.inputs);
              if (inputTransforms !== null) {
                for (const input of refArray) {
                  if (inputTransforms.hasOwnProperty(input.propName)) {
                    input.transform = inputTransforms[input.propName];
                  }
                }
              }
              return refArray;
            }
            get outputs() {
              return toRefArray(this.componentDef.outputs);
            }
            /**
             * @param componentDef The component definition.
             * @param ngModule The NgModuleRef to which the factory is bound.
             */
            constructor(componentDef, ngModule) {
              super();
              this.componentDef = componentDef;
              this.ngModule = ngModule;
              this.componentType = componentDef.type;
              this.selector = stringifyCSSSelectorList(componentDef.selectors);
              this.ngContentSelectors = componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];
              this.isBoundToModule = !!ngModule;
            }
            create(injector, projectableNodes, rootSelectorOrNode, environmentInjector) {
              environmentInjector = environmentInjector || this.ngModule;
              let realEnvironmentInjector = environmentInjector instanceof EnvironmentInjector ? environmentInjector : environmentInjector?.injector;
              if (realEnvironmentInjector && this.componentDef.getStandaloneInjector !== null) {
                realEnvironmentInjector = this.componentDef.getStandaloneInjector(realEnvironmentInjector) || realEnvironmentInjector;
              }
              const rootViewInjector = realEnvironmentInjector ? new ChainedInjector(injector, realEnvironmentInjector) : injector;
              const rendererFactory = rootViewInjector.get(RendererFactory2, null);
              if (rendererFactory === null) {
                throw new RuntimeError(407 /* RuntimeErrorCode.RENDERER_NOT_FOUND */, ngDevMode && 'Angular was not able to inject a renderer (RendererFactory2). ' + 'Likely this is due to a broken DI hierarchy. ' + 'Make sure that any injector used to create this component has a correct parent.');
              }
              const sanitizer = rootViewInjector.get(Sanitizer, null);
              const effectManager = rootViewInjector.get(EffectManager, null);
              const afterRenderEventManager = rootViewInjector.get(AfterRenderEventManager, null);
              const environment = {
                rendererFactory,
                sanitizer,
                effectManager,
                afterRenderEventManager
              };
              const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);
              // Determine a tag name used for creating host elements when this component is created
              // dynamically. Default to 'div' if this component did not specify any tag name in its selector.
              const elementName = this.componentDef.selectors[0][0] || 'div';
              const hostRNode = rootSelectorOrNode ? locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation, rootViewInjector) : createElementNode(hostRenderer, elementName, getNamespace(elementName));
              // Signal components use the granular "RefreshView"  for change detection
              const signalFlags = 4096 /* LViewFlags.SignalView */ | 512 /* LViewFlags.IsRoot */;
              // Non-signal components use the traditional "CheckAlways or OnPush/Dirty" change detection
              const nonSignalFlags = this.componentDef.onPush ? 64 /* LViewFlags.Dirty */ | 512 /* LViewFlags.IsRoot */ : 16 /* LViewFlags.CheckAlways */ | 512 /* LViewFlags.IsRoot */;
              const rootFlags = this.componentDef.signals ? signalFlags : nonSignalFlags;
              let hydrationInfo = null;
              if (hostRNode !== null) {
                hydrationInfo = retrieveHydrationInfo(hostRNode, rootViewInjector, true /* isRootView */);
              }
              // Create the root view. Uses empty TView and ContentTemplate.
              const rootTView = createTView(0 /* TViewType.Root */, null, null, 1, 0, null, null, null, null, null, null);
              const rootLView = createLView(null, rootTView, null, rootFlags, null, null, environment, hostRenderer, rootViewInjector, null, hydrationInfo);
              // rootView is the parent when bootstrapping
              // TODO(misko): it looks like we are entering view here but we don't really need to as
              // `renderView` does that. However as the code is written it is needed because
              // `createRootComponentView` and `createRootComponent` both read global state. Fixing those
              // issues would allow us to drop this.
              enterView(rootLView);
              let component;
              let tElementNode;
              try {
                const rootComponentDef = this.componentDef;
                let rootDirectives;
                let hostDirectiveDefs = null;
                if (rootComponentDef.findHostDirectiveDefs) {
                  rootDirectives = [];
                  hostDirectiveDefs = new Map();
                  rootComponentDef.findHostDirectiveDefs(rootComponentDef, rootDirectives, hostDirectiveDefs);
                  rootDirectives.push(rootComponentDef);
                } else {
                  rootDirectives = [rootComponentDef];
                }
                const hostTNode = createRootComponentTNode(rootLView, hostRNode);
                const componentView = createRootComponentView(hostTNode, hostRNode, rootComponentDef, rootDirectives, rootLView, environment, hostRenderer);
                tElementNode = getTNode(rootTView, HEADER_OFFSET);
                // TODO(crisbeto): in practice `hostRNode` should always be defined, but there are some tests
                // where the renderer is mocked out and `undefined` is returned. We should update the tests so
                // that this check can be removed.
                if (hostRNode) {
                  setRootNodeAttributes(hostRenderer, rootComponentDef, hostRNode, rootSelectorOrNode);
                }
                if (projectableNodes !== undefined) {
                  projectNodes(tElementNode, this.ngContentSelectors, projectableNodes);
                }
                // TODO: should LifecycleHooksFeature and other host features be generated by the compiler and
                // executed here?
                // Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref
                component = createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, [LifecycleHooksFeature]);
                renderView(rootTView, rootLView, null);
              } finally {
                leaveView();
              }
              return new ComponentRef(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);
            }
          }
          /**
           * Represents an instance of a Component created via a {@link ComponentFactory}.
           *
           * `ComponentRef` provides access to the Component Instance as well other objects related to this
           * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
           * method.
           *
           */
          class ComponentRef extends ComponentRef$1 {
            constructor(componentType, instance, location, _rootLView, _tNode) {
              super();
              this.location = location;
              this._rootLView = _rootLView;
              this._tNode = _tNode;
              this.previousInputValues = null;
              this.instance = instance;
              this.hostView = this.changeDetectorRef = new RootViewRef(_rootLView);
              this.componentType = componentType;
            }
            setInput(name, value) {
              const inputData = this._tNode.inputs;
              let dataValue;
              if (inputData !== null && (dataValue = inputData[name])) {
                this.previousInputValues ??= new Map();
                // Do not set the input if it is the same as the last value
                // This behavior matches `bindingUpdated` when binding inputs in templates.
                if (this.previousInputValues.has(name) && Object.is(this.previousInputValues.get(name), value)) {
                  return;
                }
                const lView = this._rootLView;
                setInputsForProperty(lView[TVIEW], lView, dataValue, name, value);
                this.previousInputValues.set(name, value);
                const childComponentLView = getComponentLViewByIndex(this._tNode.index, lView);
                markViewDirty(childComponentLView);
              } else {
                if (ngDevMode) {
                  const cmpNameForError = stringifyForError(this.componentType);
                  let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;
                  message += `Make sure that the '${name}' property is annotated with @Input() or a mapped @Input('${name}') exists.`;
                  reportUnknownPropertyError(message);
                }
              }
            }
            get injector() {
              return new NodeInjector(this._tNode, this._rootLView);
            }
            destroy() {
              this.hostView.destroy();
            }
            onDestroy(callback) {
              this.hostView.onDestroy(callback);
            }
          }
          /** Creates a TNode that can be used to instantiate a root component. */
          function createRootComponentTNode(lView, rNode) {
            const tView = lView[TVIEW];
            const index = HEADER_OFFSET;
            ngDevMode && assertIndexInRange(lView, index);
            lView[index] = rNode;
            // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at
            // the same time we want to communicate the debug `TNode` that this is a special `TNode`
            // representing a host element.
            return getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, '#host', null);
          }
          /**
           * Creates the root component view and the root component node.
           *
           * @param hostRNode Render host element.
           * @param rootComponentDef ComponentDef
           * @param rootView The parent view where the host node is stored
           * @param rendererFactory Factory to be used for creating child renderers.
           * @param hostRenderer The current renderer
           * @param sanitizer The sanitizer, if provided
           *
           * @returns Component view created
           */
          function createRootComponentView(tNode, hostRNode, rootComponentDef, rootDirectives, rootView, environment, hostRenderer) {
            const tView = rootView[TVIEW];
            applyRootComponentStyling(rootDirectives, tNode, hostRNode, hostRenderer);
            // Hydration info is on the host element and needs to be retrieved
            // and passed to the component LView.
            let hydrationInfo = null;
            if (hostRNode !== null) {
              hydrationInfo = retrieveHydrationInfo(hostRNode, rootView[INJECTOR$1]);
            }
            const viewRenderer = environment.rendererFactory.createRenderer(hostRNode, rootComponentDef);
            let lViewFlags = 16 /* LViewFlags.CheckAlways */;
            if (rootComponentDef.signals) {
              lViewFlags = 4096 /* LViewFlags.SignalView */;
            } else if (rootComponentDef.onPush) {
              lViewFlags = 64 /* LViewFlags.Dirty */;
            }
          
            const componentView = createLView(rootView, getOrCreateComponentTView(rootComponentDef), null, lViewFlags, rootView[tNode.index], tNode, environment, viewRenderer, null, null, hydrationInfo);
            if (tView.firstCreatePass) {
              markAsComponentHost(tView, tNode, rootDirectives.length - 1);
            }
            addToViewTree(rootView, componentView);
            // Store component view at node index, with node as the HOST
            return rootView[tNode.index] = componentView;
          }
          /** Sets up the styling information on a root component. */
          function applyRootComponentStyling(rootDirectives, tNode, rNode, hostRenderer) {
            for (const def of rootDirectives) {
              tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);
            }
            if (tNode.mergedAttrs !== null) {
              computeStaticStyling(tNode, tNode.mergedAttrs, true);
              if (rNode !== null) {
                setupStaticAttributes(hostRenderer, rNode, tNode);
              }
            }
          }
          /**
           * Creates a root component and sets it up with features and host bindings.Shared by
           * renderComponent() and ViewContainerRef.createComponent().
           */
          function createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, hostFeatures) {
            const rootTNode = getCurrentTNode();
            ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');
            const tView = rootLView[TVIEW];
            const native = getNativeByTNode(rootTNode, rootLView);
            initializeDirectives(tView, rootLView, rootTNode, rootDirectives, null, hostDirectiveDefs);
            for (let i = 0; i < rootDirectives.length; i++) {
              const directiveIndex = rootTNode.directiveStart + i;
              const directiveInstance = getNodeInjectable(rootLView, tView, directiveIndex, rootTNode);
              attachPatchData(directiveInstance, rootLView);
            }
            invokeDirectivesHostBindings(tView, rootLView, rootTNode);
            if (native) {
              attachPatchData(native, rootLView);
            }
            // We're guaranteed for the `componentOffset` to be positive here
            // since a root component always matches a component def.
            ngDevMode && assertGreaterThan(rootTNode.componentOffset, -1, 'componentOffset must be great than -1');
            const component = getNodeInjectable(rootLView, tView, rootTNode.directiveStart + rootTNode.componentOffset, rootTNode);
            componentView[CONTEXT] = rootLView[CONTEXT] = component;
            if (hostFeatures !== null) {
              for (const feature of hostFeatures) {
                feature(component, rootComponentDef);
              }
            }
            // We want to generate an empty QueryList for root content queries for backwards
            // compatibility with ViewEngine.
            executeContentQueries(tView, rootTNode, componentView);
            return component;
          }
          /** Sets the static attributes on a root component. */
          function setRootNodeAttributes(hostRenderer, componentDef, hostRNode, rootSelectorOrNode) {
            if (rootSelectorOrNode) {
              setUpAttributes(hostRenderer, hostRNode, ['ng-version', VERSION.full]);
            } else {
              // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`
              // is not defined), also apply attributes and classes extracted from component selector.
              // Extract attributes and classes from the first selector only to match VE behavior.
              const {
                attrs,
                classes
              } = extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
              if (attrs) {
                setUpAttributes(hostRenderer, hostRNode, attrs);
              }
              if (classes && classes.length > 0) {
                writeDirectClass(hostRenderer, hostRNode, classes.join(' '));
              }
            }
          }
          /** Projects the `projectableNodes` that were specified when creating a root component. */
          function projectNodes(tNode, ngContentSelectors, projectableNodes) {
            const projection = tNode.projection = [];
            for (let i = 0; i < ngContentSelectors.length; i++) {
              const nodesforSlot = projectableNodes[i];
              // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade
              // case). Here we do normalize passed data structure to be an array of arrays to avoid
              // complex checks down the line.
              // We also normalize the length of the passed in projectable nodes (to match the number of
              // <ng-container> slots defined by a component).
              projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);
            }
          }
          /**
           * Used to enable lifecycle hooks on the root component.
           *
           * Include this feature when calling `renderComponent` if the root component
           * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't
           * be called properly.
           *
           * Example:
           *
           * ```
           * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});
           * ```
           */
          function LifecycleHooksFeature() {
            const tNode = getCurrentTNode();
            ngDevMode && assertDefined(tNode, 'TNode is required');
            registerPostOrderHooks(getLView()[TVIEW], tNode);
          }
          function getSuperType(type) {
            return Object.getPrototypeOf(type.prototype).constructor;
          }
          /**
           * Merges the definition from a super class to a sub class.
           * @param definition The definition that is a SubClass of another directive of component
           *
           * @codeGenApi
           */
          function ɵɵInheritDefinitionFeature(definition) {
            let superType = getSuperType(definition.type);
            let shouldInheritFields = true;
            const inheritanceChain = [definition];
            while (superType) {
              let superDef = undefined;
              if (isComponentDef(definition)) {
                // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
                superDef = superType.ɵcmp || superType.ɵdir;
              } else {
                if (superType.ɵcmp) {
                  throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode && `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);
                }
                // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
                superDef = superType.ɵdir;
              }
              if (superDef) {
                if (shouldInheritFields) {
                  inheritanceChain.push(superDef);
                  // Some fields in the definition may be empty, if there were no values to put in them that
                  // would've justified object creation. Unwrap them if necessary.
                  const writeableDef = definition;
                  writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);
                  writeableDef.inputTransforms = maybeUnwrapEmpty(definition.inputTransforms);
                  writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);
                  writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);
                  // Merge hostBindings
                  const superHostBindings = superDef.hostBindings;
                  superHostBindings && inheritHostBindings(definition, superHostBindings);
                  // Merge queries
                  const superViewQuery = superDef.viewQuery;
                  const superContentQueries = superDef.contentQueries;
                  superViewQuery && inheritViewQuery(definition, superViewQuery);
                  superContentQueries && inheritContentQueries(definition, superContentQueries);
                  // Merge inputs and outputs
                  fillProperties(definition.inputs, superDef.inputs);
                  fillProperties(definition.declaredInputs, superDef.declaredInputs);
                  fillProperties(definition.outputs, superDef.outputs);
                  if (superDef.inputTransforms !== null) {
                    if (writeableDef.inputTransforms === null) {
                      writeableDef.inputTransforms = {};
                    }
                    fillProperties(writeableDef.inputTransforms, superDef.inputTransforms);
                  }
                  // Merge animations metadata.
                  // If `superDef` is a Component, the `data` field is present (defaults to an empty object).
                  if (isComponentDef(superDef) && superDef.data.animation) {
                    // If super def is a Component, the `definition` is also a Component, since Directives can
                    // not inherit Components (we throw an error above and cannot reach this code).
                    const defData = definition.data;
                    defData.animation = (defData.animation || []).concat(superDef.data.animation);
                  }
                }
                // Run parent features
                const features = superDef.features;
                if (features) {
                  for (let i = 0; i < features.length; i++) {
                    const feature = features[i];
                    if (feature && feature.ngInherit) {
                      feature(definition);
                    }
                    // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this
                    // def already has all the necessary information inherited from its super class(es), so we
                    // can stop merging fields from super classes. However we need to iterate through the
                    // prototype chain to look for classes that might contain other "features" (like
                    // NgOnChanges), which we should invoke for the original `definition`. We set the
                    // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance
                    // logic and only invoking functions from the "features" list.
                    if (feature === ɵɵInheritDefinitionFeature) {
                      shouldInheritFields = false;
                    }
                  }
                }
              }
              superType = Object.getPrototypeOf(superType);
            }
            mergeHostAttrsAcrossInheritance(inheritanceChain);
          }
          /**
           * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.
           *
           * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing
           * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child
           * type.
           */
          function mergeHostAttrsAcrossInheritance(inheritanceChain) {
            let hostVars = 0;
            let hostAttrs = null;
            // We process the inheritance order from the base to the leaves here.
            for (let i = inheritanceChain.length - 1; i >= 0; i--) {
              const def = inheritanceChain[i];
              // For each `hostVars`, we need to add the superclass amount.
              def.hostVars = hostVars += def.hostVars;
              // for each `hostAttrs` we need to merge it with superclass.
              def.hostAttrs = mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));
            }
          }
          function maybeUnwrapEmpty(value) {
            if (value === EMPTY_OBJ) {
              return {};
            } else if (value === EMPTY_ARRAY) {
              return [];
            } else {
              return value;
            }
          }
          function inheritViewQuery(definition, superViewQuery) {
            const prevViewQuery = definition.viewQuery;
            if (prevViewQuery) {
              definition.viewQuery = (rf, ctx) => {
                superViewQuery(rf, ctx);
                prevViewQuery(rf, ctx);
              };
            } else {
              definition.viewQuery = superViewQuery;
            }
          }
          function inheritContentQueries(definition, superContentQueries) {
            const prevContentQueries = definition.contentQueries;
            if (prevContentQueries) {
              definition.contentQueries = (rf, ctx, directiveIndex) => {
                superContentQueries(rf, ctx, directiveIndex);
                prevContentQueries(rf, ctx, directiveIndex);
              };
            } else {
              definition.contentQueries = superContentQueries;
            }
          }
          function inheritHostBindings(definition, superHostBindings) {
            const prevHostBindings = definition.hostBindings;
            if (prevHostBindings) {
              definition.hostBindings = (rf, ctx) => {
                superHostBindings(rf, ctx);
                prevHostBindings(rf, ctx);
              };
            } else {
              definition.hostBindings = superHostBindings;
            }
          }
          
          /**
           * Fields which exist on either directive or component definitions, and need to be copied from
           * parent to child classes by the `ɵɵCopyDefinitionFeature`.
           */
          const COPY_DIRECTIVE_FIELDS = [
          // The child class should use the providers of its parent.
          'providersResolver'
          // Not listed here are any fields which are handled by the `ɵɵInheritDefinitionFeature`, such
          // as inputs, outputs, and host binding functions.
          ];
          /**
           * Fields which exist only on component definitions, and need to be copied from parent to child
           * classes by the `ɵɵCopyDefinitionFeature`.
           *
           * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,
           * since those should go in `COPY_DIRECTIVE_FIELDS` above.
           */
          const COPY_COMPONENT_FIELDS = [
          // The child class should use the template function of its parent, including all template
          // semantics.
          'template', 'decls', 'consts', 'vars', 'onPush', 'ngContentSelectors',
          // The child class should use the CSS styles of its parent, including all styling semantics.
          'styles', 'encapsulation',
          // The child class should be checked by the runtime in the same way as its parent.
          'schemas'];
          /**
           * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a
           * definition.
           *
           * This exists primarily to support ngcc migration of an existing View Engine pattern, where an
           * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it
           * generates a skeleton definition on the child class, and applies this feature.
           *
           * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,
           * including things like the component template function.
           *
           * @param definition The definition of a child class which inherits from a parent class with its
           * own definition.
           *
           * @codeGenApi
           */
          function ɵɵCopyDefinitionFeature(definition) {
            let superType = getSuperType(definition.type);
            let superDef = undefined;
            if (isComponentDef(definition)) {
              // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
              superDef = superType.ɵcmp;
            } else {
              // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
              superDef = superType.ɵdir;
            }
            // Needed because `definition` fields are readonly.
            const defAny = definition;
            // Copy over any fields that apply to either directives or components.
            for (const field of COPY_DIRECTIVE_FIELDS) {
              defAny[field] = superDef[field];
            }
            if (isComponentDef(superDef)) {
              // Copy over any component-specific fields.
              for (const field of COPY_COMPONENT_FIELDS) {
                defAny[field] = superDef[field];
              }
            }
          }
          
          /**
           * This feature adds the host directives behavior to a directive definition by patching a
           * function onto it. The expectation is that the runtime will invoke the function during
           * directive matching.
           *
           * For example:
           * ```ts
           * class ComponentWithHostDirective {
           *   static ɵcmp = defineComponent({
           *    type: ComponentWithHostDirective,
           *    features: [ɵɵHostDirectivesFeature([
           *      SimpleHostDirective,
           *      {directive: AdvancedHostDirective, inputs: ['foo: alias'], outputs: ['bar']},
           *    ])]
           *  });
           * }
           * ```
           *
           * @codeGenApi
           */
          function ɵɵHostDirectivesFeature(rawHostDirectives) {
            return definition => {
              definition.findHostDirectiveDefs = findHostDirectiveDefs;
              definition.hostDirectives = (Array.isArray(rawHostDirectives) ? rawHostDirectives : rawHostDirectives()).map(dir => {
                return typeof dir === 'function' ? {
                  directive: resolveForwardRef(dir),
                  inputs: EMPTY_OBJ,
                  outputs: EMPTY_OBJ
                } : {
                  directive: resolveForwardRef(dir.directive),
                  inputs: bindingArrayToMap(dir.inputs),
                  outputs: bindingArrayToMap(dir.outputs)
                };
              });
            };
          }
          function findHostDirectiveDefs(currentDef, matchedDefs, hostDirectiveDefs) {
            if (currentDef.hostDirectives !== null) {
              for (const hostDirectiveConfig of currentDef.hostDirectives) {
                const hostDirectiveDef = getDirectiveDef(hostDirectiveConfig.directive);
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  validateHostDirective(hostDirectiveConfig, hostDirectiveDef, matchedDefs);
                }
                // We need to patch the `declaredInputs` so that
                // `ngOnChanges` can map the properties correctly.
                patchDeclaredInputs(hostDirectiveDef.declaredInputs, hostDirectiveConfig.inputs);
                // Host directives execute before the host so that its host bindings can be overwritten.
                findHostDirectiveDefs(hostDirectiveDef, matchedDefs, hostDirectiveDefs);
                hostDirectiveDefs.set(hostDirectiveDef, hostDirectiveConfig);
                matchedDefs.push(hostDirectiveDef);
              }
            }
          }
          /**
           * Converts an array in the form of `['publicName', 'alias', 'otherPublicName', 'otherAlias']` into
           * a map in the form of `{publicName: 'alias', otherPublicName: 'otherAlias'}`.
           */
          function bindingArrayToMap(bindings) {
            if (bindings === undefined || bindings.length === 0) {
              return EMPTY_OBJ;
            }
            const result = {};
            for (let i = 0; i < bindings.length; i += 2) {
              result[bindings[i]] = bindings[i + 1];
            }
            return result;
          }
          /**
           * `ngOnChanges` has some leftover legacy ViewEngine behavior where the keys inside the
           * `SimpleChanges` event refer to the *declared* name of the input, not its public name or its
           * minified name. E.g. in `@Input('alias') foo: string`, the name in the `SimpleChanges` object
           * will always be `foo`, and not `alias` or the minified name of `foo` in apps using property
           * minification.
           *
           * This is achieved through the `DirectiveDef.declaredInputs` map that is constructed when the
           * definition is declared. When a property is written to the directive instance, the
           * `NgOnChangesFeature` will try to remap the property name being written to using the
           * `declaredInputs`.
           *
           * Since the host directive input remapping happens during directive matching, `declaredInputs`
           * won't contain the new alias that the input is available under. This function addresses the
           * issue by patching the host directive aliases to the `declaredInputs`. There is *not* a risk of
           * this patching accidentally introducing new inputs to the host directive, because `declaredInputs`
           * is used *only* by the `NgOnChangesFeature` when determining what name is used in the
           * `SimpleChanges` object which won't be reached if an input doesn't exist.
           */
          function patchDeclaredInputs(declaredInputs, exposedInputs) {
            for (const publicName in exposedInputs) {
              if (exposedInputs.hasOwnProperty(publicName)) {
                const remappedPublicName = exposedInputs[publicName];
                const privateName = declaredInputs[publicName];
                // We *technically* shouldn't be able to hit this case because we can't have multiple
                // inputs on the same property and we have validations against conflicting aliases in
                // `validateMappings`. If we somehow did, it would lead to `ngOnChanges` being invoked
                // with the wrong name so we have a non-user-friendly assertion here just in case.
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && declaredInputs.hasOwnProperty(remappedPublicName)) {
                  assertEqual(declaredInputs[remappedPublicName], declaredInputs[publicName], `Conflicting host directive input alias ${publicName}.`);
                }
                declaredInputs[remappedPublicName] = privateName;
              }
            }
          }
          /**
           * Verifies that the host directive has been configured correctly.
           * @param hostDirectiveConfig Host directive configuration object.
           * @param directiveDef Directive definition of the host directive.
           * @param matchedDefs Directives that have been matched so far.
           */
          function validateHostDirective(hostDirectiveConfig, directiveDef, matchedDefs) {
            const type = hostDirectiveConfig.directive;
            if (directiveDef === null) {
              if (getComponentDef(type) !== null) {
                throw new RuntimeError(310 /* RuntimeErrorCode.HOST_DIRECTIVE_COMPONENT */, `Host directive ${type.name} cannot be a component.`);
              }
              throw new RuntimeError(307 /* RuntimeErrorCode.HOST_DIRECTIVE_UNRESOLVABLE */, `Could not resolve metadata for host directive ${type.name}. ` + `Make sure that the ${type.name} class is annotated with an @Directive decorator.`);
            }
            if (!directiveDef.standalone) {
              throw new RuntimeError(308 /* RuntimeErrorCode.HOST_DIRECTIVE_NOT_STANDALONE */, `Host directive ${directiveDef.type.name} must be standalone.`);
            }
            if (matchedDefs.indexOf(directiveDef) > -1) {
              throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTITVE */, `Directive ${directiveDef.type.name} matches multiple times on the same element. ` + `Directives can only match an element once.`);
            }
            validateMappings('input', directiveDef, hostDirectiveConfig.inputs);
            validateMappings('output', directiveDef, hostDirectiveConfig.outputs);
          }
          /**
           * Checks that the host directive inputs/outputs configuration is valid.
           * @param bindingType Kind of binding that is being validated. Used in the error message.
           * @param def Definition of the host directive that is being validated against.
           * @param hostDirectiveBindings Host directive mapping object that shold be validated.
           */
          function validateMappings(bindingType, def, hostDirectiveBindings) {
            const className = def.type.name;
            const bindings = bindingType === 'input' ? def.inputs : def.outputs;
            for (const publicName in hostDirectiveBindings) {
              if (hostDirectiveBindings.hasOwnProperty(publicName)) {
                if (!bindings.hasOwnProperty(publicName)) {
                  throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);
                }
                const remappedPublicName = hostDirectiveBindings[publicName];
                if (bindings.hasOwnProperty(remappedPublicName) && remappedPublicName !== publicName && bindings[remappedPublicName] !== publicName) {
                  throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);
                }
              }
            }
          }
          
          /**
           * Decorates the directive definition with support for input transform functions.
           *
           * If the directive uses inheritance, the feature should be included before the
           * `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.
           *
           * @codeGenApi
           */
          function ɵɵInputTransformsFeature(definition) {
            const inputs = definition.inputConfig;
            const inputTransforms = {};
            for (const minifiedKey in inputs) {
              if (inputs.hasOwnProperty(minifiedKey)) {
                // Note: the private names are used for the keys, rather than the public ones, because public
                // names can be re-aliased in host directives which would invalidate the lookup.
                const value = inputs[minifiedKey];
                if (Array.isArray(value) && value[2]) {
                  inputTransforms[minifiedKey] = value[2];
                }
              }
            }
            definition.inputTransforms = inputTransforms;
          }
          function isIterable(obj) {
            return obj !== null && typeof obj === 'object' && obj[Symbol.iterator] !== undefined;
          }
          function isListLikeIterable(obj) {
            if (!isJsObject(obj)) return false;
            return Array.isArray(obj) || !(obj instanceof Map) &&
            // JS Map are iterables but return entries as [k, v]
            Symbol.iterator in obj; // JS Iterable have a Symbol.iterator prop
          }
          
          function areIterablesEqual(a, b, comparator) {
            const iterator1 = a[Symbol.iterator]();
            const iterator2 = b[Symbol.iterator]();
            while (true) {
              const item1 = iterator1.next();
              const item2 = iterator2.next();
              if (item1.done && item2.done) return true;
              if (item1.done || item2.done) return false;
              if (!comparator(item1.value, item2.value)) return false;
            }
          }
          function iterateListLike(obj, fn) {
            if (Array.isArray(obj)) {
              for (let i = 0; i < obj.length; i++) {
                fn(obj[i]);
              }
            } else {
              const iterator = obj[Symbol.iterator]();
              let item;
              while (!(item = iterator.next()).done) {
                fn(item.value);
              }
            }
          }
          function isJsObject(o) {
            return o !== null && (typeof o === 'function' || typeof o === 'object');
          }
          function devModeEqual(a, b) {
            const isListLikeIterableA = isListLikeIterable(a);
            const isListLikeIterableB = isListLikeIterable(b);
            if (isListLikeIterableA && isListLikeIterableB) {
              return areIterablesEqual(a, b, devModeEqual);
            } else {
              const isAObject = a && (typeof a === 'object' || typeof a === 'function');
              const isBObject = b && (typeof b === 'object' || typeof b === 'function');
              if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
                return true;
              } else {
                return Object.is(a, b);
              }
            }
          }
          
          // TODO(misko): consider inlining
          /** Updates binding and returns the value. */
          function updateBinding(lView, bindingIndex, value) {
            return lView[bindingIndex] = value;
          }
          /** Gets the current binding value. */
          function getBinding(lView, bindingIndex) {
            ngDevMode && assertIndexInRange(lView, bindingIndex);
            ngDevMode && assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');
            return lView[bindingIndex];
          }
          /**
           * Updates binding if changed, then returns whether it was updated.
           *
           * This function also checks the `CheckNoChangesMode` and throws if changes are made.
           * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE
           * behavior.
           *
           * @param lView current `LView`
           * @param bindingIndex The binding in the `LView` to check
           * @param value New value to check against `lView[bindingIndex]`
           * @returns `true` if the bindings has changed. (Throws if binding has changed during
           *          `CheckNoChangesMode`)
           */
          function bindingUpdated(lView, bindingIndex, value) {
            ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
            ngDevMode && assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);
            const oldValue = lView[bindingIndex];
            if (Object.is(oldValue, value)) {
              return false;
            } else {
              if (ngDevMode && isInCheckNoChangesMode()) {
                // View engine didn't report undefined values as changed on the first checkNoChanges pass
                // (before the change detection was run).
                const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;
                if (!devModeEqual(oldValueToCompare, value)) {
                  const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);
                  throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName, lView);
                }
                // There was a change, but the `devModeEqual` decided that the change is exempt from an error.
                // For this reason we exit as if no change. The early exit is needed to prevent the changed
                // value to be written into `LView` (If we would write the new value that we would not see it
                // as change on next CD.)
                return false;
              }
              lView[bindingIndex] = value;
              return true;
            }
          }
          /** Updates 2 bindings if changed, then returns whether either was updated. */
          function bindingUpdated2(lView, bindingIndex, exp1, exp2) {
            const different = bindingUpdated(lView, bindingIndex, exp1);
            return bindingUpdated(lView, bindingIndex + 1, exp2) || different;
          }
          /** Updates 3 bindings if changed, then returns whether any was updated. */
          function bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {
            const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
            return bindingUpdated(lView, bindingIndex + 2, exp3) || different;
          }
          /** Updates 4 bindings if changed, then returns whether any was updated. */
          function bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {
            const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
            return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;
          }
          
          /**
           * Updates the value of or removes a bound attribute on an Element.
           *
           * Used in the case of `[attr.title]="value"`
           *
           * @param name name The name of the attribute.
           * @param value value The attribute is removed when value is `null` or `undefined`.
           *                  Otherwise the attribute value is set to the stringified value.
           * @param sanitizer An optional function used to sanitize the value.
           * @param namespace Optional namespace to use when setting the attribute.
           *
           * @codeGenApi
           */
          function ɵɵattribute(name, value, sanitizer, namespace) {
            const lView = getLView();
            const bindingIndex = nextBindingIndex();
            if (bindingUpdated(lView, bindingIndex, value)) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);
            }
            return ɵɵattribute;
          }
          
          /**
           * Create interpolation bindings with a variable number of expressions.
           *
           * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.
           * Those are faster because there is no need to create an array of expressions and iterate over it.
           *
           * `values`:
           * - has static text at even indexes,
           * - has evaluated expressions at odd indexes.
           *
           * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.
           */
          function interpolationV(lView, values) {
            ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');
            ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');
            let isBindingUpdated = false;
            let bindingIndex = getBindingIndex();
            for (let i = 1; i < values.length; i += 2) {
              // Check if bindings (odd indexes) have changed
              isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;
            }
            setBindingIndex(bindingIndex);
            if (!isBindingUpdated) {
              return NO_CHANGE;
            }
            // Build the updated content
            let content = values[0];
            for (let i = 1; i < values.length; i += 2) {
              content += renderStringify(values[i]) + values[i + 1];
            }
            return content;
          }
          /**
           * Creates an interpolation binding with 1 expression.
           *
           * @param prefix static value used for concatenation only.
           * @param v0 value checked for change.
           * @param suffix static value used for concatenation only.
           */
          function interpolation1(lView, prefix, v0, suffix) {
            const different = bindingUpdated(lView, nextBindingIndex(), v0);
            return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 2 expressions.
           */
          function interpolation2(lView, prefix, v0, i0, v1, suffix) {
            const bindingIndex = getBindingIndex();
            const different = bindingUpdated2(lView, bindingIndex, v0, v1);
            incrementBindingIndex(2);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 3 expressions.
           */
          function interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {
            const bindingIndex = getBindingIndex();
            const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);
            incrementBindingIndex(3);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix : NO_CHANGE;
          }
          /**
           * Create an interpolation binding with 4 expressions.
           */
          function interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
            const bindingIndex = getBindingIndex();
            const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
            incrementBindingIndex(4);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 5 expressions.
           */
          function interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
            const bindingIndex = getBindingIndex();
            let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
            different = bindingUpdated(lView, bindingIndex + 4, v4) || different;
            incrementBindingIndex(5);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 6 expressions.
           */
          function interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
            const bindingIndex = getBindingIndex();
            let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
            different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;
            incrementBindingIndex(6);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 7 expressions.
           */
          function interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
            const bindingIndex = getBindingIndex();
            let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
            different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;
            incrementBindingIndex(7);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + suffix : NO_CHANGE;
          }
          /**
           * Creates an interpolation binding with 8 expressions.
           */
          function interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
            const bindingIndex = getBindingIndex();
            let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
            different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;
            incrementBindingIndex(8);
            return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix : NO_CHANGE;
          }
          
          /**
           *
           * Update an interpolated attribute on an element with single bound value surrounded by text.
           *
           * Used when the value passed to a property has 1 interpolated value in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);
            }
            return ɵɵattributeInterpolate1;
          }
          /**
           *
           * Update an interpolated attribute on an element with 2 bound values surrounded by text.
           *
           * Used when the value passed to a property has 2 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);
            }
            return ɵɵattributeInterpolate2;
          }
          /**
           *
           * Update an interpolated attribute on an element with 3 bound values surrounded by text.
           *
           * Used when the value passed to a property has 3 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate3(
           * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);
            }
            return ɵɵattributeInterpolate3;
          }
          /**
           *
           * Update an interpolated attribute on an element with 4 bound values surrounded by text.
           *
           * Used when the value passed to a property has 4 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate4(
           * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
            }
            return ɵɵattributeInterpolate4;
          }
          /**
           *
           * Update an interpolated attribute on an element with 5 bound values surrounded by text.
           *
           * Used when the value passed to a property has 5 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate5(
           * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
            }
            return ɵɵattributeInterpolate5;
          }
          /**
           *
           * Update an interpolated attribute on an element with 6 bound values surrounded by text.
           *
           * Used when the value passed to a property has 6 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate6(
           *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
            }
            return ɵɵattributeInterpolate6;
          }
          /**
           *
           * Update an interpolated attribute on an element with 7 bound values surrounded by text.
           *
           * Used when the value passed to a property has 7 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate7(
           *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
            }
            return ɵɵattributeInterpolate7;
          }
          /**
           *
           * Update an interpolated attribute on an element with 8 bound values surrounded by text.
           *
           * Used when the value passed to a property has 8 interpolated values in it:
           *
           * ```html
           * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolate8(
           *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
           * ```
           *
           * @param attrName The name of the attribute to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param i6 Static value used for concatenation only.
           * @param v7 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {
            const lView = getLView();
            const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
              ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
            }
            return ɵɵattributeInterpolate8;
          }
          /**
           * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div
           *  title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵattributeInterpolateV(
           *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
           *  'suffix']);
           * ```
           *
           * @param attrName The name of the attribute to update.
           * @param values The collection of values and the strings in-between those values, beginning with
           * a string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {
            const lView = getLView();
            const interpolated = interpolationV(lView, values);
            if (interpolated !== NO_CHANGE) {
              const tNode = getSelectedTNode();
              elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);
              if (ngDevMode) {
                const interpolationInBetween = [values[0]]; // prefix
                for (let i = 2; i < values.length; i += 2) {
                  interpolationInBetween.push(values[i]);
                }
                storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);
              }
            }
            return ɵɵattributeInterpolateV;
          }
          const AT_THIS_LOCATION = '<-- AT THIS LOCATION';
          /**
           * Retrieves a user friendly string for a given TNodeType for use in
           * friendly error messages
           *
           * @param tNodeType
           * @returns
           */
          function getFriendlyStringFromTNodeType(tNodeType) {
            switch (tNodeType) {
              case 4 /* TNodeType.Container */:
                return 'view container';
              case 2 /* TNodeType.Element */:
                return 'element';
              case 8 /* TNodeType.ElementContainer */:
                return 'ng-container';
              case 32 /* TNodeType.Icu */:
                return 'icu';
              case 64 /* TNodeType.Placeholder */:
                return 'i18n';
              case 16 /* TNodeType.Projection */:
                return 'projection';
              case 1 /* TNodeType.Text */:
                return 'text';
              default:
                // This should not happen as we cover all possible TNode types above.
                return '<unknown>';
            }
          }
          /**
           * Validates that provided nodes match during the hydration process.
           */
          function validateMatchingNode(node, nodeType, tagName, lView, tNode, isViewContainerAnchor = false) {
            if (!node || node.nodeType !== nodeType || node.nodeType === Node.ELEMENT_NODE && node.tagName.toLowerCase() !== tagName?.toLowerCase()) {
              const expectedNode = shortRNodeDescription(nodeType, tagName, null);
              let header = `During hydration Angular expected ${expectedNode} but `;
              const hostComponentDef = getDeclarationComponentDef(lView);
              const componentClassName = hostComponentDef?.type?.name;
              const expected = `Angular expected this DOM:\n\n${describeExpectedDom(lView, tNode, isViewContainerAnchor)}\n\n`;
              let actual = '';
              if (!node) {
                // No node found during hydration.
                header += `the node was not found.\n\n`;
              } else {
                const actualNode = shortRNodeDescription(node.nodeType, node.tagName ?? null, node.textContent ?? null);
                header += `found ${actualNode}.\n\n`;
                actual = `Actual DOM is:\n\n${describeDomFromNode(node)}\n\n`;
              }
              const footer = getHydrationErrorFooter(componentClassName);
              const message = header + expected + actual + getHydrationAttributeNote() + footer;
              throw new RuntimeError(-500 /* RuntimeErrorCode.HYDRATION_NODE_MISMATCH */, message);
            }
          }
          /**
           * Validates that a given node has sibling nodes
           */
          function validateSiblingNodeExists(node) {
            validateNodeExists(node);
            if (!node.nextSibling) {
              const header = 'During hydration Angular expected more sibling nodes to be present.\n\n';
              const actual = `Actual DOM is:\n\n${describeDomFromNode(node)}\n\n`;
              const footer = getHydrationErrorFooter();
              const message = header + actual + footer;
              throw new RuntimeError(-501 /* RuntimeErrorCode.HYDRATION_MISSING_SIBLINGS */, message);
            }
          }
          /**
           * Validates that a node exists or throws
           */
          function validateNodeExists(node, lView = null, tNode = null) {
            if (!node) {
              const header = 'During hydration, Angular expected an element to be present at this location.\n\n';
              let expected = '';
              let footer = '';
              if (lView !== null && tNode !== null) {
                expected = `${describeExpectedDom(lView, tNode, false)}\n\n`;
                footer = getHydrationErrorFooter();
              }
              throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + expected + footer);
            }
          }
          /**
           * Builds the hydration error message when a node is not found
           *
           * @param lView the LView where the node exists
           * @param tNode the TNode
           */
          function nodeNotFoundError(lView, tNode) {
            const header = 'During serialization, Angular was unable to find an element in the DOM:\n\n';
            const expected = `${describeExpectedDom(lView, tNode, false)}\n\n`;
            const footer = getHydrationErrorFooter();
            throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + expected + footer);
          }
          /**
           * Builds a hydration error message when a node is not found at a path location
           *
           * @param host the Host Node
           * @param path the path to the node
           */
          function nodeNotFoundAtPathError(host, path) {
            const header = `During hydration Angular was unable to locate a node ` + `using the "${path}" path, starting from the ${describeRNode(host)} node.\n\n`;
            const footer = getHydrationErrorFooter();
            throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + footer);
          }
          /**
           * Builds the hydration error message in the case that dom nodes are created outside of
           * the Angular context and are being used as projected nodes
           *
           * @param lView the LView
           * @param tNode the TNode
           * @returns an error
           */
          function unsupportedProjectionOfDomNodes(rNode) {
            const header = 'During serialization, Angular detected DOM nodes ' + 'that were created outside of Angular context and provided as projectable nodes ' + '(likely via `ViewContainerRef.createComponent` or `createComponent` APIs). ' + 'Hydration is not supported for such cases, consider refactoring the code to avoid ' + 'this pattern or using `ngSkipHydration` on the host element of the component.\n\n';
            const actual = `${describeDomFromNode(rNode)}\n\n`;
            const message = header + actual + getHydrationAttributeNote();
            return new RuntimeError(-503 /* RuntimeErrorCode.UNSUPPORTED_PROJECTION_DOM_NODES */, message);
          }
          /**
           * Builds the hydration error message in the case that ngSkipHydration was used on a
           * node that is not a component host element or host binding
           *
           * @param rNode the HTML Element
           * @returns an error
           */
          function invalidSkipHydrationHost(rNode) {
            const header = 'The `ngSkipHydration` flag is applied on a node ' + 'that doesn\'t act as a component host. Hydration can be ' + 'skipped only on per-component basis.\n\n';
            const actual = `${describeDomFromNode(rNode)}\n\n`;
            const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\n\n';
            const message = header + actual + footer;
            return new RuntimeError(-504 /* RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST */, message);
          }
          // Stringification methods
          /**
           * Stringifies a given TNode's attributes
           *
           * @param tNode a provided TNode
           * @returns string
           */
          function stringifyTNodeAttrs(tNode) {
            const results = [];
            if (tNode.attrs) {
              for (let i = 0; i < tNode.attrs.length;) {
                const attrName = tNode.attrs[i++];
                // Once we reach the first flag, we know that the list of
                // attributes is over.
                if (typeof attrName == 'number') {
                  break;
                }
                const attrValue = tNode.attrs[i++];
                results.push(`${attrName}="${shorten(attrValue)}"`);
              }
            }
            return results.join(' ');
          }
          /**
           * The list of internal attributes that should be filtered out while
           * producing an error message.
           */
          const internalAttrs = new Set(['ngh', 'ng-version', 'ng-server-context']);
          /**
           * Stringifies an HTML Element's attributes
           *
           * @param rNode an HTML Element
           * @returns string
           */
          function stringifyRNodeAttrs(rNode) {
            const results = [];
            for (let i = 0; i < rNode.attributes.length; i++) {
              const attr = rNode.attributes[i];
              if (internalAttrs.has(attr.name)) continue;
              results.push(`${attr.name}="${shorten(attr.value)}"`);
            }
            return results.join(' ');
          }
          // Methods for Describing the DOM
          /**
           * Converts a tNode to a helpful readable string value for use in error messages
           *
           * @param tNode a given TNode
           * @param innerContent the content of the node
           * @returns string
           */
          function describeTNode(tNode, innerContent = '…') {
            switch (tNode.type) {
              case 1 /* TNodeType.Text */:
                const content = tNode.value ? `(${tNode.value})` : '';
                return `#text${content}`;
              case 2 /* TNodeType.Element */:
                const attrs = stringifyTNodeAttrs(tNode);
                const tag = tNode.value.toLowerCase();
                return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;
              case 8 /* TNodeType.ElementContainer */:
                return '<!-- ng-container -->';
              case 4 /* TNodeType.Container */:
                return '<!-- container -->';
              default:
                const typeAsString = getFriendlyStringFromTNodeType(tNode.type);
                return `#node(${typeAsString})`;
            }
          }
          /**
           * Converts an RNode to a helpful readable string value for use in error messages
           *
           * @param rNode a given RNode
           * @param innerContent the content of the node
           * @returns string
           */
          function describeRNode(rNode, innerContent = '…') {
            const node = rNode;
            switch (node.nodeType) {
              case Node.ELEMENT_NODE:
                const tag = node.tagName.toLowerCase();
                const attrs = stringifyRNodeAttrs(node);
                return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;
              case Node.TEXT_NODE:
                const content = node.textContent ? shorten(node.textContent) : '';
                return `#text${content ? `(${content})` : ''}`;
              case Node.COMMENT_NODE:
                return `<!-- ${shorten(node.textContent ?? '')} -->`;
              default:
                return `#node(${node.nodeType})`;
            }
          }
          /**
           * Builds the string containing the expected DOM present given the LView and TNode
           * values for a readable error message
           *
           * @param lView the lView containing the DOM
           * @param tNode the tNode
           * @param isViewContainerAnchor boolean
           * @returns string
           */
          function describeExpectedDom(lView, tNode, isViewContainerAnchor) {
            const spacer = '  ';
            let content = '';
            if (tNode.prev) {
              content += spacer + '…\n';
              content += spacer + describeTNode(tNode.prev) + '\n';
            } else if (tNode.type && tNode.type & 12 /* TNodeType.AnyContainer */) {
              content += spacer + '…\n';
            }
            if (isViewContainerAnchor) {
              content += spacer + describeTNode(tNode) + '\n';
              content += spacer + `<!-- container -->  ${AT_THIS_LOCATION}\n`;
            } else {
              content += spacer + describeTNode(tNode) + `  ${AT_THIS_LOCATION}\n`;
            }
            content += spacer + '…\n';
            const parentRNode = tNode.type ? getParentRElement(lView[TVIEW], tNode, lView) : null;
            if (parentRNode) {
              content = describeRNode(parentRNode, '\n' + content);
            }
            return content;
          }
          /**
           * Builds the string containing the DOM present around a given RNode for a
           * readable error message
           *
           * @param node the RNode
           * @returns string
           */
          function describeDomFromNode(node) {
            const spacer = '  ';
            let content = '';
            const currentNode = node;
            if (currentNode.previousSibling) {
              content += spacer + '…\n';
              content += spacer + describeRNode(currentNode.previousSibling) + '\n';
            }
            content += spacer + describeRNode(currentNode) + `  ${AT_THIS_LOCATION}\n`;
            if (node.nextSibling) {
              content += spacer + '…\n';
            }
            if (node.parentNode) {
              content = describeRNode(currentNode.parentNode, '\n' + content);
            }
            return content;
          }
          /**
           * Shortens the description of a given RNode by its type for readability
           *
           * @param nodeType the type of node
           * @param tagName the node tag name
           * @param textContent the text content in the node
           * @returns string
           */
          function shortRNodeDescription(nodeType, tagName, textContent) {
            switch (nodeType) {
              case Node.ELEMENT_NODE:
                return `<${tagName.toLowerCase()}>`;
              case Node.TEXT_NODE:
                const content = textContent ? ` (with the "${shorten(textContent)}" content)` : '';
                return `a text node${content}`;
              case Node.COMMENT_NODE:
                return 'a comment node';
              default:
                return `#node(nodeType=${nodeType})`;
            }
          }
          /**
           * Builds the footer hydration error message
           *
           * @param componentClassName the name of the component class
           * @returns string
           */
          function getHydrationErrorFooter(componentClassName) {
            const componentInfo = componentClassName ? `the "${componentClassName}"` : 'corresponding';
            return `To fix this problem:\n` + `  * check ${componentInfo} component for hydration-related issues\n` + `  * check to see if your template has valid HTML structure\n` + `  * or skip hydration by adding the \`ngSkipHydration\` attribute ` + `to its host node in a template\n\n`;
          }
          /**
           * An attribute related note for hydration errors
           */
          function getHydrationAttributeNote() {
            return 'Note: attributes are only displayed to better represent the DOM' + ' but have no effect on hydration mismatches.\n\n';
          }
          // Node string utility functions
          /**
           * Strips all newlines out of a given string
           *
           * @param input a string to be cleared of new line characters
           * @returns
           */
          function stripNewlines(input) {
            return input.replace(/\s+/gm, '');
          }
          /**
           * Reduces a string down to a maximum length of characters with ellipsis for readability
           *
           * @param input a string input
           * @param maxLength a maximum length in characters
           * @returns string
           */
          function shorten(input, maxLength = 50) {
            if (!input) {
              return '';
            }
            input = stripNewlines(input);
            return input.length > maxLength ? `${input.substring(0, maxLength - 1)}…` : input;
          }
          
          /**
           * Regexp that extracts a reference node information from the compressed node location.
           * The reference node is represented as either:
           *  - a number which points to an LView slot
           *  - the `b` char which indicates that the lookup should start from the `document.body`
           *  - the `h` char to start lookup from the component host node (`lView[HOST]`)
           */
          const REF_EXTRACTOR_REGEXP = new RegExp(`^(\\d+)*(${REFERENCE_NODE_BODY}|${REFERENCE_NODE_HOST})*(.*)`);
          /**
           * Helper function that takes a reference node location and a set of navigation steps
           * (from the reference node) to a target node and outputs a string that represents
           * a location.
           *
           * For example, given: referenceNode = 'b' (body) and path = ['firstChild', 'firstChild',
           * 'nextSibling'], the function returns: `bf2n`.
           */
          function compressNodeLocation(referenceNode, path) {
            const result = [referenceNode];
            for (const segment of path) {
              const lastIdx = result.length - 1;
              if (lastIdx > 0 && result[lastIdx - 1] === segment) {
                // An empty string in a count slot represents 1 occurrence of an instruction.
                const value = result[lastIdx] || 1;
                result[lastIdx] = value + 1;
              } else {
                // Adding a new segment to the path.
                // Using an empty string in a counter field to avoid encoding `1`s
                // into the path, since they are implicit (e.g. `f1n1` vs `fn`), so
                // it's enough to have a single char in this case.
                result.push(segment, '');
              }
            }
            return result.join('');
          }
          /**
           * Helper function that reverts the `compressNodeLocation` and transforms a given
           * string into an array where at 0th position there is a reference node info and
           * after that it contains information (in pairs) about a navigation step and the
           * number of repetitions.
           *
           * For example, the path like 'bf2n' will be transformed to:
           * ['b', 'firstChild', 2, 'nextSibling', 1].
           *
           * This information is later consumed by the code that navigates the DOM to find
           * a given node by its location.
           */
          function decompressNodeLocation(path) {
            const matches = path.match(REF_EXTRACTOR_REGEXP);
            const [_, refNodeId, refNodeName, rest] = matches;
            // If a reference node is represented by an index, transform it to a number.
            const ref = refNodeId ? parseInt(refNodeId, 10) : refNodeName;
            const steps = [];
            // Match all segments in a path.
            for (const [_, step, count] of rest.matchAll(/(f|n)(\d*)/g)) {
              const repeat = parseInt(count, 10) || 1;
              steps.push(step, repeat);
            }
            return [ref, ...steps];
          }
          
          /** Whether current TNode is a first node in an <ng-container>. */
          function isFirstElementInNgContainer(tNode) {
            return !tNode.prev && tNode.parent?.type === 8 /* TNodeType.ElementContainer */;
          }
          /** Returns an instruction index (subtracting HEADER_OFFSET). */
          function getNoOffsetIndex(tNode) {
            return tNode.index - HEADER_OFFSET;
          }
          /**
           * Locate a node in DOM tree that corresponds to a given TNode.
           *
           * @param hydrationInfo The hydration annotation data
           * @param tView the current tView
           * @param lView the current lView
           * @param tNode the current tNode
           * @returns an RNode that represents a given tNode
           */
          function locateNextRNode(hydrationInfo, tView, lView, tNode) {
            let native = null;
            const noOffsetIndex = getNoOffsetIndex(tNode);
            const nodes = hydrationInfo.data[NODES];
            if (nodes?.[noOffsetIndex]) {
              // We know the exact location of the node.
              native = locateRNodeByPath(nodes[noOffsetIndex], lView);
            } else if (tView.firstChild === tNode) {
              // We create a first node in this view, so we use a reference
              // to the first child in this DOM segment.
              native = hydrationInfo.firstChild;
            } else {
              // Locate a node based on a previous sibling or a parent node.
              const previousTNodeParent = tNode.prev === null;
              const previousTNode = tNode.prev ?? tNode.parent;
              ngDevMode && assertDefined(previousTNode, 'Unexpected state: current TNode does not have a connection ' + 'to the previous node or a parent node.');
              if (isFirstElementInNgContainer(tNode)) {
                const noOffsetParentIndex = getNoOffsetIndex(tNode.parent);
                native = getSegmentHead(hydrationInfo, noOffsetParentIndex);
              } else {
                let previousRElement = getNativeByTNode(previousTNode, lView);
                if (previousTNodeParent) {
                  native = previousRElement.firstChild;
                } else {
                  // If the previous node is an element, but it also has container info,
                  // this means that we are processing a node like `<div #vcrTarget>`, which is
                  // represented in the DOM as `<div></div>...<!--container-->`.
                  // In this case, there are nodes *after* this element and we need to skip
                  // all of them to reach an element that we are looking for.
                  const noOffsetPrevSiblingIndex = getNoOffsetIndex(previousTNode);
                  const segmentHead = getSegmentHead(hydrationInfo, noOffsetPrevSiblingIndex);
                  if (previousTNode.type === 2 /* TNodeType.Element */ && segmentHead) {
                    const numRootNodesToSkip = calcSerializedContainerSize(hydrationInfo, noOffsetPrevSiblingIndex);
                    // `+1` stands for an anchor comment node after all the views in this container.
                    const nodesToSkip = numRootNodesToSkip + 1;
                    // First node after this segment.
                    native = siblingAfter(nodesToSkip, segmentHead);
                  } else {
                    native = previousRElement.nextSibling;
                  }
                }
              }
            }
            return native;
          }
          /**
           * Skips over a specified number of nodes and returns the next sibling node after that.
           */
          function siblingAfter(skip, from) {
            let currentNode = from;
            for (let i = 0; i < skip; i++) {
              ngDevMode && validateSiblingNodeExists(currentNode);
              currentNode = currentNode.nextSibling;
            }
            return currentNode;
          }
          /**
           * Helper function to produce a string representation of the navigation steps
           * (in terms of `nextSibling` and `firstChild` navigations). Used in error
           * messages in dev mode.
           */
          function stringifyNavigationInstructions(instructions) {
            const container = [];
            for (let i = 0; i < instructions.length; i += 2) {
              const step = instructions[i];
              const repeat = instructions[i + 1];
              for (let r = 0; r < repeat; r++) {
                container.push(step === NodeNavigationStep.FirstChild ? 'firstChild' : 'nextSibling');
              }
            }
            return container.join('.');
          }
          /**
           * Helper function that navigates from a starting point node (the `from` node)
           * using provided set of navigation instructions (within `path` argument).
           */
          function navigateToNode(from, instructions) {
            let node = from;
            for (let i = 0; i < instructions.length; i += 2) {
              const step = instructions[i];
              const repeat = instructions[i + 1];
              for (let r = 0; r < repeat; r++) {
                if (ngDevMode && !node) {
                  throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));
                }
                switch (step) {
                  case NodeNavigationStep.FirstChild:
                    node = node.firstChild;
                    break;
                  case NodeNavigationStep.NextSibling:
                    node = node.nextSibling;
                    break;
                }
              }
            }
            if (ngDevMode && !node) {
              throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));
            }
            return node;
          }
          /**
           * Locates an RNode given a set of navigation instructions (which also contains
           * a starting point node info).
           */
          function locateRNodeByPath(path, lView) {
            const [referenceNode, ...navigationInstructions] = decompressNodeLocation(path);
            let ref;
            if (referenceNode === REFERENCE_NODE_HOST) {
              ref = lView[DECLARATION_COMPONENT_VIEW][HOST];
            } else if (referenceNode === REFERENCE_NODE_BODY) {
              ref = ɵɵresolveBody(lView[DECLARATION_COMPONENT_VIEW][HOST]);
            } else {
              const parentElementId = Number(referenceNode);
              ref = unwrapRNode(lView[parentElementId + HEADER_OFFSET]);
            }
            return navigateToNode(ref, navigationInstructions);
          }
          /**
           * Generate a list of DOM navigation operations to get from node `start` to node `finish`.
           *
           * Note: assumes that node `start` occurs before node `finish` in an in-order traversal of the DOM
           * tree. That is, we should be able to get from `start` to `finish` purely by using `.firstChild`
           * and `.nextSibling` operations.
           */
          function navigateBetween(start, finish) {
            if (start === finish) {
              return [];
            } else if (start.parentElement == null || finish.parentElement == null) {
              return null;
            } else if (start.parentElement === finish.parentElement) {
              return navigateBetweenSiblings(start, finish);
            } else {
              // `finish` is a child of its parent, so the parent will always have a child.
              const parent = finish.parentElement;
              const parentPath = navigateBetween(start, parent);
              const childPath = navigateBetween(parent.firstChild, finish);
              if (!parentPath || !childPath) return null;
              return [
              // First navigate to `finish`'s parent
              ...parentPath,
              // Then to its first child.
              NodeNavigationStep.FirstChild,
              // And finally from that node to `finish` (maybe a no-op if we're already there).
              ...childPath];
            }
          }
          /**
           * Calculates a path between 2 sibling nodes (generates a number of `NextSibling` navigations).
           * Returns `null` if no such path exists between the given nodes.
           */
          function navigateBetweenSiblings(start, finish) {
            const nav = [];
            let node = null;
            for (node = start; node != null && node !== finish; node = node.nextSibling) {
              nav.push(NodeNavigationStep.NextSibling);
            }
            // If the `node` becomes `null` or `undefined` at the end, that means that we
            // didn't find the `end` node, thus return `null` (which would trigger serialization
            // error to be produced).
            return node == null ? null : nav;
          }
          /**
           * Calculates a path between 2 nodes in terms of `nextSibling` and `firstChild`
           * navigations:
           * - the `from` node is a known node, used as an starting point for the lookup
           *   (the `fromNodeName` argument is a string representation of the node).
           * - the `to` node is a node that the runtime logic would be looking up,
           *   using the path generated by this function.
           */
          function calcPathBetween(from, to, fromNodeName) {
            const path = navigateBetween(from, to);
            return path === null ? null : compressNodeLocation(fromNodeName, path);
          }
          /**
           * Invoked at serialization time (on the server) when a set of navigation
           * instructions needs to be generated for a TNode.
           */
          function calcPathForNode(tNode, lView) {
            const parentTNode = tNode.parent;
            let parentIndex;
            let parentRNode;
            let referenceNodeName;
            if (parentTNode === null || !(parentTNode.type & 3 /* TNodeType.AnyRNode */)) {
              // If there is no parent TNode or a parent TNode does not represent an RNode
              // (i.e. not a DOM node), use component host element as a reference node.
              parentIndex = referenceNodeName = REFERENCE_NODE_HOST;
              parentRNode = lView[DECLARATION_COMPONENT_VIEW][HOST];
            } else {
              // Use parent TNode as a reference node.
              parentIndex = parentTNode.index;
              parentRNode = unwrapRNode(lView[parentIndex]);
              referenceNodeName = renderStringify(parentIndex - HEADER_OFFSET);
            }
            let rNode = unwrapRNode(lView[tNode.index]);
            if (tNode.type & 12 /* TNodeType.AnyContainer */) {
              // For <ng-container> nodes, instead of serializing a reference
              // to the anchor comment node, serialize a location of the first
              // DOM element. Paired with the container size (serialized as a part
              // of `ngh.containers`), it should give enough information for runtime
              // to hydrate nodes in this container.
              const firstRNode = getFirstNativeNode(lView, tNode);
              // If container is not empty, use a reference to the first element,
              // otherwise, rNode would point to an anchor comment node.
              if (firstRNode) {
                rNode = firstRNode;
              }
            }
            let path = calcPathBetween(parentRNode, rNode, referenceNodeName);
            if (path === null && parentRNode !== rNode) {
              // Searching for a path between elements within a host node failed.
              // Trying to find a path to an element starting from the `document.body` instead.
              //
              // Important note: this type of reference is relatively unstable, since Angular
              // may not be able to control parts of the page that the runtime logic navigates
              // through. This is mostly needed to cover "portals" use-case (like menus, dialog boxes,
              // etc), where nodes are content-projected (including direct DOM manipulations) outside
              // of the host node. The better solution is to provide APIs to work with "portals",
              // at which point this code path would not be needed.
              const body = parentRNode.ownerDocument.body;
              path = calcPathBetween(body, rNode, REFERENCE_NODE_BODY);
              if (path === null) {
                // If the path is still empty, it's likely that this node is detached and
                // won't be found during hydration.
                throw nodeNotFoundError(lView, tNode);
              }
            }
            return path;
          }
          function templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {
            ngDevMode && assertFirstCreatePass(tView);
            ngDevMode && ngDevMode.firstCreatePass++;
            const tViewConsts = tView.consts;
            // TODO(pk): refactor getOrCreateTNode to have the "create" only version
            const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, getConstant(tViewConsts, attrsIndex));
            resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
            registerPostOrderHooks(tView, tNode);
            const embeddedTView = tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts, null /* ssrId */);
            if (tView.queries !== null) {
              tView.queries.template(tView, tNode);
              embeddedTView.queries = tView.queries.embeddedTView(tNode);
            }
            return tNode;
          }
          /**
           * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.
           *
           * <ng-template #foo>
           *    <div></div>
           * </ng-template>
           *
           * @param index The index of the container in the data array
           * @param templateFn Inline template
           * @param decls The number of nodes, local refs, and pipes for this template
           * @param vars The number of bindings for this template
           * @param tagName The name of the container element, if applicable
           * @param attrsIndex Index of template attributes in the `consts` array.
           * @param localRefs Index of the local references in the `consts` array.
           * @param localRefExtractor A function which extracts local-refs values from the template.
           *        Defaults to the current element associated with the local-ref.
           *
           * @codeGenApi
           */
          function ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {
            const lView = getLView();
            const tView = getTView();
            const adjustedIndex = index + HEADER_OFFSET;
            const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
            setCurrentTNode(tNode, false);
            const comment = _locateOrCreateContainerAnchor(tView, lView, tNode, index);
            if (wasLastNodeCreated()) {
              appendChild(tView, lView, comment, tNode);
            }
            attachPatchData(comment, lView);
            addToViewTree(lView, lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode));
            if (isDirectiveHost(tNode)) {
              createDirectivesInstances(tView, lView, tNode);
            }
            if (localRefsIndex != null) {
              saveResolvedLocalsInData(lView, tNode, localRefExtractor);
            }
          }
          let _locateOrCreateContainerAnchor = createContainerAnchorImpl;
          /**
           * Regular creation mode for LContainers and their anchor (comment) nodes.
           */
          function createContainerAnchorImpl(tView, lView, tNode, index) {
            lastNodeWasCreated(true);
            return lView[RENDERER].createComment(ngDevMode ? 'container' : '');
          }
          /**
           * Enables hydration code path (to lookup existing elements in DOM)
           * in addition to the regular creation mode for LContainers and their
           * anchor (comment) nodes.
           */
          function locateOrCreateContainerAnchorImpl(tView, lView, tNode, index) {
            const hydrationInfo = lView[HYDRATION];
            const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDisconnectedNode$1(hydrationInfo, index);
            lastNodeWasCreated(isNodeCreationMode);
            // Regular creation mode.
            if (isNodeCreationMode) {
              return createContainerAnchorImpl(tView, lView, tNode, index);
            }
            const ssrId = hydrationInfo.data[TEMPLATES]?.[index] ?? null;
            // Apply `ssrId` value to the underlying TView if it was not previously set.
            //
            // There might be situations when the same component is present in a template
            // multiple times and some instances are opted-out of using hydration via
            // `ngSkipHydration` attribute. In this scenario, at the time a TView is created,
            // the `ssrId` might be `null` (if the first component is opted-out of hydration).
            // The code below makes sure that the `ssrId` is applied to the TView if it's still
            // `null` and verifies we never try to override it with a different value.
            if (ssrId !== null && tNode.tView !== null) {
              if (tNode.tView.ssrId === null) {
                tNode.tView.ssrId = ssrId;
              } else {
                ngDevMode && assertEqual(tNode.tView.ssrId, ssrId, 'Unexpected value of the `ssrId` for this TView');
              }
            }
            // Hydration mode, looking up existing elements in DOM.
            const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);
            ngDevMode && validateNodeExists(currentRNode, lView, tNode);
            setSegmentHead(hydrationInfo, index, currentRNode);
            const viewContainerSize = calcSerializedContainerSize(hydrationInfo, index);
            const comment = siblingAfter(viewContainerSize, currentRNode);
            if (ngDevMode) {
              validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);
              markRNodeAsClaimedByHydration(comment);
            }
            return comment;
          }
          function enableLocateOrCreateContainerAnchorImpl() {
            _locateOrCreateContainerAnchor = locateOrCreateContainerAnchorImpl;
          }
          
          /** Store a value in the `data` at a given `index`. */
          function store(tView, lView, index, value) {
            // We don't store any static data for local variables, so the first time
            // we see the template, we should store as null to avoid a sparse array
            if (index >= tView.data.length) {
              tView.data[index] = null;
              tView.blueprint[index] = null;
            }
            lView[index] = value;
          }
          /**
           * Retrieves a local reference from the current contextViewData.
           *
           * If the reference to retrieve is in a parent view, this instruction is used in conjunction
           * with a nextContext() call, which walks up the tree and updates the contextViewData instance.
           *
           * @param index The index of the local ref in contextViewData.
           *
           * @codeGenApi
           */
          function ɵɵreference(index) {
            const contextLView = getContextLView();
            return load(contextLView, HEADER_OFFSET + index);
          }
          
          /**
           * Update a property on a selected element.
           *
           * Operates on the element selected by index via the {@link select} instruction.
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled
           *
           * @param propName Name of property. Because it is going to DOM, this is not subject to
           *        renaming as part of minification.
           * @param value New value to write.
           * @param sanitizer An optional function used to sanitize the value.
           * @returns This function returns itself so that it may be chained
           * (e.g. `property('name', ctx.name)('title', ctx.title)`)
           *
           * @codeGenApi
           */
          function ɵɵproperty(propName, value, sanitizer) {
            const lView = getLView();
            const bindingIndex = nextBindingIndex();
            if (bindingUpdated(lView, bindingIndex, value)) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
            }
            return ɵɵproperty;
          }
          /**
           * Given `<div style="..." my-dir>` and `MyDir` with `@Input('style')` we need to write to
           * directive input.
           */
          function setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {
            const inputs = tNode.inputs;
            const property = isClassBased ? 'class' : 'style';
            // We support both 'class' and `className` hence the fallback.
            setInputsForProperty(tView, lView, inputs[property], property, value);
          }
          function elementStartFirstCreatePass(index, tView, lView, name, attrsIndex, localRefsIndex) {
            ngDevMode && assertFirstCreatePass(tView);
            ngDevMode && ngDevMode.firstCreatePass++;
            const tViewConsts = tView.consts;
            const attrs = getConstant(tViewConsts, attrsIndex);
            const tNode = getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, name, attrs);
            resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
            if (tNode.attrs !== null) {
              computeStaticStyling(tNode, tNode.attrs, false);
            }
            if (tNode.mergedAttrs !== null) {
              computeStaticStyling(tNode, tNode.mergedAttrs, true);
            }
            if (tView.queries !== null) {
              tView.queries.elementStart(tView, tNode);
            }
            return tNode;
          }
          /**
           * Create DOM element. The instruction must later be followed by `elementEnd()` call.
           *
           * @param index Index of the element in the LView array
           * @param name Name of the DOM Node
           * @param attrsIndex Index of the element's attributes in the `consts` array.
           * @param localRefsIndex Index of the element's local references in the `consts` array.
           * @returns This function returns itself so that it may be chained.
           *
           * Attributes and localRefs are passed as an array of strings where elements with an even index
           * hold an attribute name and elements with an odd index hold an attribute value, ex.:
           * ['id', 'warning5', 'class', 'alert']
           *
           * @codeGenApi
           */
          function ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {
            const lView = getLView();
            const tView = getTView();
            const adjustedIndex = HEADER_OFFSET + index;
            ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');
            ngDevMode && assertIndexInRange(lView, adjustedIndex);
            const renderer = lView[RENDERER];
            const tNode = tView.firstCreatePass ? elementStartFirstCreatePass(adjustedIndex, tView, lView, name, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
            const native = _locateOrCreateElementNode(tView, lView, tNode, renderer, name, index);
            lView[adjustedIndex] = native;
            const hasDirectives = isDirectiveHost(tNode);
            if (ngDevMode && tView.firstCreatePass) {
              validateElementIsKnown(native, lView, tNode.value, tView.schemas, hasDirectives);
            }
            setCurrentTNode(tNode, true);
            setupStaticAttributes(renderer, native, tNode);
            if ((tNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */ && wasLastNodeCreated()) {
              // In the i18n case, the translation may have removed this element, so only add it if it is not
              // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
              appendChild(tView, lView, native, tNode);
            }
            // any immediate children of a component or template container must be pre-emptively
            // monkey-patched with the component view data so that the element can be inspected
            // later on using any element discovery utility methods (see `element_discovery.ts`)
            if (getElementDepthCount() === 0) {
              attachPatchData(native, lView);
            }
            increaseElementDepthCount();
            if (hasDirectives) {
              createDirectivesInstances(tView, lView, tNode);
              executeContentQueries(tView, tNode, lView);
            }
            if (localRefsIndex !== null) {
              saveResolvedLocalsInData(lView, tNode);
            }
            return ɵɵelementStart;
          }
          /**
           * Mark the end of the element.
           * @returns This function returns itself so that it may be chained.
           *
           * @codeGenApi
           */
          function ɵɵelementEnd() {
            let currentTNode = getCurrentTNode();
            ngDevMode && assertDefined(currentTNode, 'No parent node to close.');
            if (isCurrentTNodeParent()) {
              setCurrentTNodeAsNotParent();
            } else {
              ngDevMode && assertHasParent(getCurrentTNode());
              currentTNode = currentTNode.parent;
              setCurrentTNode(currentTNode, false);
            }
            const tNode = currentTNode;
            ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);
            if (isSkipHydrationRootTNode(tNode)) {
              leaveSkipHydrationBlock();
            }
            decreaseElementDepthCount();
            const tView = getTView();
            if (tView.firstCreatePass) {
              registerPostOrderHooks(tView, currentTNode);
              if (isContentQueryHost(currentTNode)) {
                tView.queries.elementEnd(currentTNode);
              }
            }
            if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {
              setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);
            }
            if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {
              setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);
            }
            return ɵɵelementEnd;
          }
          /**
           * Creates an empty element using {@link elementStart} and {@link elementEnd}
           *
           * @param index Index of the element in the data array
           * @param name Name of the DOM Node
           * @param attrsIndex Index of the element's attributes in the `consts` array.
           * @param localRefsIndex Index of the element's local references in the `consts` array.
           * @returns This function returns itself so that it may be chained.
           *
           * @codeGenApi
           */
          function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
            ɵɵelementStart(index, name, attrsIndex, localRefsIndex);
            ɵɵelementEnd();
            return ɵɵelement;
          }
          let _locateOrCreateElementNode = (tView, lView, tNode, renderer, name, index) => {
            lastNodeWasCreated(true);
            return createElementNode(renderer, name, getNamespace$1());
          };
          /**
           * Enables hydration code path (to lookup existing elements in DOM)
           * in addition to the regular creation mode of element nodes.
           */
          function locateOrCreateElementNodeImpl(tView, lView, tNode, renderer, name, index) {
            const hydrationInfo = lView[HYDRATION];
            const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDisconnectedNode$1(hydrationInfo, index);
            lastNodeWasCreated(isNodeCreationMode);
            // Regular creation mode.
            if (isNodeCreationMode) {
              return createElementNode(renderer, name, getNamespace$1());
            }
            // Hydration mode, looking up an existing element in DOM.
            const native = locateNextRNode(hydrationInfo, tView, lView, tNode);
            ngDevMode && validateMatchingNode(native, Node.ELEMENT_NODE, name, lView, tNode);
            ngDevMode && markRNodeAsClaimedByHydration(native);
            // This element might also be an anchor of a view container.
            if (getSerializedContainerViews(hydrationInfo, index)) {
              // Important note: this element acts as an anchor, but it's **not** a part
              // of the embedded view, so we start the segment **after** this element, taking
              // a reference to the next sibling. For example, the following template:
              // `<div #vcrTarget>` is represented in the DOM as `<div></div>...<!--container-->`,
              // so while processing a `<div>` instruction, point to the next sibling as a
              // start of a segment.
              ngDevMode && validateNodeExists(native.nextSibling, lView, tNode);
              setSegmentHead(hydrationInfo, index, native.nextSibling);
            }
            // Checks if the skip hydration attribute is present during hydration so we know to
            // skip attempting to hydrate this block. We check both TNode and RElement for an
            // attribute: the RElement case is needed for i18n cases, when we add it to host
            // elements during the annotation phase (after all internal data structures are setup).
            if (hydrationInfo && (hasSkipHydrationAttrOnTNode(tNode) || hasSkipHydrationAttrOnRElement(native))) {
              if (isComponentHost(tNode)) {
                enterSkipHydrationBlock(tNode);
                // Since this isn't hydratable, we need to empty the node
                // so there's no duplicate content after render
                clearElementContents(native);
                ngDevMode && ngDevMode.componentsSkippedHydration++;
              } else if (ngDevMode) {
                // If this is not a component host, throw an error.
                // Hydration can be skipped on per-component basis only.
                throw invalidSkipHydrationHost(native);
              }
            }
            return native;
          }
          function enableLocateOrCreateElementNodeImpl() {
            _locateOrCreateElementNode = locateOrCreateElementNodeImpl;
          }
          function elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {
            ngDevMode && ngDevMode.firstCreatePass++;
            const tViewConsts = tView.consts;
            const attrs = getConstant(tViewConsts, attrsIndex);
            const tNode = getOrCreateTNode(tView, index, 8 /* TNodeType.ElementContainer */, 'ng-container', attrs);
            // While ng-container doesn't necessarily support styling, we use the style context to identify
            // and execute directives on the ng-container.
            if (attrs !== null) {
              computeStaticStyling(tNode, attrs, true);
            }
            const localRefs = getConstant(tViewConsts, localRefsIndex);
            resolveDirectives(tView, lView, tNode, localRefs);
            if (tView.queries !== null) {
              tView.queries.elementStart(tView, tNode);
            }
            return tNode;
          }
          /**
           * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
           * The instruction must later be followed by `elementContainerEnd()` call.
           *
           * @param index Index of the element in the LView array
           * @param attrsIndex Index of the container attributes in the `consts` array.
           * @param localRefsIndex Index of the container's local references in the `consts` array.
           * @returns This function returns itself so that it may be chained.
           *
           * Even if this instruction accepts a set of attributes no actual attribute values are propagated to
           * the DOM (as a comment node can't have attributes). Attributes are here only for directive
           * matching purposes and setting initial inputs of directives.
           *
           * @codeGenApi
           */
          function ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {
            const lView = getLView();
            const tView = getTView();
            const adjustedIndex = index + HEADER_OFFSET;
            ngDevMode && assertIndexInRange(lView, adjustedIndex);
            ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');
            const tNode = tView.firstCreatePass ? elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
            setCurrentTNode(tNode, true);
            const comment = _locateOrCreateElementContainerNode(tView, lView, tNode, index);
            lView[adjustedIndex] = comment;
            if (wasLastNodeCreated()) {
              appendChild(tView, lView, comment, tNode);
            }
            attachPatchData(comment, lView);
            if (isDirectiveHost(tNode)) {
              createDirectivesInstances(tView, lView, tNode);
              executeContentQueries(tView, tNode, lView);
            }
            if (localRefsIndex != null) {
              saveResolvedLocalsInData(lView, tNode);
            }
            return ɵɵelementContainerStart;
          }
          /**
           * Mark the end of the <ng-container>.
           * @returns This function returns itself so that it may be chained.
           *
           * @codeGenApi
           */
          function ɵɵelementContainerEnd() {
            let currentTNode = getCurrentTNode();
            const tView = getTView();
            if (isCurrentTNodeParent()) {
              setCurrentTNodeAsNotParent();
            } else {
              ngDevMode && assertHasParent(currentTNode);
              currentTNode = currentTNode.parent;
              setCurrentTNode(currentTNode, false);
            }
            ngDevMode && assertTNodeType(currentTNode, 8 /* TNodeType.ElementContainer */);
            if (tView.firstCreatePass) {
              registerPostOrderHooks(tView, currentTNode);
              if (isContentQueryHost(currentTNode)) {
                tView.queries.elementEnd(currentTNode);
              }
            }
            return ɵɵelementContainerEnd;
          }
          /**
           * Creates an empty logical container using {@link elementContainerStart}
           * and {@link elementContainerEnd}
           *
           * @param index Index of the element in the LView array
           * @param attrsIndex Index of the container attributes in the `consts` array.
           * @param localRefsIndex Index of the container's local references in the `consts` array.
           * @returns This function returns itself so that it may be chained.
           *
           * @codeGenApi
           */
          function ɵɵelementContainer(index, attrsIndex, localRefsIndex) {
            ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);
            ɵɵelementContainerEnd();
            return ɵɵelementContainer;
          }
          let _locateOrCreateElementContainerNode = (tView, lView, tNode, index) => {
            lastNodeWasCreated(true);
            return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');
          };
          /**
           * Enables hydration code path (to lookup existing elements in DOM)
           * in addition to the regular creation mode of comment nodes that
           * represent <ng-container>'s anchor.
           */
          function locateOrCreateElementContainerNode(tView, lView, tNode, index) {
            let comment;
            const hydrationInfo = lView[HYDRATION];
            const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1();
            lastNodeWasCreated(isNodeCreationMode);
            // Regular creation mode.
            if (isNodeCreationMode) {
              return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');
            }
            // Hydration mode, looking up existing elements in DOM.
            const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);
            ngDevMode && validateNodeExists(currentRNode, lView, tNode);
            const ngContainerSize = getNgContainerSize(hydrationInfo, index);
            ngDevMode && assertNumber(ngContainerSize, 'Unexpected state: hydrating an <ng-container>, ' + 'but no hydration info is available.');
            setSegmentHead(hydrationInfo, index, currentRNode);
            comment = siblingAfter(ngContainerSize, currentRNode);
            if (ngDevMode) {
              validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);
              markRNodeAsClaimedByHydration(comment);
            }
            return comment;
          }
          function enableLocateOrCreateElementContainerNodeImpl() {
            _locateOrCreateElementContainerNode = locateOrCreateElementContainerNode;
          }
          
          /**
           * Returns the current OpaqueViewState instance.
           *
           * Used in conjunction with the restoreView() instruction to save a snapshot
           * of the current view and restore it when listeners are invoked. This allows
           * walking the declaration view tree in listeners to get vars from parent views.
           *
           * @codeGenApi
           */
          function ɵɵgetCurrentView() {
            return getLView();
          }
          
          /**
           * Determine if the argument is shaped like a Promise
           */
          function isPromise(obj) {
            // allow any Promise/A+ compliant thenable.
            // It's up to the caller to ensure that obj.then conforms to the spec
            return !!obj && typeof obj.then === 'function';
          }
          /**
           * Determine if the argument is a Subscribable
           */
          function isSubscribable(obj) {
            return !!obj && typeof obj.subscribe === 'function';
          }
          
          /**
           * Adds an event listener to the current node.
           *
           * If an output exists on one of the node's directives, it also subscribes to the output
           * and saves the subscription for later cleanup.
           *
           * @param eventName Name of the event
           * @param listenerFn The function to be called when event emits
           * @param useCapture Whether or not to use capture in event listener - this argument is a reminder
           *     from the Renderer3 infrastructure and should be removed from the instruction arguments
           * @param eventTargetResolver Function that returns global target information in case this listener
           * should be attached to a global object like window, document or body
           *
           * @codeGenApi
           */
          function ɵɵlistener(eventName, listenerFn, useCapture, eventTargetResolver) {
            const lView = getLView();
            const tView = getTView();
            const tNode = getCurrentTNode();
            listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, eventTargetResolver);
            return ɵɵlistener;
          }
          /**
           * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
           *
           * This instruction is for compatibility purposes and is designed to ensure that a
           * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
           * in the component's renderer. Normally all host listeners are evaluated with the
           * parent component's renderer, but, in the case of animation @triggers, they need
           * to be evaluated with the sub component's renderer (because that's where the
           * animation triggers are defined).
           *
           * Do not use this instruction as a replacement for `listener`. This instruction
           * only exists to ensure compatibility with the ViewEngine's host binding behavior.
           *
           * @param eventName Name of the event
           * @param listenerFn The function to be called when event emits
           * @param useCapture Whether or not to use capture in event listener
           * @param eventTargetResolver Function that returns global target information in case this listener
           * should be attached to a global object like window, document or body
           *
           * @codeGenApi
           */
          function ɵɵsyntheticHostListener(eventName, listenerFn) {
            const tNode = getCurrentTNode();
            const lView = getLView();
            const tView = getTView();
            const currentDef = getCurrentDirectiveDef(tView.data);
            const renderer = loadComponentRenderer(currentDef, tNode, lView);
            listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn);
            return ɵɵsyntheticHostListener;
          }
          /**
           * A utility function that checks if a given element has already an event handler registered for an
           * event with a specified name. The TView.cleanup data structure is used to find out which events
           * are registered for a given element.
           */
          function findExistingListener(tView, lView, eventName, tNodeIdx) {
            const tCleanup = tView.cleanup;
            if (tCleanup != null) {
              for (let i = 0; i < tCleanup.length - 1; i += 2) {
                const cleanupEventName = tCleanup[i];
                if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {
                  // We have found a matching event name on the same node but it might not have been
                  // registered yet, so we must explicitly verify entries in the LView cleanup data
                  // structures.
                  const lCleanup = lView[CLEANUP];
                  const listenerIdxInLCleanup = tCleanup[i + 2];
                  return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;
                }
                // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or
                // 2-element entries (for directive and queries destroy hooks). As such we can encounter
                // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements
                // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check
                // documentation of TView.cleanup for more details of this data structure layout.
                if (typeof cleanupEventName === 'string') {
                  i += 2;
                }
              }
            }
            return null;
          }
          function listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, eventTargetResolver) {
            const isTNodeDirectiveHost = isDirectiveHost(tNode);
            const firstCreatePass = tView.firstCreatePass;
            const tCleanup = firstCreatePass && getOrCreateTViewCleanup(tView);
            const context = lView[CONTEXT];
            // When the ɵɵlistener instruction was generated and is executed we know that there is either a
            // native listener or a directive output on this element. As such we we know that we will have to
            // register a listener and store its cleanup function on LView.
            const lCleanup = getOrCreateLViewCleanup(lView);
            ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);
            let processOutputs = true;
            // Adding a native event listener is applicable when:
            // - The corresponding TNode represents a DOM element.
            // - The event target has a resolver (usually resulting in a global object,
            //   such as `window` or `document`).
            if (tNode.type & 3 /* TNodeType.AnyRNode */ || eventTargetResolver) {
              const native = getNativeByTNode(tNode, lView);
              const target = eventTargetResolver ? eventTargetResolver(native) : native;
              const lCleanupIndex = lCleanup.length;
              const idxOrTargetGetter = eventTargetResolver ? _lView => eventTargetResolver(unwrapRNode(_lView[tNode.index])) : tNode.index;
              // In order to match current behavior, native DOM event listeners must be added for all
              // events (including outputs).
              // There might be cases where multiple directives on the same element try to register an event
              // handler function for the same event. In this situation we want to avoid registration of
              // several native listeners as each registration would be intercepted by NgZone and
              // trigger change detection. This would mean that a single user action would result in several
              // change detections being invoked. To avoid this situation we want to have only one call to
              // native handler registration (for the same element and same type of event).
              //
              // In order to have just one native event handler in presence of multiple handler functions,
              // we just register a first handler function as a native event listener and then chain
              // (coalesce) other handler functions on top of the first native handler function.
              let existingListener = null;
              // Please note that the coalescing described here doesn't happen for events specifying an
              // alternative target (ex. (document:click)) - this is to keep backward compatibility with the
              // view engine.
              // Also, we don't have to search for existing listeners is there are no directives
              // matching on a given node as we can't register multiple event handlers for the same event in
              // a template (this would mean having duplicate attributes).
              if (!eventTargetResolver && isTNodeDirectiveHost) {
                existingListener = findExistingListener(tView, lView, eventName, tNode.index);
              }
              if (existingListener !== null) {
                // Attach a new listener to coalesced listeners list, maintaining the order in which
                // listeners are registered. For performance reasons, we keep a reference to the last
                // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through
                // the entire set each time we need to add a new listener.
                const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;
                lastListenerFn.__ngNextListenerFn__ = listenerFn;
                existingListener.__ngLastListenerFn__ = listenerFn;
                processOutputs = false;
              } else {
                listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);
                const cleanupFn = renderer.listen(target, eventName, listenerFn);
                ngDevMode && ngDevMode.rendererAddEventListener++;
                lCleanup.push(listenerFn, cleanupFn);
                tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);
              }
            } else {
              // Even if there is no native listener to add, we still need to wrap the listener so that OnPush
              // ancestors are marked dirty when an event occurs.
              listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);
            }
            // subscribe to directive outputs
            const outputs = tNode.outputs;
            let props;
            if (processOutputs && outputs !== null && (props = outputs[eventName])) {
              const propsLength = props.length;
              if (propsLength) {
                for (let i = 0; i < propsLength; i += 2) {
                  const index = props[i];
                  ngDevMode && assertIndexInRange(lView, index);
                  const minifiedName = props[i + 1];
                  const directiveInstance = lView[index];
                  const output = directiveInstance[minifiedName];
                  if (ngDevMode && !isSubscribable(output)) {
                    throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);
                  }
                  const subscription = output.subscribe(listenerFn);
                  const idx = lCleanup.length;
                  lCleanup.push(listenerFn, subscription);
                  tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));
                }
              }
            }
          }
          function executeListenerWithErrorHandling(lView, context, listenerFn, e) {
            try {
              profiler(6 /* ProfilerEvent.OutputStart */, context, listenerFn);
              // Only explicitly returning false from a listener should preventDefault
              return listenerFn(e) !== false;
            } catch (error) {
              handleError(lView, error);
              return false;
            } finally {
              profiler(7 /* ProfilerEvent.OutputEnd */, context, listenerFn);
            }
          }
          /**
           * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,
           * if applicable.
           *
           * @param tNode The TNode associated with this listener
           * @param lView The LView that contains this listener
           * @param listenerFn The listener function to call
           * @param wrapWithPreventDefault Whether or not to prevent default behavior
           * (the procedural renderer does this already, so in those cases, we should skip)
           */
          function wrapListener(tNode, lView, context, listenerFn, wrapWithPreventDefault) {
            // Note: we are performing most of the work in the listener function itself
            // to optimize listener registration.
            return function wrapListenerIn_markDirtyAndPreventDefault(e) {
              // Ivy uses `Function` as a special token that allows us to unwrap the function
              // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.
              if (e === Function) {
                return listenerFn;
              }
              // In order to be backwards compatible with View Engine, events on component host nodes
              // must also mark the component view itself dirty (i.e. the view that it owns).
              const startView = tNode.componentOffset > -1 ? getComponentLViewByIndex(tNode.index, lView) : lView;
              markViewDirty(startView);
              let result = executeListenerWithErrorHandling(lView, context, listenerFn, e);
              // A just-invoked listener function might have coalesced listeners so we need to check for
              // their presence and invoke as needed.
              let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;
              while (nextListenerFn) {
                // We should prevent default if any of the listeners explicitly return false
                result = executeListenerWithErrorHandling(lView, context, nextListenerFn, e) && result;
                nextListenerFn = nextListenerFn.__ngNextListenerFn__;
              }
              if (wrapWithPreventDefault && result === false) {
                e.preventDefault();
              }
              return result;
            };
          }
          
          /**
           * Retrieves a context at the level specified and saves it as the global, contextViewData.
           * Will get the next level up if level is not specified.
           *
           * This is used to save contexts of parent views so they can be bound in embedded views, or
           * in conjunction with reference() to bind a ref from a parent view.
           *
           * @param level The relative level of the view from which to grab context compared to contextVewData
           * @returns context
           *
           * @codeGenApi
           */
          function ɵɵnextContext(level = 1) {
            return nextContextImpl(level);
          }
          
          /**
           * Checks a given node against matching projection slots and returns the
           * determined slot index. Returns "null" if no slot matched the given node.
           *
           * This function takes into account the parsed ngProjectAs selector from the
           * node's attributes. If present, it will check whether the ngProjectAs selector
           * matches any of the projection slot selectors.
           */
          function matchingProjectionSlotIndex(tNode, projectionSlots) {
            let wildcardNgContentIndex = null;
            const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);
            for (let i = 0; i < projectionSlots.length; i++) {
              const slotValue = projectionSlots[i];
              // The last wildcard projection slot should match all nodes which aren't matching
              // any selector. This is necessary to be backwards compatible with view engine.
              if (slotValue === '*') {
                wildcardNgContentIndex = i;
                continue;
              }
              // If we ran into an `ngProjectAs` attribute, we should match its parsed selector
              // to the list of selectors, otherwise we fall back to matching against the node.
              if (ngProjectAsAttrVal === null ? isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */true) : isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {
                return i; // first matching selector "captures" a given node
              }
            }
          
            return wildcardNgContentIndex;
          }
          /**
           * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.
           * It takes all the selectors from the entire component's template and decides where
           * each projected node belongs (it re-distributes nodes among "buckets" where each "bucket" is
           * backed by a selector).
           *
           * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,
           * un-parsed form.
           *
           * The parsed form is needed for efficient matching of a node against a given CSS selector.
           * The un-parsed, textual form is needed for support of the ngProjectAs attribute.
           *
           * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more
           * drawbacks:
           * - having only a textual form would require runtime parsing of CSS selectors;
           * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a
           * template author).
           *
           * @param projectionSlots? A collection of projection slots. A projection slot can be based
           *        on a parsed CSS selectors or set to the wildcard selector ("*") in order to match
           *        all nodes which do not match any selector. If not specified, a single wildcard
           *        selector projection slot will be defined.
           *
           * @codeGenApi
           */
          function ɵɵprojectionDef(projectionSlots) {
            const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];
            if (!componentNode.projection) {
              // If no explicit projection slots are defined, fall back to a single
              // projection slot with the wildcard selector.
              const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;
              const projectionHeads = componentNode.projection = newArray(numProjectionSlots, null);
              const tails = projectionHeads.slice();
              let componentChild = componentNode.child;
              while (componentChild !== null) {
                const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;
                if (slotIndex !== null) {
                  if (tails[slotIndex]) {
                    tails[slotIndex].projectionNext = componentChild;
                  } else {
                    projectionHeads[slotIndex] = componentChild;
                  }
                  tails[slotIndex] = componentChild;
                }
                componentChild = componentChild.next;
              }
            }
          }
          /**
           * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call
           * to the projectionDef instruction.
           *
           * @param nodeIndex
           * @param selectorIndex:
           *        - 0 when the selector is `*` (or unspecified as this is the default value),
           *        - 1 based index of the selector from the {@link projectionDef}
           *
           * @codeGenApi
           */
          function ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {
            const lView = getLView();
            const tView = getTView();
            const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* TNodeType.Projection */, null, attrs || null);
            // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.
            if (tProjectionNode.projection === null) tProjectionNode.projection = selectorIndex;
            // `<ng-content>` has no content
            setCurrentTNodeAsNotParent();
            const hydrationInfo = lView[HYDRATION];
            const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1();
            if (isNodeCreationMode && (tProjectionNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {
              // re-distribution of projectable nodes is stored on a component's view level
              applyProjection(tView, lView, tProjectionNode);
            }
          }
          
          /**
           *
           * Update an interpolated property on an element with a lone bound value
           *
           * Used when the value passed to a property has 1 interpolated value in it, an no additional text
           * surrounds that interpolated value:
           *
           * ```html
           * <div title="{{v0}}"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate('title', v0);
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate(propName, v0, sanitizer) {
            ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);
            return ɵɵpropertyInterpolate;
          }
          /**
           *
           * Update an interpolated property on an element with single bound value surrounded by text.
           *
           * Used when the value passed to a property has 1 interpolated value in it:
           *
           * ```html
           * <div title="prefix{{v0}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);
            }
            return ɵɵpropertyInterpolate1;
          }
          /**
           *
           * Update an interpolated property on an element with 2 bound values surrounded by text.
           *
           * Used when the value passed to a property has 2 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);
            }
            return ɵɵpropertyInterpolate2;
          }
          /**
           *
           * Update an interpolated property on an element with 3 bound values surrounded by text.
           *
           * Used when the value passed to a property has 3 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate3(
           * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);
            }
            return ɵɵpropertyInterpolate3;
          }
          /**
           *
           * Update an interpolated property on an element with 4 bound values surrounded by text.
           *
           * Used when the value passed to a property has 4 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate4(
           * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
            }
            return ɵɵpropertyInterpolate4;
          }
          /**
           *
           * Update an interpolated property on an element with 5 bound values surrounded by text.
           *
           * Used when the value passed to a property has 5 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate5(
           * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
            }
            return ɵɵpropertyInterpolate5;
          }
          /**
           *
           * Update an interpolated property on an element with 6 bound values surrounded by text.
           *
           * Used when the value passed to a property has 6 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate6(
           *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
            }
            return ɵɵpropertyInterpolate6;
          }
          /**
           *
           * Update an interpolated property on an element with 7 bound values surrounded by text.
           *
           * Used when the value passed to a property has 7 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate7(
           *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
            }
            return ɵɵpropertyInterpolate7;
          }
          /**
           *
           * Update an interpolated property on an element with 8 bound values surrounded by text.
           *
           * Used when the value passed to a property has 8 interpolated values in it:
           *
           * ```html
           * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolate8(
           *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param i6 Static value used for concatenation only.
           * @param v7 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
            }
            return ɵɵpropertyInterpolate8;
          }
          /**
           * Update an interpolated property on an element with 9 or more bound values surrounded by text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div
           *  title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
           * ```
           *
           * Its compiled representation is::
           *
           * ```ts
           * ɵɵpropertyInterpolateV(
           *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
           *  'suffix']);
           * ```
           *
           * If the property name also exists as an input property on one of the element's directives,
           * the component property will be set instead of the element property. This check must
           * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
           *
           * @param propName The name of the property to update.
           * @param values The collection of values and the strings in between those values, beginning with a
           * string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
           * @param sanitizer An optional sanitizer function
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵpropertyInterpolateV(propName, values, sanitizer) {
            const lView = getLView();
            const interpolatedValue = interpolationV(lView, values);
            if (interpolatedValue !== NO_CHANGE) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
              if (ngDevMode) {
                const interpolationInBetween = [values[0]]; // prefix
                for (let i = 2; i < values.length; i += 2) {
                  interpolationInBetween.push(values[i]);
                }
                storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);
              }
            }
            return ɵɵpropertyInterpolateV;
          }
          function toTStylingRange(prev, next) {
            ngDevMode && assertNumberInRange(prev, 0, 32767 /* StylingRange.UNSIGNED_MASK */);
            ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);
            return prev << 17 /* StylingRange.PREV_SHIFT */ | next << 2 /* StylingRange.NEXT_SHIFT */;
          }
          
          function getTStylingRangePrev(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return tStylingRange >> 17 /* StylingRange.PREV_SHIFT */ & 32767 /* StylingRange.UNSIGNED_MASK */;
          }
          
          function getTStylingRangePrevDuplicate(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return (tStylingRange & 2 /* StylingRange.PREV_DUPLICATE */) == 2 /* StylingRange.PREV_DUPLICATE */;
          }
          
          function setTStylingRangePrev(tStylingRange, previous) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            ngDevMode && assertNumberInRange(previous, 0, 32767 /* StylingRange.UNSIGNED_MASK */);
            return tStylingRange & ~4294836224 /* StylingRange.PREV_MASK */ | previous << 17 /* StylingRange.PREV_SHIFT */;
          }
          
          function setTStylingRangePrevDuplicate(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return tStylingRange | 2 /* StylingRange.PREV_DUPLICATE */;
          }
          
          function getTStylingRangeNext(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return (tStylingRange & 131068 /* StylingRange.NEXT_MASK */) >> 2 /* StylingRange.NEXT_SHIFT */;
          }
          
          function setTStylingRangeNext(tStylingRange, next) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);
            return tStylingRange & ~131068 /* StylingRange.NEXT_MASK */ |
            //
            next << 2 /* StylingRange.NEXT_SHIFT */;
          }
          
          function getTStylingRangeNextDuplicate(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return (tStylingRange & 1 /* StylingRange.NEXT_DUPLICATE */) === 1 /* StylingRange.NEXT_DUPLICATE */;
          }
          
          function setTStylingRangeNextDuplicate(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            return tStylingRange | 1 /* StylingRange.NEXT_DUPLICATE */;
          }
          
          function getTStylingRangeTail(tStylingRange) {
            ngDevMode && assertNumber(tStylingRange, 'expected number');
            const next = getTStylingRangeNext(tStylingRange);
            return next === 0 ? getTStylingRangePrev(tStylingRange) : next;
          }
          
          /**
           * NOTE: The word `styling` is used interchangeably as style or class styling.
           *
           * This file contains code to link styling instructions together so that they can be replayed in
           * priority order. The file exists because Ivy styling instruction execution order does not match
           * that of the priority order. The purpose of this code is to create a linked list so that the
           * instructions can be traversed in priority order when computing the styles.
           *
           * Assume we are dealing with the following code:
           * ```
           * @Component({
           *   template: `
           *     <my-cmp [style]=" {color: '#001'} "
           *             [style.color]=" #002 "
           *             dir-style-color-1
           *             dir-style-color-2> `
           * })
           * class ExampleComponent {
           *   static ngComp = ... {
           *     ...
           *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
           *     ɵɵstyleMap({color: '#001'});
           *     ɵɵstyleProp('color', '#002');
           *     ...
           *   }
           * }
           *
           * @Directive({
           *   selector: `[dir-style-color-1]',
           * })
           * class Style1Directive {
           *   @HostBinding('style') style = {color: '#005'};
           *   @HostBinding('style.color') color = '#006';
           *
           *   static ngDir = ... {
           *     ...
           *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
           *     ɵɵstyleMap({color: '#005'});
           *     ɵɵstyleProp('color', '#006');
           *     ...
           *   }
           * }
           *
           * @Directive({
           *   selector: `[dir-style-color-2]',
           * })
           * class Style2Directive {
           *   @HostBinding('style') style = {color: '#007'};
           *   @HostBinding('style.color') color = '#008';
           *
           *   static ngDir = ... {
           *     ...
           *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
           *     ɵɵstyleMap({color: '#007'});
           *     ɵɵstyleProp('color', '#008');
           *     ...
           *   }
           * }
           *
           * @Directive({
           *   selector: `my-cmp',
           * })
           * class MyComponent {
           *   @HostBinding('style') style = {color: '#003'};
           *   @HostBinding('style.color') color = '#004';
           *
           *   static ngComp = ... {
           *     ...
           *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
           *     ɵɵstyleMap({color: '#003'});
           *     ɵɵstyleProp('color', '#004');
           *     ...
           *   }
           * }
           * ```
           *
           * The Order of instruction execution is:
           *
           * NOTE: the comment binding location is for illustrative purposes only.
           *
           * ```
           * // Template: (ExampleComponent)
           *     ɵɵstyleMap({color: '#001'});   // Binding index: 10
           *     ɵɵstyleProp('color', '#002');  // Binding index: 12
           * // MyComponent
           *     ɵɵstyleMap({color: '#003'});   // Binding index: 20
           *     ɵɵstyleProp('color', '#004');  // Binding index: 22
           * // Style1Directive
           *     ɵɵstyleMap({color: '#005'});   // Binding index: 24
           *     ɵɵstyleProp('color', '#006');  // Binding index: 26
           * // Style2Directive
           *     ɵɵstyleMap({color: '#007'});   // Binding index: 28
           *     ɵɵstyleProp('color', '#008');  // Binding index: 30
           * ```
           *
           * The correct priority order of concatenation is:
           *
           * ```
           * // MyComponent
           *     ɵɵstyleMap({color: '#003'});   // Binding index: 20
           *     ɵɵstyleProp('color', '#004');  // Binding index: 22
           * // Style1Directive
           *     ɵɵstyleMap({color: '#005'});   // Binding index: 24
           *     ɵɵstyleProp('color', '#006');  // Binding index: 26
           * // Style2Directive
           *     ɵɵstyleMap({color: '#007'});   // Binding index: 28
           *     ɵɵstyleProp('color', '#008');  // Binding index: 30
           * // Template: (ExampleComponent)
           *     ɵɵstyleMap({color: '#001'});   // Binding index: 10
           *     ɵɵstyleProp('color', '#002');  // Binding index: 12
           * ```
           *
           * What color should be rendered?
           *
           * Once the items are correctly sorted in the list, the answer is simply the last item in the
           * concatenation list which is `#002`.
           *
           * To do so we keep a linked list of all of the bindings which pertain to this element.
           * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows
           * us to traverse them in the order of priority.
           *
           * |Idx|`TView.data`|`LView`          | Notes
           * |---|------------|-----------------|--------------
           * |...|            |                 |
           * |10 |`null`      |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`
           * |11 |`30 | 12`   | ...             |
           * |12 |`color`     |`'#002'`         | `ɵɵstyleProp('color', '#002')`
           * |13 |`10 | 0`    | ...             |
           * |...|            |                 |
           * |20 |`null`      |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`
           * |21 |`0 | 22`    | ...             |
           * |22 |`color`     |`'#004'`         | `ɵɵstyleProp('color', '#004')`
           * |23 |`20 | 24`   | ...             |
           * |24 |`null`      |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`
           * |25 |`22 | 26`   | ...             |
           * |26 |`color`     |`'#006'`         | `ɵɵstyleProp('color', '#006')`
           * |27 |`24 | 28`   | ...             |
           * |28 |`null`      |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`
           * |29 |`26 | 30`   | ...             |
           * |30 |`color`     |`'#008'`         | `ɵɵstyleProp('color', '#008')`
           * |31 |`28 | 10`   | ...             |
           *
           * The above data structure allows us to re-concatenate the styling no matter which data binding
           * changes.
           *
           * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next
           * duplicate bit. The duplicate bit if true says there either is a binding with the same name or
           * there is a map (which may contain the name). This information is useful in knowing if other
           * styles with higher priority need to be searched for overwrites.
           *
           * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in
           * `tnode_linked_list_spec.ts` for working example.
           */
          let __unused_const_as_closure_does_not_like_standalone_comment_blocks__;
          /**
           * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked
           * list of styles and compute the duplicate flag.
           *
           * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.
           *
           * The function works by keeping track of `tStylingRange` which contains two pointers pointing to
           * the head/tail of the template portion of the styles.
           *  - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`
           *  - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`
           *
           * @param tData The `TData` to insert into.
           * @param tNode `TNode` associated with the styling element.
           * @param tStylingKey See `TStylingKey`.
           * @param index location of where `tStyleValue` should be stored (and linked into list.)
           * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of
           *               template.)
           * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
           *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
           */
          function insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {
            ngDevMode && assertFirstUpdatePass(getTView());
            let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;
            let tmplHead = getTStylingRangePrev(tBindings);
            let tmplTail = getTStylingRangeNext(tBindings);
            tData[index] = tStylingKeyWithStatic;
            let isKeyDuplicateOfStatic = false;
            let tStylingKey;
            if (Array.isArray(tStylingKeyWithStatic)) {
              // We are case when the `TStylingKey` contains static fields as well.
              const staticKeyValueArray = tStylingKeyWithStatic;
              tStylingKey = staticKeyValueArray[1]; // unwrap.
              // We need to check if our key is present in the static so that we can mark it as duplicate.
              if (tStylingKey === null || keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {
                // tStylingKey is present in the statics, need to mark it as duplicate.
                isKeyDuplicateOfStatic = true;
              }
            } else {
              tStylingKey = tStylingKeyWithStatic;
            }
            if (isHostBinding) {
              // We are inserting host bindings
              // If we don't have template bindings then `tail` is 0.
              const hasTemplateBindings = tmplTail !== 0;
              // This is important to know because that means that the `head` can't point to the first
              // template bindings (there are none.) Instead the head points to the tail of the template.
              if (hasTemplateBindings) {
                // template head's "prev" will point to last host binding or to 0 if no host bindings yet
                const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);
                tData[index + 1] = toTStylingRange(previousNode, tmplHead);
                // if a host binding has already been registered, we need to update the next of that host
                // binding to point to this one
                if (previousNode !== 0) {
                  // We need to update the template-tail value to point to us.
                  tData[previousNode + 1] = setTStylingRangeNext(tData[previousNode + 1], index);
                }
                // The "previous" of the template binding head should point to this host binding
                tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);
              } else {
                tData[index + 1] = toTStylingRange(tmplHead, 0);
                // if a host binding has already been registered, we need to update the next of that host
                // binding to point to this one
                if (tmplHead !== 0) {
                  // We need to update the template-tail value to point to us.
                  tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);
                }
                // if we don't have template, the head points to template-tail, and needs to be advanced.
                tmplHead = index;
              }
            } else {
              // We are inserting in template section.
              // We need to set this binding's "previous" to the current template tail
              tData[index + 1] = toTStylingRange(tmplTail, 0);
              ngDevMode && assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');
              if (tmplHead === 0) {
                tmplHead = index;
              } else {
                // We need to update the previous value "next" to point to this binding
                tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);
              }
              tmplTail = index;
            }
            // Now we need to update / compute the duplicates.
            // Starting with our location search towards head (least priority)
            if (isKeyDuplicateOfStatic) {
              tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);
            }
            markDuplicates(tData, tStylingKey, index, true, isClassBinding);
            markDuplicates(tData, tStylingKey, index, false, isClassBinding);
            markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);
            tBindings = toTStylingRange(tmplHead, tmplTail);
            if (isClassBinding) {
              tNode.classBindings = tBindings;
            } else {
              tNode.styleBindings = tBindings;
            }
          }
          /**
           * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.
           *
           * @param tNode `TNode` where the residual is stored.
           * @param tStylingKey `TStylingKey` to store.
           * @param tData `TData` associated with the current `LView`.
           * @param index location of where `tStyleValue` should be stored (and linked into list.)
           * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
           *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
           */
          function markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {
            const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;
            if (residual != null /* or undefined */ && typeof tStylingKey == 'string' && keyValueArrayIndexOf(residual, tStylingKey) >= 0) {
              // We have duplicate in the residual so mark ourselves as duplicate.
              tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);
            }
          }
          /**
           * Marks `TStyleValue`s as duplicates if another style binding in the list has the same
           * `TStyleValue`.
           *
           * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once
           * with it set to `false` to search both the previous as well as next items in the list.
           *
           * No duplicate case
           * ```
           *   [style.color]
           *   [style.width.px] <<- index
           *   [style.height.px]
           * ```
           *
           * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no
           * duplicates because `width` is not found in any other part of the linked list.
           *
           * Duplicate case
           * ```
           *   [style.color]
           *   [style.width.em]
           *   [style.width.px] <<- index
           * ```
           * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`
           * because `width` is found in the chain.
           *
           * Map case 1
           * ```
           *   [style.width.px]
           *   [style.color]
           *   [style]  <<- index
           * ```
           * In the above case adding `[style]` will produce a duplicate with any other bindings because
           * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.
           *
           * Map case 2
           * ```
           *   [style]
           *   [style.width.px]
           *   [style.color]  <<- index
           * ```
           * In the above case adding `[style.color]` will produce a duplicate because there is already a
           * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or
           * `width`.
           *
           * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.
           * NOTE: We use `style` as example, but same logic is applied to `class`es as well.
           *
           * @param tData `TData` where the linked list is stored.
           * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in
           *        the linked list.
           * @param index Starting location in the linked list to search from
           * @param isPrevDir Direction.
           *        - `true` for previous (lower priority);
           *        - `false` for next (higher priority).
           */
          function markDuplicates(tData, tStylingKey, index, isPrevDir, isClassBinding) {
            const tStylingAtIndex = tData[index + 1];
            const isMap = tStylingKey === null;
            let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);
            let foundDuplicate = false;
            // We keep iterating as long as we have a cursor
            // AND either:
            // - we found what we are looking for, OR
            // - we are a map in which case we have to continue searching even after we find what we were
            //   looking for since we are a wild card and everything needs to be flipped to duplicate.
            while (cursor !== 0 && (foundDuplicate === false || isMap)) {
              ngDevMode && assertIndexInRange(tData, cursor);
              const tStylingValueAtCursor = tData[cursor];
              const tStyleRangeAtCursor = tData[cursor + 1];
              if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {
                foundDuplicate = true;
                tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) : setTStylingRangePrevDuplicate(tStyleRangeAtCursor);
              }
              cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) : getTStylingRangeNext(tStyleRangeAtCursor);
            }
            if (foundDuplicate) {
              // if we found a duplicate, than mark ourselves.
              tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) : setTStylingRangeNextDuplicate(tStylingAtIndex);
            }
          }
          /**
           * Determines if two `TStylingKey`s are a match.
           *
           * When computing whether a binding contains a duplicate, we need to compare if the instruction
           * `TStylingKey` has a match.
           *
           * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:
           * - `color`
           *    - `color`    // Match another color
           *    - `null`     // That means that `tStylingKey` is a `classMap`/`styleMap` instruction
           *    - `['', 'color', 'other', true]` // wrapped `color` so match
           *    - `['', null, 'other', true]`       // wrapped `null` so match
           *    - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`
           * - `null`       // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction
           *
           * @param tStylingKeyCursor
           * @param tStylingKey
           */
          function isStylingMatch(tStylingKeyCursor, tStylingKey) {
            ngDevMode && assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \'tStylingKey\' has been unwrapped');
            if (tStylingKeyCursor === null ||
            // If the cursor is `null` it means that we have map at that
            // location so we must assume that we have a match.
            tStylingKey == null ||
            // If `tStylingKey` is `null` then it is a map therefor assume that it
            // contains a match.
            (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) === tStylingKey // If the keys match explicitly than we are a match.
            ) {
              return true;
            } else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {
              // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has
              // statics and we need to check those as well.
              return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >= 0; // see if we are matching the key
            }
          
            return false;
          }
          
          // Global state of the parser. (This makes parser non-reentrant, but that is not an issue)
          const parserState = {
            textEnd: 0,
            key: 0,
            keyEnd: 0,
            value: 0,
            valueEnd: 0
          };
          /**
           * Retrieves the last parsed `key` of style.
           * @param text the text to substring the key from.
           */
          function getLastParsedKey(text) {
            return text.substring(parserState.key, parserState.keyEnd);
          }
          /**
           * Retrieves the last parsed `value` of style.
           * @param text the text to substring the key from.
           */
          function getLastParsedValue(text) {
            return text.substring(parserState.value, parserState.valueEnd);
          }
          /**
           * Initializes `className` string for parsing and parses the first token.
           *
           * This function is intended to be used in this format:
           * ```
           * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
           *   const key = getLastParsedKey();
           *   ...
           * }
           * ```
           * @param text `className` to parse
           * @returns index where the next invocation of `parseClassNameNext` should resume.
           */
          function parseClassName(text) {
            resetParserState(text);
            return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));
          }
          /**
           * Parses next `className` token.
           *
           * This function is intended to be used in this format:
           * ```
           * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
           *   const key = getLastParsedKey();
           *   ...
           * }
           * ```
           *
           * @param text `className` to parse
           * @param index where the parsing should resume.
           * @returns index where the next invocation of `parseClassNameNext` should resume.
           */
          function parseClassNameNext(text, index) {
            const end = parserState.textEnd;
            if (end === index) {
              return -1;
            }
            index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);
            return consumeWhitespace(text, index, end);
          }
          /**
           * Initializes `cssText` string for parsing and parses the first key/values.
           *
           * This function is intended to be used in this format:
           * ```
           * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
           *   const key = getLastParsedKey();
           *   const value = getLastParsedValue();
           *   ...
           * }
           * ```
           * @param text `cssText` to parse
           * @returns index where the next invocation of `parseStyleNext` should resume.
           */
          function parseStyle(text) {
            resetParserState(text);
            return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));
          }
          /**
           * Parses the next `cssText` key/values.
           *
           * This function is intended to be used in this format:
           * ```
           * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
           *   const key = getLastParsedKey();
           *   const value = getLastParsedValue();
           *   ...
           * }
           *
           * @param text `cssText` to parse
           * @param index where the parsing should resume.
           * @returns index where the next invocation of `parseStyleNext` should resume.
           */
          function parseStyleNext(text, startIndex) {
            const end = parserState.textEnd;
            let index = parserState.key = consumeWhitespace(text, startIndex, end);
            if (end === index) {
              // we reached an end so just quit
              return -1;
            }
            index = parserState.keyEnd = consumeStyleKey(text, index, end);
            index = consumeSeparator(text, index, end, 58 /* CharCode.COLON */);
            index = parserState.value = consumeWhitespace(text, index, end);
            index = parserState.valueEnd = consumeStyleValue(text, index, end);
            return consumeSeparator(text, index, end, 59 /* CharCode.SEMI_COLON */);
          }
          /**
           * Reset the global state of the styling parser.
           * @param text The styling text to parse.
           */
          function resetParserState(text) {
            parserState.key = 0;
            parserState.keyEnd = 0;
            parserState.value = 0;
            parserState.valueEnd = 0;
            parserState.textEnd = text.length;
          }
          /**
           * Returns index of next non-whitespace character.
           *
           * @param text Text to scan
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at
           *          that location.)
           */
          function consumeWhitespace(text, startIndex, endIndex) {
            while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* CharCode.SPACE */) {
              startIndex++;
            }
            return startIndex;
          }
          /**
           * Returns index of last char in class token.
           *
           * @param text Text to scan
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index after last char in class token.
           */
          function consumeClassToken(text, startIndex, endIndex) {
            while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* CharCode.SPACE */) {
              startIndex++;
            }
            return startIndex;
          }
          /**
           * Consumes all of the characters belonging to style key and token.
           *
           * @param text Text to scan
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index after last style key character.
           */
          function consumeStyleKey(text, startIndex, endIndex) {
            let ch;
            while (startIndex < endIndex && ((ch = text.charCodeAt(startIndex)) === 45 /* CharCode.DASH */ || ch === 95 /* CharCode.UNDERSCORE */ || (ch & -33 /* CharCode.UPPER_CASE */) >= 65 /* CharCode.A */ && (ch & -33 /* CharCode.UPPER_CASE */) <= 90 /* CharCode.Z */ || ch >= 48 /* CharCode.ZERO */ && ch <= 57 /* CharCode.NINE */)) {
              startIndex++;
            }
            return startIndex;
          }
          /**
           * Consumes all whitespace and the separator `:` after the style key.
           *
           * @param text Text to scan
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index after separator and surrounding whitespace.
           */
          function consumeSeparator(text, startIndex, endIndex, separator) {
            startIndex = consumeWhitespace(text, startIndex, endIndex);
            if (startIndex < endIndex) {
              if (ngDevMode && text.charCodeAt(startIndex) !== separator) {
                malformedStyleError(text, String.fromCharCode(separator), startIndex);
              }
              startIndex++;
            }
            return startIndex;
          }
          /**
           * Consumes style value honoring `url()` and `""` text.
           *
           * @param text Text to scan
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index after last style value character.
           */
          function consumeStyleValue(text, startIndex, endIndex) {
            let ch1 = -1; // 1st previous character
            let ch2 = -1; // 2nd previous character
            let ch3 = -1; // 3rd previous character
            let i = startIndex;
            let lastChIndex = i;
            while (i < endIndex) {
              const ch = text.charCodeAt(i++);
              if (ch === 59 /* CharCode.SEMI_COLON */) {
                return lastChIndex;
              } else if (ch === 34 /* CharCode.DOUBLE_QUOTE */ || ch === 39 /* CharCode.SINGLE_QUOTE */) {
                lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);
              } else if (startIndex === i - 4 &&
              // We have seen only 4 characters so far "URL(" (Ignore "foo_URL()")
              ch3 === 85 /* CharCode.U */ && ch2 === 82 /* CharCode.R */ && ch1 === 76 /* CharCode.L */ && ch === 40 /* CharCode.OPEN_PAREN */) {
                lastChIndex = i = consumeQuotedText(text, 41 /* CharCode.CLOSE_PAREN */, i, endIndex);
              } else if (ch > 32 /* CharCode.SPACE */) {
                // if we have a non-whitespace character then capture its location
                lastChIndex = i;
              }
              ch3 = ch2;
              ch2 = ch1;
              ch1 = ch & -33 /* CharCode.UPPER_CASE */;
            }
          
            return lastChIndex;
          }
          /**
           * Consumes all of the quoted characters.
           *
           * @param text Text to scan
           * @param quoteCharCode CharCode of either `"` or `'` quote or `)` for `url(...)`.
           * @param startIndex Starting index of character where the scan should start.
           * @param endIndex Ending index of character where the scan should end.
           * @returns Index after quoted characters.
           */
          function consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {
            let ch1 = -1; // 1st previous character
            let index = startIndex;
            while (index < endIndex) {
              const ch = text.charCodeAt(index++);
              if (ch == quoteCharCode && ch1 !== 92 /* CharCode.BACK_SLASH */) {
                return index;
              }
              if (ch == 92 /* CharCode.BACK_SLASH */ && ch1 === 92 /* CharCode.BACK_SLASH */) {
                // two back slashes cancel each other out. For example `"\\"` should properly end the
                // quotation. (It should not assume that the last `"` is escaped.)
                ch1 = 0;
              } else {
                ch1 = ch;
              }
            }
            throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) : new Error();
          }
          function malformedStyleError(text, expecting, index) {
            ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');
            throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' + text.substring(index, index + 1) + '<<]' + text.slice(index + 1) + `'. Expecting '${expecting}'.`);
          }
          
          /**
           * Update a style binding on an element with the provided value.
           *
           * If the style value is falsy then it will be removed from the element
           * (or assigned a different value depending if there are any styles placed
           * on the element with `styleMap` or any static styles that are
           * present from when the element was created with `styling`).
           *
           * Note that the styling element is updated as part of `stylingApply`.
           *
           * @param prop A valid CSS property.
           * @param value New value to write (`null` or an empty string to remove).
           * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.
           *
           * Note that this will apply the provided style value to the host element if this function is called
           * within a host binding function.
           *
           * @codeGenApi
           */
          function ɵɵstyleProp(prop, value, suffix) {
            checkStylingProperty(prop, value, suffix, false);
            return ɵɵstyleProp;
          }
          /**
           * Update a class binding on an element with the provided value.
           *
           * This instruction is meant to handle the `[class.foo]="exp"` case and,
           * therefore, the class binding itself must already be allocated using
           * `styling` within the creation block.
           *
           * @param prop A valid CSS class (only one).
           * @param value A true/false value which will turn the class on or off.
           *
           * Note that this will apply the provided class value to the host element if this function
           * is called within a host binding function.
           *
           * @codeGenApi
           */
          function ɵɵclassProp(className, value) {
            checkStylingProperty(className, value, null, true);
            return ɵɵclassProp;
          }
          /**
           * Update style bindings using an object literal on an element.
           *
           * This instruction is meant to apply styling via the `[style]="exp"` template bindings.
           * When styles are applied to the element they will then be updated with respect to
           * any styles/classes set via `styleProp`. If any styles are set to falsy
           * then they will be removed from the element.
           *
           * Note that the styling instruction will not be applied until `stylingApply` is called.
           *
           * @param styles A key/value style map of the styles that will be applied to the given element.
           *        Any missing styles (that have already been applied to the element beforehand) will be
           *        removed (unset) from the element's styling.
           *
           * Note that this will apply the provided styleMap value to the host element if this function
           * is called within a host binding.
           *
           * @codeGenApi
           */
          function ɵɵstyleMap(styles) {
            checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);
          }
          /**
           * Parse text as style and add values to KeyValueArray.
           *
           * This code is pulled out to a separate function so that it can be tree shaken away if it is not
           * needed. It is only referenced from `ɵɵstyleMap`.
           *
           * @param keyValueArray KeyValueArray to add parsed values to.
           * @param text text to parse.
           */
          function styleStringParser(keyValueArray, text) {
            for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
              styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
            }
          }
          /**
           * Update class bindings using an object literal or class-string on an element.
           *
           * This instruction is meant to apply styling via the `[class]="exp"` template bindings.
           * When classes are applied to the element they will then be updated with
           * respect to any styles/classes set via `classProp`. If any
           * classes are set to falsy then they will be removed from the element.
           *
           * Note that the styling instruction will not be applied until `stylingApply` is called.
           * Note that this will the provided classMap value to the host element if this function is called
           * within a host binding.
           *
           * @param classes A key/value map or string of CSS classes that will be added to the
           *        given element. Any missing classes (that have already been applied to the element
           *        beforehand) will be removed (unset) from the element's list of CSS classes.
           *
           * @codeGenApi
           */
          function ɵɵclassMap(classes) {
            checkStylingMap(classKeyValueArraySet, classStringParser, classes, true);
          }
          /**
           * Parse text as class and add values to KeyValueArray.
           *
           * This code is pulled out to a separate function so that it can be tree shaken away if it is not
           * needed. It is only referenced from `ɵɵclassMap`.
           *
           * @param keyValueArray KeyValueArray to add parsed values to.
           * @param text text to parse.
           */
          function classStringParser(keyValueArray, text) {
            for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
              keyValueArraySet(keyValueArray, getLastParsedKey(text), true);
            }
          }
          /**
           * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.
           *
           * @param prop property name.
           * @param value binding value.
           * @param suffix suffix for the property (e.g. `em` or `px`)
           * @param isClassBased `true` if `class` change (`false` if `style`)
           */
          function checkStylingProperty(prop, value, suffix, isClassBased) {
            const lView = getLView();
            const tView = getTView();
            // Styling instructions use 2 slots per binding.
            // 1. one for the value / TStylingKey
            // 2. one for the intermittent-value / TStylingRange
            const bindingIndex = incrementBindingIndex(2);
            if (tView.firstUpdatePass) {
              stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);
            }
            if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
              const tNode = tView.data[getSelectedIndex()];
              updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);
            }
          }
          /**
           * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.
           *
           * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
           *        function so that `style` can be processed. This is done for tree shaking purposes.
           * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`
           *        have different parsers.)
           * @param value bound value from application
           * @param isClassBased `true` if `class` change (`false` if `style`)
           */
          function checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {
            const tView = getTView();
            const bindingIndex = incrementBindingIndex(2);
            if (tView.firstUpdatePass) {
              stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);
            }
            const lView = getLView();
            if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
              // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
              // if so as not to read unnecessarily.
              const tNode = tView.data[getSelectedIndex()];
              if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {
                if (ngDevMode) {
                  // verify that if we are shadowing then `TData` is appropriately marked so that we skip
                  // processing this binding in styling resolution.
                  const tStylingKey = tView.data[bindingIndex];
                  assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \'false\'');
                }
                // VE does not concatenate the static portion like we are doing here.
                // Instead VE just ignores the static completely if dynamic binding is present.
                // Because of locality we have already set the static portion because we don't know if there
                // is a dynamic portion until later. If we would ignore the static portion it would look like
                // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong
                // thing as it would think that the static portion was removed. For this reason we
                // concatenate it so that `[ngStyle]`/`[ngClass]`  can continue to work on changed.
                let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;
                ngDevMode && isClassBased === false && staticPrefix !== null && assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \';\'');
                if (staticPrefix !== null) {
                  // We want to make sure that falsy values of `value` become empty strings.
                  value = concatStringsWithSpace(staticPrefix, value ? value : '');
                }
                // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.
                // This takes over the `[style]` binding. (Same for `[class]`)
                setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);
              } else {
                updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);
              }
            }
          }
          /**
           * Determines when the binding is in `hostBindings` section
           *
           * @param tView Current `TView`
           * @param bindingIndex index of binding which we would like if it is in `hostBindings`
           */
          function isInHostBindings(tView, bindingIndex) {
            // All host bindings are placed after the expando section.
            return bindingIndex >= tView.expandoStartIndex;
          }
          /**
           * Collects the necessary information to insert the binding into a linked list of style bindings
           * using `insertTStylingBinding`.
           *
           * @param tView `TView` where the binding linked list will be stored.
           * @param tStylingKey Property/key of the binding.
           * @param bindingIndex Index of binding associated with the `prop`
           * @param isClassBased `true` if `class` change (`false` if `style`)
           */
          function stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {
            ngDevMode && assertFirstUpdatePass(tView);
            const tData = tView.data;
            if (tData[bindingIndex + 1] === null) {
              // The above check is necessary because we don't clear first update pass until first successful
              // (no exception) template execution. This prevents the styling instruction from double adding
              // itself to the list.
              // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
              // if so as not to read unnecessarily.
              const tNode = tData[getSelectedIndex()];
              ngDevMode && assertDefined(tNode, 'TNode expected');
              const isHostBindings = isInHostBindings(tView, bindingIndex);
              if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {
                // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.
                // If there is a directive which uses `@Input('style')` or `@Input('class')` than
                // we need to neutralize this binding since that directive is shadowing it.
                // We turn this into a noop by setting the key to `false`
                tStylingKey = false;
              }
              tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);
              insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);
            }
          }
          /**
           * Adds static styling information to the binding if applicable.
           *
           * The linked list of styles not only stores the list and keys, but also stores static styling
           * information on some of the keys. This function determines if the key should contain the styling
           * information and computes it.
           *
           * See `TStylingStatic` for more details.
           *
           * @param tData `TData` where the linked list is stored.
           * @param tNode `TNode` for which the styling is being computed.
           * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {
            const hostDirectiveDef = getCurrentDirectiveDef(tData);
            let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;
            if (hostDirectiveDef === null) {
              // We are in template node.
              // If template node already had styling instruction then it has already collected the static
              // styling and there is no need to collect them again. We know that we are the first styling
              // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).
              const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;
              if (isFirstStylingInstructionInTemplate) {
                // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point
                // they are already merged and it would not be possible to figure which property belongs where
                // in the priority.
                stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);
                stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);
                // We know that if we have styling binding in template we can't have residual.
                residual = null;
              }
            } else {
              // We are in host binding node and there was no binding instruction in template node.
              // This means that we need to compute the residual.
              const directiveStylingLast = tNode.directiveStylingLast;
              const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;
              if (isFirstStylingInstructionInHostBinding) {
                stylingKey = collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);
                if (residual === null) {
                  // - If `null` than either:
                  //    - Template styling instruction already ran and it has consumed the static
                  //      styling into its `TStylingKey` and so there is no need to update residual. Instead
                  //      we need to update the `TStylingKey` associated with the first template node
                  //      instruction. OR
                  //    - Some other styling instruction ran and determined that there are no residuals
                  let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);
                  if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {
                    // Only recompute if `templateStylingKey` had static values. (If no static value found
                    // then there is nothing to do since this operation can only produce less static keys, not
                    // more.)
                    templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);
                    templateStylingKey = collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);
                    setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);
                  }
                } else {
                  // We only need to recompute residual if it is not `null`.
                  // - If existing residual (implies there was no template styling). This means that some of
                  //   the statics may have moved from the residual to the `stylingKey` and so we have to
                  //   recompute.
                  // - If `undefined` this is the first time we are running.
                  residual = collectResidual(tData, tNode, isClassBased);
                }
              }
            }
            if (residual !== undefined) {
              isClassBased ? tNode.residualClasses = residual : tNode.residualStyles = residual;
            }
            return stylingKey;
          }
          /**
           * Retrieve the `TStylingKey` for the template styling instruction.
           *
           * This is needed since `hostBinding` styling instructions are inserted after the template
           * instruction. While the template instruction needs to update the residual in `TNode` the
           * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because
           * the template instruction is downstream from the `hostBindings` instructions.
           *
           * @param tData `TData` where the linked list is stored.
           * @param tNode `TNode` for which the styling is being computed.
           * @param isClassBased `true` if `class` (`false` if `style`)
           * @return `TStylingKey` if found or `undefined` if not found.
           */
          function getTemplateHeadTStylingKey(tData, tNode, isClassBased) {
            const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;
            if (getTStylingRangeNext(bindings) === 0) {
              // There does not seem to be a styling instruction in the `template`.
              return undefined;
            }
            return tData[getTStylingRangePrev(bindings)];
          }
          /**
           * Update the `TStylingKey` of the first template instruction in `TNode`.
           *
           * Logically `hostBindings` styling instructions are of lower priority than that of the template.
           * However, they execute after the template styling instructions. This means that they get inserted
           * in front of the template styling instructions.
           *
           * If we have a template styling instruction and a new `hostBindings` styling instruction is
           * executed it means that it may need to steal static fields from the template instruction. This
           * method allows us to update the first template instruction `TStylingKey` with a new value.
           *
           * Assume:
           * ```
           * <div my-dir style="color: red" [style.color]="tmplExp"></div>
           *
           * @Directive({
           *   host: {
           *     'style': 'width: 100px',
           *     '[style.color]': 'dirExp',
           *   }
           * })
           * class MyDir {}
           * ```
           *
           * when `[style.color]="tmplExp"` executes it creates this data structure.
           * ```
           *  ['', 'color', 'color', 'red', 'width', '100px'],
           * ```
           *
           * The reason for this is that the template instruction does not know if there are styling
           * instructions and must assume that there are none and must collect all of the static styling.
           * (both
           * `color' and 'width`)
           *
           * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.
           * ```
           *  ['', 'color', 'width', '100px'],  // newly inserted
           *  ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong
           * ```
           *
           * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to
           * update it like so:
           * ```
           *  ['', 'color', 'width', '100px'],
           *  ['', 'color', 'color', 'red'],    // UPDATE
           * ```
           *
           * @param tData `TData` where the linked list is stored.
           * @param tNode `TNode` for which the styling is being computed.
           * @param isClassBased `true` if `class` (`false` if `style`)
           * @param tStylingKey New `TStylingKey` which is replacing the old one.
           */
          function setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {
            const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;
            ngDevMode && assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');
            tData[getTStylingRangePrev(bindings)] = tStylingKey;
          }
          /**
           * Collect all static values after the current `TNode.directiveStylingLast` index.
           *
           * Collect the remaining styling information which has not yet been collected by an existing
           * styling instruction.
           *
           * @param tData `TData` where the `DirectiveDefs` are stored.
           * @param tNode `TNode` which contains the directive range.
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function collectResidual(tData, tNode, isClassBased) {
            let residual = undefined;
            const directiveEnd = tNode.directiveEnd;
            ngDevMode && assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');
            // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are
            // collecting things after the last `hostBindings` directive which had a styling instruction.)
            for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {
              const attrs = tData[i].hostAttrs;
              residual = collectStylingFromTAttrs(residual, attrs, isClassBased);
            }
            return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);
          }
          /**
           * Collect the static styling information with lower priority than `hostDirectiveDef`.
           *
           * (This is opposite of residual styling.)
           *
           * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static
           *        styling. (Or `null` if template styling)
           * @param tData `TData` where the linked list is stored.
           * @param tNode `TNode` for which the styling is being computed.
           * @param stylingKey Existing `TStylingKey` to update or wrap.
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {
            // We need to loop because there can be directives which have `hostAttrs` but don't have
            // `hostBindings` so this loop catches up to the current directive..
            let currentDirective = null;
            const directiveEnd = tNode.directiveEnd;
            let directiveStylingLast = tNode.directiveStylingLast;
            if (directiveStylingLast === -1) {
              directiveStylingLast = tNode.directiveStart;
            } else {
              directiveStylingLast++;
            }
            while (directiveStylingLast < directiveEnd) {
              currentDirective = tData[directiveStylingLast];
              ngDevMode && assertDefined(currentDirective, 'expected to be defined');
              stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);
              if (currentDirective === hostDirectiveDef) break;
              directiveStylingLast++;
            }
            if (hostDirectiveDef !== null) {
              // we only advance the styling cursor if we are collecting data from host bindings.
              // Template executes before host bindings and so if we would update the index,
              // host bindings would not get their statics.
              tNode.directiveStylingLast = directiveStylingLast;
            }
            return stylingKey;
          }
          /**
           * Convert `TAttrs` into `TStylingStatic`.
           *
           * @param stylingKey existing `TStylingKey` to update or wrap.
           * @param attrs `TAttributes` to process.
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {
            const desiredMarker = isClassBased ? 1 /* AttributeMarker.Classes */ : 2 /* AttributeMarker.Styles */;
            let currentMarker = -1 /* AttributeMarker.ImplicitAttributes */;
            if (attrs !== null) {
              for (let i = 0; i < attrs.length; i++) {
                const item = attrs[i];
                if (typeof item === 'number') {
                  currentMarker = item;
                } else {
                  if (currentMarker === desiredMarker) {
                    if (!Array.isArray(stylingKey)) {
                      stylingKey = stylingKey === undefined ? [] : ['', stylingKey];
                    }
                    keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);
                  }
                }
              }
            }
            return stylingKey === undefined ? null : stylingKey;
          }
          /**
           * Convert user input to `KeyValueArray`.
           *
           * This function takes user input which could be `string`, Object literal, or iterable and converts
           * it into a consistent representation. The output of this is `KeyValueArray` (which is an array
           * where
           * even indexes contain keys and odd indexes contain values for those keys).
           *
           * The advantage of converting to `KeyValueArray` is that we can perform diff in an input
           * independent
           * way.
           * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be
           * applied)
           *
           * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the
           * difference in linear fashion without the need to allocate any additional data.
           *
           * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine
           * which values need to be deleted, over the new `Map` to determine additions, and we would have to
           * keep additional `Map` to keep track of duplicates or items which have not yet been visited.
           *
           * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
           *        function so that `style` can be processed. This is done
           *        for tree shaking purposes.
           * @param stringParser The parser is passed in so that it will be tree shakable. See
           *        `styleStringParser` and `classStringParser`
           * @param value The value to parse/convert to `KeyValueArray`
           */
          function toStylingKeyValueArray(keyValueArraySet, stringParser, value) {
            if (value == null /*|| value === undefined */ || value === '') return EMPTY_ARRAY;
            const styleKeyValueArray = [];
            const unwrappedValue = unwrapSafeValue(value);
            if (Array.isArray(unwrappedValue)) {
              for (let i = 0; i < unwrappedValue.length; i++) {
                keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);
              }
            } else if (typeof unwrappedValue === 'object') {
              for (const key in unwrappedValue) {
                if (unwrappedValue.hasOwnProperty(key)) {
                  keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);
                }
              }
            } else if (typeof unwrappedValue === 'string') {
              stringParser(styleKeyValueArray, unwrappedValue);
            } else {
              ngDevMode && throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
            }
            return styleKeyValueArray;
          }
          /**
           * Set a `value` for a `key`.
           *
           * See: `keyValueArraySet` for details
           *
           * @param keyValueArray KeyValueArray to add to.
           * @param key Style key to add.
           * @param value The value to set.
           */
          function styleKeyValueArraySet(keyValueArray, key, value) {
            keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));
          }
          /**
           * Class-binding-specific function for setting the `value` for a `key`.
           *
           * See: `keyValueArraySet` for details
           *
           * @param keyValueArray KeyValueArray to add to.
           * @param key Style key to add.
           * @param value The value to set.
           */
          function classKeyValueArraySet(keyValueArray, key, value) {
            // We use `classList.add` to eventually add the CSS classes to the DOM node. Any value passed into
            // `add` is stringified and added to the `class` attribute, e.g. even null, undefined or numbers
            // will be added. Stringify the key here so that our internal data structure matches the value in
            // the DOM. The only exceptions are empty strings and strings that contain spaces for which
            // the browser throws an error. We ignore such values, because the error is somewhat cryptic.
            const stringKey = String(key);
            if (stringKey !== '' && !stringKey.includes(' ')) {
              keyValueArraySet(keyValueArray, stringKey, value);
            }
          }
          /**
           * Update map based styling.
           *
           * Map based styling could be anything which contains more than one binding. For example `string`,
           * or object literal. Dealing with all of these types would complicate the logic so
           * instead this function expects that the complex input is first converted into normalized
           * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it
           * very cheap to compute deltas between the previous and current value.
           *
           * @param tView Associated `TView.data` contains the linked list of binding priorities.
           * @param tNode `TNode` where the binding is located.
           * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
           * @param renderer Renderer to use if any updates.
           * @param oldKeyValueArray Previous value represented as `KeyValueArray`
           * @param newKeyValueArray Current value represented as `KeyValueArray`
           * @param isClassBased `true` if `class` (`false` if `style`)
           * @param bindingIndex Binding index of the binding.
           */
          function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {
            if (oldKeyValueArray === NO_CHANGE) {
              // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.
              oldKeyValueArray = EMPTY_ARRAY;
            }
            let oldIndex = 0;
            let newIndex = 0;
            let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;
            let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;
            while (oldKey !== null || newKey !== null) {
              ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');
              ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');
              const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;
              const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;
              let setKey = null;
              let setValue = undefined;
              if (oldKey === newKey) {
                // UPDATE: Keys are equal => new value is overwriting old value.
                oldIndex += 2;
                newIndex += 2;
                if (oldValue !== newValue) {
                  setKey = newKey;
                  setValue = newValue;
                }
              } else if (newKey === null || oldKey !== null && oldKey < newKey) {
                // DELETE: oldKey key is missing or we did not find the oldKey in the newValue
                // (because the keyValueArray is sorted and `newKey` is found later alphabetically).
                // `"background" < "color"` so we need to delete `"background"` because it is not found in the
                // new array.
                oldIndex += 2;
                setKey = oldKey;
              } else {
                // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.
                // `"color" > "background"` so we need to add `color` because it is in new array but not in
                // old array.
                ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');
                newIndex += 2;
                setKey = newKey;
                setValue = newValue;
              }
              if (setKey !== null) {
                updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);
              }
              oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;
              newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;
            }
          }
          /**
           * Update a simple (property name) styling.
           *
           * This function takes `prop` and updates the DOM to that value. The function takes the binding
           * value as well as binding priority into consideration to determine which value should be written
           * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks
           * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)
           *
           * @param tView Associated `TView.data` contains the linked list of binding priorities.
           * @param tNode `TNode` where the binding is located.
           * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
           * @param renderer Renderer to use if any updates.
           * @param prop Either style property name or a class name.
           * @param value Either style value for `prop` or `true`/`false` if `prop` is class.
           * @param isClassBased `true` if `class` (`false` if `style`)
           * @param bindingIndex Binding index of the binding.
           */
          function updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {
            if (!(tNode.type & 3 /* TNodeType.AnyRNode */)) {
              // It is possible to have styling on non-elements (such as ng-container).
              // This is rare, but it does happen. In such a case, just ignore the binding.
              return;
            }
            const tData = tView.data;
            const tRange = tData[bindingIndex + 1];
            const higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ? findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) : undefined;
            if (!isStylingValuePresent(higherPriorityValue)) {
              // We don't have a next duplicate, or we did not find a duplicate value.
              if (!isStylingValuePresent(value)) {
                // We should delete current value or restore to lower priority value.
                if (getTStylingRangePrevDuplicate(tRange)) {
                  // We have a possible prev duplicate, let's retrieve it.
                  value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);
                }
              }
              const rNode = getNativeByIndex(getSelectedIndex(), lView);
              applyStyling(renderer, isClassBased, rNode, prop, value);
            }
          }
          /**
           * Search for styling value with higher priority which is overwriting current value, or a
           * value of lower priority to which we should fall back if the value is `undefined`.
           *
           * When value is being applied at a location, related values need to be consulted.
           * - If there is a higher priority binding, we should be using that one instead.
           *   For example `<div  [style]="{color:exp1}" [style.color]="exp2">` change to `exp1`
           *   requires that we check `exp2` to see if it is set to value other than `undefined`.
           * - If there is a lower priority binding and we are changing to `undefined`
           *   For example `<div  [style]="{color:exp1}" [style.color]="exp2">` change to `exp2` to
           *   `undefined` requires that we check `exp1` (and static values) and use that as new value.
           *
           * NOTE: The styling stores two values.
           * 1. The raw value which came from the application is stored at `index + 0` location. (This value
           *    is used for dirty checking).
           * 2. The normalized value is stored at `index + 1`.
           *
           * @param tData `TData` used for traversing the priority.
           * @param tNode `TNode` to use for resolving static styling. Also controls search direction.
           *   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
           *      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
           *   - `null` search prev and go all the way to end. Return last value where
           *     `isStylingValuePresent(value)` is true.
           * @param lView `LView` used for retrieving the actual values.
           * @param prop Property which we are interested in.
           * @param index Starting index in the linked list of styling bindings where the search should start.
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function findStylingValue(tData, tNode, lView, prop, index, isClassBased) {
            // `TNode` to use for resolving static styling. Also controls search direction.
            //   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
            //      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
            //   - `null` search prev and go all the way to end. Return last value where
            //     `isStylingValuePresent(value)` is true.
            const isPrevDirection = tNode === null;
            let value = undefined;
            while (index > 0) {
              const rawKey = tData[index];
              const containsStatics = Array.isArray(rawKey);
              // Unwrap the key if we contain static values.
              const key = containsStatics ? rawKey[1] : rawKey;
              const isStylingMap = key === null;
              let valueAtLViewIndex = lView[index + 1];
              if (valueAtLViewIndex === NO_CHANGE) {
                // In firstUpdatePass the styling instructions create a linked list of styling.
                // On subsequent passes it is possible for a styling instruction to try to read a binding
                // which
                // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that
                // we have `undefined` (or empty array in case of styling-map instruction) instead. This
                // allows the resolution to apply the value (which may later be overwritten when the
                // binding actually executes.)
                valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;
              }
              let currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) : key === prop ? valueAtLViewIndex : undefined;
              if (containsStatics && !isStylingValuePresent(currentValue)) {
                currentValue = keyValueArrayGet(rawKey, prop);
              }
              if (isStylingValuePresent(currentValue)) {
                value = currentValue;
                if (isPrevDirection) {
                  return value;
                }
              }
              const tRange = tData[index + 1];
              index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);
            }
            if (tNode !== null) {
              // in case where we are going in next direction AND we did not find anything, we need to
              // consult residual styling
              let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;
              if (residual != null /** OR residual !=== undefined */) {
                value = keyValueArrayGet(residual, prop);
              }
            }
            return value;
          }
          /**
           * Determines if the binding value should be used (or if the value is 'undefined' and hence priority
           * resolution should be used.)
           *
           * @param value Binding style value.
           */
          function isStylingValuePresent(value) {
            // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't
            // have an opinion as to what this binding should be and you should consult other bindings by
            // priority to determine the valid value.
            // This is extracted into a single function so that we have a single place to control this.
            return value !== undefined;
          }
          /**
           * Normalizes and/or adds a suffix to the value.
           *
           * If value is `null`/`undefined` no suffix is added
           * @param value
           * @param suffix
           */
          function normalizeSuffix(value, suffix) {
            if (value == null || value === '') {
              // do nothing
              // Do not add the suffix if the value is going to be empty.
              // As it produce invalid CSS, which the browsers will automatically omit but Domino will not.
              // Example: `"left": "px;"` instead of `"left": ""`.
            } else if (typeof suffix === 'string') {
              value = value + suffix;
            } else if (typeof value === 'object') {
              value = stringify(unwrapSafeValue(value));
            }
            return value;
          }
          /**
           * Tests if the `TNode` has input shadow.
           *
           * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or
           * `@Input('class')` as input.
           *
           * @param tNode `TNode` which we would like to see if it has shadow.
           * @param isClassBased `true` if `class` (`false` if `style`)
           */
          function hasStylingInputShadow(tNode, isClassBased) {
            return (tNode.flags & (isClassBased ? 8 /* TNodeFlags.hasClassInput */ : 16 /* TNodeFlags.hasStyleInput */)) !== 0;
          }
          
          /**
           * Create static text node
           *
           * @param index Index of the node in the data array
           * @param value Static string value to write.
           *
           * @codeGenApi
           */
          function ɵɵtext(index, value = '') {
            const lView = getLView();
            const tView = getTView();
            const adjustedIndex = index + HEADER_OFFSET;
            ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');
            ngDevMode && assertIndexInRange(lView, adjustedIndex);
            const tNode = tView.firstCreatePass ? getOrCreateTNode(tView, adjustedIndex, 1 /* TNodeType.Text */, value, null) : tView.data[adjustedIndex];
            const textNative = _locateOrCreateTextNode(tView, lView, tNode, value, index);
            lView[adjustedIndex] = textNative;
            if (wasLastNodeCreated()) {
              appendChild(tView, lView, textNative, tNode);
            }
            // Text nodes are self closing.
            setCurrentTNode(tNode, false);
          }
          let _locateOrCreateTextNode = (tView, lView, tNode, value, index) => {
            lastNodeWasCreated(true);
            return createTextNode(lView[RENDERER], value);
          };
          /**
           * Enables hydration code path (to lookup existing elements in DOM)
           * in addition to the regular creation mode of text nodes.
           */
          function locateOrCreateTextNodeImpl(tView, lView, tNode, value, index) {
            const hydrationInfo = lView[HYDRATION];
            const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDisconnectedNode$1(hydrationInfo, index);
            lastNodeWasCreated(isNodeCreationMode);
            // Regular creation mode.
            if (isNodeCreationMode) {
              return createTextNode(lView[RENDERER], value);
            }
            // Hydration mode, looking up an existing element in DOM.
            const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode);
            ngDevMode && validateMatchingNode(textNative, Node.TEXT_NODE, null, lView, tNode);
            ngDevMode && markRNodeAsClaimedByHydration(textNative);
            return textNative;
          }
          function enableLocateOrCreateTextNodeImpl() {
            _locateOrCreateTextNode = locateOrCreateTextNodeImpl;
          }
          
          /**
           *
           * Update text content with a lone bound value
           *
           * Used when a text node has 1 interpolated value in it, an no additional text
           * surrounds that interpolated value:
           *
           * ```html
           * <div>{{v0}}</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate(v0);
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate(v0) {
            ɵɵtextInterpolate1('', v0, '');
            return ɵɵtextInterpolate;
          }
          /**
           *
           * Update text content with single bound value surrounded by other text.
           *
           * Used when a text node has 1 interpolated value in it:
           *
           * ```html
           * <div>prefix{{v0}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate1('prefix', v0, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate1(prefix, v0, suffix) {
            const lView = getLView();
            const interpolated = interpolation1(lView, prefix, v0, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate1;
          }
          /**
           *
           * Update text content with 2 bound values surrounded by other text.
           *
           * Used when a text node has 2 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {
            const lView = getLView();
            const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate2;
          }
          /**
           *
           * Update text content with 3 bound values surrounded by other text.
           *
           * Used when a text node has 3 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate3(
           * 'prefix', v0, '-', v1, '-', v2, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
            const lView = getLView();
            const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate3;
          }
          /**
           *
           * Update text content with 4 bound values surrounded by other text.
           *
           * Used when a text node has 4 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate4(
           * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see ɵɵtextInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
            const lView = getLView();
            const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate4;
          }
          /**
           *
           * Update text content with 5 bound values surrounded by other text.
           *
           * Used when a text node has 5 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate5(
           * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
            const lView = getLView();
            const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate5;
          }
          /**
           *
           * Update text content with 6 bound values surrounded by other text.
           *
           * Used when a text node has 6 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate6(
           *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
           * ```
           *
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change. @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
            const lView = getLView();
            const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate6;
          }
          /**
           *
           * Update text content with 7 bound values surrounded by other text.
           *
           * Used when a text node has 7 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate7(
           *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
            const lView = getLView();
            const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate7;
          }
          /**
           *
           * Update text content with 8 bound values surrounded by other text.
           *
           * Used when a text node has 8 interpolated values in it:
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolate8(
           *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
           * ```
           * @returns itself, so that it may be chained.
           * @see textInterpolateV
           * @codeGenApi
           */
          function ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
            const lView = getLView();
            const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolate8;
          }
          /**
           * Update text content with 9 or more bound values other surrounded by text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵtextInterpolateV(
           *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
           *  'suffix']);
           * ```
           *.
           * @param values The collection of values and the strings in between those values, beginning with
           * a string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
           *
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵtextInterpolateV(values) {
            const lView = getLView();
            const interpolated = interpolationV(lView, values);
            if (interpolated !== NO_CHANGE) {
              textBindingInternal(lView, getSelectedIndex(), interpolated);
            }
            return ɵɵtextInterpolateV;
          }
          
          /**
           *
           * Update an interpolated class on an element with single bound value surrounded by text.
           *
           * Used when the value passed to a property has 1 interpolated value in it:
           *
           * ```html
           * <div class="prefix{{v0}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate1(prefix, v0, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 2 bound values surrounded by text.
           *
           * Used when the value passed to a property has 2 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 3 bound values surrounded by text.
           *
           * Used when the value passed to a property has 3 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate3(
           * 'prefix', v0, '-', v1, '-', v2, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 4 bound values surrounded by text.
           *
           * Used when the value passed to a property has 4 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate4(
           * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 5 bound values surrounded by text.
           *
           * Used when the value passed to a property has 5 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate5(
           * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 6 bound values surrounded by text.
           *
           * Used when the value passed to a property has 6 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate6(
           *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 7 bound values surrounded by text.
           *
           * Used when the value passed to a property has 7 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate7(
           *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           *
           * Update an interpolated class on an element with 8 bound values surrounded by text.
           *
           * Used when the value passed to a property has 8 interpolated values in it:
           *
           * ```html
           * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolate8(
           *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param i6 Static value used for concatenation only.
           * @param v7 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          /**
           * Update an interpolated class on an element with 9 or more bound values surrounded by text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div
           *  class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵclassMapInterpolateV(
           *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
           *  'suffix']);
           * ```
           *.
           * @param values The collection of values and the strings in-between those values, beginning with
           * a string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
           * @codeGenApi
           */
          function ɵɵclassMapInterpolateV(values) {
            const lView = getLView();
            const interpolatedValue = interpolationV(lView, values);
            checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
          }
          
          /**
           *
           * Update an interpolated style on an element with single bound value surrounded by text.
           *
           * Used when the value passed to a property has 1 interpolated value in it:
           *
           * ```html
           * <div style="key: {{v0}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate1(prefix, v0, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 2 bound values surrounded by text.
           *
           * Used when the value passed to a property has 2 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 3 bound values surrounded by text.
           *
           * Used when the value passed to a property has 3 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate3(
           *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 4 bound values surrounded by text.
           *
           * Used when the value passed to a property has 4 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate4(
           *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 5 bound values surrounded by text.
           *
           * Used when the value passed to a property has 5 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate5(
           *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 6 bound values surrounded by text.
           *
           * Used when the value passed to a property has 6 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};
           *             key5: {{v5}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate6(
           *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
           *    'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 7 bound values surrounded by text.
           *
           * Used when the value passed to a property has 7 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
           *             key6: {{v6}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate7(
           *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
           *    '; key6: ', v6, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           *
           * Update an interpolated style on an element with 8 bound values surrounded by text.
           *
           * Used when the value passed to a property has 8 interpolated values in it:
           *
           * ```html
           * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
           *             key6: {{v6}}; key7: {{v7}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolate8(
           *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
           *    '; key6: ', v6, '; key7: ', v7, 'suffix');
           * ```
           *
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param i6 Static value used for concatenation only.
           * @param v7 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
            const lView = getLView();
            const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            ɵɵstyleMap(interpolatedValue);
          }
          /**
           * Update an interpolated style on an element with 9 or more bound values surrounded by text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div
           *  class="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
           *         key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstyleMapInterpolateV(
           *    ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
           *     '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);
           * ```
           *.
           * @param values The collection of values and the strings in-between those values, beginning with
           * a string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)
           * @codeGenApi
           */
          function ɵɵstyleMapInterpolateV(values) {
            const lView = getLView();
            const interpolatedValue = interpolationV(lView, values);
            ɵɵstyleMap(interpolatedValue);
          }
          
          /**
           *
           * Update an interpolated style property on an element with single bound value surrounded by text.
           *
           * Used when the value passed to a property has 1 interpolated value in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate1;
          }
          /**
           *
           * Update an interpolated style property on an element with 2 bound values surrounded by text.
           *
           * Used when the value passed to a property has 2 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate2;
          }
          /**
           *
           * Update an interpolated style property on an element with 3 bound values surrounded by text.
           *
           * Used when the value passed to a property has 3 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate3;
          }
          /**
           *
           * Update an interpolated style property on an element with 4 bound values surrounded by text.
           *
           * Used when the value passed to a property has 4 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate4;
          }
          /**
           *
           * Update an interpolated style property on an element with 5 bound values surrounded by text.
           *
           * Used when the value passed to a property has 5 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate5;
          }
          /**
           *
           * Update an interpolated style property on an element with 6 bound values surrounded by text.
           *
           * Used when the value passed to a property has 6 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate6;
          }
          /**
           *
           * Update an interpolated style property on an element with 7 bound values surrounded by text.
           *
           * Used when the value passed to a property has 7 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate7(
           *    0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate7;
          }
          /**
           *
           * Update an interpolated style property on an element with 8 bound values surrounded by text.
           *
           * Used when the value passed to a property has 8 interpolated values in it:
           *
           * ```html
           * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,
           * '-', v7, 'suffix');
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`.
           * @param prefix Static value used for concatenation only.
           * @param v0 Value checked for change.
           * @param i0 Static value used for concatenation only.
           * @param v1 Value checked for change.
           * @param i1 Static value used for concatenation only.
           * @param v2 Value checked for change.
           * @param i2 Static value used for concatenation only.
           * @param v3 Value checked for change.
           * @param i3 Static value used for concatenation only.
           * @param v4 Value checked for change.
           * @param i4 Static value used for concatenation only.
           * @param v5 Value checked for change.
           * @param i5 Static value used for concatenation only.
           * @param v6 Value checked for change.
           * @param i6 Static value used for concatenation only.
           * @param v7 Value checked for change.
           * @param suffix Static value used for concatenation only.
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolate8;
          }
          /**
           * Update an interpolated style property on an element with 9 or more bound values surrounded by
           * text.
           *
           * Used when the number of interpolated values exceeds 8.
           *
           * ```html
           * <div
           *  style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix">
           * </div>
           * ```
           *
           * Its compiled representation is:
           *
           * ```ts
           * ɵɵstylePropInterpolateV(
           *  0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
           *  'suffix']);
           * ```
           *
           * @param styleIndex Index of style to update. This index value refers to the
           *        index of the style in the style bindings array that was passed into
           *        `styling`..
           * @param values The collection of values and the strings in-between those values, beginning with
           * a string prefix and ending with a string suffix.
           * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
           * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
           * @returns itself, so that it may be chained.
           * @codeGenApi
           */
          function ɵɵstylePropInterpolateV(prop, values, valueSuffix) {
            const lView = getLView();
            const interpolatedValue = interpolationV(lView, values);
            checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
            return ɵɵstylePropInterpolateV;
          }
          
          /**
           * Update a property on a host element. Only applies to native node properties, not inputs.
           *
           * Operates on the element selected by index via the {@link select} instruction.
           *
           * @param propName Name of property. Because it is going to DOM, this is not subject to
           *        renaming as part of minification.
           * @param value New value to write.
           * @param sanitizer An optional function used to sanitize the value.
           * @returns This function returns itself so that it may be chained
           * (e.g. `property('name', ctx.name)('title', ctx.title)`)
           *
           * @codeGenApi
           */
          function ɵɵhostProperty(propName, value, sanitizer) {
            const lView = getLView();
            const bindingIndex = nextBindingIndex();
            if (bindingUpdated(lView, bindingIndex, value)) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
            }
            return ɵɵhostProperty;
          }
          /**
           * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
           *
           * This instruction is for compatibility purposes and is designed to ensure that a
           * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
           * the component's renderer. Normally all host bindings are evaluated with the parent
           * component's renderer, but, in the case of animation @triggers, they need to be
           * evaluated with the sub component's renderer (because that's where the animation
           * triggers are defined).
           *
           * Do not use this instruction as a replacement for `elementProperty`. This instruction
           * only exists to ensure compatibility with the ViewEngine's host binding behavior.
           *
           * @param index The index of the element to update in the data array
           * @param propName Name of property. Because it is going to DOM, this is not subject to
           *        renaming as part of minification.
           * @param value New value to write.
           * @param sanitizer An optional function used to sanitize the value.
           *
           * @codeGenApi
           */
          function ɵɵsyntheticHostProperty(propName, value, sanitizer) {
            const lView = getLView();
            const bindingIndex = nextBindingIndex();
            if (bindingUpdated(lView, bindingIndex, value)) {
              const tView = getTView();
              const tNode = getSelectedTNode();
              const currentDef = getCurrentDirectiveDef(tView.data);
              const renderer = loadComponentRenderer(currentDef, tNode, lView);
              elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);
              ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
            }
            return ɵɵsyntheticHostProperty;
          }
          
          /**
           * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.
           */
          if (typeof ngI18nClosureMode === 'undefined') {
            // These property accesses can be ignored because ngI18nClosureMode will be set to false
            // when optimizing code and the whole if statement will be dropped.
            // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.
            // NOTE: we need to have it in IIFE so that the tree-shaker is happy.
            (function () {
              // tslint:disable-next-line:no-toplevel-property-access
              _global['ngI18nClosureMode'] =
              // TODO(FW-1250): validate that this actually, you know, works.
              // tslint:disable-next-line:no-toplevel-property-access
              typeof goog !== 'undefined' && typeof goog.getMsg === 'function';
            })();
          }
          
          // THIS CODE IS GENERATED - DO NOT MODIFY.
          const u = undefined;
          function plural(val) {
            const n = val,
              i = Math.floor(Math.abs(val)),
              v = val.toString().replace(/^[^.]*\.?/, '').length;
            if (i === 1 && v === 0) return 1;
            return 5;
          }
          var localeEn = ["en", [["a", "p"], ["AM", "PM"], u], [["AM", "PM"], u, u], [["S", "M", "T", "W", "T", "F", "S"], ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]], u, [["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]], u, [["B", "A"], ["BC", "AD"], ["Before Christ", "Anno Domini"]], 0, [6, 0], ["M/d/yy", "MMM d, y", "MMMM d, y", "EEEE, MMMM d, y"], ["h:mm a", "h:mm:ss a", "h:mm:ss a z", "h:mm:ss a zzzz"], ["{1}, {0}", u, "{1} 'at' {0}", u], [".", ",", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "¤#,##0.00", "#E0"], "USD", "$", "US Dollar", {}, "ltr", plural];
          
          /**
           * This const is used to store the locale data registered with `registerLocaleData`
           */
          let LOCALE_DATA = {};
          /**
           * Register locale data to be used internally by Angular. See the
           * ["I18n guide"](guide/i18n-common-format-data-locale) to know how to import additional locale
           * data.
           *
           * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
           */
          function registerLocaleData(data, localeId, extraData) {
            if (typeof localeId !== 'string') {
              extraData = localeId;
              localeId = data[LocaleDataIndex.LocaleId];
            }
            localeId = localeId.toLowerCase().replace(/_/g, '-');
            LOCALE_DATA[localeId] = data;
            if (extraData) {
              LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;
            }
          }
          /**
           * Finds the locale data for a given locale.
           *
           * @param locale The locale code.
           * @returns The locale data.
           * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)
           */
          function findLocaleData(locale) {
            const normalizedLocale = normalizeLocale(locale);
            let match = getLocaleData(normalizedLocale);
            if (match) {
              return match;
            }
            // let's try to find a parent locale
            const parentLocale = normalizedLocale.split('-')[0];
            match = getLocaleData(parentLocale);
            if (match) {
              return match;
            }
            if (parentLocale === 'en') {
              return localeEn;
            }
            throw new RuntimeError(701 /* RuntimeErrorCode.MISSING_LOCALE_DATA */, ngDevMode && `Missing locale data for the locale "${locale}".`);
          }
          /**
           * Retrieves the default currency code for the given locale.
           *
           * The default is defined as the first currency which is still in use.
           *
           * @param locale The code of the locale whose currency code we want.
           * @returns The code of the default currency for the given locale.
           *
           */
          function getLocaleCurrencyCode(locale) {
            const data = findLocaleData(locale);
            return data[LocaleDataIndex.CurrencyCode] || null;
          }
          /**
           * Retrieves the plural function used by ICU expressions to determine the plural case to use
           * for a given locale.
           * @param locale A locale code for the locale format rules to use.
           * @returns The plural function for the locale.
           * @see {@link NgPlural}
           * @see [Internationalization (i18n) Guide](/guide/i18n-overview)
           */
          function getLocalePluralCase(locale) {
            const data = findLocaleData(locale);
            return data[LocaleDataIndex.PluralCase];
          }
          /**
           * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`
           * or from the global `ng.common.locale`.
           */
          function getLocaleData(normalizedLocale) {
            if (!(normalizedLocale in LOCALE_DATA)) {
              LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales && _global.ng.common.locales[normalizedLocale];
            }
            return LOCALE_DATA[normalizedLocale];
          }
          /**
           * Helper function to remove all the locale data from `LOCALE_DATA`.
           */
          function unregisterAllLocaleData() {
            LOCALE_DATA = {};
          }
          /**
           * Index of each type of locale data from the locale data array
           */
          var LocaleDataIndex;
          (function (LocaleDataIndex) {
            LocaleDataIndex[LocaleDataIndex["LocaleId"] = 0] = "LocaleId";
            LocaleDataIndex[LocaleDataIndex["DayPeriodsFormat"] = 1] = "DayPeriodsFormat";
            LocaleDataIndex[LocaleDataIndex["DayPeriodsStandalone"] = 2] = "DayPeriodsStandalone";
            LocaleDataIndex[LocaleDataIndex["DaysFormat"] = 3] = "DaysFormat";
            LocaleDataIndex[LocaleDataIndex["DaysStandalone"] = 4] = "DaysStandalone";
            LocaleDataIndex[LocaleDataIndex["MonthsFormat"] = 5] = "MonthsFormat";
            LocaleDataIndex[LocaleDataIndex["MonthsStandalone"] = 6] = "MonthsStandalone";
            LocaleDataIndex[LocaleDataIndex["Eras"] = 7] = "Eras";
            LocaleDataIndex[LocaleDataIndex["FirstDayOfWeek"] = 8] = "FirstDayOfWeek";
            LocaleDataIndex[LocaleDataIndex["WeekendRange"] = 9] = "WeekendRange";
            LocaleDataIndex[LocaleDataIndex["DateFormat"] = 10] = "DateFormat";
            LocaleDataIndex[LocaleDataIndex["TimeFormat"] = 11] = "TimeFormat";
            LocaleDataIndex[LocaleDataIndex["DateTimeFormat"] = 12] = "DateTimeFormat";
            LocaleDataIndex[LocaleDataIndex["NumberSymbols"] = 13] = "NumberSymbols";
            LocaleDataIndex[LocaleDataIndex["NumberFormats"] = 14] = "NumberFormats";
            LocaleDataIndex[LocaleDataIndex["CurrencyCode"] = 15] = "CurrencyCode";
            LocaleDataIndex[LocaleDataIndex["CurrencySymbol"] = 16] = "CurrencySymbol";
            LocaleDataIndex[LocaleDataIndex["CurrencyName"] = 17] = "CurrencyName";
            LocaleDataIndex[LocaleDataIndex["Currencies"] = 18] = "Currencies";
            LocaleDataIndex[LocaleDataIndex["Directionality"] = 19] = "Directionality";
            LocaleDataIndex[LocaleDataIndex["PluralCase"] = 20] = "PluralCase";
            LocaleDataIndex[LocaleDataIndex["ExtraData"] = 21] = "ExtraData";
          })(LocaleDataIndex || (LocaleDataIndex = {}));
          /**
           * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.
           */
          function normalizeLocale(locale) {
            return locale.toLowerCase().replace(/_/g, '-');
          }
          const pluralMapping = ['zero', 'one', 'two', 'few', 'many'];
          /**
           * Returns the plural case based on the locale
           */
          function getPluralCase(value, locale) {
            const plural = getLocalePluralCase(locale)(parseInt(value, 10));
            const result = pluralMapping[plural];
            return result !== undefined ? result : 'other';
          }
          /**
           * The locale id that the application is using by default (for translations and ICU expressions).
           */
          const DEFAULT_LOCALE_ID = 'en-US';
          /**
           * USD currency code that the application uses by default for CurrencyPipe when no
           * DEFAULT_CURRENCY_CODE is provided.
           */
          const USD_CURRENCY_CODE = 'USD';
          
          /**
           * Marks that the next string is an element name.
           *
           * See `I18nMutateOpCodes` documentation.
           */
          const ELEMENT_MARKER = {
            marker: 'element'
          };
          /**
           * Marks that the next string is comment text need for ICU.
           *
           * See `I18nMutateOpCodes` documentation.
           */
          const ICU_MARKER = {
            marker: 'ICU'
          };
          /**
           * See `I18nCreateOpCodes`
           */
          var I18nCreateOpCode;
          (function (I18nCreateOpCode) {
            /**
             * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and
             * `COMMENT`.
             */
            I18nCreateOpCode[I18nCreateOpCode["SHIFT"] = 2] = "SHIFT";
            /**
             * Should the node be appended to parent immediately after creation.
             */
            I18nCreateOpCode[I18nCreateOpCode["APPEND_EAGERLY"] = 1] = "APPEND_EAGERLY";
            /**
             * If set the node should be comment (rather than a text) node.
             */
            I18nCreateOpCode[I18nCreateOpCode["COMMENT"] = 2] = "COMMENT";
          })(I18nCreateOpCode || (I18nCreateOpCode = {}));
          // Note: This hack is necessary so we don't erroneously get a circular dependency
          // failure based on types.
          const unusedValueExportToPlacateAjd = 1;
          
          /**
           * The locale id that the application is currently using (for translations and ICU expressions).
           * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
           * but is now defined as a global value.
           */
          let LOCALE_ID$1 = DEFAULT_LOCALE_ID;
          /**
           * Sets the locale id that will be used for translations and ICU expressions.
           * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
           * but is now defined as a global value.
           *
           * @param localeId
           */
          function setLocaleId(localeId) {
            assertDefined(localeId, `Expected localeId to be defined`);
            if (typeof localeId === 'string') {
              LOCALE_ID$1 = localeId.toLowerCase().replace(/_/g, '-');
            }
          }
          /**
           * Gets the locale id that will be used for translations and ICU expressions.
           * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
           * but is now defined as a global value.
           */
          function getLocaleId() {
            return LOCALE_ID$1;
          }
          
          /**
           * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).
           *
           * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
           * takes `TNode.insertBeforeIndex` into account.
           *
           * @param parentTNode parent `TNode`
           * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
           * @param lView current `LView`
           */
          function getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {
            const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;
            const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;
            if (insertBeforeIndex === null) {
              return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);
            } else {
              ngDevMode && assertIndexInRange(lView, insertBeforeIndex);
              return unwrapRNode(lView[insertBeforeIndex]);
            }
          }
          /**
           * Process `TNode.insertBeforeIndex` by adding i18n text nodes.
           *
           * See `TNode.insertBeforeIndex`
           */
          function processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {
            const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;
            if (Array.isArray(tNodeInsertBeforeIndex)) {
              // An array indicates that there are i18n nodes that need to be added as children of this
              // `childRNode`. These i18n nodes were created before this `childRNode` was available and so
              // only now can be added. The first element of the array is the normal index where we should
              // insert the `childRNode`. Additional elements are the extra nodes to be added as children of
              // `childRNode`.
              ngDevMode && assertDomNode(childRNode);
              let i18nParent = childRNode;
              let anchorRNode = null;
              if (!(childTNode.type & 3 /* TNodeType.AnyRNode */)) {
                anchorRNode = i18nParent;
                i18nParent = parentRElement;
              }
              if (i18nParent !== null && childTNode.componentOffset === -1) {
                for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {
                  // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.
                  // see `assertDomNode` below.
                  const i18nChild = lView[tNodeInsertBeforeIndex[i]];
                  nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);
                }
              }
            }
          }
          
          /**
           * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list
           * `tNode.insertBeforeIndex`.
           *
           * Things to keep in mind:
           * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the
           *    `ɵɵi18nStart` instruction.
           * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by
           *    `ɵɵelementStart` instruction.
           * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a
           *    smaller index `TNode` is guaranteed to be created before a larger one)
           *
           * We use the above three invariants to determine `TNode.insertBeforeIndex`.
           *
           * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,
           * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that
           * the next node is not yet created and therefore we can't insert in front of it.
           *
           * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't
           *        know if there will be further `TNode`s inserted after.)
           * Rule2: If `previousTNode` is created after the `tNode` being inserted, then
           *        `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check
           *        previous to see if we can update its `insertBeforeTNode`)
           *
           * See `TNode.insertBeforeIndex` for more context.
           *
           * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in
           *     reverse order. (If `TNode` would have `previous` this would not be necessary.)
           * @param newTNode A TNode to add to the `previousTNodes` list.
           */
          function addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {
            // Start with Rule1
            ngDevMode && assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');
            previousTNodes.push(newTNode);
            if (previousTNodes.length > 1) {
              for (let i = previousTNodes.length - 2; i >= 0; i--) {
                const existingTNode = previousTNodes[i];
                // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.
                // It is safe to ignore them.
                if (!isI18nText(existingTNode)) {
                  if (isNewTNodeCreatedBefore(existingTNode, newTNode) && getInsertBeforeIndex(existingTNode) === null) {
                    // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)
                    // then add the `insertBeforeIndex`.
                    setInsertBeforeIndex(existingTNode, newTNode.index);
                  }
                }
              }
            }
          }
          function isI18nText(tNode) {
            return !(tNode.type & 64 /* TNodeType.Placeholder */);
          }
          
          function isNewTNodeCreatedBefore(existingTNode, newTNode) {
            return isI18nText(newTNode) || existingTNode.index > newTNode.index;
          }
          function getInsertBeforeIndex(tNode) {
            const index = tNode.insertBeforeIndex;
            return Array.isArray(index) ? index[0] : index;
          }
          function setInsertBeforeIndex(tNode, value) {
            const index = tNode.insertBeforeIndex;
            if (Array.isArray(index)) {
              // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`
              index[0] = value;
            } else {
              setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
              tNode.insertBeforeIndex = value;
            }
          }
          
          /**
           * Retrieve `TIcu` at a given `index`.
           *
           * The `TIcu` can be stored either directly (if it is nested ICU) OR
           * it is stored inside tho `TIcuContainer` if it is top level ICU.
           *
           * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
           * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
           * expressed (parent ICU may have selected a case which does not contain it.)
           *
           * @param tView Current `TView`.
           * @param index Index where the value should be read from.
           */
          function getTIcu(tView, index) {
            const value = tView.data[index];
            if (value === null || typeof value === 'string') return null;
            if (ngDevMode && !(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {
              throwError('We expect to get \'null\'|\'TIcu\'|\'TIcuContainer\', but got: ' + value);
            }
            // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be
            // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it
            // will be just two cases which fits into the browser inline cache (inline cache can take up to
            // 4)
            const tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value : value.value;
            ngDevMode && assertTIcu(tIcu);
            return tIcu;
          }
          /**
           * Store `TIcu` at a give `index`.
           *
           * The `TIcu` can be stored either directly (if it is nested ICU) OR
           * it is stored inside tho `TIcuContainer` if it is top level ICU.
           *
           * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
           * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
           * expressed (parent ICU may have selected a case which does not contain it.)
           *
           * @param tView Current `TView`.
           * @param index Index where the value should be stored at in `Tview.data`
           * @param tIcu The TIcu to store.
           */
          function setTIcu(tView, index, tIcu) {
            const tNode = tView.data[index];
            ngDevMode && assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, 'We expect to get \'null\'|\'TIcuContainer\'');
            if (tNode === null) {
              tView.data[index] = tIcu;
            } else {
              ngDevMode && assertTNodeType(tNode, 32 /* TNodeType.Icu */);
              tNode.value = tIcu;
            }
          }
          /**
           * Set `TNode.insertBeforeIndex` taking the `Array` into account.
           *
           * See `TNode.insertBeforeIndex`
           */
          function setTNodeInsertBeforeIndex(tNode, index) {
            ngDevMode && assertTNode(tNode);
            let insertBeforeIndex = tNode.insertBeforeIndex;
            if (insertBeforeIndex === null) {
              setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
              insertBeforeIndex = tNode.insertBeforeIndex = [null /* may be updated to number later */, index];
            } else {
              assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');
              insertBeforeIndex.push(index);
            }
          }
          /**
           * Create `TNode.type=TNodeType.Placeholder` node.
           *
           * See `TNodeType.Placeholder` for more information.
           */
          function createTNodePlaceholder(tView, previousTNodes, index) {
            const tNode = createTNodeAtIndex(tView, index, 64 /* TNodeType.Placeholder */, null, null);
            addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);
            return tNode;
          }
          /**
           * Returns current ICU case.
           *
           * ICU cases are stored as index into the `TIcu.cases`.
           * At times it is necessary to communicate that the ICU case just switched and that next ICU update
           * should update all bindings regardless of the mask. In such a case the we store negative numbers
           * for cases which have just been switched. This function removes the negative flag.
           */
          function getCurrentICUCaseIndex(tIcu, lView) {
            const currentCase = lView[tIcu.currentCaseLViewIndex];
            return currentCase === null ? currentCase : currentCase < 0 ? ~currentCase : currentCase;
          }
          function getParentFromIcuCreateOpCode(mergedCode) {
            return mergedCode >>> 17 /* IcuCreateOpCode.SHIFT_PARENT */;
          }
          
          function getRefFromIcuCreateOpCode(mergedCode) {
            return (mergedCode & 131070 /* IcuCreateOpCode.MASK_REF */) >>> 1 /* IcuCreateOpCode.SHIFT_REF */;
          }
          
          function getInstructionFromIcuCreateOpCode(mergedCode) {
            return mergedCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */;
          }
          
          function icuCreateOpCode(opCode, parentIdx, refIdx) {
            ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');
            ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');
            return opCode | parentIdx << 17 /* IcuCreateOpCode.SHIFT_PARENT */ | refIdx << 1 /* IcuCreateOpCode.SHIFT_REF */;
          }
          
          /**
           * Keep track of which input bindings in `ɵɵi18nExp` have changed.
           *
           * This is used to efficiently update expressions in i18n only when the corresponding input has
           * changed.
           *
           * 1) Each bit represents which of the `ɵɵi18nExp` has changed.
           * 2) There are 32 bits allowed in JS.
           * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more
           * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means
           * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare
           * so in practice it should not be an issue.)
           */
          let changeMask = 0b0;
          /**
           * Keeps track of which bit needs to be updated in `changeMask`
           *
           * This value gets incremented on every call to `ɵɵi18nExp`
           */
          let changeMaskCounter = 0;
          /**
           * Keep track of which input bindings in `ɵɵi18nExp` have changed.
           *
           * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.
           *
           * @param hasChange did `ɵɵi18nExp` detect a change.
           */
          function setMaskBit(hasChange) {
            if (hasChange) {
              changeMask = changeMask | 1 << Math.min(changeMaskCounter, 31);
            }
            changeMaskCounter++;
          }
          function applyI18n(tView, lView, index) {
            if (changeMaskCounter > 0) {
              ngDevMode && assertDefined(tView, `tView should be defined`);
              const tI18n = tView.data[index];
              // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`
              const updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;
              const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;
              applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);
            }
            // Reset changeMask & maskBit to default for the next update cycle
            changeMask = 0b0;
            changeMaskCounter = 0;
          }
          /**
           * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.
           *
           * Creates text (and comment) nodes which are internationalized.
           *
           * @param lView Current lView
           * @param createOpCodes Set of op-codes to apply
           * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is
           *     a root node.
           * @param insertInFrontOf DOM node that should be used as an anchor.
           */
          function applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {
            const renderer = lView[RENDERER];
            for (let i = 0; i < createOpCodes.length; i++) {
              const opCode = createOpCodes[i++];
              const text = createOpCodes[i];
              const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
              const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
              const index = opCode >>> I18nCreateOpCode.SHIFT;
              let rNode = lView[index];
              if (rNode === null) {
                // We only create new DOM nodes if they don't already exist: If ICU switches case back to a
                // case which was already instantiated, no need to create new DOM nodes.
                rNode = lView[index] = isComment ? renderer.createComment(text) : createTextNode(renderer, text);
              }
              if (appendNow && parentRNode !== null) {
                nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);
              }
            }
          }
          /**
           * Apply `I18nMutateOpCodes` OpCodes.
           *
           * @param tView Current `TView`
           * @param mutableOpCodes Mutable OpCodes to process
           * @param lView Current `LView`
           * @param anchorRNode place where the i18n node should be inserted.
           */
          function applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {
            ngDevMode && assertDomNode(anchorRNode);
            const renderer = lView[RENDERER];
            // `rootIdx` represents the node into which all inserts happen.
            let rootIdx = null;
            // `rootRNode` represents the real node into which we insert. This can be different from
            // `lView[rootIdx]` if we have projection.
            //  - null we don't have a parent (as can be the case in when we are inserting into a root of
            //    LView which has no parent.)
            //  - `RElement` The element representing the root after taking projection into account.
            let rootRNode;
            for (let i = 0; i < mutableOpCodes.length; i++) {
              const opCode = mutableOpCodes[i];
              if (typeof opCode == 'string') {
                const textNodeIndex = mutableOpCodes[++i];
                if (lView[textNodeIndex] === null) {
                  ngDevMode && ngDevMode.rendererCreateTextNode++;
                  ngDevMode && assertIndexInRange(lView, textNodeIndex);
                  lView[textNodeIndex] = createTextNode(renderer, opCode);
                }
              } else if (typeof opCode == 'number') {
                switch (opCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */) {
                  case 0 /* IcuCreateOpCode.AppendChild */:
                    const parentIdx = getParentFromIcuCreateOpCode(opCode);
                    if (rootIdx === null) {
                      // The first operation should save the `rootIdx` because the first operation
                      // must insert into the root. (Only subsequent operations can insert into a dynamic
                      // parent)
                      rootIdx = parentIdx;
                      rootRNode = nativeParentNode(renderer, anchorRNode);
                    }
                    let insertInFrontOf;
                    let parentRNode;
                    if (parentIdx === rootIdx) {
                      insertInFrontOf = anchorRNode;
                      parentRNode = rootRNode;
                    } else {
                      insertInFrontOf = null;
                      parentRNode = unwrapRNode(lView[parentIdx]);
                    }
                    // FIXME(misko): Refactor with `processI18nText`
                    if (parentRNode !== null) {
                      // This can happen if the `LView` we are adding to is not attached to a parent `LView`.
                      // In such a case there is no "root" we can attach to. This is fine, as we still need to
                      // create the elements. When the `LView` gets later added to a parent these "root" nodes
                      // get picked up and added.
                      ngDevMode && assertDomNode(parentRNode);
                      const refIdx = getRefFromIcuCreateOpCode(opCode);
                      ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');
                      // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n
                      // which can't have components.
                      const child = lView[refIdx];
                      ngDevMode && assertDomNode(child);
                      nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);
                      const tIcu = getTIcu(tView, refIdx);
                      if (tIcu !== null && typeof tIcu === 'object') {
                        // If we just added a comment node which has ICU then that ICU may have already been
                        // rendered and therefore we need to re-add it here.
                        ngDevMode && assertTIcu(tIcu);
                        const caseIndex = getCurrentICUCaseIndex(tIcu, lView);
                        if (caseIndex !== null) {
                          applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);
                        }
                      }
                    }
                    break;
                  case 1 /* IcuCreateOpCode.Attr */:
                    const elementNodeIndex = opCode >>> 1 /* IcuCreateOpCode.SHIFT_REF */;
                    const attrName = mutableOpCodes[++i];
                    const attrValue = mutableOpCodes[++i];
                    // This code is used for ICU expressions only, since we don't support
                    // directives/components in ICUs, we don't need to worry about inputs here
                    setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);
                    break;
                  default:
                    if (ngDevMode) {
                      throw new RuntimeError(700 /* RuntimeErrorCode.INVALID_I18N_STRUCTURE */, `Unable to determine the type of mutate operation for "${opCode}"`);
                    }
                }
              } else {
                switch (opCode) {
                  case ICU_MARKER:
                    const commentValue = mutableOpCodes[++i];
                    const commentNodeIndex = mutableOpCodes[++i];
                    if (lView[commentNodeIndex] === null) {
                      ngDevMode && assertEqual(typeof commentValue, 'string', `Expected "${commentValue}" to be a comment node value`);
                      ngDevMode && ngDevMode.rendererCreateComment++;
                      ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);
                      const commentRNode = lView[commentNodeIndex] = createCommentNode(renderer, commentValue);
                      // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)
                      attachPatchData(commentRNode, lView);
                    }
                    break;
                  case ELEMENT_MARKER:
                    const tagName = mutableOpCodes[++i];
                    const elementNodeIndex = mutableOpCodes[++i];
                    if (lView[elementNodeIndex] === null) {
                      ngDevMode && assertEqual(typeof tagName, 'string', `Expected "${tagName}" to be an element node tag name`);
                      ngDevMode && ngDevMode.rendererCreateElement++;
                      ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);
                      const elementRNode = lView[elementNodeIndex] = createElementNode(renderer, tagName, null);
                      // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)
                      attachPatchData(elementRNode, lView);
                    }
                    break;
                  default:
                    ngDevMode && throwError(`Unable to determine the type of mutate operation for "${opCode}"`);
                }
              }
            }
          }
          /**
           * Apply `I18nUpdateOpCodes` OpCodes
           *
           * @param tView Current `TView`
           * @param lView Current `LView`
           * @param updateOpCodes OpCodes to process
           * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
           * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from
           *     `bindingsStartIndex`)
           */
          function applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {
            for (let i = 0; i < updateOpCodes.length; i++) {
              // bit code to check if we should apply the next update
              const checkBit = updateOpCodes[i];
              // Number of opCodes to skip until next set of update codes
              const skipCodes = updateOpCodes[++i];
              if (checkBit & changeMask) {
                // The value has been updated since last checked
                let value = '';
                for (let j = i + 1; j <= i + skipCodes; j++) {
                  const opCode = updateOpCodes[j];
                  if (typeof opCode == 'string') {
                    value += opCode;
                  } else if (typeof opCode == 'number') {
                    if (opCode < 0) {
                      // Negative opCode represent `i18nExp` values offset.
                      value += renderStringify(lView[bindingsStartIndex - opCode]);
                    } else {
                      const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;
                      switch (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) {
                        case 1 /* I18nUpdateOpCode.Attr */:
                          const propName = updateOpCodes[++j];
                          const sanitizeFn = updateOpCodes[++j];
                          const tNodeOrTagName = tView.data[nodeIndex];
                          ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');
                          if (typeof tNodeOrTagName === 'string') {
                            // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does
                            // not have TNode), in which case we know that there are no directives, and hence
                            // we use attribute setting.
                            setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);
                          } else {
                            elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);
                          }
                          break;
                        case 0 /* I18nUpdateOpCode.Text */:
                          const rText = lView[nodeIndex];
                          rText !== null && updateTextNode(lView[RENDERER], rText, value);
                          break;
                        case 2 /* I18nUpdateOpCode.IcuSwitch */:
                          applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);
                          break;
                        case 3 /* I18nUpdateOpCode.IcuUpdate */:
                          applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);
                          break;
                      }
                    }
                  }
                }
              } else {
                const opCode = updateOpCodes[i + 1];
                if (opCode > 0 && (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) === 3 /* I18nUpdateOpCode.IcuUpdate */) {
                  // Special case for the `icuUpdateCase`. It could be that the mask did not match, but
                  // we still need to execute `icuUpdateCase` because the case has changed recently due to
                  // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in
                  // pairs.)
                  const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;
                  const tIcu = getTIcu(tView, nodeIndex);
                  const currentIndex = lView[tIcu.currentCaseLViewIndex];
                  if (currentIndex < 0) {
                    applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);
                  }
                }
              }
              i += skipCodes;
            }
          }
          /**
           * Apply OpCodes associated with updating an existing ICU.
           *
           * @param tView Current `TView`
           * @param tIcu Current `TIcu`
           * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
           * @param lView Current `LView`
           */
          function applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {
            ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);
            let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];
            if (activeCaseIndex !== null) {
              let mask = changeMask;
              if (activeCaseIndex < 0) {
                // Clear the flag.
                // Negative number means that the ICU was freshly created and we need to force the update.
                activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;
                // -1 is same as all bits on, which simulates creation since it marks all bits dirty
                mask = -1;
              }
              applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);
            }
          }
          /**
           * Apply OpCodes associated with switching a case on ICU.
           *
           * This involves tearing down existing case and than building up a new case.
           *
           * @param tView Current `TView`
           * @param tIcu Current `TIcu`
           * @param lView Current `LView`
           * @param value Value of the case to update to.
           */
          function applyIcuSwitchCase(tView, tIcu, lView, value) {
            // Rebuild a new case for this ICU
            const caseIndex = getCaseIndex(tIcu, value);
            let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);
            if (activeCaseIndex !== caseIndex) {
              applyIcuSwitchCaseRemove(tView, tIcu, lView);
              lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;
              if (caseIndex !== null) {
                // Add the nodes for the new case
                const anchorRNode = lView[tIcu.anchorIdx];
                if (anchorRNode) {
                  ngDevMode && assertDomNode(anchorRNode);
                  applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);
                }
              }
            }
          }
          /**
           * Apply OpCodes associated with tearing ICU case.
           *
           * This involves tearing down existing case and than building up a new case.
           *
           * @param tView Current `TView`
           * @param tIcu Current `TIcu`
           * @param lView Current `LView`
           */
          function applyIcuSwitchCaseRemove(tView, tIcu, lView) {
            let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);
            if (activeCaseIndex !== null) {
              const removeCodes = tIcu.remove[activeCaseIndex];
              for (let i = 0; i < removeCodes.length; i++) {
                const nodeOrIcuIndex = removeCodes[i];
                if (nodeOrIcuIndex > 0) {
                  // Positive numbers are `RNode`s.
                  const rNode = getNativeByIndex(nodeOrIcuIndex, lView);
                  rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);
                } else {
                  // Negative numbers are ICUs
                  applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);
                }
              }
            }
          }
          /**
           * Returns the index of the current case of an ICU expression depending on the main binding value
           *
           * @param icuExpression
           * @param bindingValue The value of the main binding used by this ICU expression
           */
          function getCaseIndex(icuExpression, bindingValue) {
            let index = icuExpression.cases.indexOf(bindingValue);
            if (index === -1) {
              switch (icuExpression.type) {
                case 1 /* IcuType.plural */:
                  {
                    const resolvedCase = getPluralCase(bindingValue, getLocaleId());
                    index = icuExpression.cases.indexOf(resolvedCase);
                    if (index === -1 && resolvedCase !== 'other') {
                      index = icuExpression.cases.indexOf('other');
                    }
                    break;
                  }
                case 0 /* IcuType.select */:
                  {
                    index = icuExpression.cases.indexOf('other');
                    break;
                  }
              }
            }
            return index === -1 ? null : index;
          }
          function loadIcuContainerVisitor() {
            const _stack = [];
            let _index = -1;
            let _lView;
            let _removes;
            /**
             * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`
             * to determine which root belong to the ICU.
             *
             * Example of usage.
             * ```
             * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);
             * let rNode: RNode|null;
             * while(rNode = nextRNode()) {
             *   console.log(rNode);
             * }
             * ```
             *
             * @param tIcuContainerNode Current `TIcuContainerNode`
             * @param lView `LView` where the `RNode`s should be looked up.
             */
            function icuContainerIteratorStart(tIcuContainerNode, lView) {
              _lView = lView;
              while (_stack.length) _stack.pop();
              ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);
              enterIcu(tIcuContainerNode.value, lView);
              return icuContainerIteratorNext;
            }
            function enterIcu(tIcu, lView) {
              _index = 0;
              const currentCase = getCurrentICUCaseIndex(tIcu, lView);
              if (currentCase !== null) {
                ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);
                _removes = tIcu.remove[currentCase];
              } else {
                _removes = EMPTY_ARRAY;
              }
            }
            function icuContainerIteratorNext() {
              if (_index < _removes.length) {
                const removeOpCode = _removes[_index++];
                ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');
                if (removeOpCode > 0) {
                  const rNode = _lView[removeOpCode];
                  ngDevMode && assertDomNode(rNode);
                  return rNode;
                } else {
                  _stack.push(_index, _removes);
                  // ICUs are represented by negative indices
                  const tIcuIndex = ~removeOpCode;
                  const tIcu = _lView[TVIEW].data[tIcuIndex];
                  ngDevMode && assertTIcu(tIcu);
                  enterIcu(tIcu, _lView);
                  return icuContainerIteratorNext();
                }
              } else {
                if (_stack.length === 0) {
                  return null;
                } else {
                  _removes = _stack.pop();
                  _index = _stack.pop();
                  return icuContainerIteratorNext();
                }
              }
            }
            return icuContainerIteratorStart;
          }
          
          /**
           * Converts `I18nCreateOpCodes` array into a human readable format.
           *
           * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.
           * This function provides a human readable view of the opcodes. This is useful when debugging the
           * application as well as writing more readable tests.
           *
           * @param this `I18nCreateOpCodes` if attached as a method.
           * @param opcodes `I18nCreateOpCodes` if invoked as a function.
           */
          function i18nCreateOpCodesToString(opcodes) {
            const createOpCodes = opcodes || (Array.isArray(this) ? this : []);
            let lines = [];
            for (let i = 0; i < createOpCodes.length; i++) {
              const opCode = createOpCodes[i++];
              const text = createOpCodes[i];
              const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
              const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
              const index = opCode >>> I18nCreateOpCode.SHIFT;
              lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);
              if (appendNow) {
                lines.push(`parent.appendChild(lView[${index}]);`);
              }
            }
            return lines;
          }
          /**
           * Converts `I18nUpdateOpCodes` array into a human readable format.
           *
           * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.
           * This function provides a human readable view of the opcodes. This is useful when debugging the
           * application as well as writing more readable tests.
           *
           * @param this `I18nUpdateOpCodes` if attached as a method.
           * @param opcodes `I18nUpdateOpCodes` if invoked as a function.
           */
          function i18nUpdateOpCodesToString(opcodes) {
            const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
            let lines = [];
            function consumeOpCode(value) {
              const ref = value >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;
              const opCode = value & 3 /* I18nUpdateOpCode.MASK_OPCODE */;
              switch (opCode) {
                case 0 /* I18nUpdateOpCode.Text */:
                  return `(lView[${ref}] as Text).textContent = $$$`;
                case 1 /* I18nUpdateOpCode.Attr */:
                  const attrName = parser.consumeString();
                  const sanitizationFn = parser.consumeFunction();
                  const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';
                  return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;
                case 2 /* I18nUpdateOpCode.IcuSwitch */:
                  return `icuSwitchCase(${ref}, $$$)`;
                case 3 /* I18nUpdateOpCode.IcuUpdate */:
                  return `icuUpdateCase(${ref})`;
              }
              throw new Error('unexpected OpCode');
            }
            while (parser.hasMore()) {
              let mask = parser.consumeNumber();
              let size = parser.consumeNumber();
              const end = parser.i + size;
              const statements = [];
              let statement = '';
              while (parser.i < end) {
                let value = parser.consumeNumberOrString();
                if (typeof value === 'string') {
                  statement += value;
                } else if (value < 0) {
                  // Negative numbers are ref indexes
                  // Here `i` refers to current binding index. It is to signify that the value is relative,
                  // rather than absolute.
                  statement += '${lView[i' + value + ']}';
                } else {
                  // Positive numbers are operations.
                  const opCodeText = consumeOpCode(value);
                  statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');
                  statement = '';
                }
              }
              lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);
            }
            return lines;
          }
          /**
           * Converts `I18nCreateOpCodes` array into a human readable format.
           *
           * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This
           * function provides a human readable view of the opcodes. This is useful when debugging the
           * application as well as writing more readable tests.
           *
           * @param this `I18nCreateOpCodes` if attached as a method.
           * @param opcodes `I18nCreateOpCodes` if invoked as a function.
           */
          function icuCreateOpCodesToString(opcodes) {
            const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
            let lines = [];
            function consumeOpCode(opCode) {
              const parent = getParentFromIcuCreateOpCode(opCode);
              const ref = getRefFromIcuCreateOpCode(opCode);
              switch (getInstructionFromIcuCreateOpCode(opCode)) {
                case 0 /* IcuCreateOpCode.AppendChild */:
                  return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;
                case 1 /* IcuCreateOpCode.Attr */:
                  return `(lView[${ref}] as Element).setAttribute("${parser.consumeString()}", "${parser.consumeString()}")`;
              }
              throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));
            }
            let lastRef = -1;
            while (parser.hasMore()) {
              let value = parser.consumeNumberStringOrMarker();
              if (value === ICU_MARKER) {
                const text = parser.consumeString();
                lastRef = parser.consumeNumber();
                lines.push(`lView[${lastRef}] = document.createComment("${text}")`);
              } else if (value === ELEMENT_MARKER) {
                const text = parser.consumeString();
                lastRef = parser.consumeNumber();
                lines.push(`lView[${lastRef}] = document.createElement("${text}")`);
              } else if (typeof value === 'string') {
                lastRef = parser.consumeNumber();
                lines.push(`lView[${lastRef}] = document.createTextNode("${value}")`);
              } else if (typeof value === 'number') {
                const line = consumeOpCode(value);
                line && lines.push(line);
              } else {
                throw new Error('Unexpected value');
              }
            }
            return lines;
          }
          /**
           * Converts `I18nRemoveOpCodes` array into a human readable format.
           *
           * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This
           * function provides a human readable view of the opcodes. This is useful when debugging the
           * application as well as writing more readable tests.
           *
           * @param this `I18nRemoveOpCodes` if attached as a method.
           * @param opcodes `I18nRemoveOpCodes` if invoked as a function.
           */
          function i18nRemoveOpCodesToString(opcodes) {
            const removeCodes = opcodes || (Array.isArray(this) ? this : []);
            let lines = [];
            for (let i = 0; i < removeCodes.length; i++) {
              const nodeOrIcuIndex = removeCodes[i];
              if (nodeOrIcuIndex > 0) {
                // Positive numbers are `RNode`s.
                lines.push(`remove(lView[${nodeOrIcuIndex}])`);
              } else {
                // Negative numbers are ICUs
                lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);
              }
            }
            return lines;
          }
          class OpCodeParser {
            constructor(codes) {
              this.i = 0;
              this.codes = codes;
            }
            hasMore() {
              return this.i < this.codes.length;
            }
            consumeNumber() {
              let value = this.codes[this.i++];
              assertNumber(value, 'expecting number in OpCode');
              return value;
            }
            consumeString() {
              let value = this.codes[this.i++];
              assertString(value, 'expecting string in OpCode');
              return value;
            }
            consumeFunction() {
              let value = this.codes[this.i++];
              if (value === null || typeof value === 'function') {
                return value;
              }
              throw new Error('expecting function in OpCode');
            }
            consumeNumberOrString() {
              let value = this.codes[this.i++];
              if (typeof value === 'string') {
                return value;
              }
              assertNumber(value, 'expecting number or string in OpCode');
              return value;
            }
            consumeNumberStringOrMarker() {
              let value = this.codes[this.i++];
              if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER || value == ELEMENT_MARKER) {
                return value;
              }
              assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');
              return value;
            }
          }
          const BINDING_REGEXP = /�(\d+):?\d*�/gi;
          const ICU_REGEXP = /({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi;
          const NESTED_ICU = /�(\d+)�/;
          const ICU_BLOCK_REGEXP = /^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/;
          const MARKER = `�`;
          const SUBTEMPLATE_REGEXP = /�\/?\*(\d+:\d+)�/gi;
          const PH_REGEXP = /�(\/?[#*]\d+):?\d*�/gi;
          /**
           * Angular uses the special entity &ngsp; as a placeholder for non-removable space.
           * It's replaced by the 0xE500 PUA (Private Use Areas) unicode character and later on replaced by a
           * space.
           * We are re-implementing the same idea since translations might contain this special character.
           */
          const NGSP_UNICODE_REGEXP = /\uE500/g;
          function replaceNgsp(value) {
            return value.replace(NGSP_UNICODE_REGEXP, ' ');
          }
          /**
           * Patch a `debug` property getter on top of the existing object.
           *
           * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`
           *
           * @param obj Object to patch
           * @param debugGetter Getter returning a value to patch
           */
          function attachDebugGetter(obj, debugGetter) {
            if (ngDevMode) {
              Object.defineProperty(obj, 'debug', {
                get: debugGetter,
                enumerable: false
              });
            } else {
              throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');
            }
          }
          /**
           * Create dynamic nodes from i18n translation block.
           *
           * - Text nodes are created synchronously
           * - TNodes are linked into tree lazily
           *
           * @param tView Current `TView`
           * @parentTNodeIndex index to the parent TNode of this i18n block
           * @param lView Current `LView`
           * @param index Index of `ɵɵi18nStart` instruction.
           * @param message Message to translate.
           * @param subTemplateIndex Index into the sub template of message translation. (ie in case of
           *     `ngIf`) (-1 otherwise)
           */
          function i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {
            const rootTNode = getCurrentParentTNode();
            const createOpCodes = [];
            const updateOpCodes = [];
            const existingTNodeStack = [[]];
            if (ngDevMode) {
              attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);
              attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
            }
            message = getTranslationForTemplate(message, subTemplateIndex);
            const msgParts = replaceNgsp(message).split(PH_REGEXP);
            for (let i = 0; i < msgParts.length; i++) {
              let value = msgParts[i];
              if ((i & 1) === 0) {
                // Even indexes are text (including bindings & ICU expressions)
                const parts = i18nParseTextIntoPartsAndICU(value);
                for (let j = 0; j < parts.length; j++) {
                  let part = parts[j];
                  if ((j & 1) === 0) {
                    // `j` is odd therefore `part` is string
                    const text = part;
                    ngDevMode && assertString(text, 'Parsed ICU part should be string');
                    if (text !== '') {
                      i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);
                    }
                  } else {
                    // `j` is Even therefor `part` is an `ICUExpression`
                    const icuExpression = part;
                    // Verify that ICU expression has the right shape. Translations might contain invalid
                    // constructions (while original messages were correct), so ICU parsing at runtime may
                    // not succeed (thus `icuExpression` remains a string).
                    // Note: we intentionally retain the error here by not using `ngDevMode`, because
                    // the value can change based on the locale and users aren't guaranteed to hit
                    // an invalid string while they're developing.
                    if (typeof icuExpression !== 'object') {
                      throw new Error(`Unable to parse ICU expression in "${message}" message.`);
                    }
                    const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);
                    const icuNodeIndex = icuContainerTNode.index;
                    ngDevMode && assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');
                    icuStart(tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);
                  }
                }
              } else {
                // Odd indexes are placeholders (elements and sub-templates)
                // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')
                const isClosing = value.charCodeAt(0) === 47 /* CharCode.SLASH */;
                const type = value.charCodeAt(isClosing ? 1 : 0);
                ngDevMode && assertOneOf(type, 42 /* CharCode.STAR */, 35 /* CharCode.HASH */);
                const index = HEADER_OFFSET + Number.parseInt(value.substring(isClosing ? 2 : 1));
                if (isClosing) {
                  existingTNodeStack.shift();
                  setCurrentTNode(getCurrentParentTNode(), false);
                } else {
                  const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);
                  existingTNodeStack.unshift([]);
                  setCurrentTNode(tNode, true);
                }
              }
            }
            tView.data[index] = {
              create: createOpCodes,
              update: updateOpCodes
            };
          }
          /**
           * Allocate space in i18n Range add create OpCode instruction to create a text or comment node.
           *
           * @param tView Current `TView` needed to allocate space in i18n range.
           * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be
           *     added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.
           * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
           * @param lView Current `LView` needed to allocate space in i18n range.
           * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.
           * @param text Text to be added when the `Text` or `Comment` node will be created.
           * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.
           */
          function createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {
            const i18nNodeIdx = allocExpando(tView, lView, 1, null);
            let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;
            let parentTNode = getCurrentParentTNode();
            if (rootTNode === parentTNode) {
              // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.
              // (there is no parent), but in some circumstances (because we are inconsistent about how we set
              // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.
              parentTNode = null;
            }
            if (parentTNode === null) {
              // If we don't have a parent that means that we can eagerly add nodes.
              // If we have a parent than these nodes can't be added now (as the parent has not been created
              // yet) and instead the `parentTNode` is responsible for adding it. See
              // `TNode.insertBeforeIndex`
              opCode |= I18nCreateOpCode.APPEND_EAGERLY;
            }
            if (isICU) {
              opCode |= I18nCreateOpCode.COMMENT;
              ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);
            }
            createOpCodes.push(opCode, text === null ? '' : text);
            // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the
            // bindings are.
            const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* TNodeType.Icu */ : 1 /* TNodeType.Text */, text === null ? ngDevMode ? '{{?}}' : '' : text, null);
            addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);
            const tNodeIdx = tNode.index;
            setCurrentTNode(tNode, false /* Text nodes are self closing */);
            if (parentTNode !== null && rootTNode !== parentTNode) {
              // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)
              // We have to make sure to add ourselves to the parent.
              setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);
            }
            return tNode;
          }
          /**
           * Processes text node in i18n block.
           *
           * Text nodes can have:
           * - Create instruction in `createOpCodes` for creating the text node.
           * - Allocate spec for text node in i18n range of `LView`
           * - If contains binding:
           *    - bindings => allocate space in i18n range of `LView` to store the binding value.
           *    - populate `updateOpCodes` with update instructions.
           *
           * @param tView Current `TView`
           * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will
           *     be added as part of the `i18nStart` instruction or as part of the
           *     `TNode.insertBeforeIndex`.
           * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
           * @param createOpCodes Location where the creation OpCodes will be stored.
           * @param lView Current `LView`
           * @param text The translated text (which may contain binding)
           */
          function i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {
            const hasBinding = text.match(BINDING_REGEXP);
            const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);
            if (hasBinding) {
              generateBindingUpdateOpCodes(updateOpCodes, text, tNode.index, null, 0, null);
            }
          }
          /**
           * See `i18nAttributes` above.
           */
          function i18nAttributesFirstPass(tView, index, values) {
            const previousElement = getCurrentTNode();
            const previousElementIndex = previousElement.index;
            const updateOpCodes = [];
            if (ngDevMode) {
              attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
            }
            if (tView.firstCreatePass && tView.data[index] === null) {
              for (let i = 0; i < values.length; i += 2) {
                const attrName = values[i];
                const message = values[i + 1];
                if (message !== '') {
                  // Check if attribute value contains an ICU and throw an error if that's the case.
                  // ICUs in element attributes are not supported.
                  // Note: we intentionally retain the error here by not using `ngDevMode`, because
                  // the `value` can change based on the locale and users aren't guaranteed to hit
                  // an invalid string while they're developing.
                  if (ICU_REGEXP.test(message)) {
                    throw new Error(`ICU expressions are not supported in attributes. Message: "${message}".`);
                  }
                  // i18n attributes that hit this code path are guaranteed to have bindings, because
                  // the compiler treats static i18n attributes as regular attribute bindings.
                  // Since this may not be the first i18n attribute on this element we need to pass in how
                  // many previous bindings there have already been.
                  generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName, countBindings(updateOpCodes), null);
                }
              }
              tView.data[index] = updateOpCodes;
            }
          }
          /**
           * Generate the OpCodes to update the bindings of a string.
           *
           * @param updateOpCodes Place where the update opcodes will be stored.
           * @param str The string containing the bindings.
           * @param destinationNode Index of the destination node which will receive the binding.
           * @param attrName Name of the attribute, if the string belongs to an attribute.
           * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.
           * @param bindingStart The lView index of the next expression that can be bound via an opCode.
           * @returns The mask value for these bindings
           */
          function generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, bindingStart, sanitizeFn) {
            ngDevMode && assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');
            const maskIndex = updateOpCodes.length; // Location of mask
            const sizeIndex = maskIndex + 1; // location of size for skipping
            updateOpCodes.push(null, null); // Alloc space for mask and size
            const startIndex = maskIndex + 2; // location of first allocation.
            if (ngDevMode) {
              attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
            }
            const textParts = str.split(BINDING_REGEXP);
            let mask = 0;
            for (let j = 0; j < textParts.length; j++) {
              const textValue = textParts[j];
              if (j & 1) {
                // Odd indexes are bindings
                const bindingIndex = bindingStart + parseInt(textValue, 10);
                updateOpCodes.push(-1 - bindingIndex);
                mask = mask | toMaskBit(bindingIndex);
              } else if (textValue !== '') {
                // Even indexes are text
                updateOpCodes.push(textValue);
              }
            }
            updateOpCodes.push(destinationNode << 2 /* I18nUpdateOpCode.SHIFT_REF */ | (attrName ? 1 /* I18nUpdateOpCode.Attr */ : 0 /* I18nUpdateOpCode.Text */));
            if (attrName) {
              updateOpCodes.push(attrName, sanitizeFn);
            }
            updateOpCodes[maskIndex] = mask;
            updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;
            return mask;
          }
          /**
           * Count the number of bindings in the given `opCodes`.
           *
           * It could be possible to speed this up, by passing the number of bindings found back from
           * `generateBindingUpdateOpCodes()` to `i18nAttributesFirstPass()` but this would then require more
           * complexity in the code and/or transient objects to be created.
           *
           * Since this function is only called once when the template is instantiated, is trivial in the
           * first instance (since `opCodes` will be an empty array), and it is not common for elements to
           * contain multiple i18n bound attributes, it seems like this is a reasonable compromise.
           */
          function countBindings(opCodes) {
            let count = 0;
            for (let i = 0; i < opCodes.length; i++) {
              const opCode = opCodes[i];
              // Bindings are negative numbers.
              if (typeof opCode === 'number' && opCode < 0) {
                count++;
              }
            }
            return count;
          }
          /**
           * Convert binding index to mask bit.
           *
           * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make
           * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to
           * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner
           * case is that we will execute binding code more often than necessary. (penalty of performance)
           */
          function toMaskBit(bindingIndex) {
            return 1 << Math.min(bindingIndex, 31);
          }
          function isRootTemplateMessage(subTemplateIndex) {
            return subTemplateIndex === -1;
          }
          /**
           * Removes everything inside the sub-templates of a message.
           */
          function removeInnerTemplateTranslation(message) {
            let match;
            let res = '';
            let index = 0;
            let inTemplate = false;
            let tagMatched;
            while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {
              if (!inTemplate) {
                res += message.substring(index, match.index + match[0].length);
                tagMatched = match[1];
                inTemplate = true;
              } else {
                if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {
                  index = match.index;
                  inTemplate = false;
                }
              }
            }
            ngDevMode && assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation "${message}"`);
            res += message.slice(index);
            return res;
          }
          /**
           * Extracts a part of a message and removes the rest.
           *
           * This method is used for extracting a part of the message associated with a template. A
           * translated message can span multiple templates.
           *
           * Example:
           * ```
           * <div i18n>Translate <span *ngIf>me</span>!</div>
           * ```
           *
           * @param message The message to crop
           * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the
           * external template and removes all sub-templates.
           */
          function getTranslationForTemplate(message, subTemplateIndex) {
            if (isRootTemplateMessage(subTemplateIndex)) {
              // We want the root template message, ignore all sub-templates
              return removeInnerTemplateTranslation(message);
            } else {
              // We want a specific sub-template
              const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;
              const end = message.search(new RegExp(`${MARKER}\\/\\*\\d+:${subTemplateIndex}${MARKER}`));
              return removeInnerTemplateTranslation(message.substring(start, end));
            }
          }
          /**
           * Generate the OpCodes for ICU expressions.
           *
           * @param icuExpression
           * @param index Index where the anchor is stored and an optional `TIcuContainerNode`
           *   - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.
           *   - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)
           */
          function icuStart(tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {
            ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');
            let bindingMask = 0;
            const tIcu = {
              type: icuExpression.type,
              currentCaseLViewIndex: allocExpando(tView, lView, 1, null),
              anchorIdx,
              cases: [],
              create: [],
              remove: [],
              update: []
            };
            addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);
            setTIcu(tView, anchorIdx, tIcu);
            const values = icuExpression.values;
            for (let i = 0; i < values.length; i++) {
              // Each value is an array of strings & other ICU expressions
              const valueArr = values[i];
              const nestedIcus = [];
              for (let j = 0; j < valueArr.length; j++) {
                const value = valueArr[j];
                if (typeof value !== 'string') {
                  // It is an nested ICU expression
                  const icuIndex = nestedIcus.push(value) - 1;
                  // Replace nested ICU expression by a comment node
                  valueArr[j] = `<!--�${icuIndex}�-->`;
                }
              }
              bindingMask = parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) | bindingMask;
            }
            if (bindingMask) {
              addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);
            }
          }
          /**
           * Parses text containing an ICU expression and produces a JSON object for it.
           * Original code from closure library, modified for Angular.
           *
           * @param pattern Text containing an ICU expression that needs to be parsed.
           *
           */
          function parseICUBlock(pattern) {
            const cases = [];
            const values = [];
            let icuType = 1 /* IcuType.plural */;
            let mainBinding = 0;
            pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {
              if (type === 'select') {
                icuType = 0 /* IcuType.select */;
              } else {
                icuType = 1 /* IcuType.plural */;
              }
          
              mainBinding = parseInt(binding.slice(1), 10);
              return '';
            });
            const parts = i18nParseTextIntoPartsAndICU(pattern);
            // Looking for (key block)+ sequence. One of the keys has to be "other".
            for (let pos = 0; pos < parts.length;) {
              let key = parts[pos++].trim();
              if (icuType === 1 /* IcuType.plural */) {
                // Key can be "=x", we just want "x"
                key = key.replace(/\s*(?:=)?(\w+)\s*/, '$1');
              }
              if (key.length) {
                cases.push(key);
              }
              const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);
              if (cases.length > values.length) {
                values.push(blocks);
              }
            }
            // TODO(ocombe): support ICU expressions in attributes, see #21615
            return {
              type: icuType,
              mainBinding: mainBinding,
              cases,
              values
            };
          }
          /**
           * Breaks pattern into strings and top level {...} blocks.
           * Can be used to break a message into text and ICU expressions, or to break an ICU expression
           * into keys and cases. Original code from closure library, modified for Angular.
           *
           * @param pattern (sub)Pattern to be broken.
           * @returns An `Array<string|IcuExpression>` where:
           *   - odd positions: `string` => text between ICU expressions
           *   - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.
           */
          function i18nParseTextIntoPartsAndICU(pattern) {
            if (!pattern) {
              return [];
            }
            let prevPos = 0;
            const braceStack = [];
            const results = [];
            const braces = /[{}]/g;
            // lastIndex doesn't get set to 0 so we have to.
            braces.lastIndex = 0;
            let match;
            while (match = braces.exec(pattern)) {
              const pos = match.index;
              if (match[0] == '}') {
                braceStack.pop();
                if (braceStack.length == 0) {
                  // End of the block.
                  const block = pattern.substring(prevPos, pos);
                  if (ICU_BLOCK_REGEXP.test(block)) {
                    results.push(parseICUBlock(block));
                  } else {
                    results.push(block);
                  }
                  prevPos = pos + 1;
                }
              } else {
                if (braceStack.length == 0) {
                  const substring = pattern.substring(prevPos, pos);
                  results.push(substring);
                  prevPos = pos + 1;
                }
                braceStack.push('{');
              }
            }
            const substring = pattern.substring(prevPos);
            results.push(substring);
            return results;
          }
          /**
           * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.
           *
           */
          function parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {
            const create = [];
            const remove = [];
            const update = [];
            if (ngDevMode) {
              attachDebugGetter(create, icuCreateOpCodesToString);
              attachDebugGetter(remove, i18nRemoveOpCodesToString);
              attachDebugGetter(update, i18nUpdateOpCodesToString);
            }
            tIcu.cases.push(caseName);
            tIcu.create.push(create);
            tIcu.remove.push(remove);
            tIcu.update.push(update);
            const inertBodyHelper = getInertBodyHelper(getDocument());
            const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);
            ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');
            const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;
            if (inertRootNode) {
              return walkIcuTree(tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);
            } else {
              return 0;
            }
          }
          function walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {
            let bindingMask = 0;
            let currentNode = parentNode.firstChild;
            while (currentNode) {
              const newIndex = allocExpando(tView, lView, 1, null);
              switch (currentNode.nodeType) {
                case Node.ELEMENT_NODE:
                  const element = currentNode;
                  const tagName = element.tagName.toLowerCase();
                  if (VALID_ELEMENTS.hasOwnProperty(tagName)) {
                    addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);
                    tView.data[newIndex] = tagName;
                    const elAttrs = element.attributes;
                    for (let i = 0; i < elAttrs.length; i++) {
                      const attr = elAttrs.item(i);
                      const lowerAttrName = attr.name.toLowerCase();
                      const hasBinding = !!attr.value.match(BINDING_REGEXP);
                      // we assume the input string is safe, unless it's using a binding
                      if (hasBinding) {
                        if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {
                          if (URI_ATTRS[lowerAttrName]) {
                            generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, _sanitizeUrl);
                          } else {
                            generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, null);
                          }
                        } else {
                          ngDevMode && console.warn(`WARNING: ignoring unsafe attribute value ` + `${lowerAttrName} on element ${tagName} ` + `(see ${XSS_SECURITY_URL})`);
                        }
                      } else {
                        addCreateAttribute(create, newIndex, attr);
                      }
                    }
                    // Parse the children of this node (if any)
                    bindingMask = walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) | bindingMask;
                    addRemoveNode(remove, newIndex, depth);
                  }
                  break;
                case Node.TEXT_NODE:
                  const value = currentNode.textContent || '';
                  const hasBinding = value.match(BINDING_REGEXP);
                  addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);
                  addRemoveNode(remove, newIndex, depth);
                  if (hasBinding) {
                    bindingMask = generateBindingUpdateOpCodes(update, value, newIndex, null, 0, null) | bindingMask;
                  }
                  break;
                case Node.COMMENT_NODE:
                  // Check if the comment node is a placeholder for a nested ICU
                  const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');
                  if (isNestedIcu) {
                    const nestedIcuIndex = parseInt(isNestedIcu[1], 10);
                    const icuExpression = nestedIcus[nestedIcuIndex];
                    // Create the comment node that will anchor the ICU expression
                    addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);
                    icuStart(tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);
                    addRemoveNestedIcu(remove, newIndex, depth);
                  }
                  break;
              }
              currentNode = currentNode.nextSibling;
            }
            return bindingMask;
          }
          function addRemoveNode(remove, index, depth) {
            if (depth === 0) {
              remove.push(index);
            }
          }
          function addRemoveNestedIcu(remove, index, depth) {
            if (depth === 0) {
              remove.push(~index); // remove ICU at `index`
              remove.push(index); // remove ICU comment at `index`
            }
          }
          
          function addUpdateIcuSwitch(update, icuExpression, index) {
            update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 2 /* I18nUpdateOpCode.IcuSwitch */);
          }
          
          function addUpdateIcuUpdate(update, bindingMask, index) {
            update.push(bindingMask, 1, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 3 /* I18nUpdateOpCode.IcuUpdate */);
          }
          
          function addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {
            if (marker !== null) {
              create.push(marker);
            }
            create.push(text, createAtIdx, icuCreateOpCode(0 /* IcuCreateOpCode.AppendChild */, appendToParentIdx, createAtIdx));
          }
          function addCreateAttribute(create, newIndex, attr) {
            create.push(newIndex << 1 /* IcuCreateOpCode.SHIFT_REF */ | 1 /* IcuCreateOpCode.Attr */, attr.name, attr.value);
          }
          
          // i18nPostprocess consts
          const ROOT_TEMPLATE_ID = 0;
          const PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]/;
          const PP_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g;
          const PP_ICU_VARS_REGEXP = /({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g;
          const PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;
          const PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\d+)?)�/g;
          const PP_CLOSE_TEMPLATE_REGEXP = /\/\*/;
          const PP_TEMPLATE_ID_REGEXP = /\d+\:(\d+)/;
          /**
           * Handles message string post-processing for internationalization.
           *
           * Handles message string post-processing by transforming it from intermediate
           * format (that might contain some markers that we need to replace) to the final
           * form, consumable by i18nStart instruction. Post processing steps include:
           *
           * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
           * 2. Replace all ICU vars (like "VAR_PLURAL")
           * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
           * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
           *    in case multiple ICUs have the same placeholder name
           *
           * @param message Raw translation string for post processing
           * @param replacements Set of replacements that should be applied
           *
           * @returns Transformed string that can be consumed by i18nStart instruction
           *
           * @codeGenApi
           */
          function i18nPostprocess(message, replacements = {}) {
            /**
             * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]
             *
             * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically
             * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root
             * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index
             * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in
             * front of �#6�. The post processing step restores the right order by keeping track of the
             * template id stack and looks for placeholders that belong to the currently active template.
             */
            let result = message;
            if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {
              const matches = {};
              const templateIdsStack = [ROOT_TEMPLATE_ID];
              result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {
                const content = phs || tmpl;
                const placeholders = matches[content] || [];
                if (!placeholders.length) {
                  content.split('|').forEach(placeholder => {
                    const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);
                    const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;
                    const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);
                    placeholders.push([templateId, isCloseTemplateTag, placeholder]);
                  });
                  matches[content] = placeholders;
                }
                if (!placeholders.length) {
                  throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);
                }
                const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];
                let idx = 0;
                // find placeholder index that matches current template id
                for (let i = 0; i < placeholders.length; i++) {
                  if (placeholders[i][0] === currentTemplateId) {
                    idx = i;
                    break;
                  }
                }
                // update template id stack based on the current tag extracted
                const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];
                if (isCloseTemplateTag) {
                  templateIdsStack.pop();
                } else if (currentTemplateId !== templateId) {
                  templateIdsStack.push(templateId);
                }
                // remove processed tag from the list
                placeholders.splice(idx, 1);
                return placeholder;
              });
            }
            // return current result if no replacements specified
            if (!Object.keys(replacements).length) {
              return result;
            }
            /**
             * Step 2: replace all ICU vars (like "VAR_PLURAL")
             */
            result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {
              return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;
            });
            /**
             * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
             */
            result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {
              return replacements.hasOwnProperty(key) ? replacements[key] : match;
            });
            /**
             * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case
             * multiple ICUs have the same placeholder name
             */
            result = result.replace(PP_ICUS_REGEXP, (match, key) => {
              if (replacements.hasOwnProperty(key)) {
                const list = replacements[key];
                if (!list.length) {
                  throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);
                }
                return list.shift();
              }
              return match;
            });
            return result;
          }
          
          /**
           * Marks a block of text as translatable.
           *
           * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.
           * The translation `message` is the value which is locale specific. The translation string may
           * contain placeholders which associate inner elements and sub-templates within the translation.
           *
           * The translation `message` placeholders are:
           * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
           *   interpolated into. The placeholder `index` points to the expression binding index. An optional
           *   `block` that matches the sub-template in which it was declared.
           * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning
           *   and end of DOM element that were embedded in the original translation block. The placeholder
           *   `index` points to the element index in the template instructions set. An optional `block` that
           *   matches the sub-template in which it was declared.
           * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
           *   split up and translated separately in each angular template function. The `index` points to the
           *   `template` instruction index. A `block` that matches the sub-template in which it was declared.
           *
           * @param index A unique index of the translation in the static block.
           * @param messageIndex An index of the translation message from the `def.consts` array.
           * @param subTemplateIndex Optional sub-template index in the `message`.
           *
           * @codeGenApi
           */
          function ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {
            const tView = getTView();
            const lView = getLView();
            const adjustedIndex = HEADER_OFFSET + index;
            ngDevMode && assertDefined(tView, `tView should be defined`);
            const message = getConstant(tView.consts, messageIndex);
            const parentTNode = getCurrentParentTNode();
            if (tView.firstCreatePass) {
              i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);
            }
            // Set a flag that this LView has i18n blocks.
            // The flag is later used to determine whether this component should
            // be hydrated (currently hydration is not supported for i18n blocks).
            if (tView.type === 2 /* TViewType.Embedded */) {
              // Annotate host component's LView (not embedded view's LView),
              // since hydration can be skipped on per-component basis only.
              const componentLView = lView[DECLARATION_COMPONENT_VIEW];
              componentLView[FLAGS] |= 32 /* LViewFlags.HasI18n */;
            } else {
              lView[FLAGS] |= 32 /* LViewFlags.HasI18n */;
            }
          
            const tI18n = tView.data[adjustedIndex];
            const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;
            const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);
            // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.
            // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.
            const insertInFrontOf = parentTNode && parentTNode.type & 8 /* TNodeType.ElementContainer */ ? lView[parentTNode.index] : null;
            applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);
            setInI18nBlock(true);
          }
          /**
           * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes
           * into the render tree, moves the placeholder nodes and removes the deleted nodes.
           *
           * @codeGenApi
           */
          function ɵɵi18nEnd() {
            setInI18nBlock(false);
          }
          /**
           *
           * Use this instruction to create a translation block that doesn't contain any placeholder.
           * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.
           *
           * The translation `message` is the value which is locale specific. The translation string may
           * contain placeholders which associate inner elements and sub-templates within the translation.
           *
           * The translation `message` placeholders are:
           * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
           *   interpolated into. The placeholder `index` points to the expression binding index. An optional
           *   `block` that matches the sub-template in which it was declared.
           * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning
           *   and end of DOM element that were embedded in the original translation block. The placeholder
           *   `index` points to the element index in the template instructions set. An optional `block` that
           *   matches the sub-template in which it was declared.
           * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
           *   split up and translated separately in each angular template function. The `index` points to the
           *   `template` instruction index. A `block` that matches the sub-template in which it was declared.
           *
           * @param index A unique index of the translation in the static block.
           * @param messageIndex An index of the translation message from the `def.consts` array.
           * @param subTemplateIndex Optional sub-template index in the `message`.
           *
           * @codeGenApi
           */
          function ɵɵi18n(index, messageIndex, subTemplateIndex) {
            ɵɵi18nStart(index, messageIndex, subTemplateIndex);
            ɵɵi18nEnd();
          }
          /**
           * Marks a list of attributes as translatable.
           *
           * @param index A unique index in the static block
           * @param values
           *
           * @codeGenApi
           */
          function ɵɵi18nAttributes(index, attrsIndex) {
            const tView = getTView();
            ngDevMode && assertDefined(tView, `tView should be defined`);
            const attrs = getConstant(tView.consts, attrsIndex);
            i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);
          }
          /**
           * Stores the values of the bindings during each update cycle in order to determine if we need to
           * update the translated nodes.
           *
           * @param value The binding's value
           * @returns This function returns itself so that it may be chained
           * (e.g. `i18nExp(ctx.name)(ctx.title)`)
           *
           * @codeGenApi
           */
          function ɵɵi18nExp(value) {
            const lView = getLView();
            setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));
            return ɵɵi18nExp;
          }
          /**
           * Updates a translation block or an i18n attribute when the bindings have changed.
           *
           * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}
           * (i18n attribute) on which it should update the content.
           *
           * @codeGenApi
           */
          function ɵɵi18nApply(index) {
            applyI18n(getTView(), getLView(), index + HEADER_OFFSET);
          }
          /**
           * Handles message string post-processing for internationalization.
           *
           * Handles message string post-processing by transforming it from intermediate
           * format (that might contain some markers that we need to replace) to the final
           * form, consumable by i18nStart instruction. Post processing steps include:
           *
           * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
           * 2. Replace all ICU vars (like "VAR_PLURAL")
           * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
           * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
           *    in case multiple ICUs have the same placeholder name
           *
           * @param message Raw translation string for post processing
           * @param replacements Set of replacements that should be applied
           *
           * @returns Transformed string that can be consumed by i18nStart instruction
           *
           * @codeGenApi
           */
          function ɵɵi18nPostprocess(message, replacements = {}) {
            return i18nPostprocess(message, replacements);
          }
          
          /**
           * Creates runtime data structures for `{#defer}` blocks.
           *
           * @param index The index of the defer block in the data array
           * @param deferredDepsFn Function that contains dependencies for this defer block
           *
           * @codeGenApi
           */
          function ɵɵdefer(index, deferredDepsFn) {
            // TODO: implement runtime logic.
          }
          
          /*
           * This file re-exports all symbols contained in this directory.
           *
           * Why is this file not `index.ts`?
           *
           * There seems to be an inconsistent path resolution of an `index.ts` file
           * when only the parent directory is referenced. This could be due to the
           * node module resolution configuration differing from rollup and/or typescript.
           *
           * With commit
           * https://github.com/angular/angular/commit/d5e3f2c64bd13ce83e7c70788b7fc514ca4a9918
           * the `instructions.ts` file was moved to `instructions/instructions.ts` and an
           * `index.ts` file was used to re-export everything. Having had file names that were
           * importing from `instructions' directly (not the from the sub file or the `index.ts`
           * file) caused strange CI issues. `index.ts` had to be renamed to `all.ts` for this
           * to work.
           *
           * Jira Issue = FW-1184
           */
          
          /**
           * Resolves the providers which are defined in the DirectiveDef.
           *
           * When inserting the tokens and the factories in their respective arrays, we can assume that
           * this method is called first for the component (if any), and then for other directives on the same
           * node.
           * As a consequence,the providers are always processed in that order:
           * 1) The view providers of the component
           * 2) The providers of the component
           * 3) The providers of the other directives
           * This matches the structure of the injectables arrays of a view (for each node).
           * So the tokens and the factories can be pushed at the end of the arrays, except
           * in one case for multi providers.
           *
           * @param def the directive definition
           * @param providers: Array of `providers`.
           * @param viewProviders: Array of `viewProviders`.
           */
          function providersResolver(def, providers, viewProviders) {
            const tView = getTView();
            if (tView.firstCreatePass) {
              const isComponent = isComponentDef(def);
              // The list of view providers is processed first, and the flags are updated
              resolveProvider(viewProviders, tView.data, tView.blueprint, isComponent, true);
              // Then, the list of providers is processed, and the flags are updated
              resolveProvider(providers, tView.data, tView.blueprint, isComponent, false);
            }
          }
          /**
           * Resolves a provider and publishes it to the DI system.
           */
          function resolveProvider(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {
            provider = resolveForwardRef(provider);
            if (Array.isArray(provider)) {
              // Recursively call `resolveProvider`
              // Recursion is OK in this case because this code will not be in hot-path once we implement
              // cloning of the initial state.
              for (let i = 0; i < provider.length; i++) {
                resolveProvider(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);
              }
            } else {
              const tView = getTView();
              const lView = getLView();
              const tNode = getCurrentTNode();
              let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);
              const providerFactory = providerToFactory(provider);
              if (ngDevMode) {
                const injector = new NodeInjector(tNode, lView);
                runInInjectorProfilerContext(injector, token, () => {
                  emitProviderConfiguredEvent(provider, isViewProvider);
                });
              }
              const beginIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;
              const endIndex = tNode.directiveStart;
              const cptViewProvidersCount = tNode.providerIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;
              if (isTypeProvider(provider) || !provider.multi) {
                // Single provider case: the factory is created and pushed immediately
                const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);
                const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);
                if (existingFactoryIndex === -1) {
                  diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);
                  registerDestroyHooksIfSupported(tView, provider, tInjectables.length);
                  tInjectables.push(token);
                  tNode.directiveStart++;
                  tNode.directiveEnd++;
                  if (isViewProvider) {
                    tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;
                  }
          
                  lInjectablesBlueprint.push(factory);
                  lView.push(factory);
                } else {
                  lInjectablesBlueprint[existingFactoryIndex] = factory;
                  lView[existingFactoryIndex] = factory;
                }
              } else {
                // Multi provider case:
                // We create a multi factory which is going to aggregate all the values.
                // Since the output of such a factory depends on content or view injection,
                // we create two of them, which are linked together.
                //
                // The first one (for view providers) is always in the first block of the injectables array,
                // and the second one (for providers) is always in the second block.
                // This is important because view providers have higher priority. When a multi token
                // is being looked up, the view providers should be found first.
                // Note that it is not possible to have a multi factory in the third block (directive block).
                //
                // The algorithm to process multi providers is as follows:
                // 1) If the multi provider comes from the `viewProviders` of the component:
                //   a) If the special view providers factory doesn't exist, it is created and pushed.
                //   b) Else, the multi provider is added to the existing multi factory.
                // 2) If the multi provider comes from the `providers` of the component or of another
                // directive:
                //   a) If the multi factory doesn't exist, it is created and provider pushed into it.
                //      It is also linked to the multi factory for view providers, if it exists.
                //   b) Else, the multi provider is added to the existing multi factory.
                const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);
                const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);
                const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingProvidersFactoryIndex];
                const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingViewProvidersFactoryIndex];
                if (isViewProvider && !doesViewProvidersFactoryExist || !isViewProvider && !doesProvidersFactoryExist) {
                  // Cases 1.a and 2.a
                  diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);
                  const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);
                  if (!isViewProvider && doesViewProvidersFactoryExist) {
                    lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;
                  }
                  registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);
                  tInjectables.push(token);
                  tNode.directiveStart++;
                  tNode.directiveEnd++;
                  if (isViewProvider) {
                    tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;
                  }
          
                  lInjectablesBlueprint.push(factory);
                  lView.push(factory);
                } else {
                  // Cases 1.b and 2.b
                  const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex : existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);
                  registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex : existingViewProvidersFactoryIndex, indexInFactory);
                }
                if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {
                  lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;
                }
              }
            }
          }
          /**
           * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.
           * @param tView `TView` in which to register the hook.
           * @param provider Provider whose hook should be registered.
           * @param contextIndex Index under which to find the context for the hook when it's being invoked.
           * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi
           * provider factory.
           */
          function registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {
            const providerIsTypeProvider = isTypeProvider(provider);
            const providerIsClassProvider = isClassProvider(provider);
            if (providerIsTypeProvider || providerIsClassProvider) {
              // Resolve forward references as `useClass` can hold a forward reference.
              const classToken = providerIsClassProvider ? resolveForwardRef(provider.useClass) : provider;
              const prototype = classToken.prototype;
              const ngOnDestroy = prototype.ngOnDestroy;
              if (ngOnDestroy) {
                const hooks = tView.destroyHooks || (tView.destroyHooks = []);
                if (!providerIsTypeProvider && provider.multi) {
                  ngDevMode && assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');
                  const existingCallbacksIndex = hooks.indexOf(contextIndex);
                  if (existingCallbacksIndex === -1) {
                    hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);
                  } else {
                    hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);
                  }
                } else {
                  hooks.push(contextIndex, ngOnDestroy);
                }
              }
            }
          }
          /**
           * Add a factory in a multi factory.
           * @returns Index at which the factory was inserted.
           */
          function multiFactoryAdd(multiFactory, factory, isComponentProvider) {
            if (isComponentProvider) {
              multiFactory.componentProviders++;
            }
            return multiFactory.multi.push(factory) - 1;
          }
          /**
           * Returns the index of item in the array, but only in the begin to end range.
           */
          function indexOf(item, arr, begin, end) {
            for (let i = begin; i < end; i++) {
              if (arr[i] === item) return i;
            }
            return -1;
          }
          /**
           * Use this with `multi` `providers`.
           */
          function multiProvidersFactoryResolver(_, tData, lData, tNode) {
            return multiResolve(this.multi, []);
          }
          /**
           * Use this with `multi` `viewProviders`.
           *
           * This factory knows how to concatenate itself with the existing `multi` `providers`.
           */
          function multiViewProvidersFactoryResolver(_, tData, lView, tNode) {
            const factories = this.multi;
            let result;
            if (this.providerFactory) {
              const componentCount = this.providerFactory.componentProviders;
              const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);
              // Copy the section of the array which contains `multi` `providers` from the component
              result = multiProviders.slice(0, componentCount);
              // Insert the `viewProvider` instances.
              multiResolve(factories, result);
              // Copy the section of the array which contains `multi` `providers` from other directives
              for (let i = componentCount; i < multiProviders.length; i++) {
                result.push(multiProviders[i]);
              }
            } else {
              result = [];
              // Insert the `viewProvider` instances.
              multiResolve(factories, result);
            }
            return result;
          }
          /**
           * Maps an array of factories into an array of values.
           */
          function multiResolve(factories, result) {
            for (let i = 0; i < factories.length; i++) {
              const factory = factories[i];
              result.push(factory());
            }
            return result;
          }
          /**
           * Creates a multi factory.
           */
          function multiFactory(factoryFn, index, isViewProvider, isComponent, f) {
            const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);
            factory.multi = [];
            factory.index = index;
            factory.componentProviders = 0;
            multiFactoryAdd(factory, f, isComponent && !isViewProvider);
            return factory;
          }
          
          /**
           * This feature resolves the providers of a directive (or component),
           * and publish them into the DI system, making it visible to others for injection.
           *
           * For example:
           * ```ts
           * class ComponentWithProviders {
           *   constructor(private greeter: GreeterDE) {}
           *
           *   static ɵcmp = defineComponent({
           *     type: ComponentWithProviders,
           *     selectors: [['component-with-providers']],
           *    factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),
           *    decls: 1,
           *    vars: 1,
           *    template: function(fs: RenderFlags, ctx: ComponentWithProviders) {
           *      if (fs & RenderFlags.Create) {
           *        ɵɵtext(0);
           *      }
           *      if (fs & RenderFlags.Update) {
           *        ɵɵtextInterpolate(ctx.greeter.greet());
           *      }
           *    },
           *    features: [ɵɵProvidersFeature([GreeterDE])]
           *  });
           * }
           * ```
           *
           * @param definition
           *
           * @codeGenApi
           */
          function ɵɵProvidersFeature(providers, viewProviders = []) {
            return definition => {
              definition.providersResolver = (def, processProvidersFn) => {
                return providersResolver(def,
                //
                processProvidersFn ? processProvidersFn(providers) : providers,
                //
                viewProviders);
              };
            };
          }
          
          /**
           * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
           * Provides access to the `NgModule` instance and related objects.
           *
           * @publicApi
           */
          class NgModuleRef$1 {}
          /**
           * @publicApi
           *
           * @deprecated
           * This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy
           * JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)
           * for additional context. Angular provides APIs that accept NgModule classes directly (such as
           * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and
           * [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of
           * using factory-based ones.
           */
          class NgModuleFactory$1 {}
          
          /**
           * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
           *
           * @param ngModule NgModule class.
           * @param parentInjector Optional injector instance to use as a parent for the module injector. If
           *     not provided, `NullInjector` will be used instead.
           * @returns NgModuleRef that represents an NgModule instance.
           *
           * @publicApi
           */
          function createNgModule(ngModule, parentInjector) {
            return new NgModuleRef(ngModule, parentInjector ?? null, []);
          }
          /**
           * The `createNgModule` function alias for backwards-compatibility.
           * Please avoid using it directly and use `createNgModule` instead.
           *
           * @deprecated Use `createNgModule` instead.
           */
          const createNgModuleRef = createNgModule;
          class NgModuleRef extends NgModuleRef$1 {
            constructor(ngModuleType, _parent, additionalProviders) {
              super();
              this._parent = _parent;
              // tslint:disable-next-line:require-internal-with-underscore
              this._bootstrapComponents = [];
              this.destroyCbs = [];
              // When bootstrapping a module we have a dependency graph that looks like this:
              // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the
              // module being resolved tries to inject the ComponentFactoryResolver, it'll create a
              // circular dependency which will result in a runtime error, because the injector doesn't
              // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves
              // and providing it, rather than letting the injector resolve it.
              this.componentFactoryResolver = new ComponentFactoryResolver(this);
              const ngModuleDef = getNgModuleDef(ngModuleType);
              ngDevMode && assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);
              this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);
              this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [{
                provide: NgModuleRef$1,
                useValue: this
              }, {
                provide: ComponentFactoryResolver$1,
                useValue: this.componentFactoryResolver
              }, ...additionalProviders], stringify(ngModuleType), new Set(['environment']));
              // We need to resolve the injector types separately from the injector creation, because
              // the module might be trying to use this ref in its constructor for DI which will cause a
              // circular error that will eventually error out, because the injector isn't created yet.
              this._r3Injector.resolveInjectorInitializers();
              this.instance = this._r3Injector.get(ngModuleType);
            }
            get injector() {
              return this._r3Injector;
            }
            destroy() {
              ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
              const injector = this._r3Injector;
              !injector.destroyed && injector.destroy();
              this.destroyCbs.forEach(fn => fn());
              this.destroyCbs = null;
            }
            onDestroy(callback) {
              ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
              this.destroyCbs.push(callback);
            }
          }
          class NgModuleFactory extends NgModuleFactory$1 {
            constructor(moduleType) {
              super();
              this.moduleType = moduleType;
            }
            create(parentInjector) {
              return new NgModuleRef(this.moduleType, parentInjector, []);
            }
          }
          function createNgModuleRefWithProviders(moduleType, parentInjector, additionalProviders) {
            return new NgModuleRef(moduleType, parentInjector, additionalProviders);
          }
          class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
            constructor(config) {
              super();
              this.componentFactoryResolver = new ComponentFactoryResolver(this);
              this.instance = null;
              const injector = new R3Injector([...config.providers, {
                provide: NgModuleRef$1,
                useValue: this
              }, {
                provide: ComponentFactoryResolver$1,
                useValue: this.componentFactoryResolver
              }], config.parent || getNullInjector(), config.debugName, new Set(['environment']));
              this.injector = injector;
              if (config.runEnvironmentInitializers) {
                injector.resolveInjectorInitializers();
              }
            }
            destroy() {
              this.injector.destroy();
            }
            onDestroy(callback) {
              this.injector.onDestroy(callback);
            }
          }
          /**
           * Create a new environment injector.
           *
           * Learn more about environment injectors in
           * [this guide](guide/standalone-components#environment-injectors).
           *
           * @param providers An array of providers.
           * @param parent A parent environment injector.
           * @param debugName An optional name for this injector instance, which will be used in error
           *     messages.
           *
           * @publicApi
           */
          function createEnvironmentInjector(providers, parent, debugName = null) {
            const adapter = new EnvironmentNgModuleRefAdapter({
              providers,
              parent,
              debugName,
              runEnvironmentInitializers: true
            });
            return adapter.injector;
          }
          
          /**
           * A service used by the framework to create instances of standalone injectors. Those injectors are
           * created on demand in case of dynamic component instantiation and contain ambient providers
           * collected from the imports graph rooted at a given standalone component.
           */
          class StandaloneService {
            constructor(_injector) {
              this._injector = _injector;
              this.cachedInjectors = new Map();
            }
            getOrCreateStandaloneInjector(componentDef) {
              if (!componentDef.standalone) {
                return null;
              }
              if (!this.cachedInjectors.has(componentDef)) {
                const providers = internalImportProvidersFrom(false, componentDef.type);
                const standaloneInjector = providers.length > 0 ? createEnvironmentInjector([providers], this._injector, `Standalone[${componentDef.type.name}]`) : null;
                this.cachedInjectors.set(componentDef, standaloneInjector);
              }
              return this.cachedInjectors.get(componentDef);
            }
            ngOnDestroy() {
              try {
                for (const injector of this.cachedInjectors.values()) {
                  if (injector !== null) {
                    injector.destroy();
                  }
                }
              } finally {
                this.cachedInjectors.clear();
              }
            }
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: StandaloneService,
                providedIn: 'environment',
                factory: () => new StandaloneService(ɵɵinject(EnvironmentInjector))
              });
            }
          }
          /**
           * A feature that acts as a setup code for the {@link StandaloneService}.
           *
           * The most important responsibility of this feature is to expose the "getStandaloneInjector"
           * function (an entry points to a standalone injector creation) on a component definition object. We
           * go through the features infrastructure to make sure that the standalone injector creation logic
           * is tree-shakable and not included in applications that don't use standalone components.
           *
           * @codeGenApi
           */
          function ɵɵStandaloneFeature(definition) {
            definition.getStandaloneInjector = parentInjector => {
              return parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(definition);
            };
          }
          
          /**
           * Retrieves the component instance associated with a given DOM element.
           *
           * @usageNotes
           * Given the following DOM structure:
           *
           * ```html
           * <app-root>
           *   <div>
           *     <child-comp></child-comp>
           *   </div>
           * </app-root>
           * ```
           *
           * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
           * associated with this DOM element.
           *
           * Calling the function on `<app-root>` will return the `MyApp` instance.
           *
           *
           * @param element DOM element from which the component should be retrieved.
           * @returns Component instance associated with the element or `null` if there
           *    is no component associated with it.
           *
           * @publicApi
           * @globalApi ng
           */
          function getComponent(element) {
            ngDevMode && assertDomElement(element);
            const context = getLContext(element);
            if (context === null) return null;
            if (context.component === undefined) {
              const lView = context.lView;
              if (lView === null) {
                return null;
              }
              context.component = getComponentAtNodeIndex(context.nodeIndex, lView);
            }
            return context.component;
          }
          /**
           * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded
           * view that the element is part of. Otherwise retrieves the instance of the component whose view
           * owns the element (in this case, the result is the same as calling `getOwningComponent`).
           *
           * @param element Element for which to get the surrounding component instance.
           * @returns Instance of the component that is around the element or null if the element isn't
           *    inside any component.
           *
           * @publicApi
           * @globalApi ng
           */
          function getContext(element) {
            assertDomElement(element);
            const context = getLContext(element);
            const lView = context ? context.lView : null;
            return lView === null ? null : lView[CONTEXT];
          }
          /**
           * Retrieves the component instance whose view contains the DOM element.
           *
           * For example, if `<child-comp>` is used in the template of `<app-comp>`
           * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`
           * would return `<app-comp>`.
           *
           * @param elementOrDir DOM element, component or directive instance
           *    for which to retrieve the root components.
           * @returns Component instance whose view owns the DOM element or null if the element is not
           *    part of a component view.
           *
           * @publicApi
           * @globalApi ng
           */
          function getOwningComponent(elementOrDir) {
            const context = getLContext(elementOrDir);
            let lView = context ? context.lView : null;
            if (lView === null) return null;
            let parent;
            while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {
              lView = parent;
            }
            return lView[FLAGS] & 512 /* LViewFlags.IsRoot */ ? null : lView[CONTEXT];
          }
          /**
           * Retrieves all root components associated with a DOM element, directive or component instance.
           * Root components are those which have been bootstrapped by Angular.
           *
           * @param elementOrDir DOM element, component or directive instance
           *    for which to retrieve the root components.
           * @returns Root components associated with the target object.
           *
           * @publicApi
           * @globalApi ng
           */
          function getRootComponents(elementOrDir) {
            const lView = readPatchedLView(elementOrDir);
            return lView !== null ? [getRootContext(lView)] : [];
          }
          /**
           * Retrieves an `Injector` associated with an element, component or directive instance.
           *
           * @param elementOrDir DOM element, component or directive instance for which to
           *    retrieve the injector.
           * @returns Injector associated with the element, component or directive instance.
           *
           * @publicApi
           * @globalApi ng
           */
          function getInjector(elementOrDir) {
            const context = getLContext(elementOrDir);
            const lView = context ? context.lView : null;
            if (lView === null) return Injector.NULL;
            const tNode = lView[TVIEW].data[context.nodeIndex];
            return new NodeInjector(tNode, lView);
          }
          /**
           * Retrieve a set of injection tokens at a given DOM node.
           *
           * @param element Element for which the injection tokens should be retrieved.
           */
          function getInjectionTokens(element) {
            const context = getLContext(element);
            const lView = context ? context.lView : null;
            if (lView === null) return [];
            const tView = lView[TVIEW];
            const tNode = tView.data[context.nodeIndex];
            const providerTokens = [];
            const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;
            const endIndex = tNode.directiveEnd;
            for (let i = startIndex; i < endIndex; i++) {
              let value = tView.data[i];
              if (isDirectiveDefHack(value)) {
                // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a
                // design flaw.  We should always store same type so that we can be monomorphic. The issue
                // is that for Components/Directives we store the def instead the type. The correct behavior
                // is that we should always be storing injectable type in this location.
                value = value.type;
              }
              providerTokens.push(value);
            }
            return providerTokens;
          }
          /**
           * Retrieves directive instances associated with a given DOM node. Does not include
           * component instances.
           *
           * @usageNotes
           * Given the following DOM structure:
           *
           * ```html
           * <app-root>
           *   <button my-button></button>
           *   <my-comp></my-comp>
           * </app-root>
           * ```
           *
           * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`
           * directive that is associated with the DOM node.
           *
           * Calling `getDirectives` on `<my-comp>` will return an empty array.
           *
           * @param node DOM node for which to get the directives.
           * @returns Array of directives associated with the node.
           *
           * @publicApi
           * @globalApi ng
           */
          function getDirectives(node) {
            // Skip text nodes because we can't have directives associated with them.
            if (node instanceof Text) {
              return [];
            }
            const context = getLContext(node);
            const lView = context ? context.lView : null;
            if (lView === null) {
              return [];
            }
            const tView = lView[TVIEW];
            const nodeIndex = context.nodeIndex;
            if (!tView?.data[nodeIndex]) {
              return [];
            }
            if (context.directives === undefined) {
              context.directives = getDirectivesAtNodeIndex(nodeIndex, lView);
            }
            // The `directives` in this case are a named array called `LComponentView`. Clone the
            // result so we don't expose an internal data structure in the user's console.
            return context.directives === null ? [] : [...context.directives];
          }
          /**
           * Returns the debug (partial) metadata for a particular directive or component instance.
           * The function accepts an instance of a directive or component and returns the corresponding
           * metadata.
           *
           * @param directiveOrComponentInstance Instance of a directive or component
           * @returns metadata of the passed directive or component
           *
           * @publicApi
           * @globalApi ng
           */
          function getDirectiveMetadata$1(directiveOrComponentInstance) {
            const {
              constructor
            } = directiveOrComponentInstance;
            if (!constructor) {
              throw new Error('Unable to find the instance constructor');
            }
            // In case a component inherits from a directive, we may have component and directive metadata
            // To ensure we don't get the metadata of the directive, we want to call `getComponentDef` first.
            const componentDef = getComponentDef(constructor);
            if (componentDef) {
              return {
                inputs: componentDef.inputs,
                outputs: componentDef.outputs,
                encapsulation: componentDef.encapsulation,
                changeDetection: componentDef.onPush ? ChangeDetectionStrategy.OnPush : ChangeDetectionStrategy.Default
              };
            }
            const directiveDef = getDirectiveDef(constructor);
            if (directiveDef) {
              return {
                inputs: directiveDef.inputs,
                outputs: directiveDef.outputs
              };
            }
            return null;
          }
          /**
           * Retrieve map of local references.
           *
           * The references are retrieved as a map of local reference name to element or directive instance.
           *
           * @param target DOM element, component or directive instance for which to retrieve
           *    the local references.
           */
          function getLocalRefs(target) {
            const context = getLContext(target);
            if (context === null) return {};
            if (context.localRefs === undefined) {
              const lView = context.lView;
              if (lView === null) {
                return {};
              }
              context.localRefs = discoverLocalRefs(lView, context.nodeIndex);
            }
            return context.localRefs || {};
          }
          /**
           * Retrieves the host element of a component or directive instance.
           * The host element is the DOM element that matched the selector of the directive.
           *
           * @param componentOrDirective Component or directive instance for which the host
           *     element should be retrieved.
           * @returns Host element of the target.
           *
           * @publicApi
           * @globalApi ng
           */
          function getHostElement(componentOrDirective) {
            return getLContext(componentOrDirective).native;
          }
          /**
           * Retrieves the rendered text for a given component.
           *
           * This function retrieves the host element of a component and
           * and then returns the `textContent` for that element. This implies
           * that the text returned will include re-projected content of
           * the component as well.
           *
           * @param component The component to return the content text for.
           */
          function getRenderedText(component) {
            const hostElement = getHostElement(component);
            return hostElement.textContent || '';
          }
          /**
           * Retrieves a list of event listeners associated with a DOM element. The list does include host
           * listeners, but it does not include event listeners defined outside of the Angular context
           * (e.g. through `addEventListener`).
           *
           * @usageNotes
           * Given the following DOM structure:
           *
           * ```html
           * <app-root>
           *   <div (click)="doSomething()"></div>
           * </app-root>
           * ```
           *
           * Calling `getListeners` on `<div>` will return an object that looks as follows:
           *
           * ```ts
           * {
           *   name: 'click',
           *   element: <div>,
           *   callback: () => doSomething(),
           *   useCapture: false
           * }
           * ```
           *
           * @param element Element for which the DOM listeners should be retrieved.
           * @returns Array of event listeners on the DOM element.
           *
           * @publicApi
           * @globalApi ng
           */
          function getListeners(element) {
            ngDevMode && assertDomElement(element);
            const lContext = getLContext(element);
            const lView = lContext === null ? null : lContext.lView;
            if (lView === null) return [];
            const tView = lView[TVIEW];
            const lCleanup = lView[CLEANUP];
            const tCleanup = tView.cleanup;
            const listeners = [];
            if (tCleanup && lCleanup) {
              for (let i = 0; i < tCleanup.length;) {
                const firstParam = tCleanup[i++];
                const secondParam = tCleanup[i++];
                if (typeof firstParam === 'string') {
                  const name = firstParam;
                  const listenerElement = unwrapRNode(lView[secondParam]);
                  const callback = lCleanup[tCleanup[i++]];
                  const useCaptureOrIndx = tCleanup[i++];
                  // if useCaptureOrIndx is boolean then report it as is.
                  // if useCaptureOrIndx is positive number then it in unsubscribe method
                  // if useCaptureOrIndx is negative number then it is a Subscription
                  const type = typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0 ? 'dom' : 'output';
                  const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;
                  if (element == listenerElement) {
                    listeners.push({
                      element,
                      name,
                      callback,
                      useCapture,
                      type
                    });
                  }
                }
              }
            }
            listeners.sort(sortListeners);
            return listeners;
          }
          function sortListeners(a, b) {
            if (a.name == b.name) return 0;
            return a.name < b.name ? -1 : 1;
          }
          /**
           * This function should not exist because it is megamorphic and only mostly correct.
           *
           * See call site for more info.
           */
          function isDirectiveDefHack(obj) {
            return obj.type !== undefined && obj.declaredInputs !== undefined && obj.findHostDirectiveDefs !== undefined;
          }
          /**
           * Retrieve the component `LView` from component/element.
           *
           * NOTE: `LView` is a private and should not be leaked outside.
           *       Don't export this method to `ng.*` on window.
           *
           * @param target DOM element or component instance for which to retrieve the LView.
           */
          function getComponentLView(target) {
            const lContext = getLContext(target);
            const nodeIndx = lContext.nodeIndex;
            const lView = lContext.lView;
            ngDevMode && assertLView(lView);
            const componentLView = lView[nodeIndx];
            ngDevMode && assertLView(componentLView);
            return componentLView;
          }
          /** Asserts that a value is a DOM Element. */
          function assertDomElement(value) {
            if (typeof Element !== 'undefined' && !(value instanceof Element)) {
              throw new Error('Expecting instance of DOM Element');
            }
          }
          
          /**
           * Adds decorator, constructor, and property metadata to a given type via static metadata fields
           * on the type.
           *
           * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.
           *
           * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments
           * being tree-shaken away during production builds.
           */
          function setClassMetadata(type, decorators, ctorParameters, propDecorators) {
            return noSideEffects(() => {
              const clazz = type;
              if (decorators !== null) {
                if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {
                  clazz.decorators.push(...decorators);
                } else {
                  clazz.decorators = decorators;
                }
              }
              if (ctorParameters !== null) {
                // Rather than merging, clobber the existing parameters. If other projects exist which
                // use tsickle-style annotations and reflect over them in the same way, this could
                // cause issues, but that is vanishingly unlikely.
                clazz.ctorParameters = ctorParameters;
              }
              if (propDecorators !== null) {
                // The property decorator objects are merged as it is possible different fields have
                // different decorator types. Decorators on individual fields are not merged, as it's
                // also incredibly unlikely that a field will be decorated both with an Angular
                // decorator and a non-Angular decorator that's also been downleveled.
                if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {
                  clazz.propDecorators = {
                    ...clazz.propDecorators,
                    ...propDecorators
                  };
                } else {
                  clazz.propDecorators = propDecorators;
                }
              }
            });
          }
          
          /**
           * Bindings for pure functions are stored after regular bindings.
           *
           * |-------decls------|---------vars---------|                 |----- hostVars (dir1) ------|
           * ------------------------------------------------------------------------------------------
           * | nodes/refs/pipes | bindings | fn slots  | injector | dir1 | host bindings | host slots |
           * ------------------------------------------------------------------------------------------
           *                    ^                      ^
           *      TView.bindingStartIndex      TView.expandoStartIndex
           *
           * Pure function instructions are given an offset from the binding root. Adding the offset to the
           * binding root gives the first index where the bindings are stored. In component views, the binding
           * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +
           * any directive instances + any hostVars in directives evaluated before it.
           *
           * See VIEW_DATA.md for more information about host binding resolution.
           */
          /**
           * If the value hasn't been saved, calls the pure function to store and return the
           * value. If it has been saved, returns the saved value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn Function that returns a value
           * @param thisArg Optional calling context of pureFn
           * @returns value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction0(slotOffset, pureFn, thisArg) {
            const bindingIndex = getBindingRoot() + slotOffset;
            const lView = getLView();
            return lView[bindingIndex] === NO_CHANGE ? updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) : getBinding(lView, bindingIndex);
          }
          /**
           * If the value of the provided exp has changed, calls the pure function to return
           * an updated value. Or if the value has not changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn Function that returns an updated value
           * @param exp Updated expression value
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {
            return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {
            return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
            return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
            return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param exp5
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {
            const bindingIndex = getBindingRoot() + slotOffset;
            const lView = getLView();
            const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
            return bindingUpdated(lView, bindingIndex + 4, exp5) || different ? updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) : pureFn(exp1, exp2, exp3, exp4, exp5)) : getBinding(lView, bindingIndex + 5);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param exp5
           * @param exp6
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {
            const bindingIndex = getBindingRoot() + slotOffset;
            const lView = getLView();
            const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
            return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ? updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) : getBinding(lView, bindingIndex + 6);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param exp5
           * @param exp6
           * @param exp7
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {
            const bindingIndex = getBindingRoot() + slotOffset;
            const lView = getLView();
            let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
            return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ? updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) : getBinding(lView, bindingIndex + 7);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param exp5
           * @param exp6
           * @param exp7
           * @param exp8
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {
            const bindingIndex = getBindingRoot() + slotOffset;
            const lView = getLView();
            const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
            return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ? updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) : getBinding(lView, bindingIndex + 8);
          }
          /**
           * pureFunction instruction that can support any number of bindings.
           *
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn A pure function that takes binding values and builds an object or array
           * containing those values.
           * @param exps An array of binding values
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           * @codeGenApi
           */
          function ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {
            return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);
          }
          /**
           * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized
           * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first
           * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE
           * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert
           * it to `undefined`.
           */
          function getPureFunctionReturnValue(lView, returnValueIndex) {
            ngDevMode && assertIndexInRange(lView, returnValueIndex);
            const lastReturnValue = lView[returnValueIndex];
            return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;
          }
          /**
           * If the value of the provided exp has changed, calls the pure function to return
           * an updated value. Or if the value has not changed, returns cached value.
           *
           * @param lView LView in which the function is being executed.
           * @param bindingRoot Binding root index.
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn Function that returns an updated value
           * @param exp Updated expression value
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           */
          function pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {
            const bindingIndex = bindingRoot + slotOffset;
            return bindingUpdated(lView, bindingIndex, exp) ? updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) : getPureFunctionReturnValue(lView, bindingIndex + 1);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param lView LView in which the function is being executed.
           * @param bindingRoot Binding root index.
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           */
          function pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {
            const bindingIndex = bindingRoot + slotOffset;
            return bindingUpdated2(lView, bindingIndex, exp1, exp2) ? updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) : getPureFunctionReturnValue(lView, bindingIndex + 2);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param lView LView in which the function is being executed.
           * @param bindingRoot Binding root index.
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           */
          function pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
            const bindingIndex = bindingRoot + slotOffset;
            return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ? updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) : getPureFunctionReturnValue(lView, bindingIndex + 3);
          }
          /**
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param lView LView in which the function is being executed.
           * @param bindingRoot Binding root index.
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn
           * @param exp1
           * @param exp2
           * @param exp3
           * @param exp4
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           *
           */
          function pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
            const bindingIndex = bindingRoot + slotOffset;
            return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ? updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) : getPureFunctionReturnValue(lView, bindingIndex + 4);
          }
          /**
           * pureFunction instruction that can support any number of bindings.
           *
           * If the value of any provided exp has changed, calls the pure function to return
           * an updated value. Or if no values have changed, returns cached value.
           *
           * @param lView LView in which the function is being executed.
           * @param bindingRoot Binding root index.
           * @param slotOffset the offset from binding root to the reserved slot
           * @param pureFn A pure function that takes binding values and builds an object or array
           * containing those values.
           * @param exps An array of binding values
           * @param thisArg Optional calling context of pureFn
           * @returns Updated or cached value
           */
          function pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {
            let bindingIndex = bindingRoot + slotOffset;
            let different = false;
            for (let i = 0; i < exps.length; i++) {
              bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);
            }
            return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) : getPureFunctionReturnValue(lView, bindingIndex);
          }
          
          /**
           * Create a pipe.
           *
           * @param index Pipe index where the pipe will be stored.
           * @param pipeName The name of the pipe
           * @returns T the instance of the pipe.
           *
           * @codeGenApi
           */
          function ɵɵpipe(index, pipeName) {
            const tView = getTView();
            let pipeDef;
            const adjustedIndex = index + HEADER_OFFSET;
            if (tView.firstCreatePass) {
              // The `getPipeDef` throws if a pipe with a given name is not found
              // (so we use non-null assertion below).
              pipeDef = getPipeDef(pipeName, tView.pipeRegistry);
              tView.data[adjustedIndex] = pipeDef;
              if (pipeDef.onDestroy) {
                (tView.destroyHooks ??= []).push(adjustedIndex, pipeDef.onDestroy);
              }
            } else {
              pipeDef = tView.data[adjustedIndex];
            }
            const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));
            let previousInjectorProfilerContext;
            if (ngDevMode) {
              previousInjectorProfilerContext = setInjectorProfilerContext({
                injector: new NodeInjector(getCurrentTNode(), getLView()),
                token: pipeDef.type
              });
            }
            const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);
            try {
              // DI for pipes is supposed to behave like directives when placed on a component
              // host node, which means that we have to disable access to `viewProviders`.
              const previousIncludeViewProviders = setIncludeViewProviders(false);
              const pipeInstance = pipeFactory();
              setIncludeViewProviders(previousIncludeViewProviders);
              store(tView, getLView(), adjustedIndex, pipeInstance);
              return pipeInstance;
            } finally {
              // we have to restore the injector implementation in finally, just in case the creation of the
              // pipe throws an error.
              setInjectImplementation(previousInjectImplementation);
              ngDevMode && setInjectorProfilerContext(previousInjectorProfilerContext);
            }
          }
          /**
           * Searches the pipe registry for a pipe with the given name. If one is found,
           * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.
           *
           * @param name Name of pipe to resolve
           * @param registry Full list of available pipes
           * @returns Matching PipeDef
           */
          function getPipeDef(name, registry) {
            if (registry) {
              if (ngDevMode) {
                const pipes = registry.filter(pipe => pipe.name === name);
                // TODO: Throw an error in the next major
                if (pipes.length > 1) {
                  console.warn(formatRuntimeError(313 /* RuntimeErrorCode.MULTIPLE_MATCHING_PIPES */, getMultipleMatchingPipesMessage(name)));
                }
              }
              for (let i = registry.length - 1; i >= 0; i--) {
                const pipeDef = registry[i];
                if (name === pipeDef.name) {
                  return pipeDef;
                }
              }
            }
            if (ngDevMode) {
              throw new RuntimeError(-302 /* RuntimeErrorCode.PIPE_NOT_FOUND */, getPipeNotFoundErrorMessage(name));
            }
          }
          /**
           * Generates a helpful error message for the user when multiple pipes match the name.
           *
           * @param name Name of the pipe
           * @returns The error message
           */
          function getMultipleMatchingPipesMessage(name) {
            const lView = getLView();
            const declarationLView = lView[DECLARATION_COMPONENT_VIEW];
            const context = declarationLView[CONTEXT];
            const hostIsStandalone = isHostComponentStandalone(lView);
            const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';
            const verifyMessage = `check ${hostIsStandalone ? '\'@Component.imports\' of this component' : 'the imports of this module'}`;
            const errorMessage = `Multiple pipes match the name \`${name}\`${componentInfoMessage}. ${verifyMessage}`;
            return errorMessage;
          }
          /**
           * Generates a helpful error message for the user when a pipe is not found.
           *
           * @param name Name of the missing pipe
           * @returns The error message
           */
          function getPipeNotFoundErrorMessage(name) {
            const lView = getLView();
            const declarationLView = lView[DECLARATION_COMPONENT_VIEW];
            const context = declarationLView[CONTEXT];
            const hostIsStandalone = isHostComponentStandalone(lView);
            const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';
            const verifyMessage = `Verify that it is ${hostIsStandalone ? 'included in the \'@Component.imports\' of this component' : 'declared or imported in this module'}`;
            const errorMessage = `The pipe '${name}' could not be found${componentInfoMessage}. ${verifyMessage}`;
            return errorMessage;
          }
          /**
           * Invokes a pipe with 1 arguments.
           *
           * This instruction acts as a guard to {@link PipeTransform#transform} invoking
           * the pipe only when an input to the pipe changes.
           *
           * @param index Pipe index where the pipe was stored on creation.
           * @param slotOffset the offset in the reserved slot space
           * @param v1 1st argument to {@link PipeTransform#transform}.
           *
           * @codeGenApi
           */
          function ɵɵpipeBind1(index, slotOffset, v1) {
            const adjustedIndex = index + HEADER_OFFSET;
            const lView = getLView();
            const pipeInstance = load(lView, adjustedIndex);
            return isPure(lView, adjustedIndex) ? pureFunction1Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, pipeInstance) : pipeInstance.transform(v1);
          }
          /**
           * Invokes a pipe with 2 arguments.
           *
           * This instruction acts as a guard to {@link PipeTransform#transform} invoking
           * the pipe only when an input to the pipe changes.
           *
           * @param index Pipe index where the pipe was stored on creation.
           * @param slotOffset the offset in the reserved slot space
           * @param v1 1st argument to {@link PipeTransform#transform}.
           * @param v2 2nd argument to {@link PipeTransform#transform}.
           *
           * @codeGenApi
           */
          function ɵɵpipeBind2(index, slotOffset, v1, v2) {
            const adjustedIndex = index + HEADER_OFFSET;
            const lView = getLView();
            const pipeInstance = load(lView, adjustedIndex);
            return isPure(lView, adjustedIndex) ? pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) : pipeInstance.transform(v1, v2);
          }
          /**
           * Invokes a pipe with 3 arguments.
           *
           * This instruction acts as a guard to {@link PipeTransform#transform} invoking
           * the pipe only when an input to the pipe changes.
           *
           * @param index Pipe index where the pipe was stored on creation.
           * @param slotOffset the offset in the reserved slot space
           * @param v1 1st argument to {@link PipeTransform#transform}.
           * @param v2 2nd argument to {@link PipeTransform#transform}.
           * @param v3 4rd argument to {@link PipeTransform#transform}.
           *
           * @codeGenApi
           */
          function ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {
            const adjustedIndex = index + HEADER_OFFSET;
            const lView = getLView();
            const pipeInstance = load(lView, adjustedIndex);
            return isPure(lView, adjustedIndex) ? pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) : pipeInstance.transform(v1, v2, v3);
          }
          /**
           * Invokes a pipe with 4 arguments.
           *
           * This instruction acts as a guard to {@link PipeTransform#transform} invoking
           * the pipe only when an input to the pipe changes.
           *
           * @param index Pipe index where the pipe was stored on creation.
           * @param slotOffset the offset in the reserved slot space
           * @param v1 1st argument to {@link PipeTransform#transform}.
           * @param v2 2nd argument to {@link PipeTransform#transform}.
           * @param v3 3rd argument to {@link PipeTransform#transform}.
           * @param v4 4th argument to {@link PipeTransform#transform}.
           *
           * @codeGenApi
           */
          function ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {
            const adjustedIndex = index + HEADER_OFFSET;
            const lView = getLView();
            const pipeInstance = load(lView, adjustedIndex);
            return isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) : pipeInstance.transform(v1, v2, v3, v4);
          }
          /**
           * Invokes a pipe with variable number of arguments.
           *
           * This instruction acts as a guard to {@link PipeTransform#transform} invoking
           * the pipe only when an input to the pipe changes.
           *
           * @param index Pipe index where the pipe was stored on creation.
           * @param slotOffset the offset in the reserved slot space
           * @param values Array of arguments to pass to {@link PipeTransform#transform} method.
           *
           * @codeGenApi
           */
          function ɵɵpipeBindV(index, slotOffset, values) {
            const adjustedIndex = index + HEADER_OFFSET;
            const lView = getLView();
            const pipeInstance = load(lView, adjustedIndex);
            return isPure(lView, adjustedIndex) ? pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) : pipeInstance.transform.apply(pipeInstance, values);
          }
          function isPure(lView, index) {
            return lView[TVIEW].data[index].pure;
          }
          function symbolIterator() {
            // @ts-expect-error accessing a private member
            return this._results[Symbol.iterator]();
          }
          /**
           * An unmodifiable list of items that Angular keeps up to date when the state
           * of the application changes.
           *
           * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}
           * provide.
           *
           * Implements an iterable interface, therefore it can be used in both ES6
           * javascript `for (var i of items)` loops as well as in Angular templates with
           * `*ngFor="let i of myList"`.
           *
           * Changes can be observed by subscribing to the changes `Observable`.
           *
           * NOTE: In the future this class will implement an `Observable` interface.
           *
           * @usageNotes
           * ### Example
           * ```typescript
           * @Component({...})
           * class Container {
           *   @ViewChildren(Item) items:QueryList<Item>;
           * }
           * ```
           *
           * @publicApi
           */
          class QueryList {
            static {
              Symbol.iterator;
            }
            /**
             * Returns `Observable` of `QueryList` notifying the subscriber of changes.
             */
            get changes() {
              return this._changes || (this._changes = new EventEmitter());
            }
            /**
             * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change
             *     has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in
             *     the same result)
             */
            constructor(_emitDistinctChangesOnly = false) {
              this._emitDistinctChangesOnly = _emitDistinctChangesOnly;
              this.dirty = true;
              this._results = [];
              this._changesDetected = false;
              this._changes = null;
              this.length = 0;
              this.first = undefined;
              this.last = undefined;
              // This function should be declared on the prototype, but doing so there will cause the class
              // declaration to have side-effects and become not tree-shakable. For this reason we do it in
              // the constructor.
              // [Symbol.iterator](): Iterator<T> { ... }
              const proto = QueryList.prototype;
              if (!proto[Symbol.iterator]) proto[Symbol.iterator] = symbolIterator;
            }
            /**
             * Returns the QueryList entry at `index`.
             */
            get(index) {
              return this._results[index];
            }
            /**
             * See
             * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
             */
            map(fn) {
              return this._results.map(fn);
            }
            filter(fn) {
              return this._results.filter(fn);
            }
            /**
             * See
             * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)
             */
            find(fn) {
              return this._results.find(fn);
            }
            /**
             * See
             * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
             */
            reduce(fn, init) {
              return this._results.reduce(fn, init);
            }
            /**
             * See
             * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)
             */
            forEach(fn) {
              this._results.forEach(fn);
            }
            /**
             * See
             * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)
             */
            some(fn) {
              return this._results.some(fn);
            }
            /**
             * Returns a copy of the internal results list as an Array.
             */
            toArray() {
              return this._results.slice();
            }
            toString() {
              return this._results.toString();
            }
            /**
             * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that
             * on change detection, it will not notify of changes to the queries, unless a new change
             * occurs.
             *
             * @param resultsTree The query results to store
             * @param identityAccessor Optional function for extracting stable object identity from a value
             *    in the array. This function is executed for each element of the query result list while
             *    comparing current query list with the new one (provided as a first argument of the `reset`
             *    function) to detect if the lists are different. If the function is not provided, elements
             *    are compared as is (without any pre-processing).
             */
            reset(resultsTree, identityAccessor) {
              // Cast to `QueryListInternal` so that we can mutate fields which are readonly for the usage of
              // QueryList (but not for QueryList itself.)
              const self = this;
              self.dirty = false;
              const newResultFlat = flatten(resultsTree);
              if (this._changesDetected = !arrayEquals(self._results, newResultFlat, identityAccessor)) {
                self._results = newResultFlat;
                self.length = newResultFlat.length;
                self.last = newResultFlat[this.length - 1];
                self.first = newResultFlat[0];
              }
            }
            /**
             * Triggers a change event by emitting on the `changes` {@link EventEmitter}.
             */
            notifyOnChanges() {
              if (this._changes && (this._changesDetected || !this._emitDistinctChangesOnly)) this._changes.emit(this);
            }
            /** internal */
            setDirty() {
              this.dirty = true;
            }
            /** internal */
            destroy() {
              this.changes.complete();
              this.changes.unsubscribe();
            }
          }
          function createAndRenderEmbeddedLView(declarationLView, templateTNode, context, options) {
            const embeddedTView = templateTNode.tView;
            ngDevMode && assertDefined(embeddedTView, 'TView must be defined for a template node.');
            ngDevMode && assertTNodeForLView(templateTNode, declarationLView);
            // Embedded views follow the change detection strategy of the view they're declared in.
            const isSignalView = declarationLView[FLAGS] & 4096 /* LViewFlags.SignalView */;
            const viewFlags = isSignalView ? 4096 /* LViewFlags.SignalView */ : 16 /* LViewFlags.CheckAlways */;
            const embeddedLView = createLView(declarationLView, embeddedTView, context, viewFlags, null, templateTNode, null, null, null, options?.injector ?? null, options?.hydrationInfo ?? null);
            const declarationLContainer = declarationLView[templateTNode.index];
            ngDevMode && assertLContainer(declarationLContainer);
            embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;
            const declarationViewLQueries = declarationLView[QUERIES];
            if (declarationViewLQueries !== null) {
              embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);
            }
            // execute creation mode of a view
            renderView(embeddedTView, embeddedLView, context);
            return embeddedLView;
          }
          function getLViewFromLContainer(lContainer, index) {
            const adjustedIndex = CONTAINER_HEADER_OFFSET + index;
            // avoid reading past the array boundaries
            if (adjustedIndex < lContainer.length) {
              const lView = lContainer[adjustedIndex];
              ngDevMode && assertLView(lView);
              return lView;
            }
            return undefined;
          }
          function addLViewToLContainer(lContainer, lView, index, addToDOM = true) {
            const tView = lView[TVIEW];
            // insert to the view tree so the new view can be change-detected
            insertView(tView, lView, lContainer, index);
            // insert to the view to the DOM tree
            if (addToDOM) {
              const beforeNode = getBeforeNodeForView(index, lContainer);
              const renderer = lView[RENDERER];
              const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);
              if (parentRNode !== null) {
                addViewToDOM(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);
              }
            }
          }
          function removeLViewFromLContainer(lContainer, index) {
            const lView = detachView(lContainer, index);
            if (lView !== undefined) {
              destroyLView(lView[TVIEW], lView);
            }
            return lView;
          }
          
          /**
           * Represents an embedded template that can be used to instantiate embedded views.
           * To instantiate embedded views based on a template, use the `ViewContainerRef`
           * method `createEmbeddedView()`.
           *
           * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`
           * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view
           * is injected into the constructor of the directive,
           * using the `TemplateRef` token.
           *
           * You can also use a `Query` to find a `TemplateRef` associated with
           * a component or a directive.
           *
           * @see {@link ViewContainerRef}
           * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
           *
           * @publicApi
           */
          class TemplateRef {
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = injectTemplateRef;
            }
          }
          const ViewEngineTemplateRef = TemplateRef;
          // TODO(alxhub): combine interface and implementation. Currently this is challenging since something
          // in g3 depends on them being separate.
          const R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {
            constructor(_declarationLView, _declarationTContainer, elementRef) {
              super();
              this._declarationLView = _declarationLView;
              this._declarationTContainer = _declarationTContainer;
              this.elementRef = elementRef;
            }
            /**
             * Returns an `ssrId` associated with a TView, which was used to
             * create this instance of the `TemplateRef`.
             *
             * @internal
             */
            get ssrId() {
              return this._declarationTContainer.tView?.ssrId || null;
            }
            createEmbeddedView(context, injector) {
              return this.createEmbeddedViewImpl(context, injector);
            }
            /**
             * @internal
             */
            createEmbeddedViewImpl(context, injector, hydrationInfo) {
              const embeddedLView = createAndRenderEmbeddedLView(this._declarationLView, this._declarationTContainer, context, {
                injector,
                hydrationInfo
              });
              return new ViewRef$1(embeddedLView);
            }
          };
          /**
           * Creates a TemplateRef given a node.
           *
           * @returns The TemplateRef instance to use
           */
          function injectTemplateRef() {
            return createTemplateRef(getCurrentTNode(), getLView());
          }
          /**
           * Creates a TemplateRef and stores it on the injector.
           *
           * @param hostTNode The node on which a TemplateRef is requested
           * @param hostLView The `LView` to which the node belongs
           * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
           */
          function createTemplateRef(hostTNode, hostLView) {
            if (hostTNode.type & 4 /* TNodeType.Container */) {
              ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');
              return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));
            }
            return null;
          }
          
          /**
           * Removes all dehydrated views from a given LContainer:
           * both in internal data structure, as well as removing
           * corresponding DOM nodes that belong to that dehydrated view.
           */
          function removeDehydratedViews(lContainer) {
            const views = lContainer[DEHYDRATED_VIEWS] ?? [];
            const parentLView = lContainer[PARENT];
            const renderer = parentLView[RENDERER];
            for (const view of views) {
              removeDehydratedView(view, renderer);
              ngDevMode && ngDevMode.dehydratedViewsRemoved++;
            }
            // Reset the value to an empty array to indicate that no
            // further processing of dehydrated views is needed for
            // this view container (i.e. do not trigger the lookup process
            // once again in case a `ViewContainerRef` is created later).
            lContainer[DEHYDRATED_VIEWS] = EMPTY_ARRAY;
          }
          /**
           * Helper function to remove all nodes from a dehydrated view.
           */
          function removeDehydratedView(dehydratedView, renderer) {
            let nodesRemoved = 0;
            let currentRNode = dehydratedView.firstChild;
            if (currentRNode) {
              const numNodes = dehydratedView.data[NUM_ROOT_NODES];
              while (nodesRemoved < numNodes) {
                ngDevMode && validateSiblingNodeExists(currentRNode);
                const nextSibling = currentRNode.nextSibling;
                nativeRemoveNode(renderer, currentRNode, false);
                currentRNode = nextSibling;
                nodesRemoved++;
              }
            }
          }
          /**
           * Walks over all views within this LContainer invokes dehydrated views
           * cleanup function for each one.
           */
          function cleanupLContainer(lContainer) {
            removeDehydratedViews(lContainer);
            for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
              cleanupLView(lContainer[i]);
            }
          }
          /**
           * Walks over `LContainer`s and components registered within
           * this LView and invokes dehydrated views cleanup function for each one.
           */
          function cleanupLView(lView) {
            const tView = lView[TVIEW];
            for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
              if (isLContainer(lView[i])) {
                const lContainer = lView[i];
                cleanupLContainer(lContainer);
              } else if (Array.isArray(lView[i])) {
                // This is a component, enter the `cleanupLView` recursively.
                cleanupLView(lView[i]);
              }
            }
          }
          /**
           * Walks over all views registered within the ApplicationRef and removes
           * all dehydrated views from all `LContainer`s along the way.
           */
          function cleanupDehydratedViews(appRef) {
            const viewRefs = appRef._views;
            for (const viewRef of viewRefs) {
              const lNode = getLNodeForHydration(viewRef);
              // An `lView` might be `null` if a `ViewRef` represents
              // an embedded view (not a component view).
              if (lNode !== null && lNode[HOST] !== null) {
                if (isLView(lNode)) {
                  cleanupLView(lNode);
                } else {
                  // Cleanup in the root component view
                  const componentLView = lNode[HOST];
                  cleanupLView(componentLView);
                  // Cleanup in all views within this view container
                  cleanupLContainer(lNode);
                }
                ngDevMode && ngDevMode.dehydratedViewsCleanupRuns++;
              }
            }
          }
          
          /**
           * Given a current DOM node and a serialized information about the views
           * in a container, walks over the DOM structure, collecting the list of
           * dehydrated views.
           */
          function locateDehydratedViewsInContainer(currentRNode, serializedViews) {
            const dehydratedViews = [];
            for (const serializedView of serializedViews) {
              // Repeats a view multiple times as needed, based on the serialized information
              // (for example, for *ngFor-produced views).
              for (let i = 0; i < (serializedView[MULTIPLIER] ?? 1); i++) {
                const view = {
                  data: serializedView,
                  firstChild: null
                };
                if (serializedView[NUM_ROOT_NODES] > 0) {
                  // Keep reference to the first node in this view,
                  // so it can be accessed while invoking template instructions.
                  view.firstChild = currentRNode;
                  // Move over to the next node after this view, which can
                  // either be a first node of the next view or an anchor comment
                  // node after the last view in a container.
                  currentRNode = siblingAfter(serializedView[NUM_ROOT_NODES], currentRNode);
                }
                dehydratedViews.push(view);
              }
            }
            return [currentRNode, dehydratedViews];
          }
          /**
           * Reference to a function that searches for a matching dehydrated views
           * stored on a given lContainer.
           * Returns `null` by default, when hydration is not enabled.
           */
          let _findMatchingDehydratedViewImpl = (lContainer, template) => null;
          /**
           * Retrieves the next dehydrated view from the LContainer and verifies that
           * it matches a given template id (from the TView that was used to create this
           * instance of a view). If the id doesn't match, that means that we are in an
           * unexpected state and can not complete the reconciliation process. Thus,
           * all dehydrated views from this LContainer are removed (including corresponding
           * DOM nodes) and the rendering is performed as if there were no dehydrated views
           * in this container.
           */
          function findMatchingDehydratedViewImpl(lContainer, template) {
            const views = lContainer[DEHYDRATED_VIEWS];
            if (!template || views === null || views.length === 0) {
              return null;
            }
            const view = views[0];
            // Verify whether the first dehydrated view in the container matches
            // the template id passed to this function (that originated from a TView
            // that was used to create an instance of an embedded or component views.
            if (view.data[TEMPLATE_ID] === template) {
              // If the template id matches - extract the first view and return it.
              return views.shift();
            } else {
              // Otherwise, we are at the state when reconciliation can not be completed,
              // thus we remove all dehydrated views within this container (remove them
              // from internal data structures as well as delete associated elements from
              // the DOM tree).
              removeDehydratedViews(lContainer);
              return null;
            }
          }
          function enableFindMatchingDehydratedViewImpl() {
            _findMatchingDehydratedViewImpl = findMatchingDehydratedViewImpl;
          }
          function findMatchingDehydratedView(lContainer, template) {
            return _findMatchingDehydratedViewImpl(lContainer, template);
          }
          
          /**
           * Represents a container where one or more views can be attached to a component.
           *
           * Can contain *host views* (created by instantiating a
           * component with the `createComponent()` method), and *embedded views*
           * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
           *
           * A view container instance can contain other view containers,
           * creating a [view hierarchy](guide/glossary#view-hierarchy).
           *
           * @usageNotes
           *
           * The example below demonstrates how the `createComponent` function can be used
           * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,
           * so that it gets included into change detection cycles.
           *
           * Note: the example uses standalone components, but the function can also be used for
           * non-standalone components (declared in an NgModule) as well.
           *
           * ```typescript
           * @Component({
           *   standalone: true,
           *   selector: 'dynamic',
           *   template: `<span>This is a content of a dynamic component.</span>`,
           * })
           * class DynamicComponent {
           *   vcr = inject(ViewContainerRef);
           * }
           *
           * @Component({
           *   standalone: true,
           *   selector: 'app',
           *   template: `<main>Hi! This is the main content.</main>`,
           * })
           * class AppComponent {
           *   vcr = inject(ViewContainerRef);
           *
           *   ngAfterViewInit() {
           *     const compRef = this.vcr.createComponent(DynamicComponent);
           *     compRef.changeDetectorRef.detectChanges();
           *   }
           * }
           * ```
           *
           * @see {@link ComponentRef}
           * @see {@link EmbeddedViewRef}
           *
           * @publicApi
           */
          class ViewContainerRef {
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = injectViewContainerRef;
            }
          }
          /**
           * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef
           * already exists, retrieves the existing ViewContainerRef.
           *
           * @returns The ViewContainerRef instance to use
           */
          function injectViewContainerRef() {
            const previousTNode = getCurrentTNode();
            return createContainerRef(previousTNode, getLView());
          }
          const VE_ViewContainerRef = ViewContainerRef;
          // TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix
          // for that lands, this can be cleaned up.
          const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
            constructor(_lContainer, _hostTNode, _hostLView) {
              super();
              this._lContainer = _lContainer;
              this._hostTNode = _hostTNode;
              this._hostLView = _hostLView;
            }
            get element() {
              return createElementRef(this._hostTNode, this._hostLView);
            }
            get injector() {
              return new NodeInjector(this._hostTNode, this._hostLView);
            }
            /** @deprecated No replacement */
            get parentInjector() {
              const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);
              if (hasParentInjector(parentLocation)) {
                const parentView = getParentInjectorView(parentLocation, this._hostLView);
                const injectorIndex = getParentInjectorIndex(parentLocation);
                ngDevMode && assertNodeInjector(parentView, injectorIndex);
                const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];
                return new NodeInjector(parentTNode, parentView);
              } else {
                return new NodeInjector(null, this._hostLView);
              }
            }
            clear() {
              while (this.length > 0) {
                this.remove(this.length - 1);
              }
            }
            get(index) {
              const viewRefs = getViewRefs(this._lContainer);
              return viewRefs !== null && viewRefs[index] || null;
            }
            get length() {
              return this._lContainer.length - CONTAINER_HEADER_OFFSET;
            }
            createEmbeddedView(templateRef, context, indexOrOptions) {
              let index;
              let injector;
              if (typeof indexOrOptions === 'number') {
                index = indexOrOptions;
              } else if (indexOrOptions != null) {
                index = indexOrOptions.index;
                injector = indexOrOptions.injector;
              }
              const hydrationInfo = findMatchingDehydratedView(this._lContainer, templateRef.ssrId);
              const viewRef = templateRef.createEmbeddedViewImpl(context || {}, injector, hydrationInfo);
              // If there is a matching dehydrated view, but the host TNode is located in the skip
              // hydration block, this means that the content was detached (as a part of the skip
              // hydration logic) and it needs to be appended into the DOM.
              const skipDomInsertion = !!hydrationInfo && !hasInSkipHydrationBlockFlag(this._hostTNode);
              this.insertImpl(viewRef, index, skipDomInsertion);
              return viewRef;
            }
            createComponent(componentFactoryOrType, indexOrOptions, injector, projectableNodes, environmentInjector) {
              const isComponentFactory = componentFactoryOrType && !isType(componentFactoryOrType);
              let index;
              // This function supports 2 signatures and we need to handle options correctly for both:
              //   1. When first argument is a Component type. This signature also requires extra
              //      options to be provided as object (more ergonomic option).
              //   2. First argument is a Component factory. In this case extra options are represented as
              //      positional arguments. This signature is less ergonomic and will be deprecated.
              if (isComponentFactory) {
                if (ngDevMode) {
                  assertEqual(typeof indexOrOptions !== 'object', true, 'It looks like Component factory was provided as the first argument ' + 'and an options object as the second argument. This combination of arguments ' + 'is incompatible. You can either change the first argument to provide Component ' + 'type or change the second argument to be a number (representing an index at ' + 'which to insert the new component\'s host view into this container)');
                }
                index = indexOrOptions;
              } else {
                if (ngDevMode) {
                  assertDefined(getComponentDef(componentFactoryOrType), `Provided Component class doesn't contain Component definition. ` + `Please check whether provided class has @Component decorator.`);
                  assertEqual(typeof indexOrOptions !== 'number', true, 'It looks like Component type was provided as the first argument ' + 'and a number (representing an index at which to insert the new component\'s ' + 'host view into this container as the second argument. This combination of arguments ' + 'is incompatible. Please use an object as the second argument instead.');
                }
                const options = indexOrOptions || {};
                if (ngDevMode && options.environmentInjector && options.ngModuleRef) {
                  throwError(`Cannot pass both environmentInjector and ngModuleRef options to createComponent().`);
                }
                index = options.index;
                injector = options.injector;
                projectableNodes = options.projectableNodes;
                environmentInjector = options.environmentInjector || options.ngModuleRef;
              }
              const componentFactory = isComponentFactory ? componentFactoryOrType : new ComponentFactory(getComponentDef(componentFactoryOrType));
              const contextInjector = injector || this.parentInjector;
              // If an `NgModuleRef` is not provided explicitly, try retrieving it from the DI tree.
              if (!environmentInjector && componentFactory.ngModule == null) {
                // For the `ComponentFactory` case, entering this logic is very unlikely, since we expect that
                // an instance of a `ComponentFactory`, resolved via `ComponentFactoryResolver` would have an
                // `ngModule` field. This is possible in some test scenarios and potentially in some JIT-based
                // use-cases. For the `ComponentFactory` case we preserve backwards-compatibility and try
                // using a provided injector first, then fall back to the parent injector of this
                // `ViewContainerRef` instance.
                //
                // For the factory-less case, it's critical to establish a connection with the module
                // injector tree (by retrieving an instance of an `NgModuleRef` and accessing its injector),
                // so that a component can use DI tokens provided in MgModules. For this reason, we can not
                // rely on the provided injector, since it might be detached from the DI tree (for example, if
                // it was created via `Injector.create` without specifying a parent injector, or if an
                // injector is retrieved from an `NgModuleRef` created via `createNgModule` using an
                // NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent
                // injector, which is normally connected to the DI tree, which includes module injector
                // subtree.
                const _injector = isComponentFactory ? contextInjector : this.parentInjector;
                // DO NOT REFACTOR. The code here used to have a `injector.get(NgModuleRef, null) ||
                // undefined` expression which seems to cause internal google apps to fail. This is documented
                // in the following internal bug issue: go/b/142967802
                const result = _injector.get(EnvironmentInjector, null);
                if (result) {
                  environmentInjector = result;
                }
              }
              const componentDef = getComponentDef(componentFactory.componentType ?? {});
              const dehydratedView = findMatchingDehydratedView(this._lContainer, componentDef?.id ?? null);
              const rNode = dehydratedView?.firstChild ?? null;
              const componentRef = componentFactory.create(contextInjector, projectableNodes, rNode, environmentInjector);
              // If there is a matching dehydrated view, but the host TNode is located in the skip
              // hydration block, this means that the content was detached (as a part of the skip
              // hydration logic) and it needs to be appended into the DOM.
              const skipDomInsertion = !!dehydratedView && !hasInSkipHydrationBlockFlag(this._hostTNode);
              this.insertImpl(componentRef.hostView, index, skipDomInsertion);
              return componentRef;
            }
            insert(viewRef, index) {
              return this.insertImpl(viewRef, index, false);
            }
            insertImpl(viewRef, index, skipDomInsertion) {
              const lView = viewRef._lView;
              const tView = lView[TVIEW];
              if (ngDevMode && viewRef.destroyed) {
                throw new Error('Cannot insert a destroyed View in a ViewContainer!');
              }
              if (viewAttachedToContainer(lView)) {
                // If view is already attached, detach it first so we clean up references appropriately.
                const prevIdx = this.indexOf(viewRef);
                // A view might be attached either to this or a different container. The `prevIdx` for
                // those cases will be:
                // equal to -1 for views attached to this ViewContainerRef
                // >= 0 for views attached to a different ViewContainerRef
                if (prevIdx !== -1) {
                  this.detach(prevIdx);
                } else {
                  const prevLContainer = lView[PARENT];
                  ngDevMode && assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');
                  // We need to re-create a R3ViewContainerRef instance since those are not stored on
                  // LView (nor anywhere else).
                  const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);
                  prevVCRef.detach(prevVCRef.indexOf(viewRef));
                }
              }
              // Logical operation of adding `LView` to `LContainer`
              const adjustedIdx = this._adjustIndex(index);
              const lContainer = this._lContainer;
              addLViewToLContainer(lContainer, lView, adjustedIdx, !skipDomInsertion);
              viewRef.attachToViewContainerRef();
              addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);
              return viewRef;
            }
            move(viewRef, newIndex) {
              if (ngDevMode && viewRef.destroyed) {
                throw new Error('Cannot move a destroyed View in a ViewContainer!');
              }
              return this.insert(viewRef, newIndex);
            }
            indexOf(viewRef) {
              const viewRefsArr = getViewRefs(this._lContainer);
              return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;
            }
            remove(index) {
              const adjustedIdx = this._adjustIndex(index, -1);
              const detachedView = detachView(this._lContainer, adjustedIdx);
              if (detachedView) {
                // Before destroying the view, remove it from the container's array of `ViewRef`s.
                // This ensures the view container length is updated before calling
                // `destroyLView`, which could recursively call view container methods that
                // rely on an accurate container length.
                // (e.g. a method on this view container being called by a child directive's OnDestroy
                // lifecycle hook)
                removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);
                destroyLView(detachedView[TVIEW], detachedView);
              }
            }
            detach(index) {
              const adjustedIdx = this._adjustIndex(index, -1);
              const view = detachView(this._lContainer, adjustedIdx);
              const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;
              return wasDetached ? new ViewRef$1(view) : null;
            }
            _adjustIndex(index, shift = 0) {
              if (index == null) {
                return this.length + shift;
              }
              if (ngDevMode) {
                assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);
                // +1 because it's legal to insert at the end.
                assertLessThan(index, this.length + 1 + shift, 'index');
              }
              return index;
            }
          };
          function getViewRefs(lContainer) {
            return lContainer[VIEW_REFS];
          }
          function getOrCreateViewRefs(lContainer) {
            return lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []);
          }
          /**
           * Creates a ViewContainerRef and stores it on the injector.
           *
           * @param hostTNode The node that is requesting a ViewContainerRef
           * @param hostLView The view to which the node belongs
           * @returns The ViewContainerRef instance to use
           */
          function createContainerRef(hostTNode, hostLView) {
            ngDevMode && assertTNodeType(hostTNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);
            let lContainer;
            const slotValue = hostLView[hostTNode.index];
            if (isLContainer(slotValue)) {
              // If the host is a container, we don't need to create a new LContainer
              lContainer = slotValue;
            } else {
              // An LContainer anchor can not be `null`, but we set it here temporarily
              // and update to the actual value later in this function (see
              // `_locateOrCreateAnchorNode`).
              lContainer = createLContainer(slotValue, hostLView, null, hostTNode);
              hostLView[hostTNode.index] = lContainer;
              addToViewTree(hostLView, lContainer);
            }
            _locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue);
            return new R3ViewContainerRef(lContainer, hostTNode, hostLView);
          }
          /**
           * Creates and inserts a comment node that acts as an anchor for a view container.
           *
           * If the host is a regular element, we have to insert a comment node manually which will
           * be used as an anchor when inserting elements. In this specific case we use low-level DOM
           * manipulation to insert it.
           */
          function insertAnchorNode(hostLView, hostTNode) {
            const renderer = hostLView[RENDERER];
            ngDevMode && ngDevMode.rendererCreateComment++;
            const commentNode = renderer.createComment(ngDevMode ? 'container' : '');
            const hostNative = getNativeByTNode(hostTNode, hostLView);
            const parentOfHostNative = nativeParentNode(renderer, hostNative);
            nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);
            return commentNode;
          }
          let _locateOrCreateAnchorNode = createAnchorNode;
          /**
           * Regular creation mode: an anchor is created and
           * assigned to the `lContainer[NATIVE]` slot.
           */
          function createAnchorNode(lContainer, hostLView, hostTNode, slotValue) {
            // We already have a native element (anchor) set, return.
            if (lContainer[NATIVE]) return;
            let commentNode;
            // If the host is an element container, the native host element is guaranteed to be a
            // comment and we can reuse that comment as anchor element for the new LContainer.
            // The comment node in question is already part of the DOM structure so we don't need to append
            // it again.
            if (hostTNode.type & 8 /* TNodeType.ElementContainer */) {
              commentNode = unwrapRNode(slotValue);
            } else {
              commentNode = insertAnchorNode(hostLView, hostTNode);
            }
            lContainer[NATIVE] = commentNode;
          }
          /**
           * Hydration logic that looks up:
           *  - an anchor node in the DOM and stores the node in `lContainer[NATIVE]`
           *  - all dehydrated views in this container and puts them into `lContainer[DEHYDRATED_VIEWS]`
           */
          function locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue) {
            // We already have a native element (anchor) set and the process
            // of finding dehydrated views happened (so the `lContainer[DEHYDRATED_VIEWS]`
            // is not null), exit early.
            if (lContainer[NATIVE] && lContainer[DEHYDRATED_VIEWS]) return;
            const hydrationInfo = hostLView[HYDRATION];
            const noOffsetIndex = hostTNode.index - HEADER_OFFSET;
            // TODO(akushnir): this should really be a single condition, refactor the code
            // to use `hasInSkipHydrationBlockFlag` logic inside `isInSkipHydrationBlock`.
            const skipHydration = isInSkipHydrationBlock(hostTNode) || hasInSkipHydrationBlockFlag(hostTNode);
            const isNodeCreationMode = !hydrationInfo || skipHydration || isDisconnectedNode$1(hydrationInfo, noOffsetIndex);
            // Regular creation mode.
            if (isNodeCreationMode) {
              return createAnchorNode(lContainer, hostLView, hostTNode, slotValue);
            }
            // Hydration mode, looking up an anchor node and dehydrated views in DOM.
            const currentRNode = getSegmentHead(hydrationInfo, noOffsetIndex);
            const serializedViews = hydrationInfo.data[CONTAINERS]?.[noOffsetIndex];
            ngDevMode && assertDefined(serializedViews, 'Unexpected state: no hydration info available for a given TNode, ' + 'which represents a view container.');
            const [commentNode, dehydratedViews] = locateDehydratedViewsInContainer(currentRNode, serializedViews);
            if (ngDevMode) {
              validateMatchingNode(commentNode, Node.COMMENT_NODE, null, hostLView, hostTNode, true);
              // Do not throw in case this node is already claimed (thus `false` as a second
              // argument). If this container is created based on an `<ng-template>`, the comment
              // node would be already claimed from the `template` instruction. If an element acts
              // as an anchor (e.g. <div #vcRef>), a separate comment node would be created/located,
              // so we need to claim it here.
              markRNodeAsClaimedByHydration(commentNode, false);
            }
            lContainer[NATIVE] = commentNode;
            lContainer[DEHYDRATED_VIEWS] = dehydratedViews;
          }
          function enableLocateOrCreateContainerRefImpl() {
            _locateOrCreateAnchorNode = locateOrCreateAnchorNode;
          }
          class LQuery_ {
            constructor(queryList) {
              this.queryList = queryList;
              this.matches = null;
            }
            clone() {
              return new LQuery_(this.queryList);
            }
            setDirty() {
              this.queryList.setDirty();
            }
          }
          class LQueries_ {
            constructor(queries = []) {
              this.queries = queries;
            }
            createEmbeddedView(tView) {
              const tQueries = tView.queries;
              if (tQueries !== null) {
                const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;
                const viewLQueries = [];
                // An embedded view has queries propagated from a declaration view at the beginning of the
                // TQueries collection and up until a first content query declared in the embedded view. Only
                // propagated LQueries are created at this point (LQuery corresponding to declared content
                // queries will be instantiated from the content query instructions for each directive).
                for (let i = 0; i < noOfInheritedQueries; i++) {
                  const tQuery = tQueries.getByIndex(i);
                  const parentLQuery = this.queries[tQuery.indexInDeclarationView];
                  viewLQueries.push(parentLQuery.clone());
                }
                return new LQueries_(viewLQueries);
              }
              return null;
            }
            insertView(tView) {
              this.dirtyQueriesWithMatches(tView);
            }
            detachView(tView) {
              this.dirtyQueriesWithMatches(tView);
            }
            dirtyQueriesWithMatches(tView) {
              for (let i = 0; i < this.queries.length; i++) {
                if (getTQuery(tView, i).matches !== null) {
                  this.queries[i].setDirty();
                }
              }
            }
          }
          class TQueryMetadata_ {
            constructor(predicate, flags, read = null) {
              this.predicate = predicate;
              this.flags = flags;
              this.read = read;
            }
          }
          class TQueries_ {
            constructor(queries = []) {
              this.queries = queries;
            }
            elementStart(tView, tNode) {
              ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');
              for (let i = 0; i < this.queries.length; i++) {
                this.queries[i].elementStart(tView, tNode);
              }
            }
            elementEnd(tNode) {
              for (let i = 0; i < this.queries.length; i++) {
                this.queries[i].elementEnd(tNode);
              }
            }
            embeddedTView(tNode) {
              let queriesForTemplateRef = null;
              for (let i = 0; i < this.length; i++) {
                const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;
                const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);
                if (tqueryClone) {
                  tqueryClone.indexInDeclarationView = i;
                  if (queriesForTemplateRef !== null) {
                    queriesForTemplateRef.push(tqueryClone);
                  } else {
                    queriesForTemplateRef = [tqueryClone];
                  }
                }
              }
              return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;
            }
            template(tView, tNode) {
              ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');
              for (let i = 0; i < this.queries.length; i++) {
                this.queries[i].template(tView, tNode);
              }
            }
            getByIndex(index) {
              ngDevMode && assertIndexInRange(this.queries, index);
              return this.queries[index];
            }
            get length() {
              return this.queries.length;
            }
            track(tquery) {
              this.queries.push(tquery);
            }
          }
          class TQuery_ {
            constructor(metadata, nodeIndex = -1) {
              this.metadata = metadata;
              this.matches = null;
              this.indexInDeclarationView = -1;
              this.crossesNgTemplate = false;
              /**
               * A flag indicating if a given query still applies to nodes it is crossing. We use this flag
               * (alongside with _declarationNodeIndex) to know when to stop applying content queries to
               * elements in a template.
               */
              this._appliesToNextNode = true;
              this._declarationNodeIndex = nodeIndex;
            }
            elementStart(tView, tNode) {
              if (this.isApplyingToNode(tNode)) {
                this.matchTNode(tView, tNode);
              }
            }
            elementEnd(tNode) {
              if (this._declarationNodeIndex === tNode.index) {
                this._appliesToNextNode = false;
              }
            }
            template(tView, tNode) {
              this.elementStart(tView, tNode);
            }
            embeddedTView(tNode, childQueryIndex) {
              if (this.isApplyingToNode(tNode)) {
                this.crossesNgTemplate = true;
                // A marker indicating a `<ng-template>` element (a placeholder for query results from
                // embedded views created based on this `<ng-template>`).
                this.addMatch(-tNode.index, childQueryIndex);
                return new TQuery_(this.metadata);
              }
              return null;
            }
            isApplyingToNode(tNode) {
              if (this._appliesToNextNode && (this.metadata.flags & 1 /* QueryFlags.descendants */) !== 1 /* QueryFlags.descendants */) {
                const declarationNodeIdx = this._declarationNodeIndex;
                let parent = tNode.parent;
                // Determine if a given TNode is a "direct" child of a node on which a content query was
                // declared (only direct children of query's host node can match with the descendants: false
                // option). There are 3 main use-case / conditions to consider here:
                // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query
                // host node;
                // - <needs-target><ng-template [ngIf]="true"><i #target></i></ng-template></needs-target>:
                // here <i #target> parent node is null;
                // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need
                // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse
                // up past the query's host node!).
                while (parent !== null && parent.type & 8 /* TNodeType.ElementContainer */ && parent.index !== declarationNodeIdx) {
                  parent = parent.parent;
                }
                return declarationNodeIdx === (parent !== null ? parent.index : -1);
              }
              return this._appliesToNextNode;
            }
            matchTNode(tView, tNode) {
              const predicate = this.metadata.predicate;
              if (Array.isArray(predicate)) {
                for (let i = 0; i < predicate.length; i++) {
                  const name = predicate[i];
                  this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));
                  // Also try matching the name to a provider since strings can be used as DI tokens too.
                  this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));
                }
              } else {
                if (predicate === TemplateRef) {
                  if (tNode.type & 4 /* TNodeType.Container */) {
                    this.matchTNodeWithReadOption(tView, tNode, -1);
                  }
                } else {
                  this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));
                }
              }
            }
            matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {
              if (nodeMatchIdx !== null) {
                const read = this.metadata.read;
                if (read !== null) {
                  if (read === ElementRef || read === ViewContainerRef || read === TemplateRef && tNode.type & 4 /* TNodeType.Container */) {
                    this.addMatch(tNode.index, -2);
                  } else {
                    const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);
                    if (directiveOrProviderIdx !== null) {
                      this.addMatch(tNode.index, directiveOrProviderIdx);
                    }
                  }
                } else {
                  this.addMatch(tNode.index, nodeMatchIdx);
                }
              }
            }
            addMatch(tNodeIdx, matchIdx) {
              if (this.matches === null) {
                this.matches = [tNodeIdx, matchIdx];
              } else {
                this.matches.push(tNodeIdx, matchIdx);
              }
            }
          }
          /**
           * Iterates over local names for a given node and returns directive index
           * (or -1 if a local name points to an element).
           *
           * @param tNode static data of a node to check
           * @param selector selector to match
           * @returns directive index, -1 or null if a selector didn't match any of the local names
           */
          function getIdxOfMatchingSelector(tNode, selector) {
            const localNames = tNode.localNames;
            if (localNames !== null) {
              for (let i = 0; i < localNames.length; i += 2) {
                if (localNames[i] === selector) {
                  return localNames[i + 1];
                }
              }
            }
            return null;
          }
          function createResultByTNodeType(tNode, currentView) {
            if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {
              return createElementRef(tNode, currentView);
            } else if (tNode.type & 4 /* TNodeType.Container */) {
              return createTemplateRef(tNode, currentView);
            }
            return null;
          }
          function createResultForNode(lView, tNode, matchingIdx, read) {
            if (matchingIdx === -1) {
              // if read token and / or strategy is not specified, detect it using appropriate tNode type
              return createResultByTNodeType(tNode, lView);
            } else if (matchingIdx === -2) {
              // read a special token from a node injector
              return createSpecialToken(lView, tNode, read);
            } else {
              // read a token
              return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);
            }
          }
          function createSpecialToken(lView, tNode, read) {
            if (read === ElementRef) {
              return createElementRef(tNode, lView);
            } else if (read === TemplateRef) {
              return createTemplateRef(tNode, lView);
            } else if (read === ViewContainerRef) {
              ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);
              return createContainerRef(tNode, lView);
            } else {
              ngDevMode && throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);
            }
          }
          /**
           * A helper function that creates query results for a given view. This function is meant to do the
           * processing once and only once for a given view instance (a set of results for a given view
           * doesn't change).
           */
          function materializeViewResults(tView, lView, tQuery, queryIndex) {
            const lQuery = lView[QUERIES].queries[queryIndex];
            if (lQuery.matches === null) {
              const tViewData = tView.data;
              const tQueryMatches = tQuery.matches;
              const result = [];
              for (let i = 0; i < tQueryMatches.length; i += 2) {
                const matchedNodeIdx = tQueryMatches[i];
                if (matchedNodeIdx < 0) {
                  // we at the <ng-template> marker which might have results in views created based on this
                  // <ng-template> - those results will be in separate views though, so here we just leave
                  // null as a placeholder
                  result.push(null);
                } else {
                  ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);
                  const tNode = tViewData[matchedNodeIdx];
                  result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));
                }
              }
              lQuery.matches = result;
            }
            return lQuery.matches;
          }
          /**
           * A helper function that collects (already materialized) query results from a tree of views,
           * starting with a provided LView.
           */
          function collectQueryResults(tView, lView, queryIndex, result) {
            const tQuery = tView.queries.getByIndex(queryIndex);
            const tQueryMatches = tQuery.matches;
            if (tQueryMatches !== null) {
              const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);
              for (let i = 0; i < tQueryMatches.length; i += 2) {
                const tNodeIdx = tQueryMatches[i];
                if (tNodeIdx > 0) {
                  result.push(lViewResults[i / 2]);
                } else {
                  const childQueryIndex = tQueryMatches[i + 1];
                  const declarationLContainer = lView[-tNodeIdx];
                  ngDevMode && assertLContainer(declarationLContainer);
                  // collect matches for views inserted in this container
                  for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {
                    const embeddedLView = declarationLContainer[i];
                    if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {
                      collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);
                    }
                  }
                  // collect matches for views created from this declaration container and inserted into
                  // different containers
                  if (declarationLContainer[MOVED_VIEWS] !== null) {
                    const embeddedLViews = declarationLContainer[MOVED_VIEWS];
                    for (let i = 0; i < embeddedLViews.length; i++) {
                      const embeddedLView = embeddedLViews[i];
                      collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);
                    }
                  }
                }
              }
            }
            return result;
          }
          /**
           * Refreshes a query by combining matches from all active views and removing matches from deleted
           * views.
           *
           * @returns `true` if a query got dirty during change detection or if this is a static query
           * resolving in creation mode, `false` otherwise.
           *
           * @codeGenApi
           */
          function ɵɵqueryRefresh(queryList) {
            const lView = getLView();
            const tView = getTView();
            const queryIndex = getCurrentQueryIndex();
            setCurrentQueryIndex(queryIndex + 1);
            const tQuery = getTQuery(tView, queryIndex);
            if (queryList.dirty && isCreationMode(lView) === ((tQuery.metadata.flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */)) {
              if (tQuery.matches === null) {
                queryList.reset([]);
              } else {
                const result = tQuery.crossesNgTemplate ? collectQueryResults(tView, lView, queryIndex, []) : materializeViewResults(tView, lView, tQuery, queryIndex);
                queryList.reset(result, unwrapElementRef);
                queryList.notifyOnChanges();
              }
              return true;
            }
            return false;
          }
          /**
           * Creates new QueryList, stores the reference in LView and returns QueryList.
           *
           * @param predicate The type for which the query will search
           * @param flags Flags associated with the query
           * @param read What to save in the query
           *
           * @codeGenApi
           */
          function ɵɵviewQuery(predicate, flags, read) {
            ngDevMode && assertNumber(flags, 'Expecting flags');
            const tView = getTView();
            if (tView.firstCreatePass) {
              createTQuery(tView, new TQueryMetadata_(predicate, flags, read), -1);
              if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {
                tView.staticViewQueries = true;
              }
            }
            createLQuery(tView, getLView(), flags);
          }
          /**
           * Registers a QueryList, associated with a content query, for later refresh (part of a view
           * refresh).
           *
           * @param directiveIndex Current directive index
           * @param predicate The type for which the query will search
           * @param flags Flags associated with the query
           * @param read What to save in the query
           * @returns QueryList<T>
           *
           * @codeGenApi
           */
          function ɵɵcontentQuery(directiveIndex, predicate, flags, read) {
            ngDevMode && assertNumber(flags, 'Expecting flags');
            const tView = getTView();
            if (tView.firstCreatePass) {
              const tNode = getCurrentTNode();
              createTQuery(tView, new TQueryMetadata_(predicate, flags, read), tNode.index);
              saveContentQueryAndDirectiveIndex(tView, directiveIndex);
              if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {
                tView.staticContentQueries = true;
              }
            }
            createLQuery(tView, getLView(), flags);
          }
          /**
           * Loads a QueryList corresponding to the current view or content query.
           *
           * @codeGenApi
           */
          function ɵɵloadQuery() {
            return loadQueryInternal(getLView(), getCurrentQueryIndex());
          }
          function loadQueryInternal(lView, queryIndex) {
            ngDevMode && assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');
            ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);
            return lView[QUERIES].queries[queryIndex].queryList;
          }
          function createLQuery(tView, lView, flags) {
            const queryList = new QueryList((flags & 4 /* QueryFlags.emitDistinctChangesOnly */) === 4 /* QueryFlags.emitDistinctChangesOnly */);
            storeCleanupWithContext(tView, lView, queryList, queryList.destroy);
            if (lView[QUERIES] === null) lView[QUERIES] = new LQueries_();
            lView[QUERIES].queries.push(new LQuery_(queryList));
          }
          function createTQuery(tView, metadata, nodeIndex) {
            if (tView.queries === null) tView.queries = new TQueries_();
            tView.queries.track(new TQuery_(metadata, nodeIndex));
          }
          function saveContentQueryAndDirectiveIndex(tView, directiveIndex) {
            const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);
            const lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;
            if (directiveIndex !== lastSavedDirectiveIndex) {
              tViewContentQueries.push(tView.queries.length - 1, directiveIndex);
            }
          }
          function getTQuery(tView, index) {
            ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');
            return tView.queries.getByIndex(index);
          }
          
          /**
           * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the
           * `<ng-template>` element.
           *
           * @codeGenApi
           */
          function ɵɵtemplateRefExtractor(tNode, lView) {
            return createTemplateRef(tNode, lView);
          }
          
          /**
           * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
           *
           * This should be kept up to date with the public exports of @angular/core.
           */
          const angularCoreEnv = (() => ({
            'ɵɵattribute': ɵɵattribute,
            'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,
            'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,
            'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,
            'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,
            'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,
            'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,
            'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,
            'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,
            'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,
            'ɵɵdefineComponent': ɵɵdefineComponent,
            'ɵɵdefineDirective': ɵɵdefineDirective,
            'ɵɵdefineInjectable': ɵɵdefineInjectable,
            'ɵɵdefineInjector': ɵɵdefineInjector,
            'ɵɵdefineNgModule': ɵɵdefineNgModule,
            'ɵɵdefinePipe': ɵɵdefinePipe,
            'ɵɵdirectiveInject': ɵɵdirectiveInject,
            'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,
            'ɵɵinject': ɵɵinject,
            'ɵɵinjectAttribute': ɵɵinjectAttribute,
            'ɵɵinvalidFactory': ɵɵinvalidFactory,
            'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
            'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,
            'ɵɵresetView': ɵɵresetView,
            'ɵɵHostDirectivesFeature': ɵɵHostDirectivesFeature,
            'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,
            'ɵɵProvidersFeature': ɵɵProvidersFeature,
            'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,
            'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,
            'ɵɵInputTransformsFeature': ɵɵInputTransformsFeature,
            'ɵɵStandaloneFeature': ɵɵStandaloneFeature,
            'ɵɵnextContext': ɵɵnextContext,
            'ɵɵnamespaceHTML': ɵɵnamespaceHTML,
            'ɵɵnamespaceMathML': ɵɵnamespaceMathML,
            'ɵɵnamespaceSVG': ɵɵnamespaceSVG,
            'ɵɵenableBindings': ɵɵenableBindings,
            'ɵɵdisableBindings': ɵɵdisableBindings,
            'ɵɵelementStart': ɵɵelementStart,
            'ɵɵelementEnd': ɵɵelementEnd,
            'ɵɵelement': ɵɵelement,
            'ɵɵelementContainerStart': ɵɵelementContainerStart,
            'ɵɵelementContainerEnd': ɵɵelementContainerEnd,
            'ɵɵelementContainer': ɵɵelementContainer,
            'ɵɵpureFunction0': ɵɵpureFunction0,
            'ɵɵpureFunction1': ɵɵpureFunction1,
            'ɵɵpureFunction2': ɵɵpureFunction2,
            'ɵɵpureFunction3': ɵɵpureFunction3,
            'ɵɵpureFunction4': ɵɵpureFunction4,
            'ɵɵpureFunction5': ɵɵpureFunction5,
            'ɵɵpureFunction6': ɵɵpureFunction6,
            'ɵɵpureFunction7': ɵɵpureFunction7,
            'ɵɵpureFunction8': ɵɵpureFunction8,
            'ɵɵpureFunctionV': ɵɵpureFunctionV,
            'ɵɵgetCurrentView': ɵɵgetCurrentView,
            'ɵɵrestoreView': ɵɵrestoreView,
            'ɵɵlistener': ɵɵlistener,
            'ɵɵprojection': ɵɵprojection,
            'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,
            'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,
            'ɵɵpipeBind1': ɵɵpipeBind1,
            'ɵɵpipeBind2': ɵɵpipeBind2,
            'ɵɵpipeBind3': ɵɵpipeBind3,
            'ɵɵpipeBind4': ɵɵpipeBind4,
            'ɵɵpipeBindV': ɵɵpipeBindV,
            'ɵɵprojectionDef': ɵɵprojectionDef,
            'ɵɵhostProperty': ɵɵhostProperty,
            'ɵɵproperty': ɵɵproperty,
            'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,
            'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,
            'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,
            'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,
            'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,
            'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,
            'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,
            'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,
            'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,
            'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,
            'ɵɵpipe': ɵɵpipe,
            'ɵɵqueryRefresh': ɵɵqueryRefresh,
            'ɵɵviewQuery': ɵɵviewQuery,
            'ɵɵloadQuery': ɵɵloadQuery,
            'ɵɵcontentQuery': ɵɵcontentQuery,
            'ɵɵreference': ɵɵreference,
            'ɵɵclassMap': ɵɵclassMap,
            'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,
            'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,
            'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,
            'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,
            'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,
            'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,
            'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,
            'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,
            'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,
            'ɵɵstyleMap': ɵɵstyleMap,
            'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,
            'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,
            'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,
            'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,
            'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,
            'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,
            'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,
            'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,
            'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,
            'ɵɵstyleProp': ɵɵstyleProp,
            'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,
            'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,
            'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,
            'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,
            'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,
            'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,
            'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,
            'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,
            'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,
            'ɵɵclassProp': ɵɵclassProp,
            'ɵɵadvance': ɵɵadvance,
            'ɵɵtemplate': ɵɵtemplate,
            'ɵɵdefer': ɵɵdefer,
            'ɵɵtext': ɵɵtext,
            'ɵɵtextInterpolate': ɵɵtextInterpolate,
            'ɵɵtextInterpolate1': ɵɵtextInterpolate1,
            'ɵɵtextInterpolate2': ɵɵtextInterpolate2,
            'ɵɵtextInterpolate3': ɵɵtextInterpolate3,
            'ɵɵtextInterpolate4': ɵɵtextInterpolate4,
            'ɵɵtextInterpolate5': ɵɵtextInterpolate5,
            'ɵɵtextInterpolate6': ɵɵtextInterpolate6,
            'ɵɵtextInterpolate7': ɵɵtextInterpolate7,
            'ɵɵtextInterpolate8': ɵɵtextInterpolate8,
            'ɵɵtextInterpolateV': ɵɵtextInterpolateV,
            'ɵɵi18n': ɵɵi18n,
            'ɵɵi18nAttributes': ɵɵi18nAttributes,
            'ɵɵi18nExp': ɵɵi18nExp,
            'ɵɵi18nStart': ɵɵi18nStart,
            'ɵɵi18nEnd': ɵɵi18nEnd,
            'ɵɵi18nApply': ɵɵi18nApply,
            'ɵɵi18nPostprocess': ɵɵi18nPostprocess,
            'ɵɵresolveWindow': ɵɵresolveWindow,
            'ɵɵresolveDocument': ɵɵresolveDocument,
            'ɵɵresolveBody': ɵɵresolveBody,
            'ɵɵsetComponentScope': ɵɵsetComponentScope,
            'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,
            'ɵɵregisterNgModuleType': registerNgModuleType,
            'ɵɵsanitizeHtml': ɵɵsanitizeHtml,
            'ɵɵsanitizeStyle': ɵɵsanitizeStyle,
            'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,
            'ɵɵsanitizeScript': ɵɵsanitizeScript,
            'ɵɵsanitizeUrl': ɵɵsanitizeUrl,
            'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,
            'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,
            'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,
            'ɵɵvalidateIframeAttribute': ɵɵvalidateIframeAttribute,
            'forwardRef': forwardRef,
            'resolveForwardRef': resolveForwardRef
          }))();
          let jitOptions = null;
          function setJitOptions(options) {
            if (jitOptions !== null) {
              if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {
                ngDevMode && console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');
                return;
              }
              if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {
                ngDevMode && console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');
                return;
              }
            }
            jitOptions = options;
          }
          function getJitOptions() {
            return jitOptions;
          }
          function resetJitOptions() {
            jitOptions = null;
          }
          function patchModuleCompilation() {
            // Does nothing, but exists as a target for patching.
          }
          function isModuleWithProviders(value) {
            return value.ngModule !== undefined;
          }
          function isNgModule(value) {
            return !!getNgModuleDef(value);
          }
          function isPipe(value) {
            return !!getPipeDef$1(value);
          }
          function isDirective(value) {
            return !!getDirectiveDef(value);
          }
          function isComponent(value) {
            return !!getComponentDef(value);
          }
          const moduleQueue = [];
          /**
           * Enqueues moduleDef to be checked later to see if scope can be set on its
           * component declarations.
           */
          function enqueueModuleForDelayedScoping(moduleType, ngModule) {
            moduleQueue.push({
              moduleType,
              ngModule
            });
          }
          let flushingModuleQueue = false;
          /**
           * Loops over queued module definitions, if a given module definition has all of its
           * declarations resolved, it dequeues that module definition and sets the scope on
           * its declarations.
           */
          function flushModuleScopingQueueAsMuchAsPossible() {
            if (!flushingModuleQueue) {
              flushingModuleQueue = true;
              try {
                for (let i = moduleQueue.length - 1; i >= 0; i--) {
                  const {
                    moduleType,
                    ngModule
                  } = moduleQueue[i];
                  if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {
                    // dequeue
                    moduleQueue.splice(i, 1);
                    setScopeOnDeclaredComponents(moduleType, ngModule);
                  }
                }
              } finally {
                flushingModuleQueue = false;
              }
            }
          }
          /**
           * Returns truthy if a declaration has resolved. If the declaration happens to be
           * an array of declarations, it will recurse to check each declaration in that array
           * (which may also be arrays).
           */
          function isResolvedDeclaration(declaration) {
            if (Array.isArray(declaration)) {
              return declaration.every(isResolvedDeclaration);
            }
            return !!resolveForwardRef(declaration);
          }
          /**
           * Compiles a module in JIT mode.
           *
           * This function automatically gets called when a class has a `@NgModule` decorator.
           */
          function compileNgModule(moduleType, ngModule = {}) {
            patchModuleCompilation();
            compileNgModuleDefs(moduleType, ngModule);
            if (ngModule.id !== undefined) {
              registerNgModuleType(moduleType, ngModule.id);
            }
            // Because we don't know if all declarations have resolved yet at the moment the
            // NgModule decorator is executing, we're enqueueing the setting of module scope
            // on its declarations to be run at a later time when all declarations for the module,
            // including forward refs, have resolved.
            enqueueModuleForDelayedScoping(moduleType, ngModule);
          }
          /**
           * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.
           *
           * It's possible to compile a module via this API which will allow duplicate declarations in its
           * root.
           */
          function compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {
            ngDevMode && assertDefined(moduleType, 'Required value moduleType');
            ngDevMode && assertDefined(ngModule, 'Required value ngModule');
            const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);
            let ngModuleDef = null;
            Object.defineProperty(moduleType, NG_MOD_DEF, {
              configurable: true,
              get: () => {
                if (ngModuleDef === null) {
                  if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {
                    // We need to assert this immediately, because allowing it to continue will cause it to
                    // go into an infinite loop before we've reached the point where we throw all the errors.
                    throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);
                  }
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'NgModule',
                    type: moduleType
                  });
                  ngModuleDef = compiler.compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {
                    type: moduleType,
                    bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY).map(resolveForwardRef),
                    declarations: declarations.map(resolveForwardRef),
                    imports: flatten(ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef).map(expandModuleWithProviders),
                    exports: flatten(ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef).map(expandModuleWithProviders),
                    schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,
                    id: ngModule.id || null
                  });
                  // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime
                  // should verify that there are no unknown elements in a template. In AOT mode, that check
                  // happens at compile time and `schemas` information is not present on Component and Module
                  // defs after compilation (so the check doesn't happen the second time at runtime).
                  if (!ngModuleDef.schemas) {
                    ngModuleDef.schemas = [];
                  }
                }
                return ngModuleDef;
              }
            });
            let ngFactoryDef = null;
            Object.defineProperty(moduleType, NG_FACTORY_DEF, {
              get: () => {
                if (ngFactoryDef === null) {
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'NgModule',
                    type: moduleType
                  });
                  ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${moduleType.name}/ɵfac.js`, {
                    name: moduleType.name,
                    type: moduleType,
                    deps: reflectDependencies(moduleType),
                    target: compiler.FactoryTarget.NgModule,
                    typeArgumentCount: 0
                  });
                }
                return ngFactoryDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
            let ngInjectorDef = null;
            Object.defineProperty(moduleType, NG_INJ_DEF, {
              get: () => {
                if (ngInjectorDef === null) {
                  ngDevMode && verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);
                  const meta = {
                    name: moduleType.name,
                    type: moduleType,
                    providers: ngModule.providers || EMPTY_ARRAY,
                    imports: [(ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef), (ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef)]
                  };
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'NgModule',
                    type: moduleType
                  });
                  ngInjectorDef = compiler.compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);
                }
                return ngInjectorDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
          }
          function generateStandaloneInDeclarationsError(type, location) {
            const prefix = `Unexpected "${stringifyForError(type)}" found in the "declarations" array of the`;
            const suffix = `"${stringifyForError(type)}" is marked as standalone and can't be declared ` + 'in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?';
            return `${prefix} ${location}, ${suffix}`;
          }
          function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {
            if (verifiedNgModule.get(moduleType)) return;
            // skip verifications of standalone components, directives, and pipes
            if (isStandalone(moduleType)) return;
            verifiedNgModule.set(moduleType, true);
            moduleType = resolveForwardRef(moduleType);
            let ngModuleDef;
            if (importingModule) {
              ngModuleDef = getNgModuleDef(moduleType);
              if (!ngModuleDef) {
                throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
              }
            } else {
              ngModuleDef = getNgModuleDef(moduleType, true);
            }
            const errors = [];
            const declarations = maybeUnwrapFn(ngModuleDef.declarations);
            const imports = maybeUnwrapFn(ngModuleDef.imports);
            flatten(imports).map(unwrapModuleWithProvidersImports).forEach(modOrStandaloneCmpt => {
              verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);
              verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);
            });
            const exports = maybeUnwrapFn(ngModuleDef.exports);
            declarations.forEach(verifyDeclarationsHaveDefinitions);
            declarations.forEach(verifyDirectivesHaveSelector);
            declarations.forEach(declarationType => verifyNotStandalone(declarationType, moduleType));
            const combinedDeclarations = [...declarations.map(resolveForwardRef), ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef)];
            exports.forEach(verifyExportsAreDeclaredOrReExported);
            declarations.forEach(decl => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));
            const ngModule = getAnnotation(moduleType, 'NgModule');
            if (ngModule) {
              ngModule.imports && flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(mod => {
                verifySemanticsOfNgModuleImport(mod, moduleType);
                verifySemanticsOfNgModuleDef(mod, false, moduleType);
              });
              ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);
              ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);
            }
            // Throw Error if any errors were detected.
            if (errors.length) {
              throw new Error(errors.join('\n'));
            }
            ////////////////////////////////////////////////////////////////////////////////////////////////
            function verifyDeclarationsHaveDefinitions(type) {
              type = resolveForwardRef(type);
              const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);
              if (!def) {
                errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);
              }
            }
            function verifyDirectivesHaveSelector(type) {
              type = resolveForwardRef(type);
              const def = getDirectiveDef(type);
              if (!getComponentDef(type) && def && def.selectors.length == 0) {
                errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);
              }
            }
            function verifyNotStandalone(type, moduleType) {
              type = resolveForwardRef(type);
              const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);
              if (def?.standalone) {
                const location = `"${stringifyForError(moduleType)}" NgModule`;
                errors.push(generateStandaloneInDeclarationsError(type, location));
              }
            }
            function verifyExportsAreDeclaredOrReExported(type) {
              type = resolveForwardRef(type);
              const kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' || getPipeDef$1(type) && 'pipe';
              if (kind) {
                // only checked if we are declared as Component, Directive, or Pipe
                // Modules don't need to be declared or imported.
                if (combinedDeclarations.lastIndexOf(type) === -1) {
                  // We are exporting something which we don't explicitly declare or import.
                  errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);
                }
              }
            }
            function verifyDeclarationIsUnique(type, suppressErrors) {
              type = resolveForwardRef(type);
              const existingModule = ownerNgModule.get(type);
              if (existingModule && existingModule !== moduleType) {
                if (!suppressErrors) {
                  const modules = [existingModule, moduleType].map(stringifyForError).sort();
                  errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` + `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` + `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);
                }
              } else {
                // Mark type as having owner.
                ownerNgModule.set(type, moduleType);
              }
            }
            function verifyComponentIsPartOfNgModule(type) {
              type = resolveForwardRef(type);
              const existingModule = ownerNgModule.get(type);
              if (!existingModule && !isStandalone(type)) {
                errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);
              }
            }
            function verifyCorrectBootstrapType(type) {
              type = resolveForwardRef(type);
              if (!getComponentDef(type)) {
                errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);
              }
              if (isStandalone(type)) {
                // Note: this error should be the same as the
                // `NGMODULE_BOOTSTRAP_IS_STANDALONE` one in AOT compiler.
                errors.push(`The \`${stringifyForError(type)}\` class is a standalone component, which can ` + `not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` ` + `function for bootstrap instead.`);
              }
            }
            function verifySemanticsOfNgModuleImport(type, importingModule) {
              type = resolveForwardRef(type);
              const directiveDef = getComponentDef(type) || getDirectiveDef(type);
              if (directiveDef !== null && !directiveDef.standalone) {
                throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
              }
              const pipeDef = getPipeDef$1(type);
              if (pipeDef !== null && !pipeDef.standalone) {
                throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
              }
            }
          }
          function unwrapModuleWithProvidersImports(typeOrWithProviders) {
            typeOrWithProviders = resolveForwardRef(typeOrWithProviders);
            return typeOrWithProviders.ngModule || typeOrWithProviders;
          }
          function getAnnotation(type, name) {
            let annotation = null;
            collect(type.__annotations__);
            collect(type.decorators);
            return annotation;
            function collect(annotations) {
              if (annotations) {
                annotations.forEach(readAnnotation);
              }
            }
            function readAnnotation(decorator) {
              if (!annotation) {
                const proto = Object.getPrototypeOf(decorator);
                if (proto.ngMetadataName == name) {
                  annotation = decorator;
                } else if (decorator.type) {
                  const proto = Object.getPrototypeOf(decorator.type);
                  if (proto.ngMetadataName == name) {
                    annotation = decorator.args[0];
                  }
                }
              }
            }
          }
          /**
           * Keep track of compiled components. This is needed because in tests we often want to compile the
           * same component with more than one NgModule. This would cause an error unless we reset which
           * NgModule the component belongs to. We keep the list of compiled components here so that the
           * TestBed can reset it later.
           */
          let ownerNgModule = new WeakMap();
          let verifiedNgModule = new WeakMap();
          function resetCompiledComponents() {
            ownerNgModule = new WeakMap();
            verifiedNgModule = new WeakMap();
            moduleQueue.length = 0;
            GENERATED_COMP_IDS.clear();
          }
          /**
           * Computes the combined declarations of explicit declarations, as well as declarations inherited by
           * traversing the exports of imported modules.
           * @param type
           */
          function computeCombinedExports(type) {
            type = resolveForwardRef(type);
            const ngModuleDef = getNgModuleDef(type);
            // a standalone component, directive or pipe
            if (ngModuleDef === null) {
              return [type];
            }
            return flatten(maybeUnwrapFn(ngModuleDef.exports).map(type => {
              const ngModuleDef = getNgModuleDef(type);
              if (ngModuleDef) {
                verifySemanticsOfNgModuleDef(type, false);
                return computeCombinedExports(type);
              } else {
                return type;
              }
            }));
          }
          /**
           * Some declared components may be compiled asynchronously, and thus may not have their
           * ɵcmp set yet. If this is the case, then a reference to the module is written into
           * the `ngSelectorScope` property of the declared type.
           */
          function setScopeOnDeclaredComponents(moduleType, ngModule) {
            const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);
            const transitiveScopes = transitiveScopesFor(moduleType);
            declarations.forEach(declaration => {
              declaration = resolveForwardRef(declaration);
              if (declaration.hasOwnProperty(NG_COMP_DEF)) {
                // A `ɵcmp` field exists - go ahead and patch the component directly.
                const component = declaration;
                const componentDef = getComponentDef(component);
                patchComponentDefWithScope(componentDef, transitiveScopes);
              } else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {
                // Set `ngSelectorScope` for future reference when the component compilation finishes.
                declaration.ngSelectorScope = moduleType;
              }
            });
          }
          /**
           * Patch the definition of a component with directives and pipes from the compilation scope of
           * a given module.
           */
          function patchComponentDefWithScope(componentDef, transitiveScopes) {
            componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives).map(dir => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir)).filter(def => !!def);
            componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map(pipe => getPipeDef$1(pipe));
            componentDef.schemas = transitiveScopes.schemas;
            // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we
            // may face a problem where previously compiled defs available to a given Component/Directive
            // are cached in TView and may become stale (in case any of these defs gets recompiled). In
            // order to avoid this problem, we force fresh TView to be created.
            componentDef.tView = null;
          }
          /**
           * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type
           * (either a NgModule or a standalone component / directive / pipe).
           */
          function transitiveScopesFor(type) {
            if (isNgModule(type)) {
              return transitiveScopesForNgModule(type);
            } else if (isStandalone(type)) {
              const directiveDef = getComponentDef(type) || getDirectiveDef(type);
              if (directiveDef !== null) {
                return {
                  schemas: null,
                  compilation: {
                    directives: new Set(),
                    pipes: new Set()
                  },
                  exported: {
                    directives: new Set([type]),
                    pipes: new Set()
                  }
                };
              }
              const pipeDef = getPipeDef$1(type);
              if (pipeDef !== null) {
                return {
                  schemas: null,
                  compilation: {
                    directives: new Set(),
                    pipes: new Set()
                  },
                  exported: {
                    directives: new Set(),
                    pipes: new Set([type])
                  }
                };
              }
            }
            // TODO: change the error message to be more user-facing and take standalone into account
            throw new Error(`${type.name} does not have a module def (ɵmod property)`);
          }
          /**
           * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.
           *
           * This operation is memoized and the result is cached on the module's definition. This function can
           * be called on modules with components that have not fully compiled yet, but the result should not
           * be used until they have.
           *
           * @param moduleType module that transitive scope should be calculated for.
           */
          function transitiveScopesForNgModule(moduleType) {
            const def = getNgModuleDef(moduleType, true);
            if (def.transitiveCompileScopes !== null) {
              return def.transitiveCompileScopes;
            }
            const scopes = {
              schemas: def.schemas || null,
              compilation: {
                directives: new Set(),
                pipes: new Set()
              },
              exported: {
                directives: new Set(),
                pipes: new Set()
              }
            };
            maybeUnwrapFn(def.imports).forEach(imported => {
              // When this module imports another, the imported module's exported directives and pipes are
              // added to the compilation scope of this module.
              const importedScope = transitiveScopesFor(imported);
              importedScope.exported.directives.forEach(entry => scopes.compilation.directives.add(entry));
              importedScope.exported.pipes.forEach(entry => scopes.compilation.pipes.add(entry));
            });
            maybeUnwrapFn(def.declarations).forEach(declared => {
              const declaredWithDefs = declared;
              if (getPipeDef$1(declaredWithDefs)) {
                scopes.compilation.pipes.add(declared);
              } else {
                // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't
                // had its template compiled yet. In either case, it gets added to the compilation's
                // directives.
                scopes.compilation.directives.add(declared);
              }
            });
            maybeUnwrapFn(def.exports).forEach(exported => {
              const exportedType = exported;
              // Either the type is a module, a pipe, or a component/directive (which may not have a
              // ɵcmp as it might be compiled asynchronously).
              if (isNgModule(exportedType)) {
                // When this module exports another, the exported module's exported directives and pipes are
                // added to both the compilation and exported scopes of this module.
                const exportedScope = transitiveScopesFor(exportedType);
                exportedScope.exported.directives.forEach(entry => {
                  scopes.compilation.directives.add(entry);
                  scopes.exported.directives.add(entry);
                });
                exportedScope.exported.pipes.forEach(entry => {
                  scopes.compilation.pipes.add(entry);
                  scopes.exported.pipes.add(entry);
                });
              } else if (getPipeDef$1(exportedType)) {
                scopes.exported.pipes.add(exportedType);
              } else {
                scopes.exported.directives.add(exportedType);
              }
            });
            def.transitiveCompileScopes = scopes;
            return scopes;
          }
          function expandModuleWithProviders(value) {
            if (isModuleWithProviders(value)) {
              return value.ngModule;
            }
            return value;
          }
          
          /**
           * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This
           * matters in the following scenario:
           *
           * Consider a component 'A' that extends component 'B', both declared in module 'M'. During
           * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,
           * potentially triggering compilation of 'B'. If this nested compilation were to trigger
           * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the
           * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of
           * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid
           * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure
           * all compilations have finished.
           */
          let compilationDepth = 0;
          /**
           * Compile an Angular component according to its decorator metadata, and patch the resulting
           * component def (ɵcmp) onto the component type.
           *
           * Compilation may be asynchronous (due to the need to resolve URLs for the component template or
           * other resources, for example). In the event that compilation is not immediate, `compileComponent`
           * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`
           * until the global queue has been resolved with a call to `resolveComponentResources`.
           */
          function compileComponent(type, metadata) {
            // Initialize ngDevMode. This must be the first statement in compileComponent.
            // See the `initNgDevMode` docstring for more information.
            (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
            let ngComponentDef = null;
            // Metadata may have resources which need to be resolved.
            maybeQueueResolutionOfComponentResources(type, metadata);
            // Note that we're using the same function as `Directive`, because that's only subset of metadata
            // that we need to create the ngFactoryDef. We're avoiding using the component metadata
            // because we'd have to resolve the asynchronous templates.
            addDirectiveFactoryDef(type, metadata);
            Object.defineProperty(type, NG_COMP_DEF, {
              get: () => {
                if (ngComponentDef === null) {
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'component',
                    type: type
                  });
                  if (componentNeedsResolution(metadata)) {
                    const error = [`Component '${type.name}' is not resolved:`];
                    if (metadata.templateUrl) {
                      error.push(` - templateUrl: ${metadata.templateUrl}`);
                    }
                    if (metadata.styleUrls && metadata.styleUrls.length) {
                      error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);
                    }
                    error.push(`Did you run and wait for 'resolveComponentResources()'?`);
                    throw new Error(error.join('\n'));
                  }
                  // This const was called `jitOptions` previously but had to be renamed to `options` because
                  // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.
                  // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.
                  // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.
                  const options = getJitOptions();
                  let preserveWhitespaces = metadata.preserveWhitespaces;
                  if (preserveWhitespaces === undefined) {
                    if (options !== null && options.preserveWhitespaces !== undefined) {
                      preserveWhitespaces = options.preserveWhitespaces;
                    } else {
                      preserveWhitespaces = false;
                    }
                  }
                  let encapsulation = metadata.encapsulation;
                  if (encapsulation === undefined) {
                    if (options !== null && options.defaultEncapsulation !== undefined) {
                      encapsulation = options.defaultEncapsulation;
                    } else {
                      encapsulation = ViewEncapsulation$1.Emulated;
                    }
                  }
                  const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;
                  const meta = {
                    ...directiveMetadata(type, metadata),
                    typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl),
                    template: metadata.template || '',
                    preserveWhitespaces,
                    styles: metadata.styles || EMPTY_ARRAY,
                    animations: metadata.animations,
                    // JIT components are always compiled against an empty set of `declarations`. Instead, the
                    // `directiveDefs` and `pipeDefs` are updated at a later point:
                    //  * for NgModule-based components, they're set when the NgModule which declares the
                    //    component resolves in the module scoping queue
                    //  * for standalone components, they're set just below, after `compileComponent`.
                    declarations: [],
                    changeDetection: metadata.changeDetection,
                    encapsulation,
                    interpolation: metadata.interpolation,
                    viewProviders: metadata.viewProviders || null
                  };
                  compilationDepth++;
                  try {
                    if (meta.usesInheritance) {
                      addDirectiveDefToUndecoratedParents(type);
                    }
                    ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);
                    if (metadata.standalone) {
                      // Patch the component definition for standalone components with `directiveDefs` and
                      // `pipeDefs` functions which lazily compute the directives/pipes available in the
                      // standalone component. Also set `dependencies` to the lazily resolved list of imports.
                      const imports = flatten(metadata.imports || EMPTY_ARRAY);
                      const {
                        directiveDefs,
                        pipeDefs
                      } = getStandaloneDefFunctions(type, imports);
                      ngComponentDef.directiveDefs = directiveDefs;
                      ngComponentDef.pipeDefs = pipeDefs;
                      ngComponentDef.dependencies = () => imports.map(resolveForwardRef);
                    }
                  } finally {
                    // Ensure that the compilation depth is decremented even when the compilation failed.
                    compilationDepth--;
                  }
                  if (compilationDepth === 0) {
                    // When NgModule decorator executed, we enqueued the module definition such that
                    // it would only dequeue and add itself as module scope to all of its declarations,
                    // but only if  if all of its declarations had resolved. This call runs the check
                    // to see if any modules that are in the queue can be dequeued and add scope to
                    // their declarations.
                    flushModuleScopingQueueAsMuchAsPossible();
                  }
                  // If component compilation is async, then the @NgModule annotation which declares the
                  // component may execute and set an ngSelectorScope property on the component type. This
                  // allows the component to patch itself with directiveDefs from the module after it
                  // finishes compiling.
                  if (hasSelectorScope(type)) {
                    const scopes = transitiveScopesFor(type.ngSelectorScope);
                    patchComponentDefWithScope(ngComponentDef, scopes);
                  }
                  if (metadata.schemas) {
                    if (metadata.standalone) {
                      ngComponentDef.schemas = metadata.schemas;
                    } else {
                      throw new Error(`The 'schemas' was specified for the ${stringifyForError(type)} but is only valid on a component that is standalone.`);
                    }
                  } else if (metadata.standalone) {
                    ngComponentDef.schemas = [];
                  }
                }
                return ngComponentDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
          }
          function getDependencyTypeForError(type) {
            if (getComponentDef(type)) return 'component';
            if (getDirectiveDef(type)) return 'directive';
            if (getPipeDef$1(type)) return 'pipe';
            return 'type';
          }
          function verifyStandaloneImport(depType, importingType) {
            if (isForwardRef(depType)) {
              depType = resolveForwardRef(depType);
              if (!depType) {
                throw new Error(`Expected forwardRef function, imported from "${stringifyForError(importingType)}", to return a standalone entity or NgModule but got "${stringifyForError(depType) || depType}".`);
              }
            }
            if (getNgModuleDef(depType) == null) {
              const def = getComponentDef(depType) || getDirectiveDef(depType) || getPipeDef$1(depType);
              if (def != null) {
                // if a component, directive or pipe is imported make sure that it is standalone
                if (!def.standalone) {
                  throw new Error(`The "${stringifyForError(depType)}" ${getDependencyTypeForError(depType)}, imported from "${stringifyForError(importingType)}", is not standalone. Did you forget to add the standalone: true flag?`);
                }
              } else {
                // it can be either a module with provider or an unknown (not annotated) type
                if (isModuleWithProviders(depType)) {
                  throw new Error(`A module with providers was imported from "${stringifyForError(importingType)}". Modules with providers are not supported in standalone components imports.`);
                } else {
                  throw new Error(`The "${stringifyForError(depType)}" type, imported from "${stringifyForError(importingType)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);
                }
              }
            }
          }
          /**
           * Build memoized `directiveDefs` and `pipeDefs` functions for the component definition of a
           * standalone component, which process `imports` and filter out directives and pipes. The use of
           * memoized functions here allows for the delayed resolution of any `forwardRef`s present in the
           * component's `imports`.
           */
          function getStandaloneDefFunctions(type, imports) {
            let cachedDirectiveDefs = null;
            let cachedPipeDefs = null;
            const directiveDefs = () => {
              if (cachedDirectiveDefs === null) {
                // Standalone components are always able to self-reference, so include the component's own
                // definition in its `directiveDefs`.
                cachedDirectiveDefs = [getComponentDef(type)];
                const seen = new Set([type]);
                for (const rawDep of imports) {
                  ngDevMode && verifyStandaloneImport(rawDep, type);
                  const dep = resolveForwardRef(rawDep);
                  if (seen.has(dep)) {
                    continue;
                  }
                  seen.add(dep);
                  if (!!getNgModuleDef(dep)) {
                    const scope = transitiveScopesFor(dep);
                    for (const dir of scope.exported.directives) {
                      const def = getComponentDef(dir) || getDirectiveDef(dir);
                      if (def && !seen.has(dir)) {
                        seen.add(dir);
                        cachedDirectiveDefs.push(def);
                      }
                    }
                  } else {
                    const def = getComponentDef(dep) || getDirectiveDef(dep);
                    if (def) {
                      cachedDirectiveDefs.push(def);
                    }
                  }
                }
              }
              return cachedDirectiveDefs;
            };
            const pipeDefs = () => {
              if (cachedPipeDefs === null) {
                cachedPipeDefs = [];
                const seen = new Set();
                for (const rawDep of imports) {
                  const dep = resolveForwardRef(rawDep);
                  if (seen.has(dep)) {
                    continue;
                  }
                  seen.add(dep);
                  if (!!getNgModuleDef(dep)) {
                    const scope = transitiveScopesFor(dep);
                    for (const pipe of scope.exported.pipes) {
                      const def = getPipeDef$1(pipe);
                      if (def && !seen.has(pipe)) {
                        seen.add(pipe);
                        cachedPipeDefs.push(def);
                      }
                    }
                  } else {
                    const def = getPipeDef$1(dep);
                    if (def) {
                      cachedPipeDefs.push(def);
                    }
                  }
                }
              }
              return cachedPipeDefs;
            };
            return {
              directiveDefs,
              pipeDefs
            };
          }
          function hasSelectorScope(component) {
            return component.ngSelectorScope !== undefined;
          }
          /**
           * Compile an Angular directive according to its decorator metadata, and patch the resulting
           * directive def onto the component type.
           *
           * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which
           * will resolve when compilation completes and the directive becomes usable.
           */
          function compileDirective(type, directive) {
            let ngDirectiveDef = null;
            addDirectiveFactoryDef(type, directive || {});
            Object.defineProperty(type, NG_DIR_DEF, {
              get: () => {
                if (ngDirectiveDef === null) {
                  // `directive` can be null in the case of abstract directives as a base class
                  // that use `@Directive()` with no selector. In that case, pass empty object to the
                  // `directiveMetadata` function instead of null.
                  const meta = getDirectiveMetadata(type, directive || {});
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'directive',
                    type
                  });
                  ngDirectiveDef = compiler.compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);
                }
                return ngDirectiveDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
          }
          function getDirectiveMetadata(type, metadata) {
            const name = type && type.name;
            const sourceMapUrl = `ng:///${name}/ɵdir.js`;
            const compiler = getCompilerFacade({
              usage: 0 /* JitCompilerUsage.Decorator */,
              kind: 'directive',
              type
            });
            const facade = directiveMetadata(type, metadata);
            facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);
            if (facade.usesInheritance) {
              addDirectiveDefToUndecoratedParents(type);
            }
            return {
              metadata: facade,
              sourceMapUrl
            };
          }
          function addDirectiveFactoryDef(type, metadata) {
            let ngFactoryDef = null;
            Object.defineProperty(type, NG_FACTORY_DEF, {
              get: () => {
                if (ngFactoryDef === null) {
                  const meta = getDirectiveMetadata(type, metadata);
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'directive',
                    type
                  });
                  ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, {
                    name: meta.metadata.name,
                    type: meta.metadata.type,
                    typeArgumentCount: 0,
                    deps: reflectDependencies(type),
                    target: compiler.FactoryTarget.Directive
                  });
                }
                return ngFactoryDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
          }
          function extendsDirectlyFromObject(type) {
            return Object.getPrototypeOf(type.prototype) === Object.prototype;
          }
          /**
           * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a
           * `Component`).
           */
          function directiveMetadata(type, metadata) {
            // Reflect inputs and outputs.
            const reflect = getReflect();
            const propMetadata = reflect.ownPropMetadata(type);
            return {
              name: type.name,
              type: type,
              selector: metadata.selector !== undefined ? metadata.selector : null,
              host: metadata.host || EMPTY_OBJ,
              propMetadata: propMetadata,
              inputs: metadata.inputs || EMPTY_ARRAY,
              outputs: metadata.outputs || EMPTY_ARRAY,
              queries: extractQueriesMetadata(type, propMetadata, isContentQuery),
              lifecycle: {
                usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges')
              },
              typeSourceSpan: null,
              usesInheritance: !extendsDirectlyFromObject(type),
              exportAs: extractExportAs(metadata.exportAs),
              providers: metadata.providers || null,
              viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery),
              isStandalone: !!metadata.standalone,
              isSignal: !!metadata.signals,
              hostDirectives: metadata.hostDirectives?.map(directive => typeof directive === 'function' ? {
                directive
              } : directive) || null
            };
          }
          /**
           * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.
           */
          function addDirectiveDefToUndecoratedParents(type) {
            const objPrototype = Object.prototype;
            let parent = Object.getPrototypeOf(type.prototype).constructor;
            // Go up the prototype until we hit `Object`.
            while (parent && parent !== objPrototype) {
              // Since inheritance works if the class was annotated already, we only need to add
              // the def if there are no annotations and the def hasn't been created already.
              if (!getDirectiveDef(parent) && !getComponentDef(parent) && shouldAddAbstractDirective(parent)) {
                compileDirective(parent, null);
              }
              parent = Object.getPrototypeOf(parent);
            }
          }
          function convertToR3QueryPredicate(selector) {
            return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);
          }
          function convertToR3QueryMetadata(propertyName, ann) {
            return {
              propertyName: propertyName,
              predicate: convertToR3QueryPredicate(ann.selector),
              descendants: ann.descendants,
              first: ann.first,
              read: ann.read ? ann.read : null,
              static: !!ann.static,
              emitDistinctChangesOnly: !!ann.emitDistinctChangesOnly
            };
          }
          function extractQueriesMetadata(type, propMetadata, isQueryAnn) {
            const queriesMeta = [];
            for (const field in propMetadata) {
              if (propMetadata.hasOwnProperty(field)) {
                const annotations = propMetadata[field];
                annotations.forEach(ann => {
                  if (isQueryAnn(ann)) {
                    if (!ann.selector) {
                      throw new Error(`Can't construct a query for the property "${field}" of ` + `"${stringifyForError(type)}" since the query selector wasn't defined.`);
                    }
                    if (annotations.some(isInputAnnotation)) {
                      throw new Error(`Cannot combine @Input decorators with query decorators`);
                    }
                    queriesMeta.push(convertToR3QueryMetadata(field, ann));
                  }
                });
              }
            }
            return queriesMeta;
          }
          function extractExportAs(exportAs) {
            return exportAs === undefined ? null : splitByComma(exportAs);
          }
          function isContentQuery(value) {
            const name = value.ngMetadataName;
            return name === 'ContentChild' || name === 'ContentChildren';
          }
          function isViewQuery(value) {
            const name = value.ngMetadataName;
            return name === 'ViewChild' || name === 'ViewChildren';
          }
          function isInputAnnotation(value) {
            return value.ngMetadataName === 'Input';
          }
          function splitByComma(value) {
            return value.split(',').map(piece => piece.trim());
          }
          const LIFECYCLE_HOOKS = ['ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked', 'ngAfterContentInit', 'ngAfterContentChecked'];
          function shouldAddAbstractDirective(type) {
            const reflect = getReflect();
            if (LIFECYCLE_HOOKS.some(hookName => reflect.hasLifecycleHook(type, hookName))) {
              return true;
            }
            const propMetadata = reflect.propMetadata(type);
            for (const field in propMetadata) {
              const annotations = propMetadata[field];
              for (let i = 0; i < annotations.length; i++) {
                const current = annotations[i];
                const metadataName = current.ngMetadataName;
                if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) || metadataName === 'Output' || metadataName === 'HostBinding' || metadataName === 'HostListener') {
                  return true;
                }
              }
            }
            return false;
          }
          function compilePipe(type, meta) {
            let ngPipeDef = null;
            let ngFactoryDef = null;
            Object.defineProperty(type, NG_FACTORY_DEF, {
              get: () => {
                if (ngFactoryDef === null) {
                  const metadata = getPipeMetadata(type, meta);
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'pipe',
                    type: metadata.type
                  });
                  ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, {
                    name: metadata.name,
                    type: metadata.type,
                    typeArgumentCount: 0,
                    deps: reflectDependencies(type),
                    target: compiler.FactoryTarget.Pipe
                  });
                }
                return ngFactoryDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
            Object.defineProperty(type, NG_PIPE_DEF, {
              get: () => {
                if (ngPipeDef === null) {
                  const metadata = getPipeMetadata(type, meta);
                  const compiler = getCompilerFacade({
                    usage: 0 /* JitCompilerUsage.Decorator */,
                    kind: 'pipe',
                    type: metadata.type
                  });
                  ngPipeDef = compiler.compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);
                }
                return ngPipeDef;
              },
              // Make the property configurable in dev mode to allow overriding in tests
              configurable: !!ngDevMode
            });
          }
          function getPipeMetadata(type, meta) {
            return {
              type: type,
              name: type.name,
              pipeName: meta.name,
              pure: meta.pure !== undefined ? meta.pure : true,
              isStandalone: !!meta.standalone
            };
          }
          
          /**
           * Type of the Directive metadata.
           *
           * @publicApi
           */
          const Directive = makeDecorator('Directive', (dir = {}) => dir, undefined, undefined, (type, meta) => compileDirective(type, meta));
          /**
           * Component decorator and metadata.
           *
           * @Annotation
           * @publicApi
           */
          const Component = makeDecorator('Component', (c = {}) => ({
            changeDetection: ChangeDetectionStrategy.Default,
            ...c
          }), Directive, undefined, (type, meta) => compileComponent(type, meta));
          /**
           * @Annotation
           * @publicApi
           */
          const Pipe = makeDecorator('Pipe', p => ({
            pure: true,
            ...p
          }), undefined, undefined, (type, meta) => compilePipe(type, meta));
          /**
           * @Annotation
           * @publicApi
           */
          const Input = makePropDecorator('Input', arg => {
            if (!arg) {
              return {};
            }
            return typeof arg === 'string' ? {
              alias: arg
            } : arg;
          });
          /**
           * @Annotation
           * @publicApi
           */
          const Output = makePropDecorator('Output', alias => ({
            alias
          }));
          /**
           * @Annotation
           * @publicApi
           */
          const HostBinding = makePropDecorator('HostBinding', hostPropertyName => ({
            hostPropertyName
          }));
          /**
           * Decorator that binds a DOM event to a host listener and supplies configuration metadata.
           * Angular invokes the supplied handler method when the host element emits the specified event,
           * and updates the bound element with the result.
           *
           * If the handler method returns false, applies `preventDefault` on the bound element.
           *
           * @usageNotes
           *
           * The following example declares a directive
           * that attaches a click listener to a button and counts clicks.
           *
           * ```ts
           * @Directive({selector: 'button[counting]'})
           * class CountClicks {
           *   numberOfClicks = 0;
           *
           *   @HostListener('click', ['$event.target'])
           *   onClick(btn) {
           *     console.log('button', btn, 'number of clicks:', this.numberOfClicks++);
           *   }
           * }
           *
           * @Component({
           *   selector: 'app',
           *   template: '<button counting>Increment</button>',
           * })
           * class App {}
           *
           * ```
           *
           * The following example registers another DOM event handler that listens for `Enter` key-press
           * events on the global `window`.
           * ``` ts
           * import { HostListener, Component } from "@angular/core";
           *
           * @Component({
           *   selector: 'app',
           *   template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key
           * to increment the counter.
           *   <button (click)="resetCounter()">Reset Counter</button>`
           * })
           * class AppComponent {
           *   counter = 0;
           *   @HostListener('window:keydown.enter', ['$event'])
           *   handleKeyDown(event: KeyboardEvent) {
           *     this.counter++;
           *   }
           *   resetCounter() {
           *     this.counter = 0;
           *   }
           * }
           * ```
           * The list of valid key names for `keydown` and `keyup` events
           * can be found here:
           * https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values
           *
           * Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.
           *
           * The global target names that can be used to prefix an event name are
           * `document:`, `window:` and `body:`.
           *
           * @Annotation
           * @publicApi
           */
          const HostListener = makePropDecorator('HostListener', (eventName, args) => ({
            eventName,
            args
          }));
          
          /**
           * @Annotation
           */
          const NgModule = makeDecorator('NgModule', ngModule => ngModule, undefined, undefined,
          /**
           * Decorator that marks the following class as an NgModule, and supplies
           * configuration metadata for it.
           *
           * * The `declarations` option configures the compiler
           * with information about what belongs to the NgModule.
           * * The `providers` options configures the NgModule's injector to provide
           * dependencies the NgModule members.
           * * The `imports` and `exports` options bring in members from other modules, and make
           * this module's members available to others.
           */
          (type, meta) => compileNgModule(type, meta));
          
          /**
           * This indirection is needed to free up Component, etc symbols in the public API
           * to be used by the decorator versions of these annotations.
           */
          
          /*
           * This file exists to support compilation of @angular/core in Ivy mode.
           *
           * When the Angular compiler processes a compilation unit, it normally writes imports to
           * @angular/core. When compiling the core package itself this strategy isn't usable. Instead, the
           * compiler writes imports to this file.
           *
           * Only a subset of such imports are supported - core is not allowed to declare components or pipes.
           * A check in ngtsc's `R3SymbolsImportRewriter` validates this condition. The rewriter is only used
           * when compiling @angular/core and is responsible for translating an external name (prefixed with
           * ɵ) to the internal symbol name as exported below.
           *
           * The below symbols are used for @Injectable and @NgModule compilation.
           */
          /**
           * The existence of this constant (in this particular file) informs the Angular compiler that the
           * current program is actually @angular/core, which needs to be compiled specially.
           */
          const ITS_JUST_ANGULAR = true;
          
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") that you can use to provide
           * one or more initialization functions.
           *
           * The provided functions are injected at application startup and executed during
           * app initialization. If any of these functions returns a Promise or an Observable, initialization
           * does not complete until the Promise is resolved or the Observable is completed.
           *
           * You can, for example, create a factory function that loads language data
           * or an external configuration, and provide that function to the `APP_INITIALIZER` token.
           * The function is executed during the application bootstrap process,
           * and the needed data is available on startup.
           *
           * @see {@link ApplicationInitStatus}
           *
           * @usageNotes
           *
           * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token
           * and a function returning a promise.
           * ### Example with NgModule-based application
           * ```
           *  function initializeApp(): Promise<any> {
           *    return new Promise((resolve, reject) => {
           *      // Do some asynchronous stuff
           *      resolve();
           *    });
           *  }
           *
           *  @NgModule({
           *   imports: [BrowserModule],
           *   declarations: [AppComponent],
           *   bootstrap: [AppComponent],
           *   providers: [{
           *     provide: APP_INITIALIZER,
           *     useFactory: () => initializeApp,
           *     multi: true
           *    }]
           *   })
           *  export class AppModule {}
           * ```
           *
           * ### Example with standalone application
           * ```
           * export function initializeApp(http: HttpClient) {
           *   return (): Promise<any> =>
           *     firstValueFrom(
           *       http
           *         .get("https://someUrl.com/api/user")
           *         .pipe(tap(user => { ... }))
           *     );
           * }
           *
           * bootstrapApplication(App, {
           *   providers: [
           *     provideHttpClient(),
           *     {
           *       provide: APP_INITIALIZER,
           *       useFactory: initializeApp,
           *       multi: true,
           *       deps: [HttpClient],
           *     },
           *   ],
           * });
          
           * ```
           *
           *
           * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function
           * returning an observable, see an example below. Note: the `HttpClient` in this example is used for
           * demo purposes to illustrate how the factory function can work with other providers available
           * through DI.
           *
           * ### Example with NgModule-based application
           * ```
           *  function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
           *   return () => httpClient.get("https://someUrl.com/api/user")
           *     .pipe(
           *        tap(user => { ... })
           *     );
           *  }
           *
           *  @NgModule({
           *    imports: [BrowserModule, HttpClientModule],
           *    declarations: [AppComponent],
           *    bootstrap: [AppComponent],
           *    providers: [{
           *      provide: APP_INITIALIZER,
           *      useFactory: initializeAppFactory,
           *      deps: [HttpClient],
           *      multi: true
           *    }]
           *  })
           *  export class AppModule {}
           * ```
           *
           * ### Example with standalone application
           * ```
           *  function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
           *   return () => httpClient.get("https://someUrl.com/api/user")
           *     .pipe(
           *        tap(user => { ... })
           *     );
           *  }
           *
           * bootstrapApplication(App, {
           *   providers: [
           *     provideHttpClient(),
           *     {
           *       provide: APP_INITIALIZER,
           *       useFactory: initializeApp,
           *       multi: true,
           *       deps: [HttpClient],
           *     },
           *   ],
           * });
           * ```
           *
           * @publicApi
           */
          const APP_INITIALIZER = new InjectionToken('Application Initializer');
          /**
           * A class that reflects the state of running {@link APP_INITIALIZER} functions.
           *
           * @publicApi
           */
          class ApplicationInitStatus {
            constructor() {
              this.initialized = false;
              this.done = false;
              this.donePromise = new Promise((res, rej) => {
                this.resolve = res;
                this.reject = rej;
              });
              this.appInits = inject(APP_INITIALIZER, {
                optional: true
              }) ?? [];
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && !Array.isArray(this.appInits)) {
                throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_INITIALIZER` token value ' + `(expected an array, but got ${typeof this.appInits}). ` + 'Please check that the `APP_INITIALIZER` token is configured as a ' + '`multi: true` provider.');
              }
            }
            /** @internal */
            runInitializers() {
              if (this.initialized) {
                return;
              }
              const asyncInitPromises = [];
              for (const appInits of this.appInits) {
                const initResult = appInits();
                if (isPromise(initResult)) {
                  asyncInitPromises.push(initResult);
                } else if (isSubscribable(initResult)) {
                  const observableAsPromise = new Promise((resolve, reject) => {
                    initResult.subscribe({
                      complete: resolve,
                      error: reject
                    });
                  });
                  asyncInitPromises.push(observableAsPromise);
                }
              }
              const complete = () => {
                // @ts-expect-error overwriting a readonly
                this.done = true;
                this.resolve();
              };
              Promise.all(asyncInitPromises).then(() => {
                complete();
              }).catch(e => {
                this.reject(e);
              });
              if (asyncInitPromises.length === 0) {
                complete();
              }
              this.initialized = true;
            }
            static {
              this.ɵfac = function ApplicationInitStatus_Factory(t) {
                return new (t || ApplicationInitStatus)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: ApplicationInitStatus,
                factory: ApplicationInitStatus.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{
              type: Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          class Console {
            log(message) {
              // tslint:disable-next-line:no-console
              console.log(message);
            }
            // Note: for reporting errors use `DOM.logError()` as it is platform specific
            warn(message) {
              // tslint:disable-next-line:no-console
              console.warn(message);
            }
            static {
              this.ɵfac = function Console_Factory(t) {
                return new (t || Console)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: Console,
                factory: Console.ɵfac,
                providedIn: 'platform'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Console, [{
              type: Injectable,
              args: [{
                providedIn: 'platform'
              }]
            }], null, null);
          })();
          
          /**
           * Work out the locale from the potential global properties.
           *
           * * Closure Compiler: use `goog.LOCALE`.
           * * Ivy enabled: use `$localize.locale`
           */
          function getGlobalLocale() {
            if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode && typeof goog !== 'undefined' && goog.LOCALE !== 'en') {
              // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.
              // * In order to preserve backwards compatibility, we use Angular default value over
              //   Closure Compiler's one.
              return goog.LOCALE;
            } else {
              // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE
              // COMPILE-TIME INLINER.
              //
              // * During compile time inlining of translations the expression will be replaced
              //   with a string literal that is the current locale. Other forms of this expression are not
              //   guaranteed to be replaced.
              //
              // * During runtime translation evaluation, the developer is required to set `$localize.locale`
              //   if required, or just to provide their own `LOCALE_ID` provider.
              return typeof $localize !== 'undefined' && $localize.locale || DEFAULT_LOCALE_ID;
            }
          }
          /**
           * Provide this token to set the locale of your application.
           * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
           * DecimalPipe and PercentPipe) and by ICU expressions.
           *
           * See the [i18n guide](guide/i18n-common-locale-id) for more information.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * import { LOCALE_ID } from '@angular/core';
           * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
           * import { AppModule } from './app/app.module';
           *
           * platformBrowserDynamic().bootstrapModule(AppModule, {
           *   providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
           * });
           * ```
           *
           * @publicApi
           */
          const LOCALE_ID = new InjectionToken('LocaleId', {
            providedIn: 'root',
            factory: () => inject(LOCALE_ID, InjectFlags.Optional | InjectFlags.SkipSelf) || getGlobalLocale()
          });
          /**
           * Provide this token to set the default currency code your application uses for
           * CurrencyPipe when there is no currency code passed into it. This is only used by
           * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
           *
           * See the [i18n guide](guide/i18n-common-locale-id) for more information.
           *
           * <div class="alert is-helpful">
           *
           * **Deprecation notice:**
           *
           * The default currency code is currently always `USD` but this is deprecated from v9.
           *
           * **In v10 the default currency code will be taken from the current locale.**
           *
           * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
           * your application `NgModule`:
           *
           * ```ts
           * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
           * ```
           *
           * </div>
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
           * import { AppModule } from './app/app.module';
           *
           * platformBrowserDynamic().bootstrapModule(AppModule, {
           *   providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
           * });
           * ```
           *
           * @publicApi
           */
          const DEFAULT_CURRENCY_CODE = new InjectionToken('DefaultCurrencyCode', {
            providedIn: 'root',
            factory: () => USD_CURRENCY_CODE
          });
          /**
           * Use this token at bootstrap to provide the content of your translation file (`xtb`,
           * `xlf` or `xlf2`) when you want to translate your application in another language.
           *
           * See the [i18n guide](guide/i18n-common-merge) for more information.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * import { TRANSLATIONS } from '@angular/core';
           * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
           * import { AppModule } from './app/app.module';
           *
           * // content of your translation file
           * const translations = '....';
           *
           * platformBrowserDynamic().bootstrapModule(AppModule, {
           *   providers: [{provide: TRANSLATIONS, useValue: translations }]
           * });
           * ```
           *
           * @publicApi
           */
          const TRANSLATIONS = new InjectionToken('Translations');
          /**
           * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
           * `xlf` or `xlf2`.
           *
           * See the [i18n guide](guide/i18n-common-merge) for more information.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * import { TRANSLATIONS_FORMAT } from '@angular/core';
           * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
           * import { AppModule } from './app/app.module';
           *
           * platformBrowserDynamic().bootstrapModule(AppModule, {
           *   providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
           * });
           * ```
           *
           * @publicApi
           */
          const TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');
          /**
           * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy
           * that the compiler should use in case of missing translations:
           * - Error: throw if you have missing translations.
           * - Warning (default): show a warning in the console and/or shell.
           * - Ignore: do nothing.
           *
           * See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.
           *
           * @usageNotes
           * ### Example
           * ```typescript
           * import { MissingTranslationStrategy } from '@angular/core';
           * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
           * import { AppModule } from './app/app.module';
           *
           * platformBrowserDynamic().bootstrapModule(AppModule, {
           *   missingTranslation: MissingTranslationStrategy.Error
           * });
           * ```
           *
           * @publicApi
           */
          var MissingTranslationStrategy;
          (function (MissingTranslationStrategy) {
            MissingTranslationStrategy[MissingTranslationStrategy["Error"] = 0] = "Error";
            MissingTranslationStrategy[MissingTranslationStrategy["Warning"] = 1] = "Warning";
            MissingTranslationStrategy[MissingTranslationStrategy["Ignore"] = 2] = "Ignore";
          })(MissingTranslationStrategy || (MissingTranslationStrategy = {}));
          
          /**
           * *Internal* service that keeps track of pending tasks happening in the system
           * during the initial rendering. No tasks are tracked after an initial
           * rendering.
           *
           * This information is needed to make sure that the serialization on the server
           * is delayed until all tasks in the queue (such as an initial navigation or a
           * pending HTTP request) are completed.
           */
          class InitialRenderPendingTasks {
            constructor() {
              this.taskId = 0;
              this.pendingTasks = new Set();
              this.hasPendingTasks = new rxjs__WEBPACK_IMPORTED_MODULE_5__.BehaviorSubject(false);
            }
            add() {
              this.hasPendingTasks.next(true);
              const taskId = this.taskId++;
              this.pendingTasks.add(taskId);
              return taskId;
            }
            remove(taskId) {
              this.pendingTasks.delete(taskId);
              if (this.pendingTasks.size === 0) {
                this.hasPendingTasks.next(false);
              }
            }
            ngOnDestroy() {
              this.pendingTasks.clear();
              this.hasPendingTasks.next(false);
            }
            static {
              this.ɵfac = function InitialRenderPendingTasks_Factory(t) {
                return new (t || InitialRenderPendingTasks)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: InitialRenderPendingTasks,
                factory: InitialRenderPendingTasks.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(InitialRenderPendingTasks, [{
              type: Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * Combination of NgModuleFactory and ComponentFactories.
           *
           * @publicApi
           *
           * @deprecated
           * Ivy JIT mode doesn't require accessing this symbol.
           * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
           * additional context.
           */
          class ModuleWithComponentFactories {
            constructor(ngModuleFactory, componentFactories) {
              this.ngModuleFactory = ngModuleFactory;
              this.componentFactories = componentFactories;
            }
          }
          /**
           * Low-level service for running the angular compiler during runtime
           * to create {@link ComponentFactory}s, which
           * can later be used to create and render a Component instance.
           *
           * Each `@NgModule` provides an own `Compiler` to its injector,
           * that will use the directives/pipes of the ng module for compilation
           * of components.
           *
           * @publicApi
           *
           * @deprecated
           * Ivy JIT mode doesn't require accessing this symbol.
           * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
           * additional context.
           */
          class Compiler {
            /**
             * Compiles the given NgModule and all of its components. All templates of the components
             * have to be inlined.
             */
            compileModuleSync(moduleType) {
              return new NgModuleFactory(moduleType);
            }
            /**
             * Compiles the given NgModule and all of its components
             */
            compileModuleAsync(moduleType) {
              return Promise.resolve(this.compileModuleSync(moduleType));
            }
            /**
             * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.
             */
            compileModuleAndAllComponentsSync(moduleType) {
              const ngModuleFactory = this.compileModuleSync(moduleType);
              const moduleDef = getNgModuleDef(moduleType);
              const componentFactories = maybeUnwrapFn(moduleDef.declarations).reduce((factories, declaration) => {
                const componentDef = getComponentDef(declaration);
                componentDef && factories.push(new ComponentFactory(componentDef));
                return factories;
              }, []);
              return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);
            }
            /**
             * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.
             */
            compileModuleAndAllComponentsAsync(moduleType) {
              return Promise.resolve(this.compileModuleAndAllComponentsSync(moduleType));
            }
            /**
             * Clears all caches.
             */
            clearCache() {}
            /**
             * Clears the cache for the given component/ngModule.
             */
            clearCacheFor(type) {}
            /**
             * Returns the id for a given NgModule, if one is defined and known to the compiler.
             */
            getModuleId(moduleType) {
              return undefined;
            }
            static {
              this.ɵfac = function Compiler_Factory(t) {
                return new (t || Compiler)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: Compiler,
                factory: Compiler.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Compiler, [{
              type: Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * Token to provide CompilerOptions in the platform injector.
           *
           * @publicApi
           */
          const COMPILER_OPTIONS = new InjectionToken('compilerOptions');
          /**
           * A factory for creating a Compiler
           *
           * @publicApi
           *
           * @deprecated
           * Ivy JIT mode doesn't require accessing this symbol.
           * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for
           * additional context.
           */
          class CompilerFactory {}
          
          /**
           * These are the data structures that our framework injector profiler will fill with data in order
           * to support DI debugging APIs.
           *
           * resolverToTokenToDependencies: Maps an injector to a Map of tokens to an Array of
           * dependencies. Injector -> Token -> Dependencies This is used to support the
           * getDependenciesFromInjectable API, which takes in an injector and a token and returns it's
           * dependencies.
           *
           * resolverToProviders: Maps a DI resolver (an Injector or an LView) to the providers configured
           * within it This is used to support the getInjectorProviders API, which takes in an injector and
           * returns the providers that it was configured with.
           *
           * standaloneInjectorToComponent: Maps the injector of a standalone component to the standalone
           * component that it is associated with. Used in the getInjectorProviders API, specificially in the
           * discovery of import paths for each provider. This is necessary because the imports array of a
           * standalone component is processed and configured in its standalone injector, but exists within
           * the component's definition. Because getInjectorProviders takes in an injector, if that injector
           * is the injector of a standalone component, we need to be able to discover the place where the
           * imports array is located (the component) in order to flatten the imports array within it to
           * discover all of it's providers.
           *
           *
           * All of these data structures are instantiated with WeakMaps. This will ensure that the presence
           * of any object in the keys of these maps does not prevent the garbage collector from collecting
           * those objects. Because of this property of WeakMaps, these data structures will never be the
           * source of a memory leak.
           *
           * An example of this advantage: When components are destroyed, we don't need to do
           * any additional work to remove that component from our mappings.
           *
           */
          class DIDebugData {
            constructor() {
              this.resolverToTokenToDependencies = new WeakMap();
              this.resolverToProviders = new WeakMap();
              this.standaloneInjectorToComponent = new WeakMap();
            }
            reset() {
              this.resolverToTokenToDependencies = new WeakMap();
              this.resolverToProviders = new WeakMap();
              this.standaloneInjectorToComponent = new WeakMap();
            }
          }
          let frameworkDIDebugData = new DIDebugData();
          function getFrameworkDIDebugData() {
            return frameworkDIDebugData;
          }
          /**
           * Initalize default handling of injector events. This handling parses events
           * as they are emitted and constructs the data structures necessary to support
           * some of debug APIs.
           *
           * See handleInjectEvent, handleCreateEvent and handleProviderConfiguredEvent
           * for descriptions of each handler
           *
           * Supported APIs:
           *               - getDependenciesFromInjectable
           *               - getInjectorProviders
           */
          function setupFrameworkInjectorProfiler() {
            frameworkDIDebugData.reset();
            setInjectorProfiler(injectorProfilerEvent => handleInjectorProfilerEvent(injectorProfilerEvent));
          }
          function handleInjectorProfilerEvent(injectorProfilerEvent) {
            const {
              context,
              type
            } = injectorProfilerEvent;
            if (type === 0 /* InjectorProfilerEventType.Inject */) {
              handleInjectEvent(context, injectorProfilerEvent.service);
            } else if (type === 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */) {
              handleInstanceCreatedByInjectorEvent(context, injectorProfilerEvent.instance);
            } else if (type === 2 /* InjectorProfilerEventType.ProviderConfigured */) {
              handleProviderConfiguredEvent(context, injectorProfilerEvent.providerRecord);
            }
          }
          /**
           *
           * Stores the injected service in frameworkDIDebugData.resolverToTokenToDependencies
           * based on it's injector and token.
           *
           * @param context InjectorProfilerContext the injection context that this event occurred in.
           * @param data InjectedService the service associated with this inject event.
           *
           */
          function handleInjectEvent(context, data) {
            const diResolver = getDIResolver(context.injector);
            if (diResolver === null) {
              throwError('An Inject event must be run within an injection context.');
            }
            const diResolverToInstantiatedToken = frameworkDIDebugData.resolverToTokenToDependencies;
            if (!diResolverToInstantiatedToken.has(diResolver)) {
              diResolverToInstantiatedToken.set(diResolver, new WeakMap());
            }
            // if token is a primitive type, ignore this event. We do this because we cannot keep track of
            // non-primitive tokens in WeakMaps since they are not garbage collectable.
            if (!canBeHeldWeakly(context.token)) {
              return;
            }
            const instantiatedTokenToDependencies = diResolverToInstantiatedToken.get(diResolver);
            if (!instantiatedTokenToDependencies.has(context.token)) {
              instantiatedTokenToDependencies.set(context.token, []);
            }
            const {
              token,
              value,
              flags
            } = data;
            instantiatedTokenToDependencies.get(context.token).push({
              token,
              value,
              flags
            });
          }
          /**
           *
           * If the created instance is an instance of a standalone component, maps the injector to that
           * standalone component in frameworkDIDebugData.standaloneInjectorToComponent
           *
           * @param context InjectorProfilerContext the injection context that this event occurred in.
           * @param data InjectorCreatedInstance an object containing the instance that was just created
           *
           */
          function handleInstanceCreatedByInjectorEvent(context, data) {
            const {
              value
            } = data;
            if (getDIResolver(context.injector) === null) {
              throwError('An InjectorCreatedInstance event must be run within an injection context.');
            }
            // if our value is an instance of a standalone component, map the injector of that standalone
            // component to the component class. Otherwise, this event is a noop.
            let standaloneComponent = undefined;
            if (typeof value === 'object') {
              standaloneComponent = value?.constructor;
            }
            if (standaloneComponent === undefined || !isStandaloneComponent(standaloneComponent)) {
              return;
            }
            const environmentInjector = context.injector.get(EnvironmentInjector, null, {
              optional: true
            });
            // Standalone components should have an environment injector. If one cannot be
            // found we may be in a test case for low level functionality that did not explictly
            // setup this injector. In those cases, we simply ignore this event.
            if (environmentInjector === null) {
              return;
            }
            const {
              standaloneInjectorToComponent
            } = frameworkDIDebugData;
            // If our injector has already been mapped, as is the case
            // when a standalone component imports another standalone component,
            // we consider the original component (the component doing the importing)
            // as the component connected to our injector.
            if (standaloneInjectorToComponent.has(environmentInjector)) {
              return;
            }
            // If our injector hasn't been mapped, then we map it to the standalone component
            standaloneInjectorToComponent.set(environmentInjector, standaloneComponent);
          }
          function isStandaloneComponent(value) {
            const def = getComponentDef(value);
            return !!def?.standalone;
          }
          /**
           *
           * Stores the emitted ProviderRecords from the InjectorProfilerEventType.ProviderConfigured
           * event in frameworkDIDebugData.resolverToProviders
           *
           * @param context InjectorProfilerContext the injection context that this event occurred in.
           * @param data ProviderRecord an object containing the instance that was just created
           *
           */
          function handleProviderConfiguredEvent(context, data) {
            const {
              resolverToProviders
            } = frameworkDIDebugData;
            const diResolver = getDIResolver(context?.injector);
            if (diResolver === null) {
              throwError('A ProviderConfigured event must be run within an injection context.');
            }
            if (!resolverToProviders.has(diResolver)) {
              resolverToProviders.set(diResolver, []);
            }
            resolverToProviders.get(diResolver).push(data);
          }
          function getDIResolver(injector) {
            let diResolver = null;
            if (injector === undefined) {
              return diResolver;
            }
            // We use the LView as the diResolver for NodeInjectors because they
            // do not persist anywhere in the framework. They are simply wrappers around an LView and a TNode
            // that do persist. Because of this, we rely on the LView of the NodeInjector in order to use
            // as a concrete key to represent this injector. If we get the same LView back later, we know
            // we're looking at the same injector.
            if (injector instanceof NodeInjector) {
              diResolver = getNodeInjectorLView(injector);
            }
            // Other injectors can be used a keys for a map because their instances
            // persist
            else {
              diResolver = injector;
            }
            return diResolver;
          }
          // inspired by
          // https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html#sec-canbeheldweakly
          function canBeHeldWeakly(value) {
            // we check for value !== null here because typeof null === 'object
            return value !== null && (typeof value === 'object' || typeof value === 'function' || typeof value === 'symbol');
          }
          
          /**
           * Marks a component for check (in case of OnPush components) and synchronously
           * performs change detection on the application this component belongs to.
           *
           * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.
           *
           * @publicApi
           * @globalApi ng
           */
          function applyChanges(component) {
            ngDevMode && assertDefined(component, 'component');
            markViewDirty(getComponentViewByInstance(component));
            getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));
          }
          
          /**
           * Discovers the dependencies of an injectable instance. Provides DI information about each
           * dependency that the injectable was instantiated with, including where they were provided from.
           *
           * @param injector An injector instance
           * @param token a DI token that was constructed by the given injector instance
           * @returns an object that contains the created instance of token as well as all of the dependencies
           * that it was instantiated with OR undefined if the token was not created within the given
           * injector.
           */
          function getDependenciesFromInjectable(injector, token) {
            // First we check to see if the token given maps to an actual instance in the injector given.
            // We use `self: true` because we only want to look at the injector we were given.
            // We use `optional: true` because it's possible that the token we were given was never
            // constructed by the injector we were given.
            const instance = injector.get(token, null, {
              self: true,
              optional: true
            });
            if (instance === null) {
              throw new Error(`Unable to determine instance of ${token} in given injector`);
            }
            let diResolver = injector;
            if (injector instanceof NodeInjector) {
              diResolver = getNodeInjectorLView(injector);
            }
            const {
              resolverToTokenToDependencies
            } = getFrameworkDIDebugData();
            let dependencies = resolverToTokenToDependencies.get(diResolver)?.get?.(token) ?? [];
            const resolutionPath = getInjectorResolutionPath(injector);
            dependencies = dependencies.map(dep => {
              const flags = dep.flags;
              dep.flags = {
                optional: (8 /* InternalInjectFlags.Optional */ & flags) === 8 /* InternalInjectFlags.Optional */,
                host: (1 /* InternalInjectFlags.Host */ & flags) === 1 /* InternalInjectFlags.Host */,
                self: (2 /* InternalInjectFlags.Self */ & flags) === 2 /* InternalInjectFlags.Self */,
                skipSelf: (4 /* InternalInjectFlags.SkipSelf */ & flags) === 4 /* InternalInjectFlags.SkipSelf */
              };
          
              for (let i = 0; i < resolutionPath.length; i++) {
                const injectorToCheck = resolutionPath[i];
                // if skipSelf is true we skip the first injector
                if (i === 0 && dep.flags.skipSelf) {
                  continue;
                }
                // host only applies to NodeInjectors
                if (dep.flags.host && injectorToCheck instanceof EnvironmentInjector) {
                  break;
                }
                const instance = injectorToCheck.get(dep.token, null, {
                  self: true,
                  optional: true
                });
                if (instance !== null) {
                  // if host flag is true we double check that we can get the service from the first element
                  // in the resolution path by using the host flag. This is done to make sure that we've found
                  // the correct providing injector, and not a node injector that is connected to our path via
                  // a router outlet.
                  if (dep.flags.host) {
                    const firstInjector = resolutionPath[0];
                    const lookupFromFirstInjector = firstInjector.get(dep.token, null, {
                      ...dep.flags,
                      optional: true
                    });
                    if (lookupFromFirstInjector !== null) {
                      dep.providedIn = injectorToCheck;
                    }
                    break;
                  }
                  dep.providedIn = injectorToCheck;
                  break;
                }
                // if self is true we stop after the first injector
                if (i === 0 && dep.flags.self) {
                  break;
                }
              }
              return dep;
            });
            return {
              instance,
              dependencies
            };
          }
          /**
           * Gets the class associated with an injector that contains a provider `imports` array in it's
           * definition
           *
           * For Module Injectors this returns the NgModule constructor.
           *
           * For Standalone injectors this returns the standalone component constructor.
           *
           * @param injector Injector an injector instance
           * @returns the constructor where the `imports` array that configures this injector is located
           */
          function getProviderImportsContainer(injector) {
            const {
              standaloneInjectorToComponent
            } = getFrameworkDIDebugData();
            // standalone components configure providers through a component def, so we have to
            // use the standalone component associated with this injector if Injector represents
            // a standalone components EnvironmentInjector
            if (standaloneInjectorToComponent.has(injector)) {
              return standaloneInjectorToComponent.get(injector);
            }
            // Module injectors configure providers through their NgModule def, so we use the
            // injector to lookup its NgModuleRef and through that grab its instance
            const defTypeRef = injector.get(NgModuleRef$1, null, {
              self: true,
              optional: true
            });
            // If we can't find an associated imports container, return null.
            // This could be the case if this function is called with an R3Injector that does not represent
            // a standalone component or NgModule.
            if (defTypeRef === null) {
              return null;
            }
            // In standalone applications, the root environment injector created by bootstrapApplication
            // may have no associated "instance".
            if (defTypeRef.instance === null) {
              return null;
            }
            return defTypeRef.instance.constructor;
          }
          /**
           * Gets the providers configured on a NodeInjector
           *
           * @param injector A NodeInjector instance
           * @returns ProviderRecord[] an array of objects representing the providers configured on this
           *     injector
           */
          function getNodeInjectorProviders(injector) {
            const diResolver = getNodeInjectorLView(injector);
            const {
              resolverToProviders
            } = getFrameworkDIDebugData();
            return resolverToProviders.get(diResolver) ?? [];
          }
          /**
           * Gets a mapping of providers configured on an injector to their import paths
           *
           * ModuleA -> imports ModuleB
           * ModuleB -> imports ModuleC
           * ModuleB -> provides MyServiceA
           * ModuleC -> provides MyServiceB
           *
           * getProviderImportPaths(ModuleA)
           * > Map(2) {
           *   MyServiceA => [ModuleA, ModuleB]
           *   MyServiceB => [ModuleA, ModuleB, ModuleC]
           *  }
           *
           * @param providerImportsContainer constructor of class that contains an `imports` array in it's
           *     definition
           * @returns A Map object that maps providers to an array of constructors representing it's import
           *     path
           *
           */
          function getProviderImportPaths(providerImportsContainer) {
            const providerToPath = new Map();
            const visitedContainers = new Set();
            const visitor = walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers);
            walkProviderTree(providerImportsContainer, visitor, [], new Set());
            return providerToPath;
          }
          /**
           *
           * Higher order function that returns a visitor for WalkProviderTree
           *
           * Takes in a Map and Set to keep track of the providers and containers
           * visited, so that we can discover the import paths of these providers
           * during the traversal.
           *
           * This visitor takes advantage of the fact that walkProviderTree performs a
           * postorder traversal of the provider tree for the passed in container. Because postorder
           * traversal recursively processes subtrees from leaf nodes until the traversal reaches the root,
           * we write a visitor that constructs provider import paths in reverse.
           *
           *
           * We use the visitedContainers set defined outside this visitor
           * because we want to run some logic only once for
           * each container in the tree. That logic can be described as:
           *
           *
           * 1. for each discovered_provider and discovered_path in the incomplete provider paths we've
           * already discovered
           * 2. get the first container in discovered_path
           * 3. if that first container is in the imports array of the container we're visiting
           *    Then the container we're visiting is also in the import path of discovered_provider, so we
           *    unshift discovered_path with the container we're currently visiting
           *
           *
           * Example Run:
           * ```
           *                 ┌──────────┐
           *                 │containerA│
           *      ┌─imports-─┤          ├──imports─┐
           *      │          │  provA   │          │
           *      │          │  provB   │          │
           *      │          └──────────┘          │
           *      │                                │
           *     ┌▼─────────┐             ┌────────▼─┐
           *     │containerB│             │containerC│
           *     │          │             │          │
           *     │  provD   │             │  provF   │
           *     │  provE   │             │  provG   │
           *     └──────────┘             └──────────┘
           * ```
           *
           * Each step of the traversal,
           *
           * ```
           * visitor(provD, containerB)
           * providerToPath === Map { provD => [containerB] }
           * visitedContainers === Set { containerB }
           *
           * visitor(provE, containerB)
           * providerToPath === Map { provD => [containerB], provE => [containerB] }
           * visitedContainers === Set { containerB }
           *
           * visitor(provF, containerC)
           * providerToPath === Map { provD => [containerB], provE => [containerB], provF => [containerC] }
           * visitedContainers === Set { containerB, containerC }
           *
           * visitor(provG, containerC)
           * providerToPath === Map {
           *   provD => [containerB], provE => [containerB], provF => [containerC], provG => [containerC]
           * }
           * visitedContainers === Set { containerB, containerC }
           *
           * visitor(provA, containerA)
           * providerToPath === Map {
           *   provD => [containerA, containerB],
           *   provE => [containerA, containerB],
           *   provF => [containerA, containerC],
           *   provG => [containerA, containerC],
           *   provA => [containerA]
           * }
           * visitedContainers === Set { containerB, containerC, containerA }
           *
           * visitor(provB, containerA)
           * providerToPath === Map {
           *   provD => [containerA, containerB],
           *   provE => [containerA, containerB],
           *   provF => [containerA, containerC],
           *   provG => [containerA, containerC],
           *   provA => [containerA]
           *   provB => [containerA]
           * }
           * visitedContainers === Set { containerB, containerC, containerA }
           * ```
           *
           * @param providerToPath Map map of providers to paths that this function fills
           * @param visitedContainers Set a set to keep track of the containers we've already visited
           * @return function(provider SingleProvider, container: Type<unknown> | InjectorType<unknown>) =>
           *     void
           */
          function walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers) {
            return (provider, container) => {
              // If the provider is not already in the providerToPath map,
              // add an entry with the provider as the key and an array containing the current container as
              // the value
              if (!providerToPath.has(provider)) {
                providerToPath.set(provider, [container]);
              }
              // This block will run exactly once for each container in the import tree.
              // This is where we run the logic to check the imports array of the current
              // container to see if it's the next container in the path for our currently
              // discovered providers.
              if (!visitedContainers.has(container)) {
                // Iterate through the providers we've already seen
                for (const prov of providerToPath.keys()) {
                  const existingImportPath = providerToPath.get(prov);
                  let containerDef = getInjectorDef(container);
                  if (!containerDef) {
                    const ngModule = container.ngModule;
                    containerDef = getInjectorDef(ngModule);
                  }
                  if (!containerDef) {
                    return;
                  }
                  const lastContainerAddedToPath = existingImportPath[0];
                  let isNextStepInPath = false;
                  deepForEach(containerDef.imports, moduleImport => {
                    if (isNextStepInPath) {
                      return;
                    }
                    isNextStepInPath = moduleImport.ngModule === lastContainerAddedToPath || moduleImport === lastContainerAddedToPath;
                    if (isNextStepInPath) {
                      providerToPath.get(prov)?.unshift(container);
                    }
                  });
                }
              }
              visitedContainers.add(container);
            };
          }
          /**
           * Gets the providers configured on an EnvironmentInjector
           *
           * @param injector EnvironmentInjector
           * @returns an array of objects representing the providers of the given injector
           */
          function getEnvironmentInjectorProviders(injector) {
            const providerRecords = getFrameworkDIDebugData().resolverToProviders.get(injector) ?? [];
            // platform injector has no provider imports container so can we skip trying to
            // find import paths
            if (isPlatformInjector(injector)) {
              return providerRecords;
            }
            const providerImportsContainer = getProviderImportsContainer(injector);
            if (providerImportsContainer === null) {
              // There is a special case where the bootstrapped component does not
              // import any NgModules. In this case the environment injector connected to
              // that component is the root injector, which does not have a provider imports
              // container (and thus no concept of module import paths). Therefore we simply
              // return the provider records as is.
              if (isRootInjector(injector)) {
                return providerRecords;
              }
              throwError('Could not determine where injector providers were configured.');
            }
            const providerToPath = getProviderImportPaths(providerImportsContainer);
            return providerRecords.map(providerRecord => {
              let importPath = providerToPath.get(providerRecord.provider) ?? [providerImportsContainer];
              const def = getComponentDef(providerImportsContainer);
              const isStandaloneComponent = !!def?.standalone;
              // We prepend the component constructor in the standalone case
              // because walkProviderTree does not visit this constructor during it's traversal
              if (isStandaloneComponent) {
                importPath = [providerImportsContainer, ...(providerToPath.get(providerRecord.provider) ?? [])];
              }
              return {
                ...providerRecord,
                importPath
              };
            });
          }
          function isPlatformInjector(injector) {
            return injector instanceof R3Injector && injector.scopes.has('platform');
          }
          function isRootInjector(injector) {
            return injector instanceof R3Injector && injector.scopes.has('root');
          }
          /**
           * Gets the providers configured on an injector.
           *
           * @param injector the injector to lookup the providers of
           * @returns ProviderRecord[] an array of objects representing the providers of the given injector
           */
          function getInjectorProviders(injector) {
            if (injector instanceof NodeInjector) {
              return getNodeInjectorProviders(injector);
            } else if (injector instanceof EnvironmentInjector) {
              return getEnvironmentInjectorProviders(injector);
            }
            throwError('getInjectorProviders only supports NodeInjector and EnvironmentInjector');
          }
          function getInjectorResolutionPath(injector) {
            const resolutionPath = [injector];
            getInjectorResolutionPathHelper(injector, resolutionPath);
            return resolutionPath;
          }
          function getInjectorResolutionPathHelper(injector, resolutionPath) {
            const parent = getInjectorParent(injector);
            // if getInjectorParent can't find a parent, then we've either reached the end
            // of the path, or we need to move from the Element Injector tree to the
            // module injector tree using the first injector in our path as the connection point.
            if (parent === null) {
              if (injector instanceof NodeInjector) {
                const firstInjector = resolutionPath[0];
                if (firstInjector instanceof NodeInjector) {
                  const moduleInjector = getModuleInjectorOfNodeInjector(firstInjector);
                  if (moduleInjector === null) {
                    throwError('NodeInjector must have some connection to the module injector tree');
                  }
                  resolutionPath.push(moduleInjector);
                  getInjectorResolutionPathHelper(moduleInjector, resolutionPath);
                }
                return resolutionPath;
              }
            } else {
              resolutionPath.push(parent);
              getInjectorResolutionPathHelper(parent, resolutionPath);
            }
            return resolutionPath;
          }
          /**
           * Gets the parent of an injector.
           *
           * This function is not able to make the jump from the Element Injector Tree to the Module
           * injector tree. This is because the "parent" (the next step in the reoslution path)
           * of a root NodeInjector is dependent on which NodeInjector ancestor initiated
           * the DI lookup. See getInjectorResolutionPath for a function that can make this jump.
           *
           * In the below diagram:
           * ```ts
           * getInjectorParent(NodeInjectorB)
           *  > NodeInjectorA
           * getInjectorParent(NodeInjectorA) // or getInjectorParent(getInjectorParent(NodeInjectorB))
           *  > null // cannot jump to ModuleInjector tree
           * ```
           *
           * ```
           *                ┌───────┐                ┌───────────────────┐
           *    ┌───────────┤ModuleA├───Injector────►│EnvironmentInjector│
           *    │           └───┬───┘                └───────────────────┘
           *    │               │
           *    │           bootstraps
           *    │               │
           *    │               │
           *    │          ┌────▼─────┐                 ┌─────────────┐
           * declares      │ComponentA├────Injector────►│NodeInjectorA│
           *    │          └────┬─────┘                 └─────▲───────┘
           *    │               │                             │
           *    │            renders                        parent
           *    │               │                             │
           *    │          ┌────▼─────┐                 ┌─────┴───────┐
           *    └─────────►│ComponentB├────Injector────►│NodeInjectorB│
           *               └──────────┘                 └─────────────┘
           *```
           *
           * @param injector an Injector to get the parent of
           * @returns Injector the parent of the given injector
           */
          function getInjectorParent(injector) {
            if (injector instanceof R3Injector) {
              return injector.parent;
            }
            let tNode;
            let lView;
            if (injector instanceof NodeInjector) {
              tNode = getNodeInjectorTNode(injector);
              lView = getNodeInjectorLView(injector);
            } else if (injector instanceof NullInjector) {
              return null;
            } else {
              throwError('getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector');
            }
            const parentLocation = getParentInjectorLocation(tNode, lView);
            if (hasParentInjector(parentLocation)) {
              const parentInjectorIndex = getParentInjectorIndex(parentLocation);
              const parentLView = getParentInjectorView(parentLocation, lView);
              const parentTView = parentLView[TVIEW];
              const parentTNode = parentTView.data[parentInjectorIndex + 8 /* NodeInjectorOffset.TNODE */];
              return new NodeInjector(parentTNode, parentLView);
            } else {
              const chainedInjector = lView[INJECTOR$1];
              // Case where chainedInjector.injector is an OutletInjector and chainedInjector.injector.parent
              // is a NodeInjector.
              // todo(aleksanderbodurri): ideally nothing in packages/core should deal
              // directly with router concerns. Refactor this so that we can make the jump from
              // NodeInjector -> OutletInjector -> NodeInjector
              // without explictly relying on types contracts from packages/router
              const injectorParent = chainedInjector.injector?.parent;
              if (injectorParent instanceof NodeInjector) {
                return injectorParent;
              }
            }
            return null;
          }
          /**
           * Gets the module injector of a NodeInjector.
           *
           * @param injector NodeInjector to get module injector of
           * @returns Injector representing module injector of the given NodeInjector
           */
          function getModuleInjectorOfNodeInjector(injector) {
            let lView;
            if (injector instanceof NodeInjector) {
              lView = getNodeInjectorLView(injector);
            } else {
              throwError('getModuleInjectorOfNodeInjector must be called with a NodeInjector');
            }
            const chainedInjector = lView[INJECTOR$1];
            const moduleInjector = chainedInjector.parentInjector;
            if (!moduleInjector) {
              throwError('NodeInjector must have some connection to the module injector tree');
            }
            return moduleInjector;
          }
          
          /**
           * This file introduces series of globally accessible debug tools
           * to allow for the Angular debugging story to function.
           *
           * To see this in action run the following command:
           *
           *   bazel run //packages/core/test/bundling/todo:devserver
           *
           *  Then load `localhost:5432` and start using the console tools.
           */
          /**
           * This value reflects the property on the window where the dev
           * tools are patched (window.ng).
           * */
          const GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';
          let _published = false;
          /**
           * Publishes a collection of default debug tools onto`window.ng`.
           *
           * These functions are available globally when Angular is in development
           * mode and are automatically stripped away from prod mode is on.
           */
          function publishDefaultGlobalUtils$1() {
            if (!_published) {
              _published = true;
              setupFrameworkInjectorProfiler();
              publishGlobalUtil('ɵgetDependenciesFromInjectable', getDependenciesFromInjectable);
              publishGlobalUtil('ɵgetInjectorProviders', getInjectorProviders);
              publishGlobalUtil('ɵgetInjectorResolutionPath', getInjectorResolutionPath);
              /**
               * Warning: this function is *INTERNAL* and should not be relied upon in application's code.
               * The contract of the function might be changed in any release and/or the function can be
               * removed completely.
               */
              publishGlobalUtil('ɵsetProfiler', setProfiler);
              publishGlobalUtil('getDirectiveMetadata', getDirectiveMetadata$1);
              publishGlobalUtil('getComponent', getComponent);
              publishGlobalUtil('getContext', getContext);
              publishGlobalUtil('getListeners', getListeners);
              publishGlobalUtil('getOwningComponent', getOwningComponent);
              publishGlobalUtil('getHostElement', getHostElement);
              publishGlobalUtil('getInjector', getInjector);
              publishGlobalUtil('getRootComponents', getRootComponents);
              publishGlobalUtil('getDirectives', getDirectives);
              publishGlobalUtil('applyChanges', applyChanges);
            }
          }
          /**
           * Publishes the given function to `window.ng` so that it can be
           * used from the browser console when an application is not in production.
           */
          function publishGlobalUtil(name, fn) {
            if (typeof COMPILED === 'undefined' || !COMPILED) {
              // Note: we can't export `ng` when using closure enhanced optimization as:
              // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
              // - we can't declare a closure extern as the namespace `ng` is already used within Google
              //   for typings for AngularJS (via `goog.provide('ng....')`).
              const w = _global;
              ngDevMode && assertDefined(fn, 'function not defined');
              if (w) {
                let container = w[GLOBAL_PUBLISH_EXPANDO_KEY];
                if (!container) {
                  container = w[GLOBAL_PUBLISH_EXPANDO_KEY] = {};
                }
                container[name] = fn;
              }
            }
          }
          
          /**
           * Internal injection token that can used to access an instance of a Testability class.
           *
           * This token acts as a bridge between the core bootstrap code and the `Testability` class. This is
           * needed to ensure that there are no direct references to the `Testability` class, so it can be
           * tree-shaken away (if not referenced). For the environments/setups when the `Testability` class
           * should be available, this token is used to add a provider that references the `Testability`
           * class. Otherwise, only this token is retained in a bundle, but the `Testability` class is not.
           */
          const TESTABILITY = new InjectionToken('');
          /**
           * Internal injection token to retrieve Testability getter class instance.
           */
          const TESTABILITY_GETTER = new InjectionToken('');
          /**
           * The Testability service provides testing hooks that can be accessed from
           * the browser.
           *
           * Angular applications bootstrapped using an NgModule (via `@NgModule.bootstrap` field) will also
           * instantiate Testability by default (in both development and production modes).
           *
           * For applications bootstrapped using the `bootstrapApplication` function, Testability is not
           * included by default. You can include it into your applications by getting the list of necessary
           * providers using the `provideProtractorTestingSupport()` function and adding them into the
           * `options.providers` array. Example:
           *
           * ```typescript
           * import {provideProtractorTestingSupport} from '@angular/platform-browser';
           *
           * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);
           * ```
           *
           * @publicApi
           */
          class Testability {
            constructor(_ngZone, registry, testabilityGetter) {
              this._ngZone = _ngZone;
              this.registry = registry;
              this._pendingCount = 0;
              this._isZoneStable = true;
              /**
               * Whether any work was done since the last 'whenStable' callback. This is
               * useful to detect if this could have potentially destabilized another
               * component while it is stabilizing.
               * @internal
               */
              this._didWork = false;
              this._callbacks = [];
              this.taskTrackingZone = null;
              // If there was no Testability logic registered in the global scope
              // before, register the current testability getter as a global one.
              if (!_testabilityGetter) {
                setTestabilityGetter(testabilityGetter);
                testabilityGetter.addToWindow(registry);
              }
              this._watchAngularEvents();
              _ngZone.run(() => {
                this.taskTrackingZone = typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');
              });
            }
            _watchAngularEvents() {
              this._ngZone.onUnstable.subscribe({
                next: () => {
                  this._didWork = true;
                  this._isZoneStable = false;
                }
              });
              this._ngZone.runOutsideAngular(() => {
                this._ngZone.onStable.subscribe({
                  next: () => {
                    NgZone.assertNotInAngularZone();
                    queueMicrotask(() => {
                      this._isZoneStable = true;
                      this._runCallbacksIfReady();
                    });
                  }
                });
              });
            }
            /**
             * Increases the number of pending request
             * @deprecated pending requests are now tracked with zones.
             */
            increasePendingRequestCount() {
              this._pendingCount += 1;
              this._didWork = true;
              return this._pendingCount;
            }
            /**
             * Decreases the number of pending request
             * @deprecated pending requests are now tracked with zones
             */
            decreasePendingRequestCount() {
              this._pendingCount -= 1;
              if (this._pendingCount < 0) {
                throw new Error('pending async requests below zero');
              }
              this._runCallbacksIfReady();
              return this._pendingCount;
            }
            /**
             * Whether an associated application is stable
             */
            isStable() {
              return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;
            }
            _runCallbacksIfReady() {
              if (this.isStable()) {
                // Schedules the call backs in a new frame so that it is always async.
                queueMicrotask(() => {
                  while (this._callbacks.length !== 0) {
                    let cb = this._callbacks.pop();
                    clearTimeout(cb.timeoutId);
                    cb.doneCb(this._didWork);
                  }
                  this._didWork = false;
                });
              } else {
                // Still not stable, send updates.
                let pending = this.getPendingTasks();
                this._callbacks = this._callbacks.filter(cb => {
                  if (cb.updateCb && cb.updateCb(pending)) {
                    clearTimeout(cb.timeoutId);
                    return false;
                  }
                  return true;
                });
                this._didWork = true;
              }
            }
            getPendingTasks() {
              if (!this.taskTrackingZone) {
                return [];
              }
              // Copy the tasks data so that we don't leak tasks.
              return this.taskTrackingZone.macroTasks.map(t => {
                return {
                  source: t.source,
                  // From TaskTrackingZone:
                  // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40
                  creationLocation: t.creationLocation,
                  data: t.data
                };
              });
            }
            addCallback(cb, timeout, updateCb) {
              let timeoutId = -1;
              if (timeout && timeout > 0) {
                timeoutId = setTimeout(() => {
                  this._callbacks = this._callbacks.filter(cb => cb.timeoutId !== timeoutId);
                  cb(this._didWork, this.getPendingTasks());
                }, timeout);
              }
              this._callbacks.push({
                doneCb: cb,
                timeoutId: timeoutId,
                updateCb: updateCb
              });
            }
            /**
             * Wait for the application to be stable with a timeout. If the timeout is reached before that
             * happens, the callback receives a list of the macro tasks that were pending, otherwise null.
             *
             * @param doneCb The callback to invoke when Angular is stable or the timeout expires
             *    whichever comes first.
             * @param timeout Optional. The maximum time to wait for Angular to become stable. If not
             *    specified, whenStable() will wait forever.
             * @param updateCb Optional. If specified, this callback will be invoked whenever the set of
             *    pending macrotasks changes. If this callback returns true doneCb will not be invoked
             *    and no further updates will be issued.
             */
            whenStable(doneCb, timeout, updateCb) {
              if (updateCb && !this.taskTrackingZone) {
                throw new Error('Task tracking zone is required when passing an update callback to ' + 'whenStable(). Is "zone.js/plugins/task-tracking" loaded?');
              }
              // These arguments are 'Function' above to keep the public API simple.
              this.addCallback(doneCb, timeout, updateCb);
              this._runCallbacksIfReady();
            }
            /**
             * Get the number of pending requests
             * @deprecated pending requests are now tracked with zones
             */
            getPendingRequestCount() {
              return this._pendingCount;
            }
            /**
             * Registers an application with a testability hook so that it can be tracked.
             * @param token token of application, root element
             *
             * @internal
             */
            registerApplication(token) {
              this.registry.registerApplication(token, this);
            }
            /**
             * Unregisters an application.
             * @param token token of application, root element
             *
             * @internal
             */
            unregisterApplication(token) {
              this.registry.unregisterApplication(token);
            }
            /**
             * Find providers by name
             * @param using The root element to search from
             * @param provider The name of binding variable
             * @param exactMatch Whether using exactMatch
             */
            findProviders(using, provider, exactMatch) {
              // TODO(juliemr): implement.
              return [];
            }
            static {
              this.ɵfac = function Testability_Factory(t) {
                return new (t || Testability)(ɵɵinject(NgZone), ɵɵinject(TestabilityRegistry), ɵɵinject(TESTABILITY_GETTER));
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: Testability,
                factory: Testability.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Testability, [{
              type: Injectable
            }], function () {
              return [{
                type: NgZone
              }, {
                type: TestabilityRegistry
              }, {
                type: undefined,
                decorators: [{
                  type: Inject,
                  args: [TESTABILITY_GETTER]
                }]
              }];
            }, null);
          })();
          /**
           * A global registry of {@link Testability} instances for specific elements.
           * @publicApi
           */
          class TestabilityRegistry {
            constructor() {
              /** @internal */
              this._applications = new Map();
            }
            /**
             * Registers an application with a testability hook so that it can be tracked
             * @param token token of application, root element
             * @param testability Testability hook
             */
            registerApplication(token, testability) {
              this._applications.set(token, testability);
            }
            /**
             * Unregisters an application.
             * @param token token of application, root element
             */
            unregisterApplication(token) {
              this._applications.delete(token);
            }
            /**
             * Unregisters all applications
             */
            unregisterAllApplications() {
              this._applications.clear();
            }
            /**
             * Get a testability hook associated with the application
             * @param elem root element
             */
            getTestability(elem) {
              return this._applications.get(elem) || null;
            }
            /**
             * Get all registered testabilities
             */
            getAllTestabilities() {
              return Array.from(this._applications.values());
            }
            /**
             * Get all registered applications(root elements)
             */
            getAllRootElements() {
              return Array.from(this._applications.keys());
            }
            /**
             * Find testability of a node in the Tree
             * @param elem node
             * @param findInAncestors whether finding testability in ancestors if testability was not found in
             * current node
             */
            findTestabilityInTree(elem, findInAncestors = true) {
              return _testabilityGetter?.findTestabilityInTree(this, elem, findInAncestors) ?? null;
            }
            static {
              this.ɵfac = function TestabilityRegistry_Factory(t) {
                return new (t || TestabilityRegistry)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: TestabilityRegistry,
                factory: TestabilityRegistry.ɵfac,
                providedIn: 'platform'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{
              type: Injectable,
              args: [{
                providedIn: 'platform'
              }]
            }], null, null);
          })();
          /**
           * Set the {@link GetTestability} implementation used by the Angular testing framework.
           * @publicApi
           */
          function setTestabilityGetter(getter) {
            _testabilityGetter = getter;
          }
          let _testabilityGetter;
          let _platformInjector = null;
          /**
           * Internal token to indicate whether having multiple bootstrapped platform should be allowed (only
           * one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.
           */
          const ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');
          /**
           * Internal token that allows to register extra callbacks that should be invoked during the
           * `PlatformRef.destroy` operation. This token is needed to avoid a direct reference to the
           * `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the
           * entire class tree-shakeable.
           */
          const PLATFORM_DESTROY_LISTENERS = new InjectionToken('PlatformDestroyListeners');
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
           * be called for every component that is bootstrapped.
           *
           * Each callback must take a `ComponentRef` instance and return nothing.
           *
           * `(componentRef: ComponentRef) => void`
           *
           * @publicApi
           */
          const APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');
          function compileNgModuleFactory(injector, options, moduleType) {
            ngDevMode && assertNgModuleType(moduleType);
            const moduleFactory = new NgModuleFactory(moduleType);
            // All of the logic below is irrelevant for AOT-compiled code.
            if (typeof ngJitMode !== 'undefined' && !ngJitMode) {
              return Promise.resolve(moduleFactory);
            }
            const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);
            // Configure the compiler to use the provided options. This call may fail when multiple modules
            // are bootstrapped with incompatible options, as a component can only be compiled according to
            // a single set of options.
            setJitOptions({
              defaultEncapsulation: _lastDefined(compilerOptions.map(opts => opts.defaultEncapsulation)),
              preserveWhitespaces: _lastDefined(compilerOptions.map(opts => opts.preserveWhitespaces))
            });
            if (isComponentResourceResolutionQueueEmpty()) {
              return Promise.resolve(moduleFactory);
            }
            const compilerProviders = compilerOptions.flatMap(option => option.providers ?? []);
            // In case there are no compiler providers, we just return the module factory as
            // there won't be any resource loader. This can happen with Ivy, because AOT compiled
            // modules can be still passed through "bootstrapModule". In that case we shouldn't
            // unnecessarily require the JIT compiler.
            if (compilerProviders.length === 0) {
              return Promise.resolve(moduleFactory);
            }
            const compiler = getCompilerFacade({
              usage: 0 /* JitCompilerUsage.Decorator */,
              kind: 'NgModule',
              type: moduleType
            });
            const compilerInjector = Injector.create({
              providers: compilerProviders
            });
            const resourceLoader = compilerInjector.get(compiler.ResourceLoader);
            // The resource loader can also return a string while the "resolveComponentResources"
            // always expects a promise. Therefore we need to wrap the returned value in a promise.
            return resolveComponentResources(url => Promise.resolve(resourceLoader.get(url))).then(() => moduleFactory);
          }
          function publishDefaultGlobalUtils() {
            ngDevMode && publishDefaultGlobalUtils$1();
          }
          /**
           * Sets the error for an invalid write to a signal to be an Angular `RuntimeError`.
           */
          function publishSignalConfiguration() {
            setThrowInvalidWriteToSignalError(() => {
              throw new RuntimeError(600 /* RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT */, ngDevMode && 'Writing to signals is not allowed in a `computed` or an `effect` by default. ' + 'Use `allowSignalWrites` in the `CreateEffectOptions` to enable this inside effects.');
            });
          }
          function isBoundToModule(cf) {
            return cf.isBoundToModule;
          }
          /**
           * A token for third-party components that can register themselves with NgProbe.
           *
           * @publicApi
           */
          class NgProbeToken {
            constructor(name, token) {
              this.name = name;
              this.token = token;
            }
          }
          /**
           * Creates a platform.
           * Platforms must be created on launch using this function.
           *
           * @publicApi
           */
          function createPlatform(injector) {
            if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
              throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode && 'There can be only one platform. Destroy the previous one to create a new one.');
            }
            publishDefaultGlobalUtils();
            publishSignalConfiguration();
            _platformInjector = injector;
            const platform = injector.get(PlatformRef);
            runPlatformInitializers(injector);
            return platform;
          }
          /**
           * The goal of this function is to bootstrap a platform injector,
           * but avoid referencing `PlatformRef` class.
           * This function is needed for bootstrapping a Standalone Component.
           */
          function createOrReusePlatformInjector(providers = []) {
            // If a platform injector already exists, it means that the platform
            // is already bootstrapped and no additional actions are required.
            if (_platformInjector) return _platformInjector;
            publishDefaultGlobalUtils();
            // Otherwise, setup a new platform injector and run platform initializers.
            const injector = createPlatformInjector(providers);
            _platformInjector = injector;
            publishSignalConfiguration();
            runPlatformInitializers(injector);
            return injector;
          }
          function runPlatformInitializers(injector) {
            const inits = injector.get(PLATFORM_INITIALIZER, null);
            inits?.forEach(init => init());
          }
          /**
           * Internal create application API that implements the core application creation logic and optional
           * bootstrap logic.
           *
           * Platforms (such as `platform-browser`) may require different set of application and platform
           * providers for an application to function correctly. As a result, platforms may use this function
           * internally and supply the necessary providers during the bootstrap, while exposing
           * platform-specific APIs as a part of their public API.
           *
           * @returns A promise that returns an `ApplicationRef` instance once resolved.
           */
          function internalCreateApplication(config) {
            try {
              const {
                rootComponent,
                appProviders,
                platformProviders
              } = config;
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && rootComponent !== undefined) {
                assertStandaloneComponentType(rootComponent);
              }
              const platformInjector = createOrReusePlatformInjector(platformProviders);
              // Create root application injector based on a set of providers configured at the platform
              // bootstrap level as well as providers passed to the bootstrap call by a user.
              const allAppProviders = [provideZoneChangeDetection(), ...(appProviders || [])];
              const adapter = new EnvironmentNgModuleRefAdapter({
                providers: allAppProviders,
                parent: platformInjector,
                debugName: typeof ngDevMode === 'undefined' || ngDevMode ? 'Environment Injector' : '',
                // We skip environment initializers because we need to run them inside the NgZone, which
                // happens after we get the NgZone instance from the Injector.
                runEnvironmentInitializers: false
              });
              const envInjector = adapter.injector;
              const ngZone = envInjector.get(NgZone);
              return ngZone.run(() => {
                envInjector.resolveInjectorInitializers();
                const exceptionHandler = envInjector.get(ErrorHandler, null);
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && !exceptionHandler) {
                  throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No `ErrorHandler` found in the Dependency Injection tree.');
                }
                let onErrorSubscription;
                ngZone.runOutsideAngular(() => {
                  onErrorSubscription = ngZone.onError.subscribe({
                    next: error => {
                      exceptionHandler.handleError(error);
                    }
                  });
                });
                // If the whole platform is destroyed, invoke the `destroy` method
                // for all bootstrapped applications as well.
                const destroyListener = () => envInjector.destroy();
                const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS);
                onPlatformDestroyListeners.add(destroyListener);
                envInjector.onDestroy(() => {
                  onErrorSubscription.unsubscribe();
                  onPlatformDestroyListeners.delete(destroyListener);
                });
                return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {
                  const initStatus = envInjector.get(ApplicationInitStatus);
                  initStatus.runInitializers();
                  return initStatus.donePromise.then(() => {
                    const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);
                    setLocaleId(localeId || DEFAULT_LOCALE_ID);
                    const appRef = envInjector.get(ApplicationRef);
                    if (rootComponent !== undefined) {
                      appRef.bootstrap(rootComponent);
                    }
                    return appRef;
                  });
                });
              });
            } catch (e) {
              return Promise.reject(e);
            }
          }
          /**
           * Creates a factory for a platform. Can be used to provide or override `Providers` specific to
           * your application's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.
           * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories
           * to build up configurations that might be required by different libraries or parts of the
           * application.
           * @param name Identifies the new platform factory.
           * @param providers A set of dependency providers for platforms created with the new factory.
           *
           * @publicApi
           */
          function createPlatformFactory(parentPlatformFactory, name, providers = []) {
            const desc = `Platform: ${name}`;
            const marker = new InjectionToken(desc);
            return (extraProviders = []) => {
              let platform = getPlatform();
              if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
                const platformProviders = [...providers, ...extraProviders, {
                  provide: marker,
                  useValue: true
                }];
                if (parentPlatformFactory) {
                  parentPlatformFactory(platformProviders);
                } else {
                  createPlatform(createPlatformInjector(platformProviders, desc));
                }
              }
              return assertPlatform(marker);
            };
          }
          /**
           * Checks that there is currently a platform that contains the given token as a provider.
           *
           * @publicApi
           */
          function assertPlatform(requiredToken) {
            const platform = getPlatform();
            if (!platform) {
              throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
            }
            if ((typeof ngDevMode === 'undefined' || ngDevMode) && !platform.injector.get(requiredToken, null)) {
              throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, 'A platform with a different configuration has been created. Please destroy it first.');
            }
            return platform;
          }
          /**
           * Helper function to create an instance of a platform injector (that maintains the 'platform'
           * scope).
           */
          function createPlatformInjector(providers = [], name) {
            return Injector.create({
              name,
              providers: [{
                provide: INJECTOR_SCOPE,
                useValue: 'platform'
              }, {
                provide: PLATFORM_DESTROY_LISTENERS,
                useValue: new Set([() => _platformInjector = null])
              }, ...providers]
            });
          }
          /**
           * Destroys the current Angular platform and all Angular applications on the page.
           * Destroys all modules and listeners registered with the platform.
           *
           * @publicApi
           */
          function destroyPlatform() {
            getPlatform()?.destroy();
          }
          /**
           * Returns the current platform.
           *
           * @publicApi
           */
          function getPlatform() {
            return _platformInjector?.get(PlatformRef) ?? null;
          }
          /**
           * The Angular platform is the entry point for Angular on a web page.
           * Each page has exactly one platform. Services (such as reflection) which are common
           * to every Angular application running on the page are bound in its scope.
           * A page's platform is initialized implicitly when a platform is created using a platform
           * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.
           *
           * @publicApi
           */
          class PlatformRef {
            /** @internal */
            constructor(_injector) {
              this._injector = _injector;
              this._modules = [];
              this._destroyListeners = [];
              this._destroyed = false;
            }
            /**
             * Creates an instance of an `@NgModule` for the given platform.
             *
             * @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function
             *     argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.
             */
            bootstrapModuleFactory(moduleFactory, options) {
              // Note: We need to create the NgZone _before_ we instantiate the module,
              // as instantiating the module creates some providers eagerly.
              // So we create a mini parent injector that just contains the new NgZone and
              // pass that as parent to the NgModuleFactory.
              const ngZone = getNgZone(options?.ngZone, getNgZoneOptions({
                eventCoalescing: options?.ngZoneEventCoalescing,
                runCoalescing: options?.ngZoneRunCoalescing
              }));
              // Note: Create ngZoneInjector within ngZone.run so that all of the instantiated services are
              // created within the Angular zone
              // Do not try to replace ngZone.run with ApplicationRef#run because ApplicationRef would then be
              // created outside of the Angular zone.
              return ngZone.run(() => {
                const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, internalProvideZoneChangeDetection(() => ngZone));
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && moduleRef.injector.get(PROVIDED_NG_ZONE, null) !== null) {
                  throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, '`bootstrapModule` does not support `provideZoneChangeDetection`. Use `BootstrapOptions` instead.');
                }
                const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && exceptionHandler === null) {
                  throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No ErrorHandler. Is platform module (BrowserModule) included?');
                }
                ngZone.runOutsideAngular(() => {
                  const subscription = ngZone.onError.subscribe({
                    next: error => {
                      exceptionHandler.handleError(error);
                    }
                  });
                  moduleRef.onDestroy(() => {
                    remove(this._modules, moduleRef);
                    subscription.unsubscribe();
                  });
                });
                return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {
                  const initStatus = moduleRef.injector.get(ApplicationInitStatus);
                  initStatus.runInitializers();
                  return initStatus.donePromise.then(() => {
                    // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy
                    const localeId = moduleRef.injector.get(LOCALE_ID, DEFAULT_LOCALE_ID);
                    setLocaleId(localeId || DEFAULT_LOCALE_ID);
                    this._moduleDoBootstrap(moduleRef);
                    return moduleRef;
                  });
                });
              });
            }
            /**
             * Creates an instance of an `@NgModule` for a given platform.
             *
             * @usageNotes
             * ### Simple Example
             *
             * ```typescript
             * @NgModule({
             *   imports: [BrowserModule]
             * })
             * class MyModule {}
             *
             * let moduleRef = platformBrowser().bootstrapModule(MyModule);
             * ```
             *
             */
            bootstrapModule(moduleType, compilerOptions = []) {
              const options = optionsReducer({}, compilerOptions);
              return compileNgModuleFactory(this.injector, options, moduleType).then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));
            }
            _moduleDoBootstrap(moduleRef) {
              const appRef = moduleRef.injector.get(ApplicationRef);
              if (moduleRef._bootstrapComponents.length > 0) {
                moduleRef._bootstrapComponents.forEach(f => appRef.bootstrap(f));
              } else if (moduleRef.instance.ngDoBootstrap) {
                moduleRef.instance.ngDoBootstrap(appRef);
              } else {
                throw new RuntimeError(-403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode && `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` + `but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ` + `Please define one of these.`);
              }
              this._modules.push(moduleRef);
            }
            /**
             * Registers a listener to be called when the platform is destroyed.
             */
            onDestroy(callback) {
              this._destroyListeners.push(callback);
            }
            /**
             * Retrieves the platform {@link Injector}, which is the parent injector for
             * every Angular application on the page and provides singleton providers.
             */
            get injector() {
              return this._injector;
            }
            /**
             * Destroys the current Angular platform and all Angular applications on the page.
             * Destroys all modules and listeners registered with the platform.
             */
            destroy() {
              if (this._destroyed) {
                throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');
              }
              this._modules.slice().forEach(module => module.destroy());
              this._destroyListeners.forEach(listener => listener());
              const destroyListeners = this._injector.get(PLATFORM_DESTROY_LISTENERS, null);
              if (destroyListeners) {
                destroyListeners.forEach(listener => listener());
                destroyListeners.clear();
              }
              this._destroyed = true;
            }
            /**
             * Indicates whether this instance was destroyed.
             */
            get destroyed() {
              return this._destroyed;
            }
            static {
              this.ɵfac = function PlatformRef_Factory(t) {
                return new (t || PlatformRef)(ɵɵinject(Injector));
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: PlatformRef,
                factory: PlatformRef.ɵfac,
                providedIn: 'platform'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(PlatformRef, [{
              type: Injectable,
              args: [{
                providedIn: 'platform'
              }]
            }], function () {
              return [{
                type: Injector
              }];
            }, null);
          })();
          // Transforms a set of `BootstrapOptions` (supported by the NgModule-based bootstrap APIs) ->
          // `NgZoneOptions` that are recognized by the NgZone constructor. Passing no options will result in
          // a set of default options returned.
          function getNgZoneOptions(options) {
            return {
              enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,
              shouldCoalesceEventChangeDetection: options?.eventCoalescing ?? false,
              shouldCoalesceRunChangeDetection: options?.runCoalescing ?? false
            };
          }
          function getNgZone(ngZoneToUse = 'zone.js', options) {
            if (ngZoneToUse === 'noop') {
              return new NoopNgZone();
            }
            if (ngZoneToUse === 'zone.js') {
              return new NgZone(options);
            }
            return ngZoneToUse;
          }
          function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
            try {
              const result = callback();
              if (isPromise(result)) {
                return result.catch(e => {
                  ngZone.runOutsideAngular(() => errorHandler.handleError(e));
                  // rethrow as the exception handler might not do it
                  throw e;
                });
              }
              return result;
            } catch (e) {
              ngZone.runOutsideAngular(() => errorHandler.handleError(e));
              // rethrow as the exception handler might not do it
              throw e;
            }
          }
          function optionsReducer(dst, objs) {
            if (Array.isArray(objs)) {
              return objs.reduce(optionsReducer, dst);
            }
            return {
              ...dst,
              ...objs
            };
          }
          /**
           * A reference to an Angular application running on a page.
           *
           * @usageNotes
           * {@a is-stable-examples}
           * ### isStable examples and caveats
           *
           * Note two important points about `isStable`, demonstrated in the examples below:
           * - the application will never be stable if you start any kind
           * of recurrent asynchronous task when the application starts
           * (for example for a polling process, started with a `setInterval`, a `setTimeout`
           * or using RxJS operators like `interval`);
           * - the `isStable` Observable runs outside of the Angular zone.
           *
           * Let's imagine that you start a recurrent task
           * (here incrementing a counter, using RxJS `interval`),
           * and at the same time subscribe to `isStable`.
           *
           * ```
           * constructor(appRef: ApplicationRef) {
           *   appRef.isStable.pipe(
           *      filter(stable => stable)
           *   ).subscribe(() => console.log('App is stable now');
           *   interval(1000).subscribe(counter => console.log(counter));
           * }
           * ```
           * In this example, `isStable` will never emit `true`,
           * and the trace "App is stable now" will never get logged.
           *
           * If you want to execute something when the app is stable,
           * you have to wait for the application to be stable
           * before starting your polling process.
           *
           * ```
           * constructor(appRef: ApplicationRef) {
           *   appRef.isStable.pipe(
           *     first(stable => stable),
           *     tap(stable => console.log('App is stable now')),
           *     switchMap(() => interval(1000))
           *   ).subscribe(counter => console.log(counter));
           * }
           * ```
           * In this example, the trace "App is stable now" will be logged
           * and then the counter starts incrementing every second.
           *
           * Note also that this Observable runs outside of the Angular zone,
           * which means that the code in the subscription
           * to this Observable will not trigger the change detection.
           *
           * Let's imagine that instead of logging the counter value,
           * you update a field of your component
           * and display it in its template.
           *
           * ```
           * constructor(appRef: ApplicationRef) {
           *   appRef.isStable.pipe(
           *     first(stable => stable),
           *     switchMap(() => interval(1000))
           *   ).subscribe(counter => this.value = counter);
           * }
           * ```
           * As the `isStable` Observable runs outside the zone,
           * the `value` field will be updated properly,
           * but the template will not be refreshed!
           *
           * You'll have to manually trigger the change detection to update the template.
           *
           * ```
           * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {
           *   appRef.isStable.pipe(
           *     first(stable => stable),
           *     switchMap(() => interval(1000))
           *   ).subscribe(counter => {
           *     this.value = counter;
           *     cd.detectChanges();
           *   });
           * }
           * ```
           *
           * Or make the subscription callback run inside the zone.
           *
           * ```
           * constructor(appRef: ApplicationRef, zone: NgZone) {
           *   appRef.isStable.pipe(
           *     first(stable => stable),
           *     switchMap(() => interval(1000))
           *   ).subscribe(counter => zone.run(() => this.value = counter));
           * }
           * ```
           *
           * @publicApi
           */
          class ApplicationRef {
            constructor() {
              /** @internal */
              this._bootstrapListeners = [];
              this._runningTick = false;
              this._destroyed = false;
              this._destroyListeners = [];
              /** @internal */
              this._views = [];
              this.internalErrorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);
              this.zoneIsStable = inject(ZONE_IS_STABLE_OBSERVABLE);
              /**
               * Get a list of component types registered to this application.
               * This list is populated even before the component is created.
               */
              this.componentTypes = [];
              /**
               * Get a list of components registered to this application.
               */
              this.components = [];
              /**
               * Returns an Observable that indicates when the application is stable or unstable.
               */
              this.isStable = inject(InitialRenderPendingTasks).hasPendingTasks.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.switchMap)(hasPendingTasks => hasPendingTasks ? (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(false) : this.zoneIsStable), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.distinctUntilChanged)(), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.share)());
              this._injector = inject(EnvironmentInjector);
            }
            /**
             * Indicates whether this instance was destroyed.
             */
            get destroyed() {
              return this._destroyed;
            }
            /**
             * The `EnvironmentInjector` used to create this application.
             */
            get injector() {
              return this._injector;
            }
            /**
             * Bootstrap a component onto the element identified by its selector or, optionally, to a
             * specified element.
             *
             * @usageNotes
             * ### Bootstrap process
             *
             * When bootstrapping a component, Angular mounts it onto a target DOM element
             * and kicks off automatic change detection. The target DOM element can be
             * provided using the `rootSelectorOrNode` argument.
             *
             * If the target DOM element is not provided, Angular tries to find one on a page
             * using the `selector` of the component that is being bootstrapped
             * (first matched element is used).
             *
             * ### Example
             *
             * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,
             * but it requires us to know the component while writing the application code.
             *
             * Imagine a situation where we have to wait for an API call to decide about the component to
             * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to
             * dynamically bootstrap a component.
             *
             * {@example core/ts/platform/platform.ts region='componentSelector'}
             *
             * Optionally, a component can be mounted onto a DOM element that does not match the
             * selector of the bootstrapped component.
             *
             * In the following example, we are providing a CSS selector to match the target element.
             *
             * {@example core/ts/platform/platform.ts region='cssSelector'}
             *
             * While in this example, we are providing reference to a DOM node.
             *
             * {@example core/ts/platform/platform.ts region='domNode'}
             */
            bootstrap(componentOrFactory, rootSelectorOrNode) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();
              const isComponentFactory = componentOrFactory instanceof ComponentFactory$1;
              const initStatus = this._injector.get(ApplicationInitStatus);
              if (!initStatus.done) {
                const standalone = !isComponentFactory && isStandalone(componentOrFactory);
                const errorMessage = 'Cannot bootstrap as there are still asynchronous initializers running.' + (standalone ? '' : ' Bootstrap components in the `ngDoBootstrap` method of the root module.');
                throw new RuntimeError(405 /* RuntimeErrorCode.ASYNC_INITIALIZERS_STILL_RUNNING */, (typeof ngDevMode === 'undefined' || ngDevMode) && errorMessage);
              }
              let componentFactory;
              if (isComponentFactory) {
                componentFactory = componentOrFactory;
              } else {
                const resolver = this._injector.get(ComponentFactoryResolver$1);
                componentFactory = resolver.resolveComponentFactory(componentOrFactory);
              }
              this.componentTypes.push(componentFactory.componentType);
              // Create a factory associated with the current module if it's not bound to some other
              const ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef$1);
              const selectorOrNode = rootSelectorOrNode || componentFactory.selector;
              const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);
              const nativeElement = compRef.location.nativeElement;
              const testability = compRef.injector.get(TESTABILITY, null);
              testability?.registerApplication(nativeElement);
              compRef.onDestroy(() => {
                this.detachView(compRef.hostView);
                remove(this.components, compRef);
                testability?.unregisterApplication(nativeElement);
              });
              this._loadComponent(compRef);
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                const _console = this._injector.get(Console);
                _console.log(`Angular is running in development mode.`);
              }
              return compRef;
            }
            /**
             * Invoke this method to explicitly process change detection and its side-effects.
             *
             * In development mode, `tick()` also performs a second change detection cycle to ensure that no
             * further changes are detected. If additional changes are picked up during this second cycle,
             * bindings in the app have side-effects that cannot be resolved in a single change detection
             * pass.
             * In this case, Angular throws an error, since an Angular application can only have one change
             * detection pass during which all change detection must complete.
             */
            tick() {
              (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();
              if (this._runningTick) {
                throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');
              }
              try {
                this._runningTick = true;
                for (let view of this._views) {
                  view.detectChanges();
                }
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  for (let view of this._views) {
                    view.checkNoChanges();
                  }
                }
              } catch (e) {
                // Attention: Don't rethrow as it could cancel subscriptions to Observables!
                this.internalErrorHandler(e);
              } finally {
                this._runningTick = false;
              }
            }
            /**
             * Attaches a view so that it will be dirty checked.
             * The view will be automatically detached when it is destroyed.
             * This will throw if the view is already attached to a ViewContainer.
             */
            attachView(viewRef) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();
              const view = viewRef;
              this._views.push(view);
              view.attachToAppRef(this);
            }
            /**
             * Detaches a view from dirty checking again.
             */
            detachView(viewRef) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();
              const view = viewRef;
              remove(this._views, view);
              view.detachFromAppRef();
            }
            _loadComponent(componentRef) {
              this.attachView(componentRef.hostView);
              this.tick();
              this.components.push(componentRef);
              // Get the listeners lazily to prevent DI cycles.
              const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);
              if (ngDevMode && !Array.isArray(listeners)) {
                throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' + `(expected an array, but got ${typeof listeners}). ` + 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' + '`multi: true` provider.');
              }
              listeners.push(...this._bootstrapListeners);
              listeners.forEach(listener => listener(componentRef));
            }
            /** @internal */
            ngOnDestroy() {
              if (this._destroyed) return;
              try {
                // Call all the lifecycle hooks.
                this._destroyListeners.forEach(listener => listener());
                // Destroy all registered views.
                this._views.slice().forEach(view => view.destroy());
              } finally {
                // Indicate that this instance is destroyed.
                this._destroyed = true;
                // Release all references.
                this._views = [];
                this._bootstrapListeners = [];
                this._destroyListeners = [];
              }
            }
            /**
             * Registers a listener to be called when an instance is destroyed.
             *
             * @param callback A callback function to add as a listener.
             * @returns A function which unregisters a listener.
             */
            onDestroy(callback) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();
              this._destroyListeners.push(callback);
              return () => remove(this._destroyListeners, callback);
            }
            /**
             * Destroys an Angular application represented by this `ApplicationRef`. Calling this function
             * will destroy the associated environment injectors as well as all the bootstrapped components
             * with their views.
             */
            destroy() {
              if (this._destroyed) {
                throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');
              }
              const injector = this._injector;
              // Check that this injector instance supports destroy operation.
              if (injector.destroy && !injector.destroyed) {
                // Destroying an underlying injector will trigger the `ngOnDestroy` lifecycle
                // hook, which invokes the remaining cleanup actions.
                injector.destroy();
              }
            }
            /**
             * Returns the number of attached views.
             */
            get viewCount() {
              return this._views.length;
            }
            warnIfDestroyed() {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._destroyed) {
                console.warn(formatRuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, 'This instance of the `ApplicationRef` has already been destroyed.'));
              }
            }
            static {
              this.ɵfac = function ApplicationRef_Factory(t) {
                return new (t || ApplicationRef)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: ApplicationRef,
                factory: ApplicationRef.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationRef, [{
              type: Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          function remove(list, el) {
            const index = list.indexOf(el);
            if (index > -1) {
              list.splice(index, 1);
            }
          }
          function _lastDefined(args) {
            for (let i = args.length - 1; i >= 0; i--) {
              if (args[i] !== undefined) {
                return args[i];
              }
            }
            return undefined;
          }
          /**
           * `InjectionToken` used to configure how to call the `ErrorHandler`.
           *
           * `NgZone` is provided by default today so the default (and only) implementation for this
           * is calling `ErrorHandler.handleError` outside of the Angular zone.
           */
          const INTERNAL_APPLICATION_ERROR_HANDLER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'internal error handler' : '', {
            providedIn: 'root',
            factory: () => {
              const userErrorHandler = inject(ErrorHandler);
              return userErrorHandler.handleError.bind(undefined);
            }
          });
          function ngZoneApplicationErrorHandlerFactory() {
            const zone = inject(NgZone);
            const userErrorHandler = inject(ErrorHandler);
            return e => zone.runOutsideAngular(() => userErrorHandler.handleError(e));
          }
          class NgZoneChangeDetectionScheduler {
            constructor() {
              this.zone = inject(NgZone);
              this.applicationRef = inject(ApplicationRef);
            }
            initialize() {
              if (this._onMicrotaskEmptySubscription) {
                return;
              }
              this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({
                next: () => {
                  this.zone.run(() => {
                    this.applicationRef.tick();
                  });
                }
              });
            }
            ngOnDestroy() {
              this._onMicrotaskEmptySubscription?.unsubscribe();
            }
            static {
              this.ɵfac = function NgZoneChangeDetectionScheduler_Factory(t) {
                return new (t || NgZoneChangeDetectionScheduler)();
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({
                token: NgZoneChangeDetectionScheduler,
                factory: NgZoneChangeDetectionScheduler.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NgZoneChangeDetectionScheduler, [{
              type: Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * Internal token used to verify that `provideZoneChangeDetection` is not used
           * with the bootstrapModule API.
           */
          const PROVIDED_NG_ZONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'provideZoneChangeDetection token' : '');
          function internalProvideZoneChangeDetection(ngZoneFactory) {
            return [{
              provide: NgZone,
              useFactory: ngZoneFactory
            }, {
              provide: ENVIRONMENT_INITIALIZER,
              multi: true,
              useFactory: () => {
                const ngZoneChangeDetectionScheduler = inject(NgZoneChangeDetectionScheduler, {
                  optional: true
                });
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && ngZoneChangeDetectionScheduler === null) {
                  throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, `A required Injectable was not found in the dependency injection tree. ` + 'If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.');
                }
                return () => ngZoneChangeDetectionScheduler.initialize();
              }
            }, {
              provide: INTERNAL_APPLICATION_ERROR_HANDLER,
              useFactory: ngZoneApplicationErrorHandlerFactory
            }, {
              provide: ZONE_IS_STABLE_OBSERVABLE,
              useFactory: isStableFactory
            }];
          }
          /**
           * Provides `NgZone`-based change detection for the application bootstrapped using
           * `bootstrapApplication`.
           *
           * `NgZone` is already provided in applications by default. This provider allows you to configure
           * options like `eventCoalescing` in the `NgZone`.
           * This provider is not available for `platformBrowser().bootstrapModule`, which uses
           * `BootstrapOptions` instead.
           *
           * @usageNotes
           * ```typescript
           * bootstrapApplication(MyApp, {providers: [
           *   provideZoneChangeDetection({eventCoalescing: true}),
           * ]});
           * ```
           *
           * @publicApi
           * @see {@link bootstrapApplication}
           * @see {@link NgZoneOptions}
           */
          function provideZoneChangeDetection(options) {
            const zoneProviders = internalProvideZoneChangeDetection(() => new NgZone(getNgZoneOptions(options)));
            return makeEnvironmentProviders([typeof ngDevMode === 'undefined' || ngDevMode ? {
              provide: PROVIDED_NG_ZONE,
              useValue: true
            } : [], zoneProviders]);
          }
          
          /**
           * Returns whether Angular is in development mode.
           *
           * By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the
           * application is built using the Angular CLI with the `optimization` option.
           * @see {@link cli/build ng build}
           *
           * @publicApi
           */
          function isDevMode() {
            return typeof ngDevMode === 'undefined' || !!ngDevMode;
          }
          /**
           * Disable Angular's development mode, which turns off assertions and other
           * checks within the framework.
           *
           * One important assertion this disables verifies that a change detection pass
           * does not result in additional changes to any bindings (also known as
           * unidirectional data flow).
           *
           * Using this method is discouraged as the Angular CLI will set production mode when using the
           * `optimization` option.
           * @see {@link cli/build ng build}
           *
           * @publicApi
           */
          function enableProdMode() {
            // The below check is there so when ngDevMode is set via terser
            // `global['ngDevMode'] = false;` is also dropped.
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              _global['ngDevMode'] = false;
            }
          }
          
          // Public API for render
          
          /**
           * Returns the NgModuleFactory with the given id (specified using [@NgModule.id
           * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do
           * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.
           * @publicApi
           * @deprecated Use `getNgModuleById` instead.
           */
          function getModuleFactory(id) {
            const type = getRegisteredNgModuleType(id);
            if (!type) throw noModuleError(id);
            return new NgModuleFactory(type);
          }
          /**
           * Returns the NgModule class with the given id (specified using [@NgModule.id
           * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do
           * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.
           * @publicApi
           */
          function getNgModuleById(id) {
            const type = getRegisteredNgModuleType(id);
            if (!type) throw noModuleError(id);
            return type;
          }
          function noModuleError(id) {
            return new Error(`No module with ID ${id} loaded`);
          }
          
          /**
           * Base class that provides change detection functionality.
           * A change-detection tree collects all views that are to be checked for changes.
           * Use the methods to add and remove views from the tree, initiate change-detection,
           * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
           *
           * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
           * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
           *
           * @usageNotes
           *
           * The following examples demonstrate how to modify default change-detection behavior
           * to perform explicit detection when needed.
           *
           * ### Use `markForCheck()` with `CheckOnce` strategy
           *
           * The following example sets the `OnPush` change-detection strategy for a component
           * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
           * after an interval.
           *
           * <code-example path="core/ts/change_detect/change-detection.ts"
           * region="mark-for-check"></code-example>
           *
           * ### Detach change detector to limit how often check occurs
           *
           * The following example defines a component with a large list of read-only data
           * that is expected to change constantly, many times per second.
           * To improve performance, we want to check and update the list
           * less often than the changes actually occur. To do that, we detach
           * the component's change detector and perform an explicit local check every five seconds.
           *
           * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
           *
           *
           * ### Reattaching a detached component
           *
           * The following example creates a component displaying live data.
           * The component detaches its change detector from the main change detector tree
           * when the `live` property is set to false, and reattaches it when the property
           * becomes true.
           *
           * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
           *
           * @publicApi
           */
          class ChangeDetectorRef {
            /**
             * @internal
             * @nocollapse
             */
            static {
              this.__NG_ELEMENT_ID__ = injectChangeDetectorRef;
            }
          }
          /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
          function injectChangeDetectorRef(flags) {
            return createViewRef(getCurrentTNode(), getLView(), (flags & 16 /* InternalInjectFlags.ForPipe */) === 16 /* InternalInjectFlags.ForPipe */);
          }
          /**
           * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).
           *
           * @param tNode The node that is requesting a ChangeDetectorRef
           * @param lView The view to which the node belongs
           * @param isPipe Whether the view is being injected into a pipe.
           * @returns The ChangeDetectorRef to use
           */
          function createViewRef(tNode, lView, isPipe) {
            if (isComponentHost(tNode) && !isPipe) {
              // The LView represents the location where the component is declared.
              // Instead we want the LView for the component View and so we need to look it up.
              const componentView = getComponentLViewByIndex(tNode.index, lView); // look down
              return new ViewRef$1(componentView, componentView);
            } else if (tNode.type & (3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */)) {
              // The LView represents the location where the injection is requested from.
              // We need to locate the containing LView (in case where the `lView` is an embedded view)
              const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up
              return new ViewRef$1(hostComponentView, lView);
            }
            return null;
          }
          
          /**
           * Represents an Angular [view](guide/glossary#view "Definition").
           *
           * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
           *
           * @publicApi
           */
          class ViewRef extends ChangeDetectorRef {}
          /**
           * Represents an Angular [view](guide/glossary#view) in a view container.
           * An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component
           * other than the hosting component whose template defines it, or it can be defined
           * independently by a `TemplateRef`.
           *
           * Properties of elements in a view can change, but the structure (number and order) of elements in
           * a view cannot. Change the structure of elements by inserting, moving, or
           * removing nested views in a view container.
           *
           * @see {@link ViewContainerRef}
           *
           * @usageNotes
           *
           * The following template breaks down into two separate `TemplateRef` instances,
           * an outer one and an inner one.
           *
           * ```
           * Count: {{items.length}}
           * <ul>
           *   <li *ngFor="let  item of items">{{item}}</li>
           * </ul>
           * ```
           *
           * This is the outer `TemplateRef`:
           *
           * ```
           * Count: {{items.length}}
           * <ul>
           *   <ng-template ngFor let-item [ngForOf]="items"></ng-template>
           * </ul>
           * ```
           *
           * This is the inner `TemplateRef`:
           *
           * ```
           *   <li>{{item}}</li>
           * ```
           *
           * The outer and inner `TemplateRef` instances are assembled into views as follows:
           *
           * ```
           * <!-- ViewRef: outer-0 -->
           * Count: 2
           * <ul>
           *   <ng-template view-container-ref></ng-template>
           *   <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->
           *   <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->
           * </ul>
           * <!-- /ViewRef: outer-0 -->
           * ```
           * @publicApi
           */
          class EmbeddedViewRef extends ViewRef {}
          
          // Public API for compiler
          
          // This file exists for easily patching NgModuleFactoryLoader in g3
          var ng_module_factory_loader_impl = {};
          
          /**
           * @publicApi
           */
          class DebugEventListener {
            constructor(name, callback) {
              this.name = name;
              this.callback = callback;
            }
          }
          /**
           * @publicApi
           */
          function asNativeElements(debugEls) {
            return debugEls.map(el => el.nativeElement);
          }
          /**
           * @publicApi
           */
          class DebugNode {
            constructor(nativeNode) {
              this.nativeNode = nativeNode;
            }
            /**
             * The `DebugElement` parent. Will be `null` if this is the root element.
             */
            get parent() {
              const parent = this.nativeNode.parentNode;
              return parent ? new DebugElement(parent) : null;
            }
            /**
             * The host dependency injector. For example, the root element's component instance injector.
             */
            get injector() {
              return getInjector(this.nativeNode);
            }
            /**
             * The element's own component instance, if it has one.
             */
            get componentInstance() {
              const nativeElement = this.nativeNode;
              return nativeElement && (getComponent(nativeElement) || getOwningComponent(nativeElement));
            }
            /**
             * An object that provides parent context for this element. Often an ancestor component instance
             * that governs this element.
             *
             * When an element is repeated within *ngFor, the context is an `NgForOf` whose `$implicit`
             * property is the value of the row instance value. For example, the `hero` in `*ngFor="let hero
             * of heroes"`.
             */
            get context() {
              return getComponent(this.nativeNode) || getContext(this.nativeNode);
            }
            /**
             * The callbacks attached to the component's @Output properties and/or the element's event
             * properties.
             */
            get listeners() {
              return getListeners(this.nativeNode).filter(listener => listener.type === 'dom');
            }
            /**
             * Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local
             * variable name.
             */
            get references() {
              return getLocalRefs(this.nativeNode);
            }
            /**
             * This component's injector lookup tokens. Includes the component itself plus the tokens that the
             * component lists in its providers metadata.
             */
            get providerTokens() {
              return getInjectionTokens(this.nativeNode);
            }
          }
          /**
           * @publicApi
           *
           * @see [Component testing scenarios](guide/testing-components-scenarios)
           * @see [Basics of testing components](guide/testing-components-basics)
           * @see [Testing utility APIs](guide/testing-utility-apis)
           */
          class DebugElement extends DebugNode {
            constructor(nativeNode) {
              ngDevMode && assertDomNode(nativeNode);
              super(nativeNode);
            }
            /**
             * The underlying DOM element at the root of the component.
             */
            get nativeElement() {
              return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;
            }
            /**
             * The element tag name, if it is an element.
             */
            get name() {
              const context = getLContext(this.nativeNode);
              const lView = context ? context.lView : null;
              if (lView !== null) {
                const tData = lView[TVIEW].data;
                const tNode = tData[context.nodeIndex];
                return tNode.value;
              } else {
                return this.nativeNode.nodeName;
              }
            }
            /**
             *  Gets a map of property names to property values for an element.
             *
             *  This map includes:
             *  - Regular property bindings (e.g. `[id]="id"`)
             *  - Host property bindings (e.g. `host: { '[id]': "id" }`)
             *  - Interpolated property bindings (e.g. `id="{{ value }}")
             *
             *  It does not include:
             *  - input property bindings (e.g. `[myCustomInput]="value"`)
             *  - attribute bindings (e.g. `[attr.role]="menu"`)
             */
            get properties() {
              const context = getLContext(this.nativeNode);
              const lView = context ? context.lView : null;
              if (lView === null) {
                return {};
              }
              const tData = lView[TVIEW].data;
              const tNode = tData[context.nodeIndex];
              const properties = {};
              // Collect properties from the DOM.
              copyDomProperties(this.nativeElement, properties);
              // Collect properties from the bindings. This is needed for animation renderer which has
              // synthetic properties which don't get reflected into the DOM.
              collectPropertyBindings(properties, tNode, lView, tData);
              return properties;
            }
            /**
             *  A map of attribute names to attribute values for an element.
             */
            get attributes() {
              const attributes = {};
              const element = this.nativeElement;
              if (!element) {
                return attributes;
              }
              const context = getLContext(element);
              const lView = context ? context.lView : null;
              if (lView === null) {
                return {};
              }
              const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;
              const lowercaseTNodeAttrs = [];
              // For debug nodes we take the element's attribute directly from the DOM since it allows us
              // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones
              // that are set through `Renderer2`). The problem is that the browser will lowercase all names,
              // however since we have the attributes already on the TNode, we can preserve the case by going
              // through them once, adding them to the `attributes` map and putting their lower-cased name
              // into an array. Afterwards when we're going through the native DOM attributes, we can check
              // whether we haven't run into an attribute already through the TNode.
              if (tNodeAttrs) {
                let i = 0;
                while (i < tNodeAttrs.length) {
                  const attrName = tNodeAttrs[i];
                  // Stop as soon as we hit a marker. We only care about the regular attributes. Everything
                  // else will be handled below when we read the final attributes off the DOM.
                  if (typeof attrName !== 'string') break;
                  const attrValue = tNodeAttrs[i + 1];
                  attributes[attrName] = attrValue;
                  lowercaseTNodeAttrs.push(attrName.toLowerCase());
                  i += 2;
                }
              }
              for (const attr of element.attributes) {
                // Make sure that we don't assign the same attribute both in its
                // case-sensitive form and the lower-cased one from the browser.
                if (!lowercaseTNodeAttrs.includes(attr.name)) {
                  attributes[attr.name] = attr.value;
                }
              }
              return attributes;
            }
            /**
             * The inline styles of the DOM element.
             *
             * Will be `null` if there is no `style` property on the underlying DOM element.
             *
             * @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
             */
            get styles() {
              if (this.nativeElement && this.nativeElement.style) {
                return this.nativeElement.style;
              }
              return {};
            }
            /**
             * A map containing the class names on the element as keys.
             *
             * This map is derived from the `className` property of the DOM element.
             *
             * Note: The values of this object will always be `true`. The class key will not appear in the KV
             * object if it does not exist on the element.
             *
             * @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)
             */
            get classes() {
              const result = {};
              const element = this.nativeElement;
              // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.
              const className = element.className;
              const classes = typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');
              classes.forEach(value => result[value] = true);
              return result;
            }
            /**
             * The `childNodes` of the DOM element as a `DebugNode` array.
             *
             * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)
             */
            get childNodes() {
              const childNodes = this.nativeNode.childNodes;
              const children = [];
              for (let i = 0; i < childNodes.length; i++) {
                const element = childNodes[i];
                children.push(getDebugNode(element));
              }
              return children;
            }
            /**
             * The immediate `DebugElement` children. Walk the tree by descending through `children`.
             */
            get children() {
              const nativeElement = this.nativeElement;
              if (!nativeElement) return [];
              const childNodes = nativeElement.children;
              const children = [];
              for (let i = 0; i < childNodes.length; i++) {
                const element = childNodes[i];
                children.push(getDebugNode(element));
              }
              return children;
            }
            /**
             * @returns the first `DebugElement` that matches the predicate at any depth in the subtree.
             */
            query(predicate) {
              const results = this.queryAll(predicate);
              return results[0] || null;
            }
            /**
             * @returns All `DebugElement` matches for the predicate at any depth in the subtree.
             */
            queryAll(predicate) {
              const matches = [];
              _queryAll(this, predicate, matches, true);
              return matches;
            }
            /**
             * @returns All `DebugNode` matches for the predicate at any depth in the subtree.
             */
            queryAllNodes(predicate) {
              const matches = [];
              _queryAll(this, predicate, matches, false);
              return matches;
            }
            /**
             * Triggers the event by its name if there is a corresponding listener in the element's
             * `listeners` collection.
             *
             * If the event lacks a listener or there's some other problem, consider
             * calling `nativeElement.dispatchEvent(eventObject)`.
             *
             * @param eventName The name of the event to trigger
             * @param eventObj The _event object_ expected by the handler
             *
             * @see [Testing components scenarios](guide/testing-components-scenarios#trigger-event-handler)
             */
            triggerEventHandler(eventName, eventObj) {
              const node = this.nativeNode;
              const invokedListeners = [];
              this.listeners.forEach(listener => {
                if (listener.name === eventName) {
                  const callback = listener.callback;
                  callback.call(node, eventObj);
                  invokedListeners.push(callback);
                }
              });
              // We need to check whether `eventListeners` exists, because it's something
              // that Zone.js only adds to `EventTarget` in browser environments.
              if (typeof node.eventListeners === 'function') {
                // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some
                // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event
                // listener.
                node.eventListeners(eventName).forEach(listener => {
                  // In order to ensure that we can detect the special __ngUnwrap__ token described above, we
                  // use `toString` on the listener and see if it contains the token. We use this approach to
                  // ensure that it still worked with compiled code since it cannot remove or rename string
                  // literals. We also considered using a special function name (i.e. if(listener.name ===
                  // special)) but that was more cumbersome and we were also concerned the compiled code could
                  // strip the name, turning the condition in to ("" === "") and always returning true.
                  if (listener.toString().indexOf('__ngUnwrap__') !== -1) {
                    const unwrappedListener = listener('__ngUnwrap__');
                    return invokedListeners.indexOf(unwrappedListener) === -1 && unwrappedListener.call(node, eventObj);
                  }
                });
              }
            }
          }
          function copyDomProperties(element, properties) {
            if (element) {
              // Skip own properties (as those are patched)
              let obj = Object.getPrototypeOf(element);
              const NodePrototype = Node.prototype;
              while (obj !== null && obj !== NodePrototype) {
                const descriptors = Object.getOwnPropertyDescriptors(obj);
                for (let key in descriptors) {
                  if (!key.startsWith('__') && !key.startsWith('on')) {
                    // don't include properties starting with `__` and `on`.
                    // `__` are patched values which should not be included.
                    // `on` are listeners which also should not be included.
                    const value = element[key];
                    if (isPrimitiveValue(value)) {
                      properties[key] = value;
                    }
                  }
                }
                obj = Object.getPrototypeOf(obj);
              }
            }
          }
          function isPrimitiveValue(value) {
            return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' || value === null;
          }
          function _queryAll(parentElement, predicate, matches, elementsOnly) {
            const context = getLContext(parentElement.nativeNode);
            const lView = context ? context.lView : null;
            if (lView !== null) {
              const parentTNode = lView[TVIEW].data[context.nodeIndex];
              _queryNodeChildren(parentTNode, lView, predicate, matches, elementsOnly, parentElement.nativeNode);
            } else {
              // If the context is null, then `parentElement` was either created with Renderer2 or native DOM
              // APIs.
              _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);
            }
          }
          /**
           * Recursively match the current TNode against the predicate, and goes on with the next ones.
           *
           * @param tNode the current TNode
           * @param lView the LView of this TNode
           * @param predicate the predicate to match
           * @param matches the list of positive matches
           * @param elementsOnly whether only elements should be searched
           * @param rootNativeNode the root native node on which predicate should not be matched
           */
          function _queryNodeChildren(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {
            ngDevMode && assertTNodeForLView(tNode, lView);
            const nativeNode = getNativeByTNodeOrNull(tNode, lView);
            // For each type of TNode, specific logic is executed.
            if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {
              // Case 1: the TNode is an element
              // The native node has to be checked.
              _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);
              if (isComponentHost(tNode)) {
                // If the element is the host of a component, then all nodes in its view have to be processed.
                // Note: the component's content (tNode.child) will be processed from the insertion points.
                const componentView = getComponentLViewByIndex(tNode.index, lView);
                if (componentView && componentView[TVIEW].firstChild) {
                  _queryNodeChildren(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);
                }
              } else {
                if (tNode.child) {
                  // Otherwise, its children have to be processed.
                  _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
                }
                // We also have to query the DOM directly in order to catch elements inserted through
                // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple
                // times. ViewEngine could do it more efficiently, because all the insertions go through
                // Renderer2, however that's not the case in Ivy. This approach is being used because:
                // 1. Matching the ViewEngine behavior would mean potentially introducing a dependency
                //    from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.
                // 2. It allows us to capture nodes that were inserted directly via the DOM.
                nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);
              }
              // In all cases, if a dynamic container exists for this node, each view inside it has to be
              // processed.
              const nodeOrContainer = lView[tNode.index];
              if (isLContainer(nodeOrContainer)) {
                _queryNodeChildrenInContainer(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);
              }
            } else if (tNode.type & 4 /* TNodeType.Container */) {
              // Case 2: the TNode is a container
              // The native node has to be checked.
              const lContainer = lView[tNode.index];
              _addQueryMatch(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);
              // Each view inside the container has to be processed.
              _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode);
            } else if (tNode.type & 16 /* TNodeType.Projection */) {
              // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).
              // The nodes projected at this location all need to be processed.
              const componentView = lView[DECLARATION_COMPONENT_VIEW];
              const componentHost = componentView[T_HOST];
              const head = componentHost.projection[tNode.projection];
              if (Array.isArray(head)) {
                for (let nativeNode of head) {
                  _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);
                }
              } else if (head) {
                const nextLView = componentView[PARENT];
                const nextTNode = nextLView[TVIEW].data[head.index];
                _queryNodeChildren(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);
              }
            } else if (tNode.child) {
              // Case 4: the TNode is a view.
              _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
            }
            // We don't want to go to the next sibling of the root node.
            if (rootNativeNode !== nativeNode) {
              // To determine the next node to be processed, we need to use the next or the projectionNext
              // link, depending on whether the current node has been projected.
              const nextTNode = tNode.flags & 2 /* TNodeFlags.isProjected */ ? tNode.projectionNext : tNode.next;
              if (nextTNode) {
                _queryNodeChildren(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);
              }
            }
          }
          /**
           * Process all TNodes in a given container.
           *
           * @param lContainer the container to be processed
           * @param predicate the predicate to match
           * @param matches the list of positive matches
           * @param elementsOnly whether only elements should be searched
           * @param rootNativeNode the root native node on which predicate should not be matched
           */
          function _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode) {
            for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
              const childView = lContainer[i];
              const firstChild = childView[TVIEW].firstChild;
              if (firstChild) {
                _queryNodeChildren(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);
              }
            }
          }
          /**
           * Match the current native node against the predicate.
           *
           * @param nativeNode the current native node
           * @param predicate the predicate to match
           * @param matches the list of positive matches
           * @param elementsOnly whether only elements should be searched
           * @param rootNativeNode the root native node on which predicate should not be matched
           */
          function _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {
            if (rootNativeNode !== nativeNode) {
              const debugNode = getDebugNode(nativeNode);
              if (!debugNode) {
                return;
              }
              // Type of the "predicate and "matches" array are set based on the value of
              // the "elementsOnly" parameter. TypeScript is not able to properly infer these
              // types with generics, so we manually cast the parameters accordingly.
              if (elementsOnly && debugNode instanceof DebugElement && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
                matches.push(debugNode);
              } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
                matches.push(debugNode);
              }
            }
          }
          /**
           * Match all the descendants of a DOM node against a predicate.
           *
           * @param nativeNode the current native node
           * @param predicate the predicate to match
           * @param matches the list where matches are stored
           * @param elementsOnly whether only elements should be searched
           */
          function _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {
            const nodes = parentNode.childNodes;
            const length = nodes.length;
            for (let i = 0; i < length; i++) {
              const node = nodes[i];
              const debugNode = getDebugNode(node);
              if (debugNode) {
                if (elementsOnly && debugNode instanceof DebugElement && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
                  matches.push(debugNode);
                } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
                  matches.push(debugNode);
                }
                _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);
              }
            }
          }
          /**
           * Iterates through the property bindings for a given node and generates
           * a map of property names to values. This map only contains property bindings
           * defined in templates, not in host bindings.
           */
          function collectPropertyBindings(properties, tNode, lView, tData) {
            let bindingIndexes = tNode.propertyBindings;
            if (bindingIndexes !== null) {
              for (let i = 0; i < bindingIndexes.length; i++) {
                const bindingIndex = bindingIndexes[i];
                const propMetadata = tData[bindingIndex];
                const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);
                const propertyName = metadataParts[0];
                if (metadataParts.length > 1) {
                  let value = metadataParts[1];
                  for (let j = 1; j < metadataParts.length - 1; j++) {
                    value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];
                  }
                  properties[propertyName] = value;
                } else {
                  properties[propertyName] = lView[bindingIndex];
                }
              }
            }
          }
          // Need to keep the nodes in a global Map so that multiple angular apps are supported.
          const _nativeNodeToDebugNode = new Map();
          const NG_DEBUG_PROPERTY = '__ng_debug__';
          /**
           * @publicApi
           */
          function getDebugNode(nativeNode) {
            if (nativeNode instanceof Node) {
              if (!nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY)) {
                nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ? new DebugElement(nativeNode) : new DebugNode(nativeNode);
              }
              return nativeNode[NG_DEBUG_PROPERTY];
            }
            return null;
          }
          function getAllDebugNodes() {
            return Array.from(_nativeNodeToDebugNode.values());
          }
          function indexDebugNode(node) {
            _nativeNodeToDebugNode.set(node.nativeNode, node);
          }
          function removeDebugNodeFromIndex(node) {
            _nativeNodeToDebugNode.delete(node.nativeNode);
          }
          class DefaultIterableDifferFactory {
            constructor() {}
            supports(obj) {
              return isListLikeIterable(obj);
            }
            create(trackByFn) {
              return new DefaultIterableDiffer(trackByFn);
            }
          }
          const trackByIdentity = (index, item) => item;
          /**
           * @deprecated v4.0.0 - Should not be part of public API.
           * @publicApi
           */
          class DefaultIterableDiffer {
            constructor(trackByFn) {
              this.length = 0;
              // Keeps track of the used records at any point in time (during & across `_check()` calls)
              this._linkedRecords = null;
              // Keeps track of the removed records at any point in time during `_check()` calls.
              this._unlinkedRecords = null;
              this._previousItHead = null;
              this._itHead = null;
              this._itTail = null;
              this._additionsHead = null;
              this._additionsTail = null;
              this._movesHead = null;
              this._movesTail = null;
              this._removalsHead = null;
              this._removalsTail = null;
              // Keeps track of records where custom track by is the same, but item identity has changed
              this._identityChangesHead = null;
              this._identityChangesTail = null;
              this._trackByFn = trackByFn || trackByIdentity;
            }
            forEachItem(fn) {
              let record;
              for (record = this._itHead; record !== null; record = record._next) {
                fn(record);
              }
            }
            forEachOperation(fn) {
              let nextIt = this._itHead;
              let nextRemove = this._removalsHead;
              let addRemoveOffset = 0;
              let moveOffsets = null;
              while (nextIt || nextRemove) {
                // Figure out which is the next record to process
                // Order: remove, add, move
                const record = !nextRemove || nextIt && nextIt.currentIndex < getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ? nextIt : nextRemove;
                const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);
                const currentIndex = record.currentIndex;
                // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary
                if (record === nextRemove) {
                  addRemoveOffset--;
                  nextRemove = nextRemove._nextRemoved;
                } else {
                  nextIt = nextIt._next;
                  if (record.previousIndex == null) {
                    addRemoveOffset++;
                  } else {
                    // INVARIANT:  currentIndex < previousIndex
                    if (!moveOffsets) moveOffsets = [];
                    const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;
                    const localCurrentIndex = currentIndex - addRemoveOffset;
                    if (localMovePreviousIndex != localCurrentIndex) {
                      for (let i = 0; i < localMovePreviousIndex; i++) {
                        const offset = i < moveOffsets.length ? moveOffsets[i] : moveOffsets[i] = 0;
                        const index = offset + i;
                        if (localCurrentIndex <= index && index < localMovePreviousIndex) {
                          moveOffsets[i] = offset + 1;
                        }
                      }
                      const previousIndex = record.previousIndex;
                      moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;
                    }
                  }
                }
                if (adjPreviousIndex !== currentIndex) {
                  fn(record, adjPreviousIndex, currentIndex);
                }
              }
            }
            forEachPreviousItem(fn) {
              let record;
              for (record = this._previousItHead; record !== null; record = record._nextPrevious) {
                fn(record);
              }
            }
            forEachAddedItem(fn) {
              let record;
              for (record = this._additionsHead; record !== null; record = record._nextAdded) {
                fn(record);
              }
            }
            forEachMovedItem(fn) {
              let record;
              for (record = this._movesHead; record !== null; record = record._nextMoved) {
                fn(record);
              }
            }
            forEachRemovedItem(fn) {
              let record;
              for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
                fn(record);
              }
            }
            forEachIdentityChange(fn) {
              let record;
              for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {
                fn(record);
              }
            }
            diff(collection) {
              if (collection == null) collection = [];
              if (!isListLikeIterable(collection)) {
                throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);
              }
              if (this.check(collection)) {
                return this;
              } else {
                return null;
              }
            }
            onDestroy() {}
            check(collection) {
              this._reset();
              let record = this._itHead;
              let mayBeDirty = false;
              let index;
              let item;
              let itemTrackBy;
              if (Array.isArray(collection)) {
                this.length = collection.length;
                for (let index = 0; index < this.length; index++) {
                  item = collection[index];
                  itemTrackBy = this._trackByFn(index, item);
                  if (record === null || !Object.is(record.trackById, itemTrackBy)) {
                    record = this._mismatch(record, item, itemTrackBy, index);
                    mayBeDirty = true;
                  } else {
                    if (mayBeDirty) {
                      // TODO(misko): can we limit this to duplicates only?
                      record = this._verifyReinsertion(record, item, itemTrackBy, index);
                    }
                    if (!Object.is(record.item, item)) this._addIdentityChange(record, item);
                  }
                  record = record._next;
                }
              } else {
                index = 0;
                iterateListLike(collection, item => {
                  itemTrackBy = this._trackByFn(index, item);
                  if (record === null || !Object.is(record.trackById, itemTrackBy)) {
                    record = this._mismatch(record, item, itemTrackBy, index);
                    mayBeDirty = true;
                  } else {
                    if (mayBeDirty) {
                      // TODO(misko): can we limit this to duplicates only?
                      record = this._verifyReinsertion(record, item, itemTrackBy, index);
                    }
                    if (!Object.is(record.item, item)) this._addIdentityChange(record, item);
                  }
                  record = record._next;
                  index++;
                });
                this.length = index;
              }
              this._truncate(record);
              // @ts-expect-error overwriting a readonly member
              this.collection = collection;
              return this.isDirty;
            }
            /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity
             * changes.
             */
            get isDirty() {
              return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null || this._identityChangesHead !== null;
            }
            /**
             * Reset the state of the change objects to show no changes. This means set previousKey to
             * currentKey, and clear all of the queues (additions, moves, removals).
             * Set the previousIndexes of moved and added items to their currentIndexes
             * Reset the list of additions, moves and removals
             *
             * @internal
             */
            _reset() {
              if (this.isDirty) {
                let record;
                for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {
                  record._nextPrevious = record._next;
                }
                for (record = this._additionsHead; record !== null; record = record._nextAdded) {
                  record.previousIndex = record.currentIndex;
                }
                this._additionsHead = this._additionsTail = null;
                for (record = this._movesHead; record !== null; record = record._nextMoved) {
                  record.previousIndex = record.currentIndex;
                }
                this._movesHead = this._movesTail = null;
                this._removalsHead = this._removalsTail = null;
                this._identityChangesHead = this._identityChangesTail = null;
                // TODO(vicb): when assert gets supported
                // assert(!this.isDirty);
              }
            }
            /**
             * This is the core function which handles differences between collections.
             *
             * - `record` is the record which we saw at this position last time. If null then it is a new
             *   item.
             * - `item` is the current item in the collection
             * - `index` is the position of the item in the collection
             *
             * @internal
             */
            _mismatch(record, item, itemTrackBy, index) {
              // The previous record after which we will append the current one.
              let previousRecord;
              if (record === null) {
                previousRecord = this._itTail;
              } else {
                previousRecord = record._prev;
                // Remove the record from the collection since we know it does not match the item.
                this._remove(record);
              }
              // See if we have evicted the item, which used to be at some anterior position of _itHead list.
              record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);
              if (record !== null) {
                // It is an item which we have evicted earlier: reinsert it back into the list.
                // But first we need to check if identity changed, so we can update in view if necessary.
                if (!Object.is(record.item, item)) this._addIdentityChange(record, item);
                this._reinsertAfter(record, previousRecord, index);
              } else {
                // Attempt to see if the item is at some posterior position of _itHead list.
                record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);
                if (record !== null) {
                  // We have the item in _itHead at/after `index` position. We need to move it forward in the
                  // collection.
                  // But first we need to check if identity changed, so we can update in view if necessary.
                  if (!Object.is(record.item, item)) this._addIdentityChange(record, item);
                  this._moveAfter(record, previousRecord, index);
                } else {
                  // It is a new item: add it.
                  record = this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);
                }
              }
              return record;
            }
            /**
             * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)
             *
             * Use case: `[a, a]` => `[b, a, a]`
             *
             * If we did not have this check then the insertion of `b` would:
             *   1) evict first `a`
             *   2) insert `b` at `0` index.
             *   3) leave `a` at index `1` as is. <-- this is wrong!
             *   3) reinsert `a` at index 2. <-- this is wrong!
             *
             * The correct behavior is:
             *   1) evict first `a`
             *   2) insert `b` at `0` index.
             *   3) reinsert `a` at index 1.
             *   3) move `a` at from `1` to `2`.
             *
             *
             * Double check that we have not evicted a duplicate item. We need to check if the item type may
             * have already been removed:
             * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted
             * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a
             * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'
             * at the end.
             *
             * @internal
             */
            _verifyReinsertion(record, item, itemTrackBy, index) {
              let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);
              if (reinsertRecord !== null) {
                record = this._reinsertAfter(reinsertRecord, record._prev, index);
              } else if (record.currentIndex != index) {
                record.currentIndex = index;
                this._addToMoves(record, index);
              }
              return record;
            }
            /**
             * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection
             *
             * - `record` The first excess {@link IterableChangeRecord_}.
             *
             * @internal
             */
            _truncate(record) {
              // Anything after that needs to be removed;
              while (record !== null) {
                const nextRecord = record._next;
                this._addToRemovals(this._unlink(record));
                record = nextRecord;
              }
              if (this._unlinkedRecords !== null) {
                this._unlinkedRecords.clear();
              }
              if (this._additionsTail !== null) {
                this._additionsTail._nextAdded = null;
              }
              if (this._movesTail !== null) {
                this._movesTail._nextMoved = null;
              }
              if (this._itTail !== null) {
                this._itTail._next = null;
              }
              if (this._removalsTail !== null) {
                this._removalsTail._nextRemoved = null;
              }
              if (this._identityChangesTail !== null) {
                this._identityChangesTail._nextIdentityChange = null;
              }
            }
            /** @internal */
            _reinsertAfter(record, prevRecord, index) {
              if (this._unlinkedRecords !== null) {
                this._unlinkedRecords.remove(record);
              }
              const prev = record._prevRemoved;
              const next = record._nextRemoved;
              if (prev === null) {
                this._removalsHead = next;
              } else {
                prev._nextRemoved = next;
              }
              if (next === null) {
                this._removalsTail = prev;
              } else {
                next._prevRemoved = prev;
              }
              this._insertAfter(record, prevRecord, index);
              this._addToMoves(record, index);
              return record;
            }
            /** @internal */
            _moveAfter(record, prevRecord, index) {
              this._unlink(record);
              this._insertAfter(record, prevRecord, index);
              this._addToMoves(record, index);
              return record;
            }
            /** @internal */
            _addAfter(record, prevRecord, index) {
              this._insertAfter(record, prevRecord, index);
              if (this._additionsTail === null) {
                // TODO(vicb):
                // assert(this._additionsHead === null);
                this._additionsTail = this._additionsHead = record;
              } else {
                // TODO(vicb):
                // assert(_additionsTail._nextAdded === null);
                // assert(record._nextAdded === null);
                this._additionsTail = this._additionsTail._nextAdded = record;
              }
              return record;
            }
            /** @internal */
            _insertAfter(record, prevRecord, index) {
              // TODO(vicb):
              // assert(record != prevRecord);
              // assert(record._next === null);
              // assert(record._prev === null);
              const next = prevRecord === null ? this._itHead : prevRecord._next;
              // TODO(vicb):
              // assert(next != record);
              // assert(prevRecord != record);
              record._next = next;
              record._prev = prevRecord;
              if (next === null) {
                this._itTail = record;
              } else {
                next._prev = record;
              }
              if (prevRecord === null) {
                this._itHead = record;
              } else {
                prevRecord._next = record;
              }
              if (this._linkedRecords === null) {
                this._linkedRecords = new _DuplicateMap();
              }
              this._linkedRecords.put(record);
              record.currentIndex = index;
              return record;
            }
            /** @internal */
            _remove(record) {
              return this._addToRemovals(this._unlink(record));
            }
            /** @internal */
            _unlink(record) {
              if (this._linkedRecords !== null) {
                this._linkedRecords.remove(record);
              }
              const prev = record._prev;
              const next = record._next;
              // TODO(vicb):
              // assert((record._prev = null) === null);
              // assert((record._next = null) === null);
              if (prev === null) {
                this._itHead = next;
              } else {
                prev._next = next;
              }
              if (next === null) {
                this._itTail = prev;
              } else {
                next._prev = prev;
              }
              return record;
            }
            /** @internal */
            _addToMoves(record, toIndex) {
              // TODO(vicb):
              // assert(record._nextMoved === null);
              if (record.previousIndex === toIndex) {
                return record;
              }
              if (this._movesTail === null) {
                // TODO(vicb):
                // assert(_movesHead === null);
                this._movesTail = this._movesHead = record;
              } else {
                // TODO(vicb):
                // assert(_movesTail._nextMoved === null);
                this._movesTail = this._movesTail._nextMoved = record;
              }
              return record;
            }
            _addToRemovals(record) {
              if (this._unlinkedRecords === null) {
                this._unlinkedRecords = new _DuplicateMap();
              }
              this._unlinkedRecords.put(record);
              record.currentIndex = null;
              record._nextRemoved = null;
              if (this._removalsTail === null) {
                // TODO(vicb):
                // assert(_removalsHead === null);
                this._removalsTail = this._removalsHead = record;
                record._prevRemoved = null;
              } else {
                // TODO(vicb):
                // assert(_removalsTail._nextRemoved === null);
                // assert(record._nextRemoved === null);
                record._prevRemoved = this._removalsTail;
                this._removalsTail = this._removalsTail._nextRemoved = record;
              }
              return record;
            }
            /** @internal */
            _addIdentityChange(record, item) {
              record.item = item;
              if (this._identityChangesTail === null) {
                this._identityChangesTail = this._identityChangesHead = record;
              } else {
                this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;
              }
              return record;
            }
          }
          class IterableChangeRecord_ {
            constructor(item, trackById) {
              this.item = item;
              this.trackById = trackById;
              this.currentIndex = null;
              this.previousIndex = null;
              /** @internal */
              this._nextPrevious = null;
              /** @internal */
              this._prev = null;
              /** @internal */
              this._next = null;
              /** @internal */
              this._prevDup = null;
              /** @internal */
              this._nextDup = null;
              /** @internal */
              this._prevRemoved = null;
              /** @internal */
              this._nextRemoved = null;
              /** @internal */
              this._nextAdded = null;
              /** @internal */
              this._nextMoved = null;
              /** @internal */
              this._nextIdentityChange = null;
            }
          }
          // A linked list of IterableChangeRecords with the same IterableChangeRecord_.item
          class _DuplicateItemRecordList {
            constructor() {
              /** @internal */
              this._head = null;
              /** @internal */
              this._tail = null;
            }
            /**
             * Append the record to the list of duplicates.
             *
             * Note: by design all records in the list of duplicates hold the same value in record.item.
             */
            add(record) {
              if (this._head === null) {
                this._head = this._tail = record;
                record._nextDup = null;
                record._prevDup = null;
              } else {
                // TODO(vicb):
                // assert(record.item ==  _head.item ||
                //       record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
                this._tail._nextDup = record;
                record._prevDup = this._tail;
                record._nextDup = null;
                this._tail = record;
              }
            }
            // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and
            // IterableChangeRecord_.currentIndex >= atOrAfterIndex
            get(trackById, atOrAfterIndex) {
              let record;
              for (record = this._head; record !== null; record = record._nextDup) {
                if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) && Object.is(record.trackById, trackById)) {
                  return record;
                }
              }
              return null;
            }
            /**
             * Remove one {@link IterableChangeRecord_} from the list of duplicates.
             *
             * Returns whether the list of duplicates is empty.
             */
            remove(record) {
              // TODO(vicb):
              // assert(() {
              //  // verify that the record being removed is in the list.
              //  for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
              //    if (identical(cursor, record)) return true;
              //  }
              //  return false;
              //});
              const prev = record._prevDup;
              const next = record._nextDup;
              if (prev === null) {
                this._head = next;
              } else {
                prev._nextDup = next;
              }
              if (next === null) {
                this._tail = prev;
              } else {
                next._prevDup = prev;
              }
              return this._head === null;
            }
          }
          class _DuplicateMap {
            constructor() {
              this.map = new Map();
            }
            put(record) {
              const key = record.trackById;
              let duplicates = this.map.get(key);
              if (!duplicates) {
                duplicates = new _DuplicateItemRecordList();
                this.map.set(key, duplicates);
              }
              duplicates.add(record);
            }
            /**
             * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we
             * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.
             *
             * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we
             * have any more `a`s needs to return the second `a`.
             */
            get(trackById, atOrAfterIndex) {
              const key = trackById;
              const recordList = this.map.get(key);
              return recordList ? recordList.get(trackById, atOrAfterIndex) : null;
            }
            /**
             * Removes a {@link IterableChangeRecord_} from the list of duplicates.
             *
             * The list of duplicates also is removed from the map if it gets empty.
             */
            remove(record) {
              const key = record.trackById;
              const recordList = this.map.get(key);
              // Remove the list of duplicates when it gets empty
              if (recordList.remove(record)) {
                this.map.delete(key);
              }
              return record;
            }
            get isEmpty() {
              return this.map.size === 0;
            }
            clear() {
              this.map.clear();
            }
          }
          function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
            const previousIndex = item.previousIndex;
            if (previousIndex === null) return previousIndex;
            let moveOffset = 0;
            if (moveOffsets && previousIndex < moveOffsets.length) {
              moveOffset = moveOffsets[previousIndex];
            }
            return previousIndex + addRemoveOffset + moveOffset;
          }
          class DefaultKeyValueDifferFactory {
            constructor() {}
            supports(obj) {
              return obj instanceof Map || isJsObject(obj);
            }
            create() {
              return new DefaultKeyValueDiffer();
            }
          }
          class DefaultKeyValueDiffer {
            constructor() {
              this._records = new Map();
              this._mapHead = null;
              // _appendAfter is used in the check loop
              this._appendAfter = null;
              this._previousMapHead = null;
              this._changesHead = null;
              this._changesTail = null;
              this._additionsHead = null;
              this._additionsTail = null;
              this._removalsHead = null;
              this._removalsTail = null;
            }
            get isDirty() {
              return this._additionsHead !== null || this._changesHead !== null || this._removalsHead !== null;
            }
            forEachItem(fn) {
              let record;
              for (record = this._mapHead; record !== null; record = record._next) {
                fn(record);
              }
            }
            forEachPreviousItem(fn) {
              let record;
              for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {
                fn(record);
              }
            }
            forEachChangedItem(fn) {
              let record;
              for (record = this._changesHead; record !== null; record = record._nextChanged) {
                fn(record);
              }
            }
            forEachAddedItem(fn) {
              let record;
              for (record = this._additionsHead; record !== null; record = record._nextAdded) {
                fn(record);
              }
            }
            forEachRemovedItem(fn) {
              let record;
              for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
                fn(record);
              }
            }
            diff(map) {
              if (!map) {
                map = new Map();
              } else if (!(map instanceof Map || isJsObject(map))) {
                throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);
              }
              return this.check(map) ? this : null;
            }
            onDestroy() {}
            /**
             * Check the current state of the map vs the previous.
             * The algorithm is optimised for when the keys do no change.
             */
            check(map) {
              this._reset();
              let insertBefore = this._mapHead;
              this._appendAfter = null;
              this._forEach(map, (value, key) => {
                if (insertBefore && insertBefore.key === key) {
                  this._maybeAddToChanges(insertBefore, value);
                  this._appendAfter = insertBefore;
                  insertBefore = insertBefore._next;
                } else {
                  const record = this._getOrCreateRecordForKey(key, value);
                  insertBefore = this._insertBeforeOrAppend(insertBefore, record);
                }
              });
              // Items remaining at the end of the list have been deleted
              if (insertBefore) {
                if (insertBefore._prev) {
                  insertBefore._prev._next = null;
                }
                this._removalsHead = insertBefore;
                for (let record = insertBefore; record !== null; record = record._nextRemoved) {
                  if (record === this._mapHead) {
                    this._mapHead = null;
                  }
                  this._records.delete(record.key);
                  record._nextRemoved = record._next;
                  record.previousValue = record.currentValue;
                  record.currentValue = null;
                  record._prev = null;
                  record._next = null;
                }
              }
              // Make sure tails have no next records from previous runs
              if (this._changesTail) this._changesTail._nextChanged = null;
              if (this._additionsTail) this._additionsTail._nextAdded = null;
              return this.isDirty;
            }
            /**
             * Inserts a record before `before` or append at the end of the list when `before` is null.
             *
             * Notes:
             * - This method appends at `this._appendAfter`,
             * - This method updates `this._appendAfter`,
             * - The return value is the new value for the insertion pointer.
             */
            _insertBeforeOrAppend(before, record) {
              if (before) {
                const prev = before._prev;
                record._next = before;
                record._prev = prev;
                before._prev = record;
                if (prev) {
                  prev._next = record;
                }
                if (before === this._mapHead) {
                  this._mapHead = record;
                }
                this._appendAfter = before;
                return before;
              }
              if (this._appendAfter) {
                this._appendAfter._next = record;
                record._prev = this._appendAfter;
              } else {
                this._mapHead = record;
              }
              this._appendAfter = record;
              return null;
            }
            _getOrCreateRecordForKey(key, value) {
              if (this._records.has(key)) {
                const record = this._records.get(key);
                this._maybeAddToChanges(record, value);
                const prev = record._prev;
                const next = record._next;
                if (prev) {
                  prev._next = next;
                }
                if (next) {
                  next._prev = prev;
                }
                record._next = null;
                record._prev = null;
                return record;
              }
              const record = new KeyValueChangeRecord_(key);
              this._records.set(key, record);
              record.currentValue = value;
              this._addToAdditions(record);
              return record;
            }
            /** @internal */
            _reset() {
              if (this.isDirty) {
                let record;
                // let `_previousMapHead` contain the state of the map before the changes
                this._previousMapHead = this._mapHead;
                for (record = this._previousMapHead; record !== null; record = record._next) {
                  record._nextPrevious = record._next;
                }
                // Update `record.previousValue` with the value of the item before the changes
                // We need to update all changed items (that's those which have been added and changed)
                for (record = this._changesHead; record !== null; record = record._nextChanged) {
                  record.previousValue = record.currentValue;
                }
                for (record = this._additionsHead; record != null; record = record._nextAdded) {
                  record.previousValue = record.currentValue;
                }
                this._changesHead = this._changesTail = null;
                this._additionsHead = this._additionsTail = null;
                this._removalsHead = null;
              }
            }
            // Add the record or a given key to the list of changes only when the value has actually changed
            _maybeAddToChanges(record, newValue) {
              if (!Object.is(newValue, record.currentValue)) {
                record.previousValue = record.currentValue;
                record.currentValue = newValue;
                this._addToChanges(record);
              }
            }
            _addToAdditions(record) {
              if (this._additionsHead === null) {
                this._additionsHead = this._additionsTail = record;
              } else {
                this._additionsTail._nextAdded = record;
                this._additionsTail = record;
              }
            }
            _addToChanges(record) {
              if (this._changesHead === null) {
                this._changesHead = this._changesTail = record;
              } else {
                this._changesTail._nextChanged = record;
                this._changesTail = record;
              }
            }
            /** @internal */
            _forEach(obj, fn) {
              if (obj instanceof Map) {
                obj.forEach(fn);
              } else {
                Object.keys(obj).forEach(k => fn(obj[k], k));
              }
            }
          }
          class KeyValueChangeRecord_ {
            constructor(key) {
              this.key = key;
              this.previousValue = null;
              this.currentValue = null;
              /** @internal */
              this._nextPrevious = null;
              /** @internal */
              this._next = null;
              /** @internal */
              this._prev = null;
              /** @internal */
              this._nextAdded = null;
              /** @internal */
              this._nextRemoved = null;
              /** @internal */
              this._nextChanged = null;
            }
          }
          function defaultIterableDiffersFactory() {
            return new IterableDiffers([new DefaultIterableDifferFactory()]);
          }
          /**
           * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
           *
           * @publicApi
           */
          class IterableDiffers {
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: IterableDiffers,
                providedIn: 'root',
                factory: defaultIterableDiffersFactory
              });
            }
            constructor(factories) {
              this.factories = factories;
            }
            static create(factories, parent) {
              if (parent != null) {
                const copied = parent.factories.slice();
                factories = factories.concat(copied);
              }
              return new IterableDiffers(factories);
            }
            /**
             * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the
             * inherited {@link IterableDiffers} instance with the provided factories and return a new
             * {@link IterableDiffers} instance.
             *
             * @usageNotes
             * ### Example
             *
             * The following example shows how to extend an existing list of factories,
             * which will only be applied to the injector for this component and its children.
             * This step is all that's required to make a new {@link IterableDiffer} available.
             *
             * ```
             * @Component({
             *   viewProviders: [
             *     IterableDiffers.extend([new ImmutableListDiffer()])
             *   ]
             * })
             * ```
             */
            static extend(factories) {
              return {
                provide: IterableDiffers,
                useFactory: parent => {
                  // if parent is null, it means that we are in the root injector and we have just overridden
                  // the default injection mechanism for IterableDiffers, in such a case just assume
                  // `defaultIterableDiffersFactory`.
                  return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());
                },
                // Dependency technically isn't optional, but we can provide a better error message this way.
                deps: [[IterableDiffers, new SkipSelf(), new Optional()]]
              };
            }
            find(iterable) {
              const factory = this.factories.find(f => f.supports(iterable));
              if (factory != null) {
                return factory;
              } else {
                throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);
              }
            }
          }
          function getTypeNameForDebugging(type) {
            return type['name'] || typeof type;
          }
          function defaultKeyValueDiffersFactory() {
            return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);
          }
          /**
           * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
           *
           * @publicApi
           */
          class KeyValueDiffers {
            /** @nocollapse */
            static {
              this.ɵprov = ɵɵdefineInjectable({
                token: KeyValueDiffers,
                providedIn: 'root',
                factory: defaultKeyValueDiffersFactory
              });
            }
            constructor(factories) {
              this.factories = factories;
            }
            static create(factories, parent) {
              if (parent) {
                const copied = parent.factories.slice();
                factories = factories.concat(copied);
              }
              return new KeyValueDiffers(factories);
            }
            /**
             * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the
             * inherited {@link KeyValueDiffers} instance with the provided factories and return a new
             * {@link KeyValueDiffers} instance.
             *
             * @usageNotes
             * ### Example
             *
             * The following example shows how to extend an existing list of factories,
             * which will only be applied to the injector for this component and its children.
             * This step is all that's required to make a new {@link KeyValueDiffer} available.
             *
             * ```
             * @Component({
             *   viewProviders: [
             *     KeyValueDiffers.extend([new ImmutableMapDiffer()])
             *   ]
             * })
             * ```
             */
            static extend(factories) {
              return {
                provide: KeyValueDiffers,
                useFactory: parent => {
                  // if parent is null, it means that we are in the root injector and we have just overridden
                  // the default injection mechanism for KeyValueDiffers, in such a case just assume
                  // `defaultKeyValueDiffersFactory`.
                  return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());
                },
                // Dependency technically isn't optional, but we can provide a better error message this way.
                deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]
              };
            }
            find(kv) {
              const factory = this.factories.find(f => f.supports(kv));
              if (factory) {
                return factory;
              }
              throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);
            }
          }
          
          /**
           * Structural diffing for `Object`s and `Map`s.
           */
          const keyValDiff = [new DefaultKeyValueDifferFactory()];
          /**
           * Structural diffing for `Iterable` types such as `Array`s.
           */
          const iterableDiff = [new DefaultIterableDifferFactory()];
          const defaultIterableDiffers = new IterableDiffers(iterableDiff);
          const defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);
          
          /**
           * @module
           * @description
           * Change detection enables data binding in Angular.
           */
          
          /**
           * This platform has to be included in any other platform
           *
           * @publicApi
           */
          const platformCore = createPlatformFactory(null, 'core', []);
          
          /**
           * Re-exported by `BrowserModule`, which is included automatically in the root
           * `AppModule` when you create a new app with the CLI `new` command. Eagerly injects
           * `ApplicationRef` to instantiate it.
           *
           * @publicApi
           */
          class ApplicationModule {
            // Inject ApplicationRef to make it eager...
            constructor(appRef) {}
            static {
              this.ɵfac = function ApplicationModule_Factory(t) {
                return new (t || ApplicationModule)(ɵɵinject(ApplicationRef));
              };
            }
            static {
              this.ɵmod = /*@__PURE__*/ɵɵdefineNgModule({
                type: ApplicationModule
              });
            }
            static {
              this.ɵinj = /*@__PURE__*/ɵɵdefineInjector({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ApplicationModule, [{
              type: NgModule
            }], function () {
              return [{
                type: ApplicationRef
              }];
            }, null);
          })();
          
          /**
           * A collection that tracks all serialized views (`ngh` DOM annotations)
           * to avoid duplication. An attempt to add a duplicate view results in the
           * collection returning the index of the previously collected serialized view.
           * This reduces the number of annotations needed for a given page.
           */
          class SerializedViewCollection {
            constructor() {
              this.views = [];
              this.indexByContent = new Map();
            }
            add(serializedView) {
              const viewAsString = JSON.stringify(serializedView);
              if (!this.indexByContent.has(viewAsString)) {
                const index = this.views.length;
                this.views.push(serializedView);
                this.indexByContent.set(viewAsString, index);
                return index;
              }
              return this.indexByContent.get(viewAsString);
            }
            getAll() {
              return this.views;
            }
          }
          /**
           * Global counter that is used to generate a unique id for TViews
           * during the serialization process.
           */
          let tViewSsrId = 0;
          /**
           * Generates a unique id for a given TView and returns this id.
           * The id is also stored on this instance of a TView and reused in
           * subsequent calls.
           *
           * This id is needed to uniquely identify and pick up dehydrated views
           * at runtime.
           */
          function getSsrId(tView) {
            if (!tView.ssrId) {
              tView.ssrId = `t${tViewSsrId++}`;
            }
            return tView.ssrId;
          }
          /**
           * Computes the number of root nodes in a given view
           * (or child nodes in a given container if a tNode is provided).
           */
          function calcNumRootNodes(tView, lView, tNode) {
            const rootNodes = [];
            collectNativeNodes(tView, lView, tNode, rootNodes);
            return rootNodes.length;
          }
          /**
           * Computes the number of root nodes in all views in a given LContainer.
           */
          function calcNumRootNodesInLContainer(lContainer) {
            const rootNodes = [];
            collectNativeNodesInLContainer(lContainer, rootNodes);
            return rootNodes.length;
          }
          /**
           * Annotates root level component's LView for hydration,
           * see `annotateHostElementForHydration` for additional information.
           */
          function annotateComponentLViewForHydration(lView, context) {
            const hostElement = lView[HOST];
            // Root elements might also be annotated with the `ngSkipHydration` attribute,
            // check if it's present before starting the serialization process.
            if (hostElement && !hostElement.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {
              return annotateHostElementForHydration(hostElement, lView, context);
            }
            return null;
          }
          /**
           * Annotates root level LContainer for hydration. This happens when a root component
           * injects ViewContainerRef, thus making the component an anchor for a view container.
           * This function serializes the component itself as well as all views from the view
           * container.
           */
          function annotateLContainerForHydration(lContainer, context) {
            const componentLView = unwrapLView(lContainer[HOST]);
            // Serialize the root component itself.
            const componentLViewNghIndex = annotateComponentLViewForHydration(componentLView, context);
            const hostElement = unwrapRNode(componentLView[HOST]);
            // Serialize all views within this view container.
            const rootLView = lContainer[PARENT];
            const rootLViewNghIndex = annotateHostElementForHydration(hostElement, rootLView, context);
            const renderer = componentLView[RENDERER];
            // For cases when a root component also acts as an anchor node for a ViewContainerRef
            // (for example, when ViewContainerRef is injected in a root component), there is a need
            // to serialize information about the component itself, as well as an LContainer that
            // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:
            // (1) hydration info for the root component itself and (2) hydration info for the
            // ViewContainerRef instance (an LContainer). Each piece of information is included into
            // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.
            // Since we only have 1 root element, we encode both bits of info into a single string:
            // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view
            // and 25 is the `ngh` for a root view which holds LContainer).
            const finalIndex = `${componentLViewNghIndex}|${rootLViewNghIndex}`;
            renderer.setAttribute(hostElement, NGH_ATTR_NAME, finalIndex);
          }
          /**
           * Annotates all components bootstrapped in a given ApplicationRef
           * with info needed for hydration.
           *
           * @param appRef An instance of an ApplicationRef.
           * @param doc A reference to the current Document instance.
           */
          function annotateForHydration(appRef, doc) {
            const serializedViewCollection = new SerializedViewCollection();
            const corruptedTextNodes = new Map();
            const viewRefs = appRef._views;
            for (const viewRef of viewRefs) {
              const lNode = getLNodeForHydration(viewRef);
              // An `lView` might be `null` if a `ViewRef` represents
              // an embedded view (not a component view).
              if (lNode !== null) {
                const context = {
                  serializedViewCollection,
                  corruptedTextNodes
                };
                if (isLContainer(lNode)) {
                  annotateLContainerForHydration(lNode, context);
                } else {
                  annotateComponentLViewForHydration(lNode, context);
                }
                insertCorruptedTextNodeMarkers(corruptedTextNodes, doc);
              }
            }
            // Note: we *always* include hydration info key and a corresponding value
            // into the TransferState, even if the list of serialized views is empty.
            // This is needed as a signal to the client that the server part of the
            // hydration logic was setup and enabled correctly. Otherwise, if a client
            // hydration doesn't find a key in the transfer state - an error is produced.
            const serializedViews = serializedViewCollection.getAll();
            const transferState = appRef.injector.get(TransferState);
            transferState.set(NGH_DATA_KEY, serializedViews);
          }
          /**
           * Serializes the lContainer data into a list of SerializedView objects,
           * that represent views within this lContainer.
           *
           * @param lContainer the lContainer we are serializing
           * @param context the hydration context
           * @returns an array of the `SerializedView` objects
           */
          function serializeLContainer(lContainer, context) {
            const views = [];
            let lastViewAsString = '';
            for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
              let childLView = lContainer[i];
              let template;
              let numRootNodes;
              let serializedView;
              if (isRootView(childLView)) {
                // If this is a root view, get an LView for the underlying component,
                // because it contains information about the view to serialize.
                childLView = childLView[HEADER_OFFSET];
                // If we have an LContainer at this position, this indicates that the
                // host element was used as a ViewContainerRef anchor (e.g. a `ViewContainerRef`
                // was injected within the component class). This case requires special handling.
                if (isLContainer(childLView)) {
                  // Calculate the number of root nodes in all views in a given container
                  // and increment by one to account for an anchor node itself, i.e. in this
                  // scenario we'll have a layout that would look like this:
                  // `<app-root /><#VIEW1><#VIEW2>...<!--container-->`
                  // The `+1` is to capture the `<app-root />` element.
                  numRootNodes = calcNumRootNodesInLContainer(childLView) + 1;
                  annotateLContainerForHydration(childLView, context);
                  const componentLView = unwrapLView(childLView[HOST]);
                  serializedView = {
                    [TEMPLATE_ID]: componentLView[TVIEW].ssrId,
                    [NUM_ROOT_NODES]: numRootNodes
                  };
                }
              }
              if (!serializedView) {
                const childTView = childLView[TVIEW];
                if (childTView.type === 1 /* TViewType.Component */) {
                  template = childTView.ssrId;
                  // This is a component view, thus it has only 1 root node: the component
                  // host node itself (other nodes would be inside that host node).
                  numRootNodes = 1;
                } else {
                  template = getSsrId(childTView);
                  numRootNodes = calcNumRootNodes(childTView, childLView, childTView.firstChild);
                }
                serializedView = {
                  [TEMPLATE_ID]: template,
                  [NUM_ROOT_NODES]: numRootNodes,
                  ...serializeLView(lContainer[i], context)
                };
              }
              // Check if the previous view has the same shape (for example, it was
              // produced by the *ngFor), in which case bump the counter on the previous
              // view instead of including the same information again.
              const currentViewAsString = JSON.stringify(serializedView);
              if (views.length > 0 && currentViewAsString === lastViewAsString) {
                const previousView = views[views.length - 1];
                previousView[MULTIPLIER] ??= 1;
                previousView[MULTIPLIER]++;
              } else {
                // Record this view as most recently added.
                lastViewAsString = currentViewAsString;
                views.push(serializedView);
              }
            }
            return views;
          }
          /**
           * Helper function to produce a node path (which navigation steps runtime logic
           * needs to take to locate a node) and stores it in the `NODES` section of the
           * current serialized view.
           */
          function appendSerializedNodePath(ngh, tNode, lView) {
            const noOffsetIndex = tNode.index - HEADER_OFFSET;
            ngh[NODES] ??= {};
            ngh[NODES][noOffsetIndex] = calcPathForNode(tNode, lView);
          }
          /**
           * Helper function to append information about a disconnected node.
           * This info is needed at runtime to avoid DOM lookups for this element
           * and instead, the element would be created from scratch.
           */
          function appendDisconnectedNodeIndex(ngh, tNode) {
            const noOffsetIndex = tNode.index - HEADER_OFFSET;
            ngh[DISCONNECTED_NODES] ??= [];
            if (!ngh[DISCONNECTED_NODES].includes(noOffsetIndex)) {
              ngh[DISCONNECTED_NODES].push(noOffsetIndex);
            }
          }
          /**
           * Serializes the lView data into a SerializedView object that will later be added
           * to the TransferState storage and referenced using the `ngh` attribute on a host
           * element.
           *
           * @param lView the lView we are serializing
           * @param context the hydration context
           * @returns the `SerializedView` object containing the data to be added to the host node
           */
          function serializeLView(lView, context) {
            const ngh = {};
            const tView = lView[TVIEW];
            // Iterate over DOM element references in an LView.
            for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
              const tNode = tView.data[i];
              const noOffsetIndex = i - HEADER_OFFSET;
              // Local refs (e.g. <div #localRef>) take up an extra slot in LViews
              // to store the same element. In this case, there is no information in
              // a corresponding slot in TNode data structure. If that's the case, just
              // skip this slot and move to the next one.
              if (!tNode) {
                continue;
              }
              // Check if a native node that represents a given TNode is disconnected from the DOM tree.
              // Such nodes must be excluded from the hydration (since the hydration won't be able to
              // find them), so the TNode ids are collected and used at runtime to skip the hydration.
              //
              // This situation may happen during the content projection, when some nodes don't make it
              // into one of the content projection slots (for example, when there is no default
              // <ng-content /> slot in projector component's template).
              if (isDisconnectedNode(tNode, lView) && isContentProjectedNode(tNode)) {
                appendDisconnectedNodeIndex(ngh, tNode);
                continue;
              }
              if (Array.isArray(tNode.projection)) {
                for (const projectionHeadTNode of tNode.projection) {
                  // We may have `null`s in slots with no projected content.
                  if (!projectionHeadTNode) continue;
                  if (!Array.isArray(projectionHeadTNode)) {
                    // If we process re-projected content (i.e. `<ng-content>`
                    // appears at projection location), skip annotations for this content
                    // since all DOM nodes in this projection were handled while processing
                    // a parent lView, which contains those nodes.
                    if (!isProjectionTNode(projectionHeadTNode) && !isInSkipHydrationBlock(projectionHeadTNode)) {
                      if (isDisconnectedNode(projectionHeadTNode, lView)) {
                        // Check whether this node is connected, since we may have a TNode
                        // in the data structure as a projection segment head, but the
                        // content projection slot might be disabled (e.g.
                        // <ng-content *ngIf="false" />).
                        appendDisconnectedNodeIndex(ngh, projectionHeadTNode);
                      } else {
                        appendSerializedNodePath(ngh, projectionHeadTNode, lView);
                      }
                    }
                  } else {
                    // If a value is an array, it means that we are processing a projection
                    // where projectable nodes were passed in as DOM nodes (for example, when
                    // calling `ViewContainerRef.createComponent(CmpA, {projectableNodes: [...]})`).
                    //
                    // In this scenario, nodes can come from anywhere (either created manually,
                    // accessed via `document.querySelector`, etc) and may be in any state
                    // (attached or detached from the DOM tree). As a result, we can not reliably
                    // restore the state for such cases during hydration.
                    throw unsupportedProjectionOfDomNodes(unwrapRNode(lView[i]));
                  }
                }
              }
              if (isLContainer(lView[i])) {
                // Serialize information about a template.
                const embeddedTView = tNode.tView;
                if (embeddedTView !== null) {
                  ngh[TEMPLATES] ??= {};
                  ngh[TEMPLATES][noOffsetIndex] = getSsrId(embeddedTView);
                }
                // Serialize views within this LContainer.
                const hostNode = lView[i][HOST]; // host node of this container
                // LView[i][HOST] can be of 2 different types:
                // - either a DOM node
                // - or an array that represents an LView of a component
                if (Array.isArray(hostNode)) {
                  // This is a component, serialize info about it.
                  const targetNode = unwrapRNode(hostNode);
                  if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {
                    annotateHostElementForHydration(targetNode, hostNode, context);
                  }
                }
                ngh[CONTAINERS] ??= {};
                ngh[CONTAINERS][noOffsetIndex] = serializeLContainer(lView[i], context);
              } else if (Array.isArray(lView[i])) {
                // This is a component, annotate the host node with an `ngh` attribute.
                const targetNode = unwrapRNode(lView[i][HOST]);
                if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {
                  annotateHostElementForHydration(targetNode, lView[i], context);
                }
              } else {
                // <ng-container> case
                if (tNode.type & 8 /* TNodeType.ElementContainer */) {
                  // An <ng-container> is represented by the number of
                  // top-level nodes. This information is needed to skip over
                  // those nodes to reach a corresponding anchor node (comment node).
                  ngh[ELEMENT_CONTAINERS] ??= {};
                  ngh[ELEMENT_CONTAINERS][noOffsetIndex] = calcNumRootNodes(tView, lView, tNode.child);
                } else if (tNode.type & 16 /* TNodeType.Projection */) {
                  // Current TNode represents an `<ng-content>` slot, thus it has no
                  // DOM elements associated with it, so the **next sibling** node would
                  // not be able to find an anchor. In this case, use full path instead.
                  let nextTNode = tNode.next;
                  // Skip over all `<ng-content>` slots in a row.
                  while (nextTNode !== null && nextTNode.type & 16 /* TNodeType.Projection */) {
                    nextTNode = nextTNode.next;
                  }
                  if (nextTNode && !isInSkipHydrationBlock(nextTNode)) {
                    // Handle a tNode after the `<ng-content>` slot.
                    appendSerializedNodePath(ngh, nextTNode, lView);
                  }
                } else {
                  // Handle cases where text nodes can be lost after DOM serialization:
                  //  1. When there is an *empty text node* in DOM: in this case, this
                  //     node would not make it into the serialized string and as a result,
                  //     this node wouldn't be created in a browser. This would result in
                  //     a mismatch during the hydration, where the runtime logic would expect
                  //     a text node to be present in live DOM, but no text node would exist.
                  //     Example: `<span>{{ name }}</span>` when the `name` is an empty string.
                  //     This would result in `<span></span>` string after serialization and
                  //     in a browser only the `span` element would be created. To resolve that,
                  //     an extra comment node is appended in place of an empty text node and
                  //     that special comment node is replaced with an empty text node *before*
                  //     hydration.
                  //  2. When there are 2 consecutive text nodes present in the DOM.
                  //     Example: `<div>Hello <ng-container *ngIf="true">world</ng-container></div>`.
                  //     In this scenario, the live DOM would look like this:
                  //       <div>#text('Hello ') #text('world') #comment('container')</div>
                  //     Serialized string would look like this: `<div>Hello world<!--container--></div>`.
                  //     The live DOM in a browser after that would be:
                  //       <div>#text('Hello world') #comment('container')</div>
                  //     Notice how 2 text nodes are now "merged" into one. This would cause hydration
                  //     logic to fail, since it'd expect 2 text nodes being present, not one.
                  //     To fix this, we insert a special comment node in between those text nodes, so
                  //     serialized representation is: `<div>Hello <!--ngtns-->world<!--container--></div>`.
                  //     This forces browser to create 2 text nodes separated by a comment node.
                  //     Before running a hydration process, this special comment node is removed, so the
                  //     live DOM has exactly the same state as it was before serialization.
                  if (tNode.type & 1 /* TNodeType.Text */) {
                    const rNode = unwrapRNode(lView[i]);
                    // Collect this node as required special annotation only when its
                    // contents is empty. Otherwise, such text node would be present on
                    // the client after server-side rendering and no special handling needed.
                    if (rNode.textContent === '') {
                      context.corruptedTextNodes.set(rNode, "ngetn" /* TextNodeMarker.EmptyNode */);
                    } else if (rNode.nextSibling?.nodeType === Node.TEXT_NODE) {
                      context.corruptedTextNodes.set(rNode, "ngtns" /* TextNodeMarker.Separator */);
                    }
                  }
          
                  if (tNode.projectionNext && tNode.projectionNext !== tNode.next && !isInSkipHydrationBlock(tNode.projectionNext)) {
                    // Check if projection next is not the same as next, in which case
                    // the node would not be found at creation time at runtime and we
                    // need to provide a location for that node.
                    appendSerializedNodePath(ngh, tNode.projectionNext, lView);
                  }
                }
              }
            }
            return ngh;
          }
          /**
           * Determines whether a component instance that is represented
           * by a given LView uses `ViewEncapsulation.ShadowDom`.
           */
          function componentUsesShadowDomEncapsulation(lView) {
            const instance = lView[CONTEXT];
            return instance?.constructor ? getComponentDef(instance.constructor)?.encapsulation === ViewEncapsulation$1.ShadowDom : false;
          }
          /**
           * Annotates component host element for hydration:
           * - by either adding the `ngh` attribute and collecting hydration-related info
           *   for the serialization and transferring to the client
           * - or by adding the `ngSkipHydration` attribute in case Angular detects that
           *   component contents is not compatible with hydration.
           *
           * @param element The Host element to be annotated
           * @param lView The associated LView
           * @param context The hydration context
           * @returns An index of serialized view from the transfer state object
           *          or `null` when a given component can not be serialized.
           */
          function annotateHostElementForHydration(element, lView, context) {
            const renderer = lView[RENDERER];
            if (hasI18n(lView) || componentUsesShadowDomEncapsulation(lView)) {
              // Attach the skip hydration attribute if this component:
              // - either has i18n blocks, since hydrating such blocks is not yet supported
              // - or uses ShadowDom view encapsulation, since Domino doesn't support
              //   shadow DOM, so we can not guarantee that client and server representations
              //   would exactly match
              renderer.setAttribute(element, SKIP_HYDRATION_ATTR_NAME, '');
              return null;
            } else {
              const ngh = serializeLView(lView, context);
              const index = context.serializedViewCollection.add(ngh);
              renderer.setAttribute(element, NGH_ATTR_NAME, index.toString());
              return index;
            }
          }
          /**
           * Physically inserts the comment nodes to ensure empty text nodes and adjacent
           * text node separators are preserved after server serialization of the DOM.
           * These get swapped back for empty text nodes or separators once hydration happens
           * on the client.
           *
           * @param corruptedTextNodes The Map of text nodes to be replaced with comments
           * @param doc The document
           */
          function insertCorruptedTextNodeMarkers(corruptedTextNodes, doc) {
            for (const [textNode, marker] of corruptedTextNodes) {
              textNode.after(doc.createComment(marker));
            }
          }
          /**
           * Detects whether a given TNode represents a node that
           * is being content projected.
           */
          function isContentProjectedNode(tNode) {
            let currentTNode = tNode;
            while (currentTNode != null) {
              // If we come across a component host node in parent nodes -
              // this TNode is in the content projection section.
              if (isComponentHost(currentTNode)) {
                return true;
              }
              currentTNode = currentTNode.parent;
            }
            return false;
          }
          /**
           * Check whether a given node exists, but is disconnected from the DOM.
           *
           * Note: we leverage the fact that we have this information available in the DOM emulation
           * layer (in Domino) for now. Longer-term solution should not rely on the DOM emulation and
           * only use internal data structures and state to compute this information.
           */
          function isDisconnectedNode(tNode, lView) {
            return !(tNode.type & 16 /* TNodeType.Projection */) && !!lView[tNode.index] && !unwrapRNode(lView[tNode.index]).isConnected;
          }
          
          /**
           * Indicates whether the hydration-related code was added,
           * prevents adding it multiple times.
           */
          let isHydrationSupportEnabled = false;
          /**
           * Defines a period of time that Angular waits for the `ApplicationRef.isStable` to emit `true`.
           * If there was no event with the `true` value during this time, Angular reports a warning.
           */
          const APPLICATION_IS_STABLE_TIMEOUT = 10000;
          /**
           * Brings the necessary hydration code in tree-shakable manner.
           * The code is only present when the `provideClientHydration` is
           * invoked. Otherwise, this code is tree-shaken away during the
           * build optimization step.
           *
           * This technique allows us to swap implementations of methods so
           * tree shaking works appropriately when hydration is disabled or
           * enabled. It brings in the appropriate version of the method that
           * supports hydration only when enabled.
           */
          function enableHydrationRuntimeSupport() {
            if (!isHydrationSupportEnabled) {
              isHydrationSupportEnabled = true;
              enableRetrieveHydrationInfoImpl();
              enableLocateOrCreateElementNodeImpl();
              enableLocateOrCreateTextNodeImpl();
              enableLocateOrCreateElementContainerNodeImpl();
              enableLocateOrCreateContainerAnchorImpl();
              enableLocateOrCreateContainerRefImpl();
              enableFindMatchingDehydratedViewImpl();
              enableApplyRootElementTransformImpl();
            }
          }
          /**
           * Outputs a message with hydration stats into a console.
           */
          function printHydrationStats(injector) {
            const console = injector.get(Console);
            const message = `Angular hydrated ${ngDevMode.hydratedComponents} component(s) ` + `and ${ngDevMode.hydratedNodes} node(s), ` + `${ngDevMode.componentsSkippedHydration} component(s) were skipped. ` + `Note: this feature is in Developer Preview mode. ` + `Learn more at https://angular.io/guide/hydration.`;
            // tslint:disable-next-line:no-console
            console.log(message);
          }
          /**
           * Returns a Promise that is resolved when an application becomes stable.
           */
          function whenStable(appRef, injector) {
            const isStablePromise = appRef.isStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.first)(isStable => isStable)).toPromise();
            if (typeof ngDevMode !== 'undefined' && ngDevMode) {
              const timeoutTime = APPLICATION_IS_STABLE_TIMEOUT;
              const console = injector.get(Console);
              const ngZone = injector.get(NgZone);
              // The following call should not and does not prevent the app to become stable
              // We cannot use RxJS timer here because the app would remain unstable.
              // This also avoids an extra change detection cycle.
              const timeoutId = ngZone.runOutsideAngular(() => {
                return setTimeout(() => logWarningOnStableTimedout(timeoutTime, console), timeoutTime);
              });
              isStablePromise.finally(() => clearTimeout(timeoutId));
            }
            return isStablePromise.then(() => {});
          }
          /**
           * Returns a set of providers required to setup hydration support
           * for an application that is server side rendered. This function is
           * included into the `provideClientHydration` public API function from
           * the `platform-browser` package.
           *
           * The function sets up an internal flag that would be recognized during
           * the server side rendering time as well, so there is no need to
           * configure or change anything in NgUniversal to enable the feature.
           */
          function withDomHydration() {
            return makeEnvironmentProviders([{
              provide: IS_HYDRATION_DOM_REUSE_ENABLED,
              useFactory: () => {
                let isEnabled = true;
                if (isPlatformBrowser()) {
                  // On the client, verify that the server response contains
                  // hydration annotations. Otherwise, keep hydration disabled.
                  const transferState = inject(TransferState, {
                    optional: true
                  });
                  isEnabled = !!transferState?.get(NGH_DATA_KEY, null);
                  if (!isEnabled && typeof ngDevMode !== 'undefined' && ngDevMode) {
                    const console = inject(Console);
                    const message = formatRuntimeError(-505 /* RuntimeErrorCode.MISSING_HYDRATION_ANNOTATIONS */, 'Angular hydration was requested on the client, but there was no ' + 'serialized information present in the server response, ' + 'thus hydration was not enabled. ' + 'Make sure the `provideClientHydration()` is included into the list ' + 'of providers in the server part of the application configuration.');
                    // tslint:disable-next-line:no-console
                    console.warn(message);
                  }
                }
                if (isEnabled) {
                  inject(ENABLED_SSR_FEATURES).add('hydration');
                }
                return isEnabled;
              }
            }, {
              provide: ENVIRONMENT_INITIALIZER,
              useValue: () => {
                // Since this function is used across both server and client,
                // make sure that the runtime code is only added when invoked
                // on the client. Moving forward, the `isPlatformBrowser` check should
                // be replaced with a tree-shakable alternative (e.g. `isServer`
                // flag).
                if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {
                  verifySsrContentsIntegrity();
                  enableHydrationRuntimeSupport();
                }
              },
              multi: true
            }, {
              provide: PRESERVE_HOST_CONTENT,
              useFactory: () => {
                // Preserve host element content only in a browser
                // environment and when hydration is configured properly.
                // On a server, an application is rendered from scratch,
                // so the host content needs to be empty.
                return isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED);
              }
            }, {
              provide: APP_BOOTSTRAP_LISTENER,
              useFactory: () => {
                if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {
                  const appRef = inject(ApplicationRef);
                  const injector = inject(Injector);
                  return () => {
                    // Wait until an app becomes stable and cleanup all views that
                    // were not claimed during the application bootstrap process.
                    // The timing is similar to when we start the serialization process
                    // on the server.
                    //
                    // Note: the cleanup task *MUST* be scheduled within the Angular zone
                    // to ensure that change detection is properly run afterward.
                    whenStable(appRef, injector).then(() => {
                      NgZone.assertInAngularZone();
                      cleanupDehydratedViews(appRef);
                      if (typeof ngDevMode !== 'undefined' && ngDevMode) {
                        printHydrationStats(injector);
                      }
                    });
                  };
                }
                return () => {}; // noop
              },
          
              multi: true
            }]);
          }
          /**
           *
           * @param time The time in ms until the stable timedout warning message is logged
           */
          function logWarningOnStableTimedout(time, console) {
            const message = `Angular hydration expected the ApplicationRef.isStable() to emit \`true\`, but it ` + `didn't happen within ${time}ms. Angular hydration logic depends on the application becoming stable ` + `as a signal to complete hydration process.`;
            console.warn(formatRuntimeError(-506 /* RuntimeErrorCode.HYDRATION_STABLE_TIMEDOUT */, message));
          }
          /**
           * Verifies whether the DOM contains a special marker added during SSR time to make sure
           * there is no SSR'ed contents transformations happen after SSR is completed. Typically that
           * happens either by CDN or during the build process as an optimization to remove comment nodes.
           * Hydration process requires comment nodes produced by Angular to locate correct DOM segments.
           * When this special marker is *not* present - throw an error and do not proceed with hydration,
           * since it will not be able to function correctly.
           *
           * Note: this function is invoked only on the client, so it's safe to use DOM APIs.
           */
          function verifySsrContentsIntegrity() {
            const doc = getDocument();
            let hydrationMarker;
            for (const node of doc.body.childNodes) {
              if (node.nodeType === Node.COMMENT_NODE && node.textContent?.trim() === SSR_CONTENT_INTEGRITY_MARKER) {
                hydrationMarker = node;
                break;
              }
            }
            if (!hydrationMarker) {
              throw new RuntimeError(-507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' && ngDevMode && 'Angular hydration logic detected that HTML content of this page was modified after it ' + 'was produced during server side rendering. Make sure that there are no optimizations ' + 'that remove comment nodes from HTML enabled on your CDN. Angular hydration ' + 'relies on HTML produced by the server, including whitespaces and comment nodes.');
            }
          }
          
          /**
           * Transforms a value (typically a string) to a boolean.
           * Intended to be used as a transform function of an input.
           *
           *  @usageNotes
           *  ```typescript
           *  @Input({ transform: booleanAttribute }) status!: boolean;
           *  ```
           * @param value Value to be transformed.
           *
           * @publicApi
           */
          function booleanAttribute(value) {
            return typeof value === 'boolean' ? value : value != null && value !== 'false';
          }
          /**
           * Transforms a value (typically a string) to a number.
           * Intended to be used as a transform function of an input.
           * @param value Value to be transformed.
           * @param fallbackValue Value to use if the provided value can't be parsed as a number.
           *
           *  @usageNotes
           *  ```typescript
           *  @Input({ transform: numberAttribute }) id!: number;
           *  ```
           *
           * @publicApi
           */
          function numberAttribute(value, fallbackValue = NaN) {
            // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,
            // and other non-number values as NaN, where Number just uses 0) but it considers the string
            // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.
            const isNumberValue = !isNaN(parseFloat(value)) && !isNaN(Number(value));
            return isNumberValue ? Number(value) : fallbackValue;
          }
          
          /**
           * Compiles a partial directive declaration object into a full directive definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareDirective(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'directive',
              type: decl.type
            });
            return compiler.compileDirectiveDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);
          }
          /**
           * Evaluates the class metadata declaration.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareClassMetadata(decl) {
            setClassMetadata(decl.type, decl.decorators, decl.ctorParameters ?? null, decl.propDecorators ?? null);
          }
          /**
           * Compiles a partial component declaration object into a full component definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareComponent(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'component',
              type: decl.type
            });
            return compiler.compileComponentDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵcmp.js`, decl);
          }
          /**
           * Compiles a partial pipe declaration object into a full pipe definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareFactory(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: getFactoryKind(decl.target),
              type: decl.type
            });
            return compiler.compileFactoryDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);
          }
          function getFactoryKind(target) {
            switch (target) {
              case FactoryTarget.Directive:
                return 'directive';
              case FactoryTarget.Component:
                return 'component';
              case FactoryTarget.Injectable:
                return 'injectable';
              case FactoryTarget.Pipe:
                return 'pipe';
              case FactoryTarget.NgModule:
                return 'NgModule';
            }
          }
          /**
           * Compiles a partial injectable declaration object into a full injectable definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareInjectable(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'injectable',
              type: decl.type
            });
            return compiler.compileInjectableDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);
          }
          /**
           * Compiles a partial injector declaration object into a full injector definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareInjector(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'NgModule',
              type: decl.type
            });
            return compiler.compileInjectorDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵinj.js`, decl);
          }
          /**
           * Compiles a partial NgModule declaration object into a full NgModule definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclareNgModule(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'NgModule',
              type: decl.type
            });
            return compiler.compileNgModuleDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵmod.js`, decl);
          }
          /**
           * Compiles a partial pipe declaration object into a full pipe definition object.
           *
           * @codeGenApi
           */
          function ɵɵngDeclarePipe(decl) {
            const compiler = getCompilerFacade({
              usage: 1 /* JitCompilerUsage.PartialDeclaration */,
              kind: 'pipe',
              type: decl.type
            });
            return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);
          }
          
          // clang-format off
          // clang-format on
          
          // clang-format off
          // clang-format on
          
          // This file exists to allow the set of reactivity exports to be modified in g3, as these APIs are
          
          /**
           * Creates a `ComponentRef` instance based on provided component type and a set of options.
           *
           * @usageNotes
           *
           * The example below demonstrates how the `createComponent` function can be used
           * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,
           * so that it gets included into change detection cycles.
           *
           * Note: the example uses standalone components, but the function can also be used for
           * non-standalone components (declared in an NgModule) as well.
           *
           * ```typescript
           * @Component({
           *   standalone: true,
           *   template: `Hello {{ name }}!`
           * })
           * class HelloComponent {
           *   name = 'Angular';
           * }
           *
           * @Component({
           *   standalone: true,
           *   template: `<div id="hello-component-host"></div>`
           * })
           * class RootComponent {}
           *
           * // Bootstrap an application.
           * const applicationRef = await bootstrapApplication(RootComponent);
           *
           * // Locate a DOM node that would be used as a host.
           * const hostElement = document.getElementById('hello-component-host');
           *
           * // Get an `EnvironmentInjector` instance from the `ApplicationRef`.
           * const environmentInjector = applicationRef.injector;
           *
           * // We can now create a `ComponentRef` instance.
           * const componentRef = createComponent(HelloComponent, {hostElement, environmentInjector});
           *
           * // Last step is to register the newly created ref using the `ApplicationRef` instance
           * // to include the component view into change detection cycles.
           * applicationRef.attachView(componentRef.hostView);
           * componentRef.changeDetectorRef.detectChanges();
           * ```
           *
           * @param component Component class reference.
           * @param options Set of options to use:
           *  * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component, see
           * additional info about it [here](/guide/standalone-components#environment-injectors).
           *  * `hostElement` (optional): A DOM node that should act as a host node for the component. If not
           * provided, Angular creates one based on the tag name used in the component selector (and falls
           * back to using `div` if selector doesn't have tag name info).
           *  * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it
           * [here](/guide/hierarchical-dependency-injection#elementinjector).
           *  * `projectableNodes` (optional): A list of DOM nodes that should be projected through
           *                      [`<ng-content>`](api/core/ng-content) of the new component instance.
           * @returns ComponentRef instance that represents a given Component.
           *
           * @publicApi
           */
          function createComponent(component, options) {
            ngDevMode && assertComponentDef(component);
            const componentDef = getComponentDef(component);
            const elementInjector = options.elementInjector || getNullInjector();
            const factory = new ComponentFactory(componentDef);
            return factory.create(elementInjector, options.projectableNodes, options.hostElement, options.environmentInjector);
          }
          /**
           * Creates an object that allows to retrieve component metadata.
           *
           * @usageNotes
           *
           * The example below demonstrates how to use the function and how the fields
           * of the returned object map to the component metadata.
           *
           * ```typescript
           * @Component({
           *   standalone: true,
           *   selector: 'foo-component',
           *   template: `
           *     <ng-content></ng-content>
           *     <ng-content select="content-selector-a"></ng-content>
           *   `,
           * })
           * class FooComponent {
           *   @Input('inputName') inputPropName: string;
           *   @Output('outputName') outputPropName = new EventEmitter<void>();
           * }
           *
           * const mirror = reflectComponentType(FooComponent);
           * expect(mirror.type).toBe(FooComponent);
           * expect(mirror.selector).toBe('foo-component');
           * expect(mirror.isStandalone).toBe(true);
           * expect(mirror.inputs).toEqual([{propName: 'inputName', templateName: 'inputPropName'}]);
           * expect(mirror.outputs).toEqual([{propName: 'outputName', templateName: 'outputPropName'}]);
           * expect(mirror.ngContentSelectors).toEqual([
           *   '*',                 // first `<ng-content>` in a template, the selector defaults to `*`
           *   'content-selector-a' // second `<ng-content>` in a template
           * ]);
           * ```
           *
           * @param component Component class reference.
           * @returns An object that allows to retrieve component metadata.
           *
           * @publicApi
           */
          function reflectComponentType(component) {
            const componentDef = getComponentDef(component);
            if (!componentDef) return null;
            const factory = new ComponentFactory(componentDef);
            return {
              get selector() {
                return factory.selector;
              },
              get type() {
                return factory.componentType;
              },
              get inputs() {
                return factory.inputs;
              },
              get outputs() {
                return factory.outputs;
              },
              get ngContentSelectors() {
                return factory.ngContentSelectors;
              },
              get isStandalone() {
                return componentDef.standalone;
              },
              get isSignal() {
                return componentDef.signals;
              }
            };
          }
          
          /**
           * Merge multiple application configurations from left to right.
           *
           * @param configs Two or more configurations to be merged.
           * @returns A merged [ApplicationConfig](api/core/ApplicationConfig).
           *
           * @publicApi
           */
          function mergeApplicationConfig(...configs) {
            return configs.reduce((prev, curr) => {
              return Object.assign(prev, curr, {
                providers: [...prev.providers, ...curr.providers]
              });
            }, {
              providers: []
            });
          }
          
          /**
           * @module
           * @description
           * Entry point from which you should import all public core APIs.
           */
          if (typeof ngDevMode !== 'undefined' && ngDevMode) {
            // This helper is to give a reasonable error message to people upgrading to v9 that have not yet
            // installed `@angular/localize` in their app.
            // tslint:disable-next-line: no-toplevel-property-access
            _global.$localize = _global.$localize || function () {
              throw new Error('It looks like your application or one of its dependencies is using i18n.\n' + 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\n' + 'Please run `ng add @angular/localize` from the Angular CLI.\n' + '(For non-CLI projects, add `import \'@angular/localize/init\';` to your `polyfills.ts` file.\n' + 'For server-side rendering applications add the import to your `main.server.ts` file.)');
            };
          }
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          // This file only reexports content of the `src` folder. Keep it that way.
          
          /* This file is not used to build this module. It is only used during editing
           * by the TypeScript language service and during build for verification. `ngc`
           * replaces this file with production index.ts when it rewrites private symbol
           * names.
           */
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4456:
          /*!********************************************************!*\
            !*** ./node_modules/@angular/forms/fesm2022/forms.mjs ***!
            \********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AbstractControl: () => (/* binding */ AbstractControl),
          /* harmony export */   AbstractControlDirective: () => (/* binding */ AbstractControlDirective),
          /* harmony export */   AbstractFormGroupDirective: () => (/* binding */ AbstractFormGroupDirective),
          /* harmony export */   COMPOSITION_BUFFER_MODE: () => (/* binding */ COMPOSITION_BUFFER_MODE),
          /* harmony export */   CheckboxControlValueAccessor: () => (/* binding */ CheckboxControlValueAccessor),
          /* harmony export */   CheckboxRequiredValidator: () => (/* binding */ CheckboxRequiredValidator),
          /* harmony export */   ControlContainer: () => (/* binding */ ControlContainer),
          /* harmony export */   DefaultValueAccessor: () => (/* binding */ DefaultValueAccessor),
          /* harmony export */   EmailValidator: () => (/* binding */ EmailValidator),
          /* harmony export */   FormArray: () => (/* binding */ FormArray),
          /* harmony export */   FormArrayName: () => (/* binding */ FormArrayName),
          /* harmony export */   FormBuilder: () => (/* binding */ FormBuilder),
          /* harmony export */   FormControl: () => (/* binding */ FormControl),
          /* harmony export */   FormControlDirective: () => (/* binding */ FormControlDirective),
          /* harmony export */   FormControlName: () => (/* binding */ FormControlName),
          /* harmony export */   FormGroup: () => (/* binding */ FormGroup),
          /* harmony export */   FormGroupDirective: () => (/* binding */ FormGroupDirective),
          /* harmony export */   FormGroupName: () => (/* binding */ FormGroupName),
          /* harmony export */   FormRecord: () => (/* binding */ FormRecord),
          /* harmony export */   FormsModule: () => (/* binding */ FormsModule),
          /* harmony export */   MaxLengthValidator: () => (/* binding */ MaxLengthValidator),
          /* harmony export */   MaxValidator: () => (/* binding */ MaxValidator),
          /* harmony export */   MinLengthValidator: () => (/* binding */ MinLengthValidator),
          /* harmony export */   MinValidator: () => (/* binding */ MinValidator),
          /* harmony export */   NG_ASYNC_VALIDATORS: () => (/* binding */ NG_ASYNC_VALIDATORS),
          /* harmony export */   NG_VALIDATORS: () => (/* binding */ NG_VALIDATORS),
          /* harmony export */   NG_VALUE_ACCESSOR: () => (/* binding */ NG_VALUE_ACCESSOR),
          /* harmony export */   NgControl: () => (/* binding */ NgControl),
          /* harmony export */   NgControlStatus: () => (/* binding */ NgControlStatus),
          /* harmony export */   NgControlStatusGroup: () => (/* binding */ NgControlStatusGroup),
          /* harmony export */   NgForm: () => (/* binding */ NgForm),
          /* harmony export */   NgModel: () => (/* binding */ NgModel),
          /* harmony export */   NgModelGroup: () => (/* binding */ NgModelGroup),
          /* harmony export */   NgSelectOption: () => (/* binding */ NgSelectOption),
          /* harmony export */   NonNullableFormBuilder: () => (/* binding */ NonNullableFormBuilder),
          /* harmony export */   NumberValueAccessor: () => (/* binding */ NumberValueAccessor),
          /* harmony export */   PatternValidator: () => (/* binding */ PatternValidator),
          /* harmony export */   RadioControlValueAccessor: () => (/* binding */ RadioControlValueAccessor),
          /* harmony export */   RangeValueAccessor: () => (/* binding */ RangeValueAccessor),
          /* harmony export */   ReactiveFormsModule: () => (/* binding */ ReactiveFormsModule),
          /* harmony export */   RequiredValidator: () => (/* binding */ RequiredValidator),
          /* harmony export */   SelectControlValueAccessor: () => (/* binding */ SelectControlValueAccessor),
          /* harmony export */   SelectMultipleControlValueAccessor: () => (/* binding */ SelectMultipleControlValueAccessor),
          /* harmony export */   UntypedFormArray: () => (/* binding */ UntypedFormArray),
          /* harmony export */   UntypedFormBuilder: () => (/* binding */ UntypedFormBuilder),
          /* harmony export */   UntypedFormControl: () => (/* binding */ UntypedFormControl),
          /* harmony export */   UntypedFormGroup: () => (/* binding */ UntypedFormGroup),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   Validators: () => (/* binding */ Validators),
          /* harmony export */   isFormArray: () => (/* binding */ isFormArray),
          /* harmony export */   isFormControl: () => (/* binding */ isFormControl),
          /* harmony export */   isFormGroup: () => (/* binding */ isFormGroup),
          /* harmony export */   isFormRecord: () => (/* binding */ isFormRecord),
          /* harmony export */   "ɵInternalFormsSharedModule": () => (/* binding */ ɵInternalFormsSharedModule),
          /* harmony export */   "ɵNgNoValidate": () => (/* binding */ ɵNgNoValidate),
          /* harmony export */   "ɵNgSelectMultipleOption": () => (/* binding */ ɵNgSelectMultipleOption)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 5429);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 1873);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 271);
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          
          
          
          
          /**
           * Base class for all ControlValueAccessor classes defined in Forms package.
           * Contains common logic and utility functions.
           *
           * Note: this is an *internal-only* class and should not be extended or used directly in
           * applications code.
           */
          class BaseControlValueAccessor {
            constructor(_renderer, _elementRef) {
              this._renderer = _renderer;
              this._elementRef = _elementRef;
              /**
               * The registered callback function called when a change or input event occurs on the input
               * element.
               * @nodoc
               */
              this.onChange = _ => {};
              /**
               * The registered callback function called when a blur event occurs on the input element.
               * @nodoc
               */
              this.onTouched = () => {};
            }
            /**
             * Helper method that sets a property on a target element using the current Renderer
             * implementation.
             * @nodoc
             */
            setProperty(key, value) {
              this._renderer.setProperty(this._elementRef.nativeElement, key, value);
            }
            /**
             * Registers a function called when the control is touched.
             * @nodoc
             */
            registerOnTouched(fn) {
              this.onTouched = fn;
            }
            /**
             * Registers a function called when the control value changes.
             * @nodoc
             */
            registerOnChange(fn) {
              this.onChange = fn;
            }
            /**
             * Sets the "disabled" property on the range input element.
             * @nodoc
             */
            setDisabledState(isDisabled) {
              this.setProperty('disabled', isDisabled);
            }
            static {
              this.ɵfac = function BaseControlValueAccessor_Factory(t) {
                return new (t || BaseControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: BaseControlValueAccessor
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BaseControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }];
            }, null);
          })();
          /**
           * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is
           * used in case no other CVAs can be found). We use this class to distinguish between default CVA,
           * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom
           * ones with higher priority (when both built-in and custom CVAs are present).
           *
           * Note: this is an *internal-only* class and should not be extended or used directly in
           * applications code.
           */
          class BuiltInControlValueAccessor extends BaseControlValueAccessor {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵBuiltInControlValueAccessor_BaseFactory;
                return function BuiltInControlValueAccessor_Factory(t) {
                  return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](BuiltInControlValueAccessor)))(t || BuiltInControlValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: BuiltInControlValueAccessor,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BuiltInControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], null, null);
          })();
          /**
           * Used to provide a `ControlValueAccessor` for form controls.
           *
           * See `DefaultValueAccessor` for how to implement one.
           *
           * @publicApi
           */
          const NG_VALUE_ACCESSOR = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NgValueAccessor');
          const CHECKBOX_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => CheckboxControlValueAccessor),
            multi: true
          };
          /**
           * @description
           * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input
           * element.
           *
           * @usageNotes
           *
           * ### Using a checkbox with a reactive form.
           *
           * The following example shows how to use a checkbox with a reactive form.
           *
           * ```ts
           * const rememberLoginControl = new FormControl();
           * ```
           *
           * ```
           * <input type="checkbox" [formControl]="rememberLoginControl">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
            /**
             * Sets the "checked" property on the input element.
             * @nodoc
             */
            writeValue(value) {
              this.setProperty('checked', value);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵCheckboxControlValueAccessor_BaseFactory;
                return function CheckboxControlValueAccessor_Factory(t) {
                  return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CheckboxControlValueAccessor)))(t || CheckboxControlValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CheckboxControlValueAccessor,
                selectors: [["input", "type", "checkbox", "formControlName", ""], ["input", "type", "checkbox", "formControl", ""], ["input", "type", "checkbox", "ngModel", ""]],
                hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {
                      return ctx.onChange($event.target.checked);
                    })("blur", function CheckboxControlValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
                host: {
                  '(change)': 'onChange($event.target.checked)',
                  '(blur)': 'onTouched()'
                },
                providers: [CHECKBOX_VALUE_ACCESSOR]
              }]
            }], null, null);
          })();
          const DEFAULT_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => DefaultValueAccessor),
            multi: true
          };
          /**
           * We must check whether the agent is Android because composition events
           * behave differently between iOS and Android.
           */
          function _isAndroid() {
            const userAgent = (0,_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])() ? (0,_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])().getUserAgent() : '';
            return /android (\d+)/.test(userAgent.toLowerCase());
          }
          /**
           * @description
           * Provide this token to control if form directives buffer IME input until
           * the "compositionend" event occurs.
           * @publicApi
           */
          const COMPOSITION_BUFFER_MODE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('CompositionEventMode');
          /**
           * The default `ControlValueAccessor` for writing a value and listening to changes on input
           * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and
           * `NgModel` directives.
           *
           * {@searchKeywords ngDefaultControl}
           *
           * @usageNotes
           *
           * ### Using the default value accessor
           *
           * The following example shows how to use an input element that activates the default value accessor
           * (in this case, a text field).
           *
           * ```ts
           * const firstNameControl = new FormControl();
           * ```
           *
           * ```
           * <input type="text" [formControl]="firstNameControl">
           * ```
           *
           * This value accessor is used by default for `<input type="text">` and `<textarea>` elements, but
           * you could also use it for custom components that have similar behavior and do not require special
           * processing. In order to attach the default value accessor to a custom element, add the
           * `ngDefaultControl` attribute as shown below.
           *
           * ```
           * <custom-input-component ngDefaultControl [(ngModel)]="value"></custom-input-component>
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class DefaultValueAccessor extends BaseControlValueAccessor {
            constructor(renderer, elementRef, _compositionMode) {
              super(renderer, elementRef);
              this._compositionMode = _compositionMode;
              /** Whether the user is creating a composition string (IME events). */
              this._composing = false;
              if (this._compositionMode == null) {
                this._compositionMode = !_isAndroid();
              }
            }
            /**
             * Sets the "value" property on the input element.
             * @nodoc
             */
            writeValue(value) {
              const normalizedValue = value == null ? '' : value;
              this.setProperty('value', normalizedValue);
            }
            /** @internal */
            _handleInput(value) {
              if (!this._compositionMode || this._compositionMode && !this._composing) {
                this.onChange(value);
              }
            }
            /** @internal */
            _compositionStart() {
              this._composing = true;
            }
            /** @internal */
            _compositionEnd(value) {
              this._composing = false;
              this._compositionMode && this.onChange(value);
            }
            static {
              this.ɵfac = function DefaultValueAccessor_Factory(t) {
                return new (t || DefaultValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](COMPOSITION_BUFFER_MODE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: DefaultValueAccessor,
                selectors: [["input", "formControlName", "", 3, "type", "checkbox"], ["textarea", "formControlName", ""], ["input", "formControl", "", 3, "type", "checkbox"], ["textarea", "formControl", ""], ["input", "ngModel", "", 3, "type", "checkbox"], ["textarea", "ngModel", ""], ["", "ngDefaultControl", ""]],
                hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function DefaultValueAccessor_input_HostBindingHandler($event) {
                      return ctx._handleInput($event.target.value);
                    })("blur", function DefaultValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    })("compositionstart", function DefaultValueAccessor_compositionstart_HostBindingHandler() {
                      return ctx._compositionStart();
                    })("compositionend", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {
                      return ctx._compositionEnd($event.target.value);
                    });
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([DEFAULT_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
                // TODO: vsavkin replace the above selector with the one below it once
                // https://github.com/angular/angular/issues/3011 is implemented
                // selector: '[ngModel],[formControl],[formControlName]',
                host: {
                  '(input)': '$any(this)._handleInput($event.target.value)',
                  '(blur)': 'onTouched()',
                  '(compositionstart)': '$any(this)._compositionStart()',
                  '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
                },
                providers: [DEFAULT_VALUE_ACCESSOR]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [COMPOSITION_BUFFER_MODE]
                }]
              }];
            }, null);
          })();
          function isEmptyInputValue(value) {
            /**
             * Check if the object is a string or array before evaluating the length attribute.
             * This avoids falsely rejecting objects that contain a custom length attribute.
             * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.
             */
            return value == null || (typeof value === 'string' || Array.isArray(value)) && value.length === 0;
          }
          function hasValidLength(value) {
            // non-strict comparison is intentional, to check for both `null` and `undefined` values
            return value != null && typeof value.length === 'number';
          }
          /**
           * @description
           * An `InjectionToken` for registering additional synchronous validators used with
           * `AbstractControl`s.
           *
           * @see {@link NG_ASYNC_VALIDATORS}
           *
           * @usageNotes
           *
           * ### Providing a custom validator
           *
           * The following example registers a custom validator directive. Adding the validator to the
           * existing collection of validators requires the `multi: true` option.
           *
           * ```typescript
           * @Directive({
           *   selector: '[customValidator]',
           *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]
           * })
           * class CustomValidatorDirective implements Validator {
           *   validate(control: AbstractControl): ValidationErrors | null {
           *     return { 'custom': true };
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          const NG_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NgValidators');
          /**
           * @description
           * An `InjectionToken` for registering additional asynchronous validators used with
           * `AbstractControl`s.
           *
           * @see {@link NG_VALIDATORS}
           *
           * @usageNotes
           *
           * ### Provide a custom async validator directive
           *
           * The following example implements the `AsyncValidator` interface to create an
           * async validator directive with a custom error key.
           *
           * ```typescript
           * @Directive({
           *   selector: '[customAsyncValidator]',
           *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:
           * true}]
           * })
           * class CustomAsyncValidatorDirective implements AsyncValidator {
           *   validate(control: AbstractControl): Promise<ValidationErrors|null> {
           *     return Promise.resolve({'custom': true});
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          const NG_ASYNC_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NgAsyncValidators');
          /**
           * A regular expression that matches valid e-mail addresses.
           *
           * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:
           * - `local-part` consists of one or more of the allowed characters (alphanumeric and some
           *   punctuation symbols).
           * - `local-part` cannot begin or end with a period (`.`).
           * - `local-part` cannot be longer than 64 characters.
           * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or
           *   `foo.com`.
           * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and
           *   periods (`.`)).
           * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).
           * - A `label` cannot be longer than 63 characters.
           * - The whole address cannot be longer than 254 characters.
           *
           * ## Implementation background
           *
           * This regexp was ported over from AngularJS (see there for git history):
           * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27
           * It is based on the
           * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
           * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
           * lengths of different parts of the address). The main differences from the WHATWG version are:
           *   - Disallow `local-part` to begin or end with a period (`.`).
           *   - Disallow `local-part` length to exceed 64 characters.
           *   - Disallow total address length to exceed 254 characters.
           *
           * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.
           */
          const EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
          /**
           * @description
           * Provides a set of built-in validators that can be used by form controls.
           *
           * A validator is a function that processes a `FormControl` or collection of
           * controls and returns an error map or null. A null map means that validation has passed.
           *
           * @see [Form Validation](/guide/form-validation)
           *
           * @publicApi
           */
          class Validators {
            /**
             * @description
             * Validator that requires the control's value to be greater than or equal to the provided number.
             *
             * @usageNotes
             *
             * ### Validate against a minimum of 3
             *
             * ```typescript
             * const control = new FormControl(2, Validators.min(3));
             *
             * console.log(control.errors); // {min: {min: 3, actual: 2}}
             * ```
             *
             * @returns A validator function that returns an error map with the
             * `min` property if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static min(min) {
              return minValidator(min);
            }
            /**
             * @description
             * Validator that requires the control's value to be less than or equal to the provided number.
             *
             * @usageNotes
             *
             * ### Validate against a maximum of 15
             *
             * ```typescript
             * const control = new FormControl(16, Validators.max(15));
             *
             * console.log(control.errors); // {max: {max: 15, actual: 16}}
             * ```
             *
             * @returns A validator function that returns an error map with the
             * `max` property if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static max(max) {
              return maxValidator(max);
            }
            /**
             * @description
             * Validator that requires the control have a non-empty value.
             *
             * @usageNotes
             *
             * ### Validate that the field is non-empty
             *
             * ```typescript
             * const control = new FormControl('', Validators.required);
             *
             * console.log(control.errors); // {required: true}
             * ```
             *
             * @returns An error map with the `required` property
             * if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static required(control) {
              return requiredValidator(control);
            }
            /**
             * @description
             * Validator that requires the control's value be true. This validator is commonly
             * used for required checkboxes.
             *
             * @usageNotes
             *
             * ### Validate that the field value is true
             *
             * ```typescript
             * const control = new FormControl('some value', Validators.requiredTrue);
             *
             * console.log(control.errors); // {required: true}
             * ```
             *
             * @returns An error map that contains the `required` property
             * set to `true` if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static requiredTrue(control) {
              return requiredTrueValidator(control);
            }
            /**
             * @description
             * Validator that requires the control's value pass an email validation test.
             *
             * Tests the value using a [regular
             * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
             * pattern suitable for common use cases. The pattern is based on the definition of a valid email
             * address in the [WHATWG HTML
             * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
             * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
             * lengths of different parts of the address).
             *
             * The differences from the WHATWG version include:
             * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).
             * - Disallow `local-part` to be longer than 64 characters.
             * - Disallow the whole address to be longer than 254 characters.
             *
             * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to
             * validate the value against a different pattern.
             *
             * @usageNotes
             *
             * ### Validate that the field matches a valid email pattern
             *
             * ```typescript
             * const control = new FormControl('bad@', Validators.email);
             *
             * console.log(control.errors); // {email: true}
             * ```
             *
             * @returns An error map with the `email` property
             * if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static email(control) {
              return emailValidator(control);
            }
            /**
             * @description
             * Validator that requires the length of the control's value to be greater than or equal
             * to the provided minimum length. This validator is also provided by default if you use the
             * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used
             * only for types that have a numeric `length` property, such as strings or arrays. The
             * `minLength` validator logic is also not invoked for values when their `length` property is 0
             * (for example in case of an empty string or an empty array), to support optional controls. You
             * can use the standard `required` validator if empty values should not be considered valid.
             *
             * @usageNotes
             *
             * ### Validate that the field has a minimum of 3 characters
             *
             * ```typescript
             * const control = new FormControl('ng', Validators.minLength(3));
             *
             * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}
             * ```
             *
             * ```html
             * <input minlength="5">
             * ```
             *
             * @returns A validator function that returns an error map with the
             * `minlength` property if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static minLength(minLength) {
              return minLengthValidator(minLength);
            }
            /**
             * @description
             * Validator that requires the length of the control's value to be less than or equal
             * to the provided maximum length. This validator is also provided by default if you use the
             * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used
             * only for types that have a numeric `length` property, such as strings or arrays.
             *
             * @usageNotes
             *
             * ### Validate that the field has maximum of 5 characters
             *
             * ```typescript
             * const control = new FormControl('Angular', Validators.maxLength(5));
             *
             * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}
             * ```
             *
             * ```html
             * <input maxlength="5">
             * ```
             *
             * @returns A validator function that returns an error map with the
             * `maxlength` property if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static maxLength(maxLength) {
              return maxLengthValidator(maxLength);
            }
            /**
             * @description
             * Validator that requires the control's value to match a regex pattern. This validator is also
             * provided by default if you use the HTML5 `pattern` attribute.
             *
             * @usageNotes
             *
             * ### Validate that the field only contains letters or spaces
             *
             * ```typescript
             * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));
             *
             * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
             * ```
             *
             * ```html
             * <input pattern="[a-zA-Z ]*">
             * ```
             *
             * ### Pattern matching with the global or sticky flag
             *
             * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`
             * can produce different results on the same input when validations are run consecutively. This is
             * due to how the behavior of `RegExp.prototype.test` is
             * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)
             * (`RegExp` preserves the index of the last match when the global or sticky flag is used).
             * Due to this behavior, it is recommended that when using
             * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky
             * flag enabled.
             *
             * ```typescript
             * // Not recommended (since the `g` flag is used)
             * const controlOne = new FormControl('1', Validators.pattern(/foo/g));
             *
             * // Good
             * const controlTwo = new FormControl('1', Validators.pattern(/foo/));
             * ```
             *
             * @param pattern A regular expression to be used as is to test the values, or a string.
             * If a string is passed, the `^` character is prepended and the `$` character is
             * appended to the provided string (if not already present), and the resulting regular
             * expression is used to test the values.
             *
             * @returns A validator function that returns an error map with the
             * `pattern` property if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static pattern(pattern) {
              return patternValidator(pattern);
            }
            /**
             * @description
             * Validator that performs no operation.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static nullValidator(control) {
              return nullValidator(control);
            }
            static compose(validators) {
              return compose(validators);
            }
            /**
             * @description
             * Compose multiple async validators into a single function that returns the union
             * of the individual error objects for the provided control.
             *
             * @returns A validator function that returns an error map with the
             * merged error objects of the async validators if the validation check fails, otherwise `null`.
             *
             * @see {@link updateValueAndValidity()}
             *
             */
            static composeAsync(validators) {
              return composeAsync(validators);
            }
          }
          /**
           * Validator that requires the control's value to be greater than or equal to the provided number.
           * See `Validators.min` for additional information.
           */
          function minValidator(min) {
            return control => {
              if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {
                return null; // don't validate empty values to allow optional controls
              }
          
              const value = parseFloat(control.value);
              // Controls with NaN values after parsing should be treated as not having a
              // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
              return !isNaN(value) && value < min ? {
                'min': {
                  'min': min,
                  'actual': control.value
                }
              } : null;
            };
          }
          /**
           * Validator that requires the control's value to be less than or equal to the provided number.
           * See `Validators.max` for additional information.
           */
          function maxValidator(max) {
            return control => {
              if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {
                return null; // don't validate empty values to allow optional controls
              }
          
              const value = parseFloat(control.value);
              // Controls with NaN values after parsing should be treated as not having a
              // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
              return !isNaN(value) && value > max ? {
                'max': {
                  'max': max,
                  'actual': control.value
                }
              } : null;
            };
          }
          /**
           * Validator that requires the control have a non-empty value.
           * See `Validators.required` for additional information.
           */
          function requiredValidator(control) {
            return isEmptyInputValue(control.value) ? {
              'required': true
            } : null;
          }
          /**
           * Validator that requires the control's value be true. This validator is commonly
           * used for required checkboxes.
           * See `Validators.requiredTrue` for additional information.
           */
          function requiredTrueValidator(control) {
            return control.value === true ? null : {
              'required': true
            };
          }
          /**
           * Validator that requires the control's value pass an email validation test.
           * See `Validators.email` for additional information.
           */
          function emailValidator(control) {
            if (isEmptyInputValue(control.value)) {
              return null; // don't validate empty values to allow optional controls
            }
          
            return EMAIL_REGEXP.test(control.value) ? null : {
              'email': true
            };
          }
          /**
           * Validator that requires the length of the control's value to be greater than or equal
           * to the provided minimum length. See `Validators.minLength` for additional information.
           */
          function minLengthValidator(minLength) {
            return control => {
              if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {
                // don't validate empty values to allow optional controls
                // don't validate values without `length` property
                return null;
              }
              return control.value.length < minLength ? {
                'minlength': {
                  'requiredLength': minLength,
                  'actualLength': control.value.length
                }
              } : null;
            };
          }
          /**
           * Validator that requires the length of the control's value to be less than or equal
           * to the provided maximum length. See `Validators.maxLength` for additional information.
           */
          function maxLengthValidator(maxLength) {
            return control => {
              return hasValidLength(control.value) && control.value.length > maxLength ? {
                'maxlength': {
                  'requiredLength': maxLength,
                  'actualLength': control.value.length
                }
              } : null;
            };
          }
          /**
           * Validator that requires the control's value to match a regex pattern.
           * See `Validators.pattern` for additional information.
           */
          function patternValidator(pattern) {
            if (!pattern) return nullValidator;
            let regex;
            let regexStr;
            if (typeof pattern === 'string') {
              regexStr = '';
              if (pattern.charAt(0) !== '^') regexStr += '^';
              regexStr += pattern;
              if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';
              regex = new RegExp(regexStr);
            } else {
              regexStr = pattern.toString();
              regex = pattern;
            }
            return control => {
              if (isEmptyInputValue(control.value)) {
                return null; // don't validate empty values to allow optional controls
              }
          
              const value = control.value;
              return regex.test(value) ? null : {
                'pattern': {
                  'requiredPattern': regexStr,
                  'actualValue': value
                }
              };
            };
          }
          /**
           * Function that has `ValidatorFn` shape, but performs no operation.
           */
          function nullValidator(control) {
            return null;
          }
          function isPresent(o) {
            return o != null;
          }
          function toObservable(value) {
            const obs = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(value) ? (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(value) : value;
            if ((typeof ngDevMode === 'undefined' || ngDevMode) && !(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisSubscribable"])(obs)) {
              let errorMessage = `Expected async validator to return Promise or Observable.`;
              // A synchronous validator will return object or null.
              if (typeof value === 'object') {
                errorMessage += ' Are you using a synchronous validator where an async validator is expected?';
              }
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);
            }
            return obs;
          }
          function mergeErrors(arrayOfErrors) {
            let res = {};
            arrayOfErrors.forEach(errors => {
              res = errors != null ? {
                ...res,
                ...errors
              } : res;
            });
            return Object.keys(res).length === 0 ? null : res;
          }
          function executeValidators(control, validators) {
            return validators.map(validator => validator(control));
          }
          function isValidatorFn(validator) {
            return !validator.validate;
          }
          /**
           * Given the list of validators that may contain both functions as well as classes, return the list
           * of validator functions (convert validator classes into validator functions). This is needed to
           * have consistent structure in validators list before composing them.
           *
           * @param validators The set of validators that may contain validators both in plain function form
           *     as well as represented as a validator class.
           */
          function normalizeValidators(validators) {
            return validators.map(validator => {
              return isValidatorFn(validator) ? validator : c => validator.validate(c);
            });
          }
          /**
           * Merges synchronous validators into a single validator function.
           * See `Validators.compose` for additional information.
           */
          function compose(validators) {
            if (!validators) return null;
            const presentValidators = validators.filter(isPresent);
            if (presentValidators.length == 0) return null;
            return function (control) {
              return mergeErrors(executeValidators(control, presentValidators));
            };
          }
          /**
           * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),
           * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single
           * validator function.
           */
          function composeValidators(validators) {
            return validators != null ? compose(normalizeValidators(validators)) : null;
          }
          /**
           * Merges asynchronous validators into a single validator function.
           * See `Validators.composeAsync` for additional information.
           */
          function composeAsync(validators) {
            if (!validators) return null;
            const presentValidators = validators.filter(isPresent);
            if (presentValidators.length == 0) return null;
            return function (control) {
              const observables = executeValidators(control, presentValidators).map(toObservable);
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.forkJoin)(observables).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(mergeErrors));
            };
          }
          /**
           * Accepts a list of async validators of different possible shapes (`AsyncValidator` and
           * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges
           * them into a single validator function.
           */
          function composeAsyncValidators(validators) {
            return validators != null ? composeAsync(normalizeValidators(validators)) : null;
          }
          /**
           * Merges raw control validators with a given directive validator and returns the combined list of
           * validators as an array.
           */
          function mergeValidators(controlValidators, dirValidator) {
            if (controlValidators === null) return [dirValidator];
            return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] : [controlValidators, dirValidator];
          }
          /**
           * Retrieves the list of raw synchronous validators attached to a given control.
           */
          function getControlValidators(control) {
            return control._rawValidators;
          }
          /**
           * Retrieves the list of raw asynchronous validators attached to a given control.
           */
          function getControlAsyncValidators(control) {
            return control._rawAsyncValidators;
          }
          /**
           * Accepts a singleton validator, an array, or null, and returns an array type with the provided
           * validators.
           *
           * @param validators A validator, validators, or null.
           * @returns A validators array.
           */
          function makeValidatorsArray(validators) {
            if (!validators) return [];
            return Array.isArray(validators) ? validators : [validators];
          }
          /**
           * Determines whether a validator or validators array has a given validator.
           *
           * @param validators The validator or validators to compare against.
           * @param validator The validator to check.
           * @returns Whether the validator is present.
           */
          function hasValidator(validators, validator) {
            return Array.isArray(validators) ? validators.includes(validator) : validators === validator;
          }
          /**
           * Combines two arrays of validators into one. If duplicates are provided, only one will be added.
           *
           * @param validators The new validators.
           * @param currentValidators The base array of current validators.
           * @returns An array of validators.
           */
          function addValidators(validators, currentValidators) {
            const current = makeValidatorsArray(currentValidators);
            const validatorsToAdd = makeValidatorsArray(validators);
            validatorsToAdd.forEach(v => {
              // Note: if there are duplicate entries in the new validators array,
              // only the first one would be added to the current list of validators.
              // Duplicate ones would be ignored since `hasValidator` would detect
              // the presence of a validator function and we update the current list in place.
              if (!hasValidator(current, v)) {
                current.push(v);
              }
            });
            return current;
          }
          function removeValidators(validators, currentValidators) {
            return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));
          }
          
          /**
           * @description
           * Base class for control directives.
           *
           * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.
           *
           * @publicApi
           */
          class AbstractControlDirective {
            constructor() {
              /**
               * Set of synchronous validators as they were provided while calling `setValidators` function.
               * @internal
               */
              this._rawValidators = [];
              /**
               * Set of asynchronous validators as they were provided while calling `setAsyncValidators`
               * function.
               * @internal
               */
              this._rawAsyncValidators = [];
              /*
               * The set of callbacks to be invoked when directive instance is being destroyed.
               */
              this._onDestroyCallbacks = [];
            }
            /**
             * @description
             * Reports the value of the control if it is present, otherwise null.
             */
            get value() {
              return this.control ? this.control.value : null;
            }
            /**
             * @description
             * Reports whether the control is valid. A control is considered valid if no
             * validation errors exist with the current value.
             * If the control is not present, null is returned.
             */
            get valid() {
              return this.control ? this.control.valid : null;
            }
            /**
             * @description
             * Reports whether the control is invalid, meaning that an error exists in the input value.
             * If the control is not present, null is returned.
             */
            get invalid() {
              return this.control ? this.control.invalid : null;
            }
            /**
             * @description
             * Reports whether a control is pending, meaning that async validation is occurring and
             * errors are not yet available for the input value. If the control is not present, null is
             * returned.
             */
            get pending() {
              return this.control ? this.control.pending : null;
            }
            /**
             * @description
             * Reports whether the control is disabled, meaning that the control is disabled
             * in the UI and is exempt from validation checks and excluded from aggregate
             * values of ancestor controls. If the control is not present, null is returned.
             */
            get disabled() {
              return this.control ? this.control.disabled : null;
            }
            /**
             * @description
             * Reports whether the control is enabled, meaning that the control is included in ancestor
             * calculations of validity or value. If the control is not present, null is returned.
             */
            get enabled() {
              return this.control ? this.control.enabled : null;
            }
            /**
             * @description
             * Reports the control's validation errors. If the control is not present, null is returned.
             */
            get errors() {
              return this.control ? this.control.errors : null;
            }
            /**
             * @description
             * Reports whether the control is pristine, meaning that the user has not yet changed
             * the value in the UI. If the control is not present, null is returned.
             */
            get pristine() {
              return this.control ? this.control.pristine : null;
            }
            /**
             * @description
             * Reports whether the control is dirty, meaning that the user has changed
             * the value in the UI. If the control is not present, null is returned.
             */
            get dirty() {
              return this.control ? this.control.dirty : null;
            }
            /**
             * @description
             * Reports whether the control is touched, meaning that the user has triggered
             * a `blur` event on it. If the control is not present, null is returned.
             */
            get touched() {
              return this.control ? this.control.touched : null;
            }
            /**
             * @description
             * Reports the validation status of the control. Possible values include:
             * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.
             * If the control is not present, null is returned.
             */
            get status() {
              return this.control ? this.control.status : null;
            }
            /**
             * @description
             * Reports whether the control is untouched, meaning that the user has not yet triggered
             * a `blur` event on it. If the control is not present, null is returned.
             */
            get untouched() {
              return this.control ? this.control.untouched : null;
            }
            /**
             * @description
             * Returns a multicasting observable that emits a validation status whenever it is
             * calculated for the control. If the control is not present, null is returned.
             */
            get statusChanges() {
              return this.control ? this.control.statusChanges : null;
            }
            /**
             * @description
             * Returns a multicasting observable of value changes for the control that emits every time the
             * value of the control changes in the UI or programmatically.
             * If the control is not present, null is returned.
             */
            get valueChanges() {
              return this.control ? this.control.valueChanges : null;
            }
            /**
             * @description
             * Returns an array that represents the path from the top-level form to this control.
             * Each index is the string name of the control on that level.
             */
            get path() {
              return null;
            }
            /**
             * Sets synchronous validators for this directive.
             * @internal
             */
            _setValidators(validators) {
              this._rawValidators = validators || [];
              this._composedValidatorFn = composeValidators(this._rawValidators);
            }
            /**
             * Sets asynchronous validators for this directive.
             * @internal
             */
            _setAsyncValidators(validators) {
              this._rawAsyncValidators = validators || [];
              this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);
            }
            /**
             * @description
             * Synchronous validator function composed of all the synchronous validators registered with this
             * directive.
             */
            get validator() {
              return this._composedValidatorFn || null;
            }
            /**
             * @description
             * Asynchronous validator function composed of all the asynchronous validators registered with
             * this directive.
             */
            get asyncValidator() {
              return this._composedAsyncValidatorFn || null;
            }
            /**
             * Internal function to register callbacks that should be invoked
             * when directive instance is being destroyed.
             * @internal
             */
            _registerOnDestroy(fn) {
              this._onDestroyCallbacks.push(fn);
            }
            /**
             * Internal function to invoke all registered "on destroy" callbacks.
             * Note: calling this function also clears the list of callbacks.
             * @internal
             */
            _invokeOnDestroyCallbacks() {
              this._onDestroyCallbacks.forEach(fn => fn());
              this._onDestroyCallbacks = [];
            }
            /**
             * @description
             * Resets the control with the provided value if the control is present.
             */
            reset(value = undefined) {
              if (this.control) this.control.reset(value);
            }
            /**
             * @description
             * Reports whether the control with the given path has the error specified.
             *
             * @param errorCode The code of the error to check
             * @param path A list of control names that designates how to move from the current control
             * to the control that should be queried for errors.
             *
             * @usageNotes
             * For example, for the following `FormGroup`:
             *
             * ```
             * form = new FormGroup({
             *   address: new FormGroup({ street: new FormControl() })
             * });
             * ```
             *
             * The path to the 'street' control from the root form would be 'address' -> 'street'.
             *
             * It can be provided to this method in one of two formats:
             *
             * 1. An array of string control names, e.g. `['address', 'street']`
             * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
             *
             * If no path is given, this method checks for the error on the current control.
             *
             * @returns whether the given error is present in the control at the given path.
             *
             * If the control is not present, false is returned.
             */
            hasError(errorCode, path) {
              return this.control ? this.control.hasError(errorCode, path) : false;
            }
            /**
             * @description
             * Reports error data for the control with the given path.
             *
             * @param errorCode The code of the error to check
             * @param path A list of control names that designates how to move from the current control
             * to the control that should be queried for errors.
             *
             * @usageNotes
             * For example, for the following `FormGroup`:
             *
             * ```
             * form = new FormGroup({
             *   address: new FormGroup({ street: new FormControl() })
             * });
             * ```
             *
             * The path to the 'street' control from the root form would be 'address' -> 'street'.
             *
             * It can be provided to this method in one of two formats:
             *
             * 1. An array of string control names, e.g. `['address', 'street']`
             * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
             *
             * @returns error data for that particular error. If the control or error is not present,
             * null is returned.
             */
            getError(errorCode, path) {
              return this.control ? this.control.getError(errorCode, path) : null;
            }
          }
          
          /**
           * @description
           * A base class for directives that contain multiple registered instances of `NgControl`.
           * Only used by the forms module.
           *
           * @publicApi
           */
          class ControlContainer extends AbstractControlDirective {
            /**
             * @description
             * The top-level form directive for the control.
             */
            get formDirective() {
              return null;
            }
            /**
             * @description
             * The path to this group.
             */
            get path() {
              return null;
            }
          }
          
          /**
           * @description
           * A base class that all `FormControl`-based directives extend. It binds a `FormControl`
           * object to a DOM element.
           *
           * @publicApi
           */
          class NgControl extends AbstractControlDirective {
            constructor() {
              super(...arguments);
              /**
               * @description
               * The parent form for the control.
               *
               * @internal
               */
              this._parent = null;
              /**
               * @description
               * The name for the control
               */
              this.name = null;
              /**
               * @description
               * The value accessor for the control
               */
              this.valueAccessor = null;
            }
          }
          
          // DO NOT REFACTOR!
          // Each status is represented by a separate function to make sure that
          // advanced Closure Compiler optimizations related to property renaming
          // can work correctly.
          class AbstractControlStatus {
            constructor(cd) {
              this._cd = cd;
            }
            get isTouched() {
              return !!this._cd?.control?.touched;
            }
            get isUntouched() {
              return !!this._cd?.control?.untouched;
            }
            get isPristine() {
              return !!this._cd?.control?.pristine;
            }
            get isDirty() {
              return !!this._cd?.control?.dirty;
            }
            get isValid() {
              return !!this._cd?.control?.valid;
            }
            get isInvalid() {
              return !!this._cd?.control?.invalid;
            }
            get isPending() {
              return !!this._cd?.control?.pending;
            }
            get isSubmitted() {
              // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but
              // we avoid instanceof checks to prevent non-tree-shakable references to those types.
              return !!this._cd?.submitted;
            }
          }
          const ngControlStatusHost = {
            '[class.ng-untouched]': 'isUntouched',
            '[class.ng-touched]': 'isTouched',
            '[class.ng-pristine]': 'isPristine',
            '[class.ng-dirty]': 'isDirty',
            '[class.ng-valid]': 'isValid',
            '[class.ng-invalid]': 'isInvalid',
            '[class.ng-pending]': 'isPending'
          };
          const ngGroupStatusHost = {
            ...ngControlStatusHost,
            '[class.ng-submitted]': 'isSubmitted'
          };
          /**
           * @description
           * Directive automatically applied to Angular form controls that sets CSS classes
           * based on control status.
           *
           * @usageNotes
           *
           * ### CSS classes applied
           *
           * The following classes are applied as the properties become true:
           *
           * * ng-valid
           * * ng-invalid
           * * ng-pending
           * * ng-pristine
           * * ng-dirty
           * * ng-untouched
           * * ng-touched
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class NgControlStatus extends AbstractControlStatus {
            constructor(cd) {
              super(cd);
            }
            static {
              this.ɵfac = function NgControlStatus_Factory(t) {
                return new (t || NgControlStatus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgControl, 2));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgControlStatus,
                selectors: [["", "formControlName", ""], ["", "ngModel", ""], ["", "formControl", ""]],
                hostVars: 14,
                hostBindings: function NgControlStatus_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.isUntouched)("ng-touched", ctx.isTouched)("ng-pristine", ctx.isPristine)("ng-dirty", ctx.isDirty)("ng-valid", ctx.isValid)("ng-invalid", ctx.isInvalid)("ng-pending", ctx.isPending);
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatus, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formControlName],[ngModel],[formControl]',
                host: ngControlStatusHost
              }]
            }], function () {
              return [{
                type: NgControl,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }]
              }];
            }, null);
          })();
          /**
           * @description
           * Directive automatically applied to Angular form groups that sets CSS classes
           * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional
           * class ng-submitted.
           *
           * @see {@link NgControlStatus}
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class NgControlStatusGroup extends AbstractControlStatus {
            constructor(cd) {
              super(cd);
            }
            static {
              this.ɵfac = function NgControlStatusGroup_Factory(t) {
                return new (t || NgControlStatusGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 10));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgControlStatusGroup,
                selectors: [["", "formGroupName", ""], ["", "formArrayName", ""], ["", "ngModelGroup", ""], ["", "formGroup", ""], ["form", 3, "ngNoForm", ""], ["", "ngForm", ""]],
                hostVars: 16,
                hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.isUntouched)("ng-touched", ctx.isTouched)("ng-pristine", ctx.isPristine)("ng-dirty", ctx.isDirty)("ng-valid", ctx.isValid)("ng-invalid", ctx.isInvalid)("ng-pending", ctx.isPending)("ng-submitted", ctx.isSubmitted);
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatusGroup, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
                host: ngGroupStatusHost
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }]
              }];
            }, null);
          })();
          const formControlNameExample = `
            <div [formGroup]="myGroup">
              <input formControlName="firstName">
            </div>
          
            In your class:
          
            this.myGroup = new FormGroup({
                firstName: new FormControl()
            });`;
          const formGroupNameExample = `
            <div [formGroup]="myGroup">
                <div formGroupName="person">
                  <input formControlName="firstName">
                </div>
            </div>
          
            In your class:
          
            this.myGroup = new FormGroup({
                person: new FormGroup({ firstName: new FormControl() })
            });`;
          const formArrayNameExample = `
            <div [formGroup]="myGroup">
              <div formArrayName="cities">
                <div *ngFor="let city of cityArray.controls; index as i">
                  <input [formControlName]="i">
                </div>
              </div>
            </div>
          
            In your class:
          
            this.cityArray = new FormArray([new FormControl('SF')]);
            this.myGroup = new FormGroup({
              cities: this.cityArray
            });`;
          const ngModelGroupExample = `
            <form>
                <div ngModelGroup="person">
                  <input [(ngModel)]="person.name" name="firstName">
                </div>
            </form>`;
          const ngModelWithFormGroupExample = `
            <div [formGroup]="myGroup">
                <input formControlName="firstName">
                <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">
            </div>
          `;
          function controlParentException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup
                directive and pass it an existing FormGroup instance (you can create one in your class).
          
              Example:
          
              ${formControlNameExample}`);
          }
          function ngModelGroupException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents
                that also have a "form" prefix: formGroupName, formArrayName, or formGroup.
          
                Option 1:  Update the parent to be formGroupName (reactive form strategy)
          
                ${formGroupNameExample}
          
                Option 2: Use ngModel instead of formControlName (template-driven strategy)
          
                ${ngModelGroupExample}`);
          }
          function missingFormException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.
          
                Example:
          
                ${formControlNameExample}`);
          }
          function groupParentException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup
              directive and pass it an existing FormGroup instance (you can create one in your class).
          
              Example:
          
              ${formGroupNameExample}`);
          }
          function arrayParentException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup
                directive and pass it an existing FormGroup instance (you can create one in your class).
          
                Example:
          
                ${formArrayNameExample}`);
          }
          const disabledAttrWarning = `
            It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
            when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
            you. We recommend using this approach to avoid 'changed after checked' errors.
          
            Example:
            // Specify the \`disabled\` property at control creation time:
            form = new FormGroup({
              first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
              last: new FormControl('Drew', Validators.required)
            });
          
            // Controls can also be enabled/disabled after creation:
            form.get('first')?.enable();
            form.get('last')?.disable();
          `;
          const asyncValidatorsDroppedWithOptsWarning = `
            It looks like you're constructing using a FormControl with both an options argument and an
            async validators argument. Mixing these arguments will cause your async validators to be dropped.
            You should either put all your validators in the options object, or in separate validators
            arguments. For example:
          
            // Using validators arguments
            fc = new FormControl(42, Validators.required, myAsyncValidator);
          
            // Using AbstractControlOptions
            fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});
          
            // Do NOT mix them: async validators will be dropped!
            fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);
          `;
          function ngModelWarning(directiveName) {
            return `
            It looks like you're using ngModel on the same form field as ${directiveName}.
            Support for using the ngModel input property and ngModelChange event with
            reactive form directives has been deprecated in Angular v6 and will be removed
            in a future version of Angular.
          
            For more information on this, see our API docs here:
            https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel
            `;
          }
          function describeKey(isFormGroup, key) {
            return isFormGroup ? `with name: '${key}'` : `at index: ${key}`;
          }
          function noControlsError(isFormGroup) {
            return `
              There are no form controls registered with this ${isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,
              you may want to check next tick (e.g. use setTimeout).
            `;
          }
          function missingControlError(isFormGroup, key) {
            return `Cannot find form control ${describeKey(isFormGroup, key)}`;
          }
          function missingControlValueError(isFormGroup, key) {
            return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;
          }
          
          /**
           * Reports that a control is valid, meaning that no errors exist in the input value.
           *
           * @see {@link status}
           */
          const VALID = 'VALID';
          /**
           * Reports that a control is invalid, meaning that an error exists in the input value.
           *
           * @see {@link status}
           */
          const INVALID = 'INVALID';
          /**
           * Reports that a control is pending, meaning that async validation is occurring and
           * errors are not yet available for the input value.
           *
           * @see {@link markAsPending}
           * @see {@link status}
           */
          const PENDING = 'PENDING';
          /**
           * Reports that a control is disabled, meaning that the control is exempt from ancestor
           * calculations of validity or value.
           *
           * @see {@link markAsDisabled}
           * @see {@link status}
           */
          const DISABLED = 'DISABLED';
          /**
           * Gets validators from either an options object or given validators.
           */
          function pickValidators(validatorOrOpts) {
            return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;
          }
          /**
           * Creates validator function by combining provided validators.
           */
          function coerceToValidator(validator) {
            return Array.isArray(validator) ? composeValidators(validator) : validator || null;
          }
          /**
           * Gets async validators from either an options object or given validators.
           */
          function pickAsyncValidators(asyncValidator, validatorOrOpts) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (isOptionsObj(validatorOrOpts) && asyncValidator) {
                console.warn(asyncValidatorsDroppedWithOptsWarning);
              }
            }
            return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;
          }
          /**
           * Creates async validator function by combining provided async validators.
           */
          function coerceToAsyncValidator(asyncValidator) {
            return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator || null;
          }
          function isOptionsObj(validatorOrOpts) {
            return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';
          }
          function assertControlPresent(parent, isGroup, key) {
            const controls = parent.controls;
            const collection = isGroup ? Object.keys(controls) : controls;
            if (!collection.length) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1000 /* RuntimeErrorCode.NO_CONTROLS */, typeof ngDevMode === 'undefined' || ngDevMode ? noControlsError(isGroup) : '');
            }
            if (!controls[key]) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1001 /* RuntimeErrorCode.MISSING_CONTROL */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlError(isGroup, key) : '');
            }
          }
          function assertAllValuesPresent(control, isGroup, value) {
            control._forEachChild((_, key) => {
              if (value[key] === undefined) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlValueError(isGroup, key) : '');
              }
            });
          }
          // clang-format on
          /**
           * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.
           *
           * It provides some of the shared behavior that all controls and groups of controls have, like
           * running validators, calculating status, and resetting state. It also defines the properties
           * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be
           * instantiated directly.
           *
           * The first type parameter TValue represents the value type of the control (`control.value`).
           * The optional type parameter TRawValue  represents the raw value type (`control.getRawValue()`).
           *
           * @see [Forms Guide](/guide/forms)
           * @see [Reactive Forms Guide](/guide/reactive-forms)
           * @see [Dynamic Forms Guide](/guide/dynamic-form)
           *
           * @publicApi
           */
          class AbstractControl {
            /**
             * Initialize the AbstractControl instance.
             *
             * @param validators The function or array of functions that is used to determine the validity of
             *     this control synchronously.
             * @param asyncValidators The function or array of functions that is used to determine validity of
             *     this control asynchronously.
             */
            constructor(validators, asyncValidators) {
              /** @internal */
              this._pendingDirty = false;
              /**
               * Indicates that a control has its own pending asynchronous validation in progress.
               *
               * @internal
               */
              this._hasOwnPendingAsyncValidator = false;
              /** @internal */
              this._pendingTouched = false;
              /** @internal */
              this._onCollectionChange = () => {};
              this._parent = null;
              /**
               * A control is `pristine` if the user has not yet changed
               * the value in the UI.
               *
               * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
               * Programmatic changes to a control's value do not mark it dirty.
               */
              this.pristine = true;
              /**
               * True if the control is marked as `touched`.
               *
               * A control is marked `touched` once the user has triggered
               * a `blur` event on it.
               */
              this.touched = false;
              /** @internal */
              this._onDisabledChange = [];
              this._assignValidators(validators);
              this._assignAsyncValidators(asyncValidators);
            }
            /**
             * Returns the function that is used to determine the validity of this control synchronously.
             * If multiple validators have been added, this will be a single composed function.
             * See `Validators.compose()` for additional information.
             */
            get validator() {
              return this._composedValidatorFn;
            }
            set validator(validatorFn) {
              this._rawValidators = this._composedValidatorFn = validatorFn;
            }
            /**
             * Returns the function that is used to determine the validity of this control asynchronously.
             * If multiple validators have been added, this will be a single composed function.
             * See `Validators.compose()` for additional information.
             */
            get asyncValidator() {
              return this._composedAsyncValidatorFn;
            }
            set asyncValidator(asyncValidatorFn) {
              this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;
            }
            /**
             * The parent control.
             */
            get parent() {
              return this._parent;
            }
            /**
             * A control is `valid` when its `status` is `VALID`.
             *
             * @see {@link AbstractControl.status}
             *
             * @returns True if the control has passed all of its validation tests,
             * false otherwise.
             */
            get valid() {
              return this.status === VALID;
            }
            /**
             * A control is `invalid` when its `status` is `INVALID`.
             *
             * @see {@link AbstractControl.status}
             *
             * @returns True if this control has failed one or more of its validation checks,
             * false otherwise.
             */
            get invalid() {
              return this.status === INVALID;
            }
            /**
             * A control is `pending` when its `status` is `PENDING`.
             *
             * @see {@link AbstractControl.status}
             *
             * @returns True if this control is in the process of conducting a validation check,
             * false otherwise.
             */
            get pending() {
              return this.status == PENDING;
            }
            /**
             * A control is `disabled` when its `status` is `DISABLED`.
             *
             * Disabled controls are exempt from validation checks and
             * are not included in the aggregate value of their ancestor
             * controls.
             *
             * @see {@link AbstractControl.status}
             *
             * @returns True if the control is disabled, false otherwise.
             */
            get disabled() {
              return this.status === DISABLED;
            }
            /**
             * A control is `enabled` as long as its `status` is not `DISABLED`.
             *
             * @returns True if the control has any status other than 'DISABLED',
             * false if the status is 'DISABLED'.
             *
             * @see {@link AbstractControl.status}
             *
             */
            get enabled() {
              return this.status !== DISABLED;
            }
            /**
             * A control is `dirty` if the user has changed the value
             * in the UI.
             *
             * @returns True if the user has changed the value of this control in the UI; compare `pristine`.
             * Programmatic changes to a control's value do not mark it dirty.
             */
            get dirty() {
              return !this.pristine;
            }
            /**
             * True if the control has not been marked as touched
             *
             * A control is `untouched` if the user has not yet triggered
             * a `blur` event on it.
             */
            get untouched() {
              return !this.touched;
            }
            /**
             * Reports the update strategy of the `AbstractControl` (meaning
             * the event on which the control updates itself).
             * Possible values: `'change'` | `'blur'` | `'submit'`
             * Default value: `'change'`
             */
            get updateOn() {
              return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';
            }
            /**
             * Sets the synchronous validators that are active on this control.  Calling
             * this overwrites any existing synchronous validators.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * If you want to add a new validator without affecting existing ones, consider
             * using `addValidators()` method instead.
             */
            setValidators(validators) {
              this._assignValidators(validators);
            }
            /**
             * Sets the asynchronous validators that are active on this control. Calling this
             * overwrites any existing asynchronous validators.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * If you want to add a new validator without affecting existing ones, consider
             * using `addAsyncValidators()` method instead.
             */
            setAsyncValidators(validators) {
              this._assignAsyncValidators(validators);
            }
            /**
             * Add a synchronous validator or validators to this control, without affecting other validators.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * Adding a validator that already exists will have no effect. If duplicate validator functions
             * are present in the `validators` array, only the first instance would be added to a form
             * control.
             *
             * @param validators The new validator function or functions to add to this control.
             */
            addValidators(validators) {
              this.setValidators(addValidators(validators, this._rawValidators));
            }
            /**
             * Add an asynchronous validator or validators to this control, without affecting other
             * validators.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * Adding a validator that already exists will have no effect.
             *
             * @param validators The new asynchronous validator function or functions to add to this control.
             */
            addAsyncValidators(validators) {
              this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));
            }
            /**
             * Remove a synchronous validator from this control, without affecting other validators.
             * Validators are compared by function reference; you must pass a reference to the exact same
             * validator function as the one that was originally set. If a provided validator is not found,
             * it is ignored.
             *
             * @usageNotes
             *
             * ### Reference to a ValidatorFn
             *
             * ```
             * // Reference to the RequiredValidator
             * const ctrl = new FormControl<string | null>('', Validators.required);
             * ctrl.removeValidators(Validators.required);
             *
             * // Reference to anonymous function inside MinValidator
             * const minValidator = Validators.min(3);
             * const ctrl = new FormControl<string | null>('', minValidator);
             * expect(ctrl.hasValidator(minValidator)).toEqual(true)
             * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
             *
             * ctrl.removeValidators(minValidator);
             * ```
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * @param validators The validator or validators to remove.
             */
            removeValidators(validators) {
              this.setValidators(removeValidators(validators, this._rawValidators));
            }
            /**
             * Remove an asynchronous validator from this control, without affecting other validators.
             * Validators are compared by function reference; you must pass a reference to the exact same
             * validator function as the one that was originally set. If a provided validator is not found, it
             * is ignored.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             * @param validators The asynchronous validator or validators to remove.
             */
            removeAsyncValidators(validators) {
              this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));
            }
            /**
             * Check whether a synchronous validator function is present on this control. The provided
             * validator must be a reference to the exact same function that was provided.
             *
             * @usageNotes
             *
             * ### Reference to a ValidatorFn
             *
             * ```
             * // Reference to the RequiredValidator
             * const ctrl = new FormControl<number | null>(0, Validators.required);
             * expect(ctrl.hasValidator(Validators.required)).toEqual(true)
             *
             * // Reference to anonymous function inside MinValidator
             * const minValidator = Validators.min(3);
             * const ctrl = new FormControl<number | null>(0, minValidator);
             * expect(ctrl.hasValidator(minValidator)).toEqual(true)
             * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)
             * ```
             *
             * @param validator The validator to check for presence. Compared by function reference.
             * @returns Whether the provided validator was found on this control.
             */
            hasValidator(validator) {
              return hasValidator(this._rawValidators, validator);
            }
            /**
             * Check whether an asynchronous validator function is present on this control. The provided
             * validator must be a reference to the exact same function that was provided.
             *
             * @param validator The asynchronous validator to check for presence. Compared by function
             *     reference.
             * @returns Whether the provided asynchronous validator was found on this control.
             */
            hasAsyncValidator(validator) {
              return hasValidator(this._rawAsyncValidators, validator);
            }
            /**
             * Empties out the synchronous validator list.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             */
            clearValidators() {
              this.validator = null;
            }
            /**
             * Empties out the async validator list.
             *
             * When you add or remove a validator at run time, you must call
             * `updateValueAndValidity()` for the new validation to take effect.
             *
             */
            clearAsyncValidators() {
              this.asyncValidator = null;
            }
            /**
             * Marks the control as `touched`. A control is touched by focus and
             * blur events that do not change the value.
             *
             * @see {@link markAsUntouched()}
             * @see {@link markAsDirty()}
             * @see {@link markAsPristine()}
             *
             * @param opts Configuration options that determine how the control propagates changes
             * and emits events after marking is applied.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             */
            markAsTouched(opts = {}) {
              this.touched = true;
              if (this._parent && !opts.onlySelf) {
                this._parent.markAsTouched(opts);
              }
            }
            /**
             * Marks the control and all its descendant controls as `touched`.
             * @see {@link markAsTouched()}
             */
            markAllAsTouched() {
              this.markAsTouched({
                onlySelf: true
              });
              this._forEachChild(control => control.markAllAsTouched());
            }
            /**
             * Marks the control as `untouched`.
             *
             * If the control has any children, also marks all children as `untouched`
             * and recalculates the `touched` status of all parent controls.
             *
             * @see {@link markAsTouched()}
             * @see {@link markAsDirty()}
             * @see {@link markAsPristine()}
             *
             * @param opts Configuration options that determine how the control propagates changes
             * and emits events after the marking is applied.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             */
            markAsUntouched(opts = {}) {
              this.touched = false;
              this._pendingTouched = false;
              this._forEachChild(control => {
                control.markAsUntouched({
                  onlySelf: true
                });
              });
              if (this._parent && !opts.onlySelf) {
                this._parent._updateTouched(opts);
              }
            }
            /**
             * Marks the control as `dirty`. A control becomes dirty when
             * the control's value is changed through the UI; compare `markAsTouched`.
             *
             * @see {@link markAsTouched()}
             * @see {@link markAsUntouched()}
             * @see {@link markAsPristine()}
             *
             * @param opts Configuration options that determine how the control propagates changes
             * and emits events after marking is applied.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             */
            markAsDirty(opts = {}) {
              this.pristine = false;
              if (this._parent && !opts.onlySelf) {
                this._parent.markAsDirty(opts);
              }
            }
            /**
             * Marks the control as `pristine`.
             *
             * If the control has any children, marks all children as `pristine`,
             * and recalculates the `pristine` status of all parent
             * controls.
             *
             * @see {@link markAsTouched()}
             * @see {@link markAsUntouched()}
             * @see {@link markAsDirty()}
             *
             * @param opts Configuration options that determine how the control emits events after
             * marking is applied.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             */
            markAsPristine(opts = {}) {
              this.pristine = true;
              this._pendingDirty = false;
              this._forEachChild(control => {
                control.markAsPristine({
                  onlySelf: true
                });
              });
              if (this._parent && !opts.onlySelf) {
                this._parent._updatePristine(opts);
              }
            }
            /**
             * Marks the control as `pending`.
             *
             * A control is pending while the control performs async validation.
             *
             * @see {@link AbstractControl.status}
             *
             * @param opts Configuration options that determine how the control propagates changes and
             * emits events after marking is applied.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             * * `emitEvent`: When true or not supplied (the default), the `statusChanges`
             * observable emits an event with the latest status the control is marked pending.
             * When false, no events are emitted.
             *
             */
            markAsPending(opts = {}) {
              this.status = PENDING;
              if (opts.emitEvent !== false) {
                this.statusChanges.emit(this.status);
              }
              if (this._parent && !opts.onlySelf) {
                this._parent.markAsPending(opts);
              }
            }
            /**
             * Disables the control. This means the control is exempt from validation checks and
             * excluded from the aggregate value of any parent. Its status is `DISABLED`.
             *
             * If the control has children, all children are also disabled.
             *
             * @see {@link AbstractControl.status}
             *
             * @param opts Configuration options that determine how the control propagates
             * changes and emits events after the control is disabled.
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control is disabled.
             * When false, no events are emitted.
             */
            disable(opts = {}) {
              // If parent has been marked artificially dirty we don't want to re-calculate the
              // parent's dirtiness based on the children.
              const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
              this.status = DISABLED;
              this.errors = null;
              this._forEachChild(control => {
                control.disable({
                  ...opts,
                  onlySelf: true
                });
              });
              this._updateValue();
              if (opts.emitEvent !== false) {
                this.valueChanges.emit(this.value);
                this.statusChanges.emit(this.status);
              }
              this._updateAncestors({
                ...opts,
                skipPristineCheck
              });
              this._onDisabledChange.forEach(changeFn => changeFn(true));
            }
            /**
             * Enables the control. This means the control is included in validation checks and
             * the aggregate value of its parent. Its status recalculates based on its value and
             * its validators.
             *
             * By default, if the control has children, all children are enabled.
             *
             * @see {@link AbstractControl.status}
             *
             * @param opts Configure options that control how the control propagates changes and
             * emits events when marked as untouched
             * * `onlySelf`: When true, mark only this control. When false or not supplied,
             * marks all direct ancestors. Default is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control is enabled.
             * When false, no events are emitted.
             */
            enable(opts = {}) {
              // If parent has been marked artificially dirty we don't want to re-calculate the
              // parent's dirtiness based on the children.
              const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
              this.status = VALID;
              this._forEachChild(control => {
                control.enable({
                  ...opts,
                  onlySelf: true
                });
              });
              this.updateValueAndValidity({
                onlySelf: true,
                emitEvent: opts.emitEvent
              });
              this._updateAncestors({
                ...opts,
                skipPristineCheck
              });
              this._onDisabledChange.forEach(changeFn => changeFn(false));
            }
            _updateAncestors(opts) {
              if (this._parent && !opts.onlySelf) {
                this._parent.updateValueAndValidity(opts);
                if (!opts.skipPristineCheck) {
                  this._parent._updatePristine();
                }
                this._parent._updateTouched();
              }
            }
            /**
             * Sets the parent of the control
             *
             * @param parent The new parent.
             */
            setParent(parent) {
              this._parent = parent;
            }
            /**
             * The raw value of this control. For most control implementations, the raw value will include
             * disabled children.
             */
            getRawValue() {
              return this.value;
            }
            /**
             * Recalculates the value and validation status of the control.
             *
             * By default, it also updates the value and validity of its ancestors.
             *
             * @param opts Configuration options determine how the control propagates changes and emits events
             * after updates and validity checks are applied.
             * * `onlySelf`: When true, only update this control. When false or not supplied,
             * update all direct ancestors. Default is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control is updated.
             * When false, no events are emitted.
             */
            updateValueAndValidity(opts = {}) {
              this._setInitialStatus();
              this._updateValue();
              if (this.enabled) {
                this._cancelExistingSubscription();
                this.errors = this._runValidator();
                this.status = this._calculateStatus();
                if (this.status === VALID || this.status === PENDING) {
                  this._runAsyncValidator(opts.emitEvent);
                }
              }
              if (opts.emitEvent !== false) {
                this.valueChanges.emit(this.value);
                this.statusChanges.emit(this.status);
              }
              if (this._parent && !opts.onlySelf) {
                this._parent.updateValueAndValidity(opts);
              }
            }
            /** @internal */
            _updateTreeValidity(opts = {
              emitEvent: true
            }) {
              this._forEachChild(ctrl => ctrl._updateTreeValidity(opts));
              this.updateValueAndValidity({
                onlySelf: true,
                emitEvent: opts.emitEvent
              });
            }
            _setInitialStatus() {
              this.status = this._allControlsDisabled() ? DISABLED : VALID;
            }
            _runValidator() {
              return this.validator ? this.validator(this) : null;
            }
            _runAsyncValidator(emitEvent) {
              if (this.asyncValidator) {
                this.status = PENDING;
                this._hasOwnPendingAsyncValidator = true;
                const obs = toObservable(this.asyncValidator(this));
                this._asyncValidationSubscription = obs.subscribe(errors => {
                  this._hasOwnPendingAsyncValidator = false;
                  // This will trigger the recalculation of the validation status, which depends on
                  // the state of the asynchronous validation (whether it is in progress or not). So, it is
                  // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.
                  this.setErrors(errors, {
                    emitEvent
                  });
                });
              }
            }
            _cancelExistingSubscription() {
              if (this._asyncValidationSubscription) {
                this._asyncValidationSubscription.unsubscribe();
                this._hasOwnPendingAsyncValidator = false;
              }
            }
            /**
             * Sets errors on a form control when running validations manually, rather than automatically.
             *
             * Calling `setErrors` also updates the validity of the parent control.
             *
             * @param opts Configuration options that determine how the control propagates
             * changes and emits events after the control errors are set.
             * * `emitEvent`: When true or not supplied (the default), the `statusChanges`
             * observable emits an event after the errors are set.
             *
             * @usageNotes
             *
             * ### Manually set the errors for a control
             *
             * ```
             * const login = new FormControl('someLogin');
             * login.setErrors({
             *   notUnique: true
             * });
             *
             * expect(login.valid).toEqual(false);
             * expect(login.errors).toEqual({ notUnique: true });
             *
             * login.setValue('someOtherLogin');
             *
             * expect(login.valid).toEqual(true);
             * ```
             */
            setErrors(errors, opts = {}) {
              this.errors = errors;
              this._updateControlsErrors(opts.emitEvent !== false);
            }
            /**
             * Retrieves a child control given the control's name or path.
             *
             * @param path A dot-delimited string or array of string/number values that define the path to the
             * control. If a string is provided, passing it as a string literal will result in improved type
             * information. Likewise, if an array is provided, passing it `as const` will cause improved type
             * information to be available.
             *
             * @usageNotes
             * ### Retrieve a nested control
             *
             * For example, to get a `name` control nested within a `person` sub-group:
             *
             * * `this.form.get('person.name');`
             *
             * -OR-
             *
             * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings
             *
             * ### Retrieve a control in a FormArray
             *
             * When accessing an element inside a FormArray, you can use an element index.
             * For example, to get a `price` control from the first element in an `items` array you can use:
             *
             * * `this.form.get('items.0.price');`
             *
             * -OR-
             *
             * * `this.form.get(['items', 0, 'price']);`
             */
            get(path) {
              let currPath = path;
              if (currPath == null) return null;
              if (!Array.isArray(currPath)) currPath = currPath.split('.');
              if (currPath.length === 0) return null;
              return currPath.reduce((control, name) => control && control._find(name), this);
            }
            /**
             * @description
             * Reports error data for the control with the given path.
             *
             * @param errorCode The code of the error to check
             * @param path A list of control names that designates how to move from the current control
             * to the control that should be queried for errors.
             *
             * @usageNotes
             * For example, for the following `FormGroup`:
             *
             * ```
             * form = new FormGroup({
             *   address: new FormGroup({ street: new FormControl() })
             * });
             * ```
             *
             * The path to the 'street' control from the root form would be 'address' -> 'street'.
             *
             * It can be provided to this method in one of two formats:
             *
             * 1. An array of string control names, e.g. `['address', 'street']`
             * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
             *
             * @returns error data for that particular error. If the control or error is not present,
             * null is returned.
             */
            getError(errorCode, path) {
              const control = path ? this.get(path) : this;
              return control && control.errors ? control.errors[errorCode] : null;
            }
            /**
             * @description
             * Reports whether the control with the given path has the error specified.
             *
             * @param errorCode The code of the error to check
             * @param path A list of control names that designates how to move from the current control
             * to the control that should be queried for errors.
             *
             * @usageNotes
             * For example, for the following `FormGroup`:
             *
             * ```
             * form = new FormGroup({
             *   address: new FormGroup({ street: new FormControl() })
             * });
             * ```
             *
             * The path to the 'street' control from the root form would be 'address' -> 'street'.
             *
             * It can be provided to this method in one of two formats:
             *
             * 1. An array of string control names, e.g. `['address', 'street']`
             * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
             *
             * If no path is given, this method checks for the error on the current control.
             *
             * @returns whether the given error is present in the control at the given path.
             *
             * If the control is not present, false is returned.
             */
            hasError(errorCode, path) {
              return !!this.getError(errorCode, path);
            }
            /**
             * Retrieves the top-level ancestor of this control.
             */
            get root() {
              let x = this;
              while (x._parent) {
                x = x._parent;
              }
              return x;
            }
            /** @internal */
            _updateControlsErrors(emitEvent) {
              this.status = this._calculateStatus();
              if (emitEvent) {
                this.statusChanges.emit(this.status);
              }
              if (this._parent) {
                this._parent._updateControlsErrors(emitEvent);
              }
            }
            /** @internal */
            _initObservables() {
              this.valueChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this.statusChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
            }
            _calculateStatus() {
              if (this._allControlsDisabled()) return DISABLED;
              if (this.errors) return INVALID;
              if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;
              if (this._anyControlsHaveStatus(INVALID)) return INVALID;
              return VALID;
            }
            /** @internal */
            _anyControlsHaveStatus(status) {
              return this._anyControls(control => control.status === status);
            }
            /** @internal */
            _anyControlsDirty() {
              return this._anyControls(control => control.dirty);
            }
            /** @internal */
            _anyControlsTouched() {
              return this._anyControls(control => control.touched);
            }
            /** @internal */
            _updatePristine(opts = {}) {
              this.pristine = !this._anyControlsDirty();
              if (this._parent && !opts.onlySelf) {
                this._parent._updatePristine(opts);
              }
            }
            /** @internal */
            _updateTouched(opts = {}) {
              this.touched = this._anyControlsTouched();
              if (this._parent && !opts.onlySelf) {
                this._parent._updateTouched(opts);
              }
            }
            /** @internal */
            _registerOnCollectionChange(fn) {
              this._onCollectionChange = fn;
            }
            /** @internal */
            _setUpdateStrategy(opts) {
              if (isOptionsObj(opts) && opts.updateOn != null) {
                this._updateOn = opts.updateOn;
              }
            }
            /**
             * Check to see if parent has been marked artificially dirty.
             *
             * @internal
             */
            _parentMarkedDirty(onlySelf) {
              const parentDirty = this._parent && this._parent.dirty;
              return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();
            }
            /** @internal */
            _find(name) {
              return null;
            }
            /**
             * Internal implementation of the `setValidators` method. Needs to be separated out into a
             * different method, because it is called in the constructor and it can break cases where
             * a control is extended.
             */
            _assignValidators(validators) {
              this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;
              this._composedValidatorFn = coerceToValidator(this._rawValidators);
            }
            /**
             * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a
             * different method, because it is called in the constructor and it can break cases where
             * a control is extended.
             */
            _assignAsyncValidators(validators) {
              this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;
              this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);
            }
          }
          
          /**
           * Tracks the value and validity state of a group of `FormControl` instances.
           *
           * A `FormGroup` aggregates the values of each child `FormControl` into one object,
           * with each control name as the key.  It calculates its status by reducing the status values
           * of its children. For example, if one of the controls in a group is invalid, the entire
           * group becomes invalid.
           *
           * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,
           * along with `FormControl`, `FormArray`, and `FormRecord`.
           *
           * When instantiating a `FormGroup`, pass in a collection of child controls as the first
           * argument. The key for each child registers the name for the control.
           *
           * `FormGroup` is intended for use cases where the keys are known ahead of time.
           * If you need to dynamically add and remove controls, use {@link FormRecord} instead.
           *
           * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner
           * control types as values.
           *
           * @usageNotes
           *
           * ### Create a form group with 2 controls
           *
           * ```
           * const form = new FormGroup({
           *   first: new FormControl('Nancy', Validators.minLength(2)),
           *   last: new FormControl('Drew'),
           * });
           *
           * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}
           * console.log(form.status);  // 'VALID'
           * ```
           *
           * ### The type argument, and optional controls
           *
           * `FormGroup` accepts one generic argument, which is an object containing its inner controls.
           * This type will usually be inferred automatically, but you can always specify it explicitly if you
           * wish.
           *
           * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the
           * type):
           *
           * ```
           * const form = new FormGroup<{
           *   first: FormControl<string|null>,
           *   middle?: FormControl<string|null>, // Middle name is optional.
           *   last: FormControl<string|null>,
           * }>({
           *   first: new FormControl('Nancy'),
           *   last: new FormControl('Drew'),
           * });
           * ```
           *
           * ### Create a form group with a group-level validator
           *
           * You include group-level validators as the second arg, or group-level async
           * validators as the third arg. These come in handy when you want to perform validation
           * that considers the value of more than one child control.
           *
           * ```
           * const form = new FormGroup({
           *   password: new FormControl('', Validators.minLength(2)),
           *   passwordConfirm: new FormControl('', Validators.minLength(2)),
           * }, passwordMatchValidator);
           *
           *
           * function passwordMatchValidator(g: FormGroup) {
           *    return g.get('password').value === g.get('passwordConfirm').value
           *       ? null : {'mismatch': true};
           * }
           * ```
           *
           * Like `FormControl` instances, you choose to pass in
           * validators and async validators as part of an options object.
           *
           * ```
           * const form = new FormGroup({
           *   password: new FormControl('')
           *   passwordConfirm: new FormControl('')
           * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });
           * ```
           *
           * ### Set the updateOn property for all controls in a form group
           *
           * The options object is used to set a default value for each child
           * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
           * group level, all child controls default to 'blur', unless the child
           * has explicitly specified a different `updateOn` value.
           *
           * ```ts
           * const c = new FormGroup({
           *   one: new FormControl()
           * }, { updateOn: 'blur' });
           * ```
           *
           * ### Using a FormGroup with optional controls
           *
           * It is possible to have optional controls in a FormGroup. An optional control can be removed later
           * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be
           * declared optional in the group's type.
           *
           * ```ts
           * const c = new FormGroup<{one?: FormControl<string>}>({
           *   one: new FormControl('')
           * });
           * ```
           *
           * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`
           * without providing the optional key `one` will cause it to become `null`.
           *
           * @publicApi
           */
          class FormGroup extends AbstractControl {
            /**
             * Creates a new `FormGroup` instance.
             *
             * @param controls A collection of child controls. The key for each child is the name
             * under which it is registered.
             *
             * @param validatorOrOpts A synchronous validator function, or an array of
             * such functions, or an `AbstractControlOptions` object that contains validation functions
             * and a validation trigger.
             *
             * @param asyncValidator A single async validator or array of async validator functions
             *
             */
            constructor(controls, validatorOrOpts, asyncValidator) {
              super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
              this.controls = controls;
              this._initObservables();
              this._setUpdateStrategy(validatorOrOpts);
              this._setUpControls();
              this.updateValueAndValidity({
                onlySelf: true,
                // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
                // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,
                // so we set `emitEvent` to `true` to allow that during the control creation process.
                emitEvent: !!this.asyncValidator
              });
            }
            registerControl(name, control) {
              if (this.controls[name]) return this.controls[name];
              this.controls[name] = control;
              control.setParent(this);
              control._registerOnCollectionChange(this._onCollectionChange);
              return control;
            }
            addControl(name, control, options = {}) {
              this.registerControl(name, control);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
              this._onCollectionChange();
            }
            /**
             * Remove a control from this group. In a strongly-typed group, required controls cannot be
             * removed.
             *
             * This method also updates the value and validity of the control.
             *
             * @param name The control name to remove from the collection
             * @param options Specifies whether this FormGroup instance should emit events after a
             *     control is removed.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control is
             * removed. When false, no events are emitted.
             */
            removeControl(name, options = {}) {
              if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});
              delete this.controls[name];
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
              this._onCollectionChange();
            }
            setControl(name, control, options = {}) {
              if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});
              delete this.controls[name];
              if (control) this.registerControl(name, control);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
              this._onCollectionChange();
            }
            contains(controlName) {
              return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;
            }
            /**
             * Sets the value of the `FormGroup`. It accepts an object that matches
             * the structure of the group, with control names as keys.
             *
             * @usageNotes
             * ### Set the complete value for the form group
             *
             * ```
             * const form = new FormGroup({
             *   first: new FormControl(),
             *   last: new FormControl()
             * });
             *
             * console.log(form.value);   // {first: null, last: null}
             *
             * form.setValue({first: 'Nancy', last: 'Drew'});
             * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}
             * ```
             *
             * @throws When strict checks fail, such as setting the value of a control
             * that doesn't exist or if you exclude a value of a control that does exist.
             *
             * @param value The new value for the control that matches the structure of the group.
             * @param options Configuration options that determine how the control propagates changes
             * and emits events after the value changes.
             * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
             * updateValueAndValidity} method.
             *
             * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
             * false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control value is updated.
             * When false, no events are emitted.
             */
            setValue(value, options = {}) {
              assertAllValuesPresent(this, true, value);
              Object.keys(value).forEach(name => {
                assertControlPresent(this, true, name);
                this.controls[name].setValue(value[name], {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              });
              this.updateValueAndValidity(options);
            }
            /**
             * Patches the value of the `FormGroup`. It accepts an object with control
             * names as keys, and does its best to match the values to the correct controls
             * in the group.
             *
             * It accepts both super-sets and sub-sets of the group without throwing an error.
             *
             * @usageNotes
             * ### Patch the value for a form group
             *
             * ```
             * const form = new FormGroup({
             *    first: new FormControl(),
             *    last: new FormControl()
             * });
             * console.log(form.value);   // {first: null, last: null}
             *
             * form.patchValue({first: 'Nancy'});
             * console.log(form.value);   // {first: 'Nancy', last: null}
             * ```
             *
             * @param value The object that matches the structure of the group.
             * @param options Configuration options that determine how the control propagates changes and
             * emits events after the value is patched.
             * * `onlySelf`: When true, each change only affects this control and not its parent. Default is
             * true.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control value
             * is updated. When false, no events are emitted. The configuration options are passed to
             * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.
             */
            patchValue(value, options = {}) {
              // Even though the `value` argument type doesn't allow `null` and `undefined` values, the
              // `patchValue` can be called recursively and inner data structures might have these values, so
              // we just ignore such cases when a field containing FormGroup instance receives `null` or
              // `undefined` as a value.
              if (value == null /* both `null` and `undefined` */) return;
              Object.keys(value).forEach(name => {
                // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so
                // `as any` is required.
                const control = this.controls[name];
                if (control) {
                  control.patchValue( /* Guaranteed to be present, due to the outer forEach. */value[name], {
                    onlySelf: true,
                    emitEvent: options.emitEvent
                  });
                }
              });
              this.updateValueAndValidity(options);
            }
            /**
             * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets
             * the value of all descendants to their default values, or null if no defaults were provided.
             *
             * You reset to a specific form state by passing in a map of states
             * that matches the structure of your form, with control names as keys. The state
             * is a standalone value or a form state object with both a value and a disabled
             * status.
             *
             * @param value Resets the control with an initial value,
             * or an object that defines the initial value and disabled state.
             *
             * @param options Configuration options that determine how the control propagates changes
             * and emits events when the group is reset.
             * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
             * false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control is reset.
             * When false, no events are emitted.
             * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
             * updateValueAndValidity} method.
             *
             * @usageNotes
             *
             * ### Reset the form group values
             *
             * ```ts
             * const form = new FormGroup({
             *   first: new FormControl('first name'),
             *   last: new FormControl('last name')
             * });
             *
             * console.log(form.value);  // {first: 'first name', last: 'last name'}
             *
             * form.reset({ first: 'name', last: 'last name' });
             *
             * console.log(form.value);  // {first: 'name', last: 'last name'}
             * ```
             *
             * ### Reset the form group values and disabled status
             *
             * ```
             * const form = new FormGroup({
             *   first: new FormControl('first name'),
             *   last: new FormControl('last name')
             * });
             *
             * form.reset({
             *   first: {value: 'name', disabled: true},
             *   last: 'last'
             * });
             *
             * console.log(form.value);  // {last: 'last'}
             * console.log(form.get('first').status);  // 'DISABLED'
             * ```
             */
            reset(value = {}, options = {}) {
              this._forEachChild((control, name) => {
                control.reset(value ? value[name] : null, {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              });
              this._updatePristine(options);
              this._updateTouched(options);
              this.updateValueAndValidity(options);
            }
            /**
             * The aggregate value of the `FormGroup`, including any disabled controls.
             *
             * Retrieves all values regardless of disabled status.
             */
            getRawValue() {
              return this._reduceChildren({}, (acc, control, name) => {
                acc[name] = control.getRawValue();
                return acc;
              });
            }
            /** @internal */
            _syncPendingControls() {
              let subtreeUpdated = this._reduceChildren(false, (updated, child) => {
                return child._syncPendingControls() ? true : updated;
              });
              if (subtreeUpdated) this.updateValueAndValidity({
                onlySelf: true
              });
              return subtreeUpdated;
            }
            /** @internal */
            _forEachChild(cb) {
              Object.keys(this.controls).forEach(key => {
                // The list of controls can change (for ex. controls might be removed) while the loop
                // is running (as a result of invoking Forms API in `valueChanges` subscription), so we
                // have to null check before invoking the callback.
                const control = this.controls[key];
                control && cb(control, key);
              });
            }
            /** @internal */
            _setUpControls() {
              this._forEachChild(control => {
                control.setParent(this);
                control._registerOnCollectionChange(this._onCollectionChange);
              });
            }
            /** @internal */
            _updateValue() {
              this.value = this._reduceValue();
            }
            /** @internal */
            _anyControls(condition) {
              for (const [controlName, control] of Object.entries(this.controls)) {
                if (this.contains(controlName) && condition(control)) {
                  return true;
                }
              }
              return false;
            }
            /** @internal */
            _reduceValue() {
              let acc = {};
              return this._reduceChildren(acc, (acc, control, name) => {
                if (control.enabled || this.disabled) {
                  acc[name] = control.value;
                }
                return acc;
              });
            }
            /** @internal */
            _reduceChildren(initValue, fn) {
              let res = initValue;
              this._forEachChild((control, name) => {
                res = fn(res, control, name);
              });
              return res;
            }
            /** @internal */
            _allControlsDisabled() {
              for (const controlName of Object.keys(this.controls)) {
                if (this.controls[controlName].enabled) {
                  return false;
                }
              }
              return Object.keys(this.controls).length > 0 || this.disabled;
            }
            /** @internal */
            _find(name) {
              return this.controls.hasOwnProperty(name) ? this.controls[name] : null;
            }
          }
          const UntypedFormGroup = FormGroup;
          /**
           * @description
           * Asserts that the given control is an instance of `FormGroup`
           *
           * @publicApi
           */
          const isFormGroup = control => control instanceof FormGroup;
          /**
           * Tracks the value and validity state of a collection of `FormControl` instances, each of which has
           * the same value type.
           *
           * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,
           * with controls added and removed as needed.
           *
           * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.
           *
           * @usageNotes
           *
           * ```
           * let numbers = new FormRecord({bill: new FormControl('415-123-456')});
           * numbers.addControl('bob', new FormControl('415-234-567'));
           * numbers.removeControl('bill');
           * ```
           *
           * @publicApi
           */
          class FormRecord extends FormGroup {}
          /**
           * @description
           * Asserts that the given control is an instance of `FormRecord`
           *
           * @publicApi
           */
          const isFormRecord = control => control instanceof FormRecord;
          
          /**
           * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of
           * whether the control is disabled or enabled.
           *
           * @see {@link FormsModule#withconfig}
           */
          const CALL_SET_DISABLED_STATE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('CallSetDisabledState', {
            providedIn: 'root',
            factory: () => setDisabledStateDefault
          });
          /**
           * Whether to use the fixed setDisabledState behavior by default.
           */
          const setDisabledStateDefault = 'always';
          function controlPath(name, parent) {
            return [...parent.path, name];
          }
          /**
           * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both
           * instances. This function is typically invoked when form directive is being initialized.
           *
           * @param control Form control instance that should be linked.
           * @param dir Directive that should be linked with a given control.
           */
          function setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!control) _throwError(dir, 'Cannot find control with');
              if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);
            }
            setUpValidators(control, dir);
            dir.valueAccessor.writeValue(control.value);
            // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.
            // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and
            // the method is always called.
            if (control.disabled || callSetDisabledState === 'always') {
              dir.valueAccessor.setDisabledState?.(control.disabled);
            }
            setUpViewChangePipeline(control, dir);
            setUpModelChangePipeline(control, dir);
            setUpBlurPipeline(control, dir);
            setUpDisabledChangeHandler(control, dir);
          }
          /**
           * Reverts configuration performed by the `setUpControl` control function.
           * Effectively disconnects form control with a given form directive.
           * This function is typically invoked when corresponding form directive is being destroyed.
           *
           * @param control Form control which should be cleaned up.
           * @param dir Directive that should be disconnected from a given control.
           * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should
           *     contain asserts to verify that it's not called once directive is destroyed. We need this flag
           *     to avoid potentially breaking changes caused by better control cleanup introduced in #39235.
           */
          function cleanUpControl(control, dir, validateControlPresenceOnChange = true) {
            const noop = () => {
              if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                _noControlError(dir);
              }
            };
            // The `valueAccessor` field is typically defined on FromControl and FormControlName directive
            // instances and there is a logic in `selectValueAccessor` function that throws if it's not the
            // case. We still check the presence of `valueAccessor` before invoking its methods to make sure
            // that cleanup works correctly if app code or tests are setup to ignore the error thrown from
            // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.
            if (dir.valueAccessor) {
              dir.valueAccessor.registerOnChange(noop);
              dir.valueAccessor.registerOnTouched(noop);
            }
            cleanUpValidators(control, dir);
            if (control) {
              dir._invokeOnDestroyCallbacks();
              control._registerOnCollectionChange(() => {});
            }
          }
          function registerOnValidatorChange(validators, onChange) {
            validators.forEach(validator => {
              if (validator.registerOnValidatorChange) validator.registerOnValidatorChange(onChange);
            });
          }
          /**
           * Sets up disabled change handler function on a given form control if ControlValueAccessor
           * associated with a given directive instance supports the `setDisabledState` call.
           *
           * @param control Form control where disabled change handler should be setup.
           * @param dir Corresponding directive instance associated with this control.
           */
          function setUpDisabledChangeHandler(control, dir) {
            if (dir.valueAccessor.setDisabledState) {
              const onDisabledChange = isDisabled => {
                dir.valueAccessor.setDisabledState(isDisabled);
              };
              control.registerOnDisabledChange(onDisabledChange);
              // Register a callback function to cleanup disabled change handler
              // from a control instance when a directive is destroyed.
              dir._registerOnDestroy(() => {
                control._unregisterOnDisabledChange(onDisabledChange);
              });
            }
          }
          /**
           * Sets up sync and async directive validators on provided form control.
           * This function merges validators from the directive into the validators of the control.
           *
           * @param control Form control where directive validators should be setup.
           * @param dir Directive instance that contains validators to be setup.
           */
          function setUpValidators(control, dir) {
            const validators = getControlValidators(control);
            if (dir.validator !== null) {
              control.setValidators(mergeValidators(validators, dir.validator));
            } else if (typeof validators === 'function') {
              // If sync validators are represented by a single validator function, we force the
              // `Validators.compose` call to happen by executing the `setValidators` function with
              // an array that contains that function. We need this to avoid possible discrepancies in
              // validators behavior, so sync validators are always processed by the `Validators.compose`.
              // Note: we should consider moving this logic inside the `setValidators` function itself, so we
              // have consistent behavior on AbstractControl API level. The same applies to the async
              // validators logic below.
              control.setValidators([validators]);
            }
            const asyncValidators = getControlAsyncValidators(control);
            if (dir.asyncValidator !== null) {
              control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));
            } else if (typeof asyncValidators === 'function') {
              control.setAsyncValidators([asyncValidators]);
            }
            // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4
            const onValidatorChange = () => control.updateValueAndValidity();
            registerOnValidatorChange(dir._rawValidators, onValidatorChange);
            registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);
          }
          /**
           * Cleans up sync and async directive validators on provided form control.
           * This function reverts the setup performed by the `setUpValidators` function, i.e.
           * removes directive-specific validators from a given control instance.
           *
           * @param control Form control from where directive validators should be removed.
           * @param dir Directive instance that contains validators to be removed.
           * @returns true if a control was updated as a result of this action.
           */
          function cleanUpValidators(control, dir) {
            let isControlUpdated = false;
            if (control !== null) {
              if (dir.validator !== null) {
                const validators = getControlValidators(control);
                if (Array.isArray(validators) && validators.length > 0) {
                  // Filter out directive validator function.
                  const updatedValidators = validators.filter(validator => validator !== dir.validator);
                  if (updatedValidators.length !== validators.length) {
                    isControlUpdated = true;
                    control.setValidators(updatedValidators);
                  }
                }
              }
              if (dir.asyncValidator !== null) {
                const asyncValidators = getControlAsyncValidators(control);
                if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {
                  // Filter out directive async validator function.
                  const updatedAsyncValidators = asyncValidators.filter(asyncValidator => asyncValidator !== dir.asyncValidator);
                  if (updatedAsyncValidators.length !== asyncValidators.length) {
                    isControlUpdated = true;
                    control.setAsyncValidators(updatedAsyncValidators);
                  }
                }
              }
            }
            // Clear onValidatorChange callbacks by providing a noop function.
            const noop = () => {};
            registerOnValidatorChange(dir._rawValidators, noop);
            registerOnValidatorChange(dir._rawAsyncValidators, noop);
            return isControlUpdated;
          }
          function setUpViewChangePipeline(control, dir) {
            dir.valueAccessor.registerOnChange(newValue => {
              control._pendingValue = newValue;
              control._pendingChange = true;
              control._pendingDirty = true;
              if (control.updateOn === 'change') updateControl(control, dir);
            });
          }
          function setUpBlurPipeline(control, dir) {
            dir.valueAccessor.registerOnTouched(() => {
              control._pendingTouched = true;
              if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);
              if (control.updateOn !== 'submit') control.markAsTouched();
            });
          }
          function updateControl(control, dir) {
            if (control._pendingDirty) control.markAsDirty();
            control.setValue(control._pendingValue, {
              emitModelToViewChange: false
            });
            dir.viewToModelUpdate(control._pendingValue);
            control._pendingChange = false;
          }
          function setUpModelChangePipeline(control, dir) {
            const onChange = (newValue, emitModelEvent) => {
              // control -> view
              dir.valueAccessor.writeValue(newValue);
              // control -> ngModel
              if (emitModelEvent) dir.viewToModelUpdate(newValue);
            };
            control.registerOnChange(onChange);
            // Register a callback function to cleanup onChange handler
            // from a control instance when a directive is destroyed.
            dir._registerOnDestroy(() => {
              control._unregisterOnChange(onChange);
            });
          }
          /**
           * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators
           * present in the view.
           *
           * @param control FormGroup or FormArray instance that should be linked.
           * @param dir Directive that provides view validators.
           */
          function setUpFormContainer(control, dir) {
            if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'Cannot find control with');
            setUpValidators(control, dir);
          }
          /**
           * Reverts the setup performed by the `setUpFormContainer` function.
           *
           * @param control FormGroup or FormArray instance that should be cleaned up.
           * @param dir Directive that provided view validators.
           * @returns true if a control was updated as a result of this action.
           */
          function cleanUpFormContainer(control, dir) {
            return cleanUpValidators(control, dir);
          }
          function _noControlError(dir) {
            return _throwError(dir, 'There is no FormControl instance attached to form control element with');
          }
          function _throwError(dir, message) {
            const messageEnd = _describeControlLocation(dir);
            throw new Error(`${message} ${messageEnd}`);
          }
          function _describeControlLocation(dir) {
            const path = dir.path;
            if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;
            if (path?.[0]) return `name: '${path}'`;
            return 'unspecified name attribute';
          }
          function _throwMissingValueAccessorError(dir) {
            const loc = _describeControlLocation(dir);
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);
          }
          function _throwInvalidValueAccessorError(dir) {
            const loc = _describeControlLocation(dir);
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` + `Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`);
          }
          function isPropertyUpdated(changes, viewModel) {
            if (!changes.hasOwnProperty('model')) return false;
            const change = changes['model'];
            if (change.isFirstChange()) return true;
            return !Object.is(viewModel, change.currentValue);
          }
          function isBuiltInAccessor(valueAccessor) {
            // Check if a given value accessor is an instance of a class that directly extends
            // `BuiltInControlValueAccessor` one.
            return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;
          }
          function syncPendingControls(form, directives) {
            form._syncPendingControls();
            directives.forEach(dir => {
              const control = dir.control;
              if (control.updateOn === 'submit' && control._pendingChange) {
                dir.viewToModelUpdate(control._pendingValue);
                control._pendingChange = false;
              }
            });
          }
          // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented
          function selectValueAccessor(dir, valueAccessors) {
            if (!valueAccessors) return null;
            if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwInvalidValueAccessorError(dir);
            let defaultAccessor = undefined;
            let builtinAccessor = undefined;
            let customAccessor = undefined;
            valueAccessors.forEach(v => {
              if (v.constructor === DefaultValueAccessor) {
                defaultAccessor = v;
              } else if (isBuiltInAccessor(v)) {
                if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one built-in value accessor matches form control with');
                builtinAccessor = v;
              } else {
                if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one custom value accessor matches form control with');
                customAccessor = v;
              }
            });
            if (customAccessor) return customAccessor;
            if (builtinAccessor) return builtinAccessor;
            if (defaultAccessor) return defaultAccessor;
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              _throwError(dir, 'No valid value accessor for form control with');
            }
            return null;
          }
          function removeListItem$1(list, el) {
            const index = list.indexOf(el);
            if (index > -1) list.splice(index, 1);
          }
          // TODO(kara): remove after deprecation period
          function _ngModelWarning(name, type, instance, warningConfig) {
            if (warningConfig === 'never') return;
            if ((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce || warningConfig === 'always' && !instance._ngModelWarningSent) {
              console.warn(ngModelWarning(name));
              type._ngModelWarningSentOnce = true;
              instance._ngModelWarningSent = true;
            }
          }
          const formDirectiveProvider$1 = {
            provide: ControlContainer,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgForm)
          };
          const resolvedPromise$1 = (() => Promise.resolve())();
          /**
           * @description
           * Creates a top-level `FormGroup` instance and binds it to a form
           * to track aggregate form value and validation status.
           *
           * As soon as you import the `FormsModule`, this directive becomes active by default on
           * all `<form>` tags.  You don't need to add a special selector.
           *
           * You optionally export the directive into a local template variable using `ngForm` as the key
           * (ex: `#myForm="ngForm"`). This is optional, but useful.  Many properties from the underlying
           * `FormGroup` instance are duplicated on the directive itself, so a reference to it
           * gives you access to the aggregate value and validity status of the form, as well as
           * user interaction properties like `dirty` and `touched`.
           *
           * To register child controls with the form, use `NgModel` with a `name`
           * attribute. You may use `NgModelGroup` to create sub-groups within the form.
           *
           * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has
           * triggered a form submission. The `ngSubmit` event emits the original form
           * submission event.
           *
           * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.
           * To import the `FormsModule` but skip its usage in some forms,
           * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`
           * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is
           * unnecessary because the `<form>` tags are inert. In that case, you would
           * refrain from using the `formGroup` directive.
           *
           * @usageNotes
           *
           * ### Listening for form submission
           *
           * The following example shows how to capture the form values from the "ngSubmit" event.
           *
           * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
           *
           * ### Setting the update options
           *
           * The following example shows you how to change the "updateOn" option from its default using
           * ngFormOptions.
           *
           * ```html
           * <form [ngFormOptions]="{updateOn: 'blur'}">
           *    <input name="one" ngModel>  <!-- this ngModel will update on blur -->
           * </form>
           * ```
           *
           * ### Native DOM validation UI
           *
           * In order to prevent the native DOM form validation UI from interfering with Angular's form
           * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever
           * `FormModule` or `ReactiveFormModule` are imported into the application.
           * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the
           * `ngNativeValidate` attribute to the `<form>` element:
           *
           * ```html
           * <form ngNativeValidate>
           *   ...
           * </form>
           * ```
           *
           * @ngModule FormsModule
           * @publicApi
           */
          class NgForm extends ControlContainer {
            constructor(validators, asyncValidators, callSetDisabledState) {
              super();
              this.callSetDisabledState = callSetDisabledState;
              /**
               * @description
               * Returns whether the form submission has been triggered.
               */
              this.submitted = false;
              this._directives = new Set();
              /**
               * @description
               * Event emitter for the "ngSubmit" event
               */
              this.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
            }
            /** @nodoc */
            ngAfterViewInit() {
              this._setUpdateStrategy();
            }
            /**
             * @description
             * The directive instance.
             */
            get formDirective() {
              return this;
            }
            /**
             * @description
             * The internal `FormGroup` instance.
             */
            get control() {
              return this.form;
            }
            /**
             * @description
             * Returns an array representing the path to this group. Because this directive
             * always lives at the top level of a form, it is always an empty array.
             */
            get path() {
              return [];
            }
            /**
             * @description
             * Returns a map of the controls in this group.
             */
            get controls() {
              return this.form.controls;
            }
            /**
             * @description
             * Method that sets up the control directive in this group, re-calculates its value
             * and validity, and adds the instance to the internal list of directives.
             *
             * @param dir The `NgModel` directive instance.
             */
            addControl(dir) {
              resolvedPromise$1.then(() => {
                const container = this._findContainer(dir.path);
                dir.control = container.registerControl(dir.name, dir.control);
                setUpControl(dir.control, dir, this.callSetDisabledState);
                dir.control.updateValueAndValidity({
                  emitEvent: false
                });
                this._directives.add(dir);
              });
            }
            /**
             * @description
             * Retrieves the `FormControl` instance from the provided `NgModel` directive.
             *
             * @param dir The `NgModel` directive instance.
             */
            getControl(dir) {
              return this.form.get(dir.path);
            }
            /**
             * @description
             * Removes the `NgModel` instance from the internal list of directives
             *
             * @param dir The `NgModel` directive instance.
             */
            removeControl(dir) {
              resolvedPromise$1.then(() => {
                const container = this._findContainer(dir.path);
                if (container) {
                  container.removeControl(dir.name);
                }
                this._directives.delete(dir);
              });
            }
            /**
             * @description
             * Adds a new `NgModelGroup` directive instance to the form.
             *
             * @param dir The `NgModelGroup` directive instance.
             */
            addFormGroup(dir) {
              resolvedPromise$1.then(() => {
                const container = this._findContainer(dir.path);
                const group = new FormGroup({});
                setUpFormContainer(group, dir);
                container.registerControl(dir.name, group);
                group.updateValueAndValidity({
                  emitEvent: false
                });
              });
            }
            /**
             * @description
             * Removes the `NgModelGroup` directive instance from the form.
             *
             * @param dir The `NgModelGroup` directive instance.
             */
            removeFormGroup(dir) {
              resolvedPromise$1.then(() => {
                const container = this._findContainer(dir.path);
                if (container) {
                  container.removeControl(dir.name);
                }
              });
            }
            /**
             * @description
             * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance
             *
             * @param dir The `NgModelGroup` directive instance.
             */
            getFormGroup(dir) {
              return this.form.get(dir.path);
            }
            /**
             * Sets the new value for the provided `NgControl` directive.
             *
             * @param dir The `NgControl` directive instance.
             * @param value The new value for the directive's control.
             */
            updateModel(dir, value) {
              resolvedPromise$1.then(() => {
                const ctrl = this.form.get(dir.path);
                ctrl.setValue(value);
              });
            }
            /**
             * @description
             * Sets the value for this `FormGroup`.
             *
             * @param value The new value
             */
            setValue(value) {
              this.control.setValue(value);
            }
            /**
             * @description
             * Method called when the "submit" event is triggered on the form.
             * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
             *
             * @param $event The "submit" event object
             */
            onSubmit($event) {
              this.submitted = true;
              syncPendingControls(this.form, this._directives);
              this.ngSubmit.emit($event);
              // Forms with `method="dialog"` have some special behavior
              // that won't reload the page and that shouldn't be prevented.
              return $event?.target?.method === 'dialog';
            }
            /**
             * @description
             * Method called when the "reset" event is triggered on the form.
             */
            onReset() {
              this.resetForm();
            }
            /**
             * @description
             * Resets the form to an initial value and resets its submitted status.
             *
             * @param value The new value for the form.
             */
            resetForm(value = undefined) {
              this.form.reset(value);
              this.submitted = false;
            }
            _setUpdateStrategy() {
              if (this.options && this.options.updateOn != null) {
                this.form._updateOn = this.options.updateOn;
              }
            }
            _findContainer(path) {
              path.pop();
              return path.length ? this.form.get(path) : this.form;
            }
            static {
              this.ɵfac = function NgForm_Factory(t) {
                return new (t || NgForm)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CALL_SET_DISABLED_STATE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgForm,
                selectors: [["form", 3, "ngNoForm", "", 3, "formGroup", ""], ["ng-form"], ["", "ngForm", ""]],
                hostBindings: function NgForm_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function NgForm_submit_HostBindingHandler($event) {
                      return ctx.onSubmit($event);
                    })("reset", function NgForm_reset_HostBindingHandler() {
                      return ctx.onReset();
                    });
                  }
                },
                inputs: {
                  options: ["ngFormOptions", "options"]
                },
                outputs: {
                  ngSubmit: "ngSubmit"
                },
                exportAs: ["ngForm"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForm, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
                providers: [formDirectiveProvider$1],
                host: {
                  '(submit)': 'onSubmit($event)',
                  '(reset)': 'onReset()'
                },
                outputs: ['ngSubmit'],
                exportAs: 'ngForm'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [CALL_SET_DISABLED_STATE]
                }]
              }];
            }, {
              options: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngFormOptions']
              }]
            });
          })();
          function removeListItem(list, el) {
            const index = list.indexOf(el);
            if (index > -1) list.splice(index, 1);
          }
          function isFormControlState(formState) {
            return typeof formState === 'object' && formState !== null && Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;
          }
          const FormControl = class FormControl extends AbstractControl {
            constructor(
            // formState and defaultValue will only be null if T is nullable
            formState = null, validatorOrOpts, asyncValidator) {
              super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
              /** @publicApi */
              this.defaultValue = null;
              /** @internal */
              this._onChange = [];
              /** @internal */
              this._pendingChange = false;
              this._applyFormState(formState);
              this._setUpdateStrategy(validatorOrOpts);
              this._initObservables();
              this.updateValueAndValidity({
                onlySelf: true,
                // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
                // `VALID` or `INVALID`.
                // The status should be broadcasted via the `statusChanges` observable, so we set
                // `emitEvent` to `true` to allow that during the control creation process.
                emitEvent: !!this.asyncValidator
              });
              if (isOptionsObj(validatorOrOpts) && (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {
                if (isFormControlState(formState)) {
                  this.defaultValue = formState.value;
                } else {
                  this.defaultValue = formState;
                }
              }
            }
            setValue(value, options = {}) {
              this.value = this._pendingValue = value;
              if (this._onChange.length && options.emitModelToViewChange !== false) {
                this._onChange.forEach(changeFn => changeFn(this.value, options.emitViewToModelChange !== false));
              }
              this.updateValueAndValidity(options);
            }
            patchValue(value, options = {}) {
              this.setValue(value, options);
            }
            reset(formState = this.defaultValue, options = {}) {
              this._applyFormState(formState);
              this.markAsPristine(options);
              this.markAsUntouched(options);
              this.setValue(this.value, options);
              this._pendingChange = false;
            }
            /**  @internal */
            _updateValue() {}
            /**  @internal */
            _anyControls(condition) {
              return false;
            }
            /**  @internal */
            _allControlsDisabled() {
              return this.disabled;
            }
            registerOnChange(fn) {
              this._onChange.push(fn);
            }
            /** @internal */
            _unregisterOnChange(fn) {
              removeListItem(this._onChange, fn);
            }
            registerOnDisabledChange(fn) {
              this._onDisabledChange.push(fn);
            }
            /** @internal */
            _unregisterOnDisabledChange(fn) {
              removeListItem(this._onDisabledChange, fn);
            }
            /** @internal */
            _forEachChild(cb) {}
            /** @internal */
            _syncPendingControls() {
              if (this.updateOn === 'submit') {
                if (this._pendingDirty) this.markAsDirty();
                if (this._pendingTouched) this.markAsTouched();
                if (this._pendingChange) {
                  this.setValue(this._pendingValue, {
                    onlySelf: true,
                    emitModelToViewChange: false
                  });
                  return true;
                }
              }
              return false;
            }
            _applyFormState(formState) {
              if (isFormControlState(formState)) {
                this.value = this._pendingValue = formState.value;
                formState.disabled ? this.disable({
                  onlySelf: true,
                  emitEvent: false
                }) : this.enable({
                  onlySelf: true,
                  emitEvent: false
                });
              } else {
                this.value = this._pendingValue = formState;
              }
            }
          };
          const UntypedFormControl = FormControl;
          /**
           * @description
           * Asserts that the given control is an instance of `FormControl`
           *
           * @publicApi
           */
          const isFormControl = control => control instanceof FormControl;
          
          /**
           * @description
           * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.
           *
           * @publicApi
           */
          class AbstractFormGroupDirective extends ControlContainer {
            /** @nodoc */
            ngOnInit() {
              this._checkParentType();
              // Register the group with its parent group.
              this.formDirective.addFormGroup(this);
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this.formDirective) {
                // Remove the group from its parent group.
                this.formDirective.removeFormGroup(this);
              }
            }
            /**
             * @description
             * The `FormGroup` bound to this directive.
             */
            get control() {
              return this.formDirective.getFormGroup(this);
            }
            /**
             * @description
             * The path to this group from the top-level directive.
             */
            get path() {
              return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
            }
            /**
             * @description
             * The top-level directive for this group if present, otherwise null.
             */
            get formDirective() {
              return this._parent ? this._parent.formDirective : null;
            }
            /** @internal */
            _checkParentType() {}
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵAbstractFormGroupDirective_BaseFactory;
                return function AbstractFormGroupDirective_Factory(t) {
                  return (ɵAbstractFormGroupDirective_BaseFactory || (ɵAbstractFormGroupDirective_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](AbstractFormGroupDirective)))(t || AbstractFormGroupDirective);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: AbstractFormGroupDirective,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AbstractFormGroupDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], null, null);
          })();
          function modelParentException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `
              ngModel cannot be used to register form controls with a parent formGroup directive.  Try using
              formGroup's partner directive "formControlName" instead.  Example:
          
              ${formControlNameExample}
          
              Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:
          
              Example:
          
              ${ngModelWithFormGroupExample}`);
          }
          function formGroupNameException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `
              ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
          
              Option 1: Use formControlName instead of ngModel (reactive strategy):
          
              ${formGroupNameExample}
          
              Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):
          
              ${ngModelGroupExample}`);
          }
          function missingNameException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form
              control must be defined as 'standalone' in ngModelOptions.
          
              Example 1: <input [(ngModel)]="person.firstName" name="first">
              Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">`);
          }
          function modelGroupParentException() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `
              ngModelGroup cannot be used with a parent formGroup directive.
          
              Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
          
              ${formGroupNameExample}
          
              Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):
          
              ${ngModelGroupExample}`);
          }
          const modelGroupProvider = {
            provide: ControlContainer,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgModelGroup)
          };
          /**
           * @description
           * Creates and binds a `FormGroup` instance to a DOM element.
           *
           * This directive can only be used as a child of `NgForm` (within `<form>` tags).
           *
           * Use this directive to validate a sub-group of your form separately from the
           * rest of your form, or if some values in your domain model make more sense
           * to consume together in a nested object.
           *
           * Provide a name for the sub-group and it will become the key
           * for the sub-group in the form's full value. If you need direct access, export the directive into
           * a local template variable using `ngModelGroup` (ex: `#myGroup="ngModelGroup"`).
           *
           * @usageNotes
           *
           * ### Consuming controls in a grouping
           *
           * The following example shows you how to combine controls together in a sub-group
           * of the form.
           *
           * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}
           *
           * @ngModule FormsModule
           * @publicApi
           */
          class NgModelGroup extends AbstractFormGroupDirective {
            constructor(parent, validators, asyncValidators) {
              super();
              /**
               * @description
               * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds
               * to a key in the parent `NgForm`.
               */
              this.name = '';
              this._parent = parent;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
            }
            /** @internal */
            _checkParentType() {
              if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw modelGroupParentException();
              }
            }
            static {
              this.ɵfac = function NgModelGroup_Factory(t) {
                return new (t || NgModelGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 5), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgModelGroup,
                selectors: [["", "ngModelGroup", ""]],
                inputs: {
                  name: ["ngModelGroup", "name"]
                },
                exportAs: ["ngModelGroup"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([modelGroupProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModelGroup, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngModelGroup]',
                providers: [modelGroupProvider],
                exportAs: 'ngModelGroup'
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngModelGroup']
              }]
            });
          })();
          const formControlBinding$1 = {
            provide: NgControl,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NgModel)
          };
          /**
           * `ngModel` forces an additional change detection run when its inputs change:
           * E.g.:
           * ```
           * <div>{{myModel.valid}}</div>
           * <input [(ngModel)]="myValue" #myModel="ngModel">
           * ```
           * I.e. `ngModel` can export itself on the element and then be used in the template.
           * Normally, this would result in expressions before the `input` that use the exported directive
           * to have an old value as they have been
           * dirty checked before. As this is a very common case for `ngModel`, we added this second change
           * detection run.
           *
           * Notes:
           * - this is just one extra run no matter how many `ngModel`s have been changed.
           * - this is a general problem when using `exportAs` for directives!
           */
          const resolvedPromise = (() => Promise.resolve())();
          /**
           * @description
           * Creates a `FormControl` instance from a [domain
           * model](https://en.wikipedia.org/wiki/Domain_model) and binds it to a form control element.
           *
           * The `FormControl` instance tracks the value, user interaction, and
           * validation status of the control and keeps the view synced with the model. If used
           * within a parent form, the directive also registers itself with the form as a child
           * control.
           *
           * This directive is used by itself or as part of a larger form. Use the
           * `ngModel` selector to activate it.
           *
           * It accepts a domain model as an optional `Input`. If you have a one-way binding
           * to `ngModel` with `[]` syntax, changing the domain model's value in the component
           * class sets the value in the view. If you have a two-way binding with `[()]` syntax
           * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to
           * the domain model in your class.
           *
           * To inspect the properties of the associated `FormControl` (like the validity state),
           * export the directive into a local template variable using `ngModel` as the key (ex:
           * `#myVar="ngModel"`). You can then access the control using the directive's `control` property.
           * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control
           * for direct access. See a full list of properties directly available in
           * `AbstractControlDirective`.
           *
           * @see {@link RadioControlValueAccessor}
           * @see {@link SelectControlValueAccessor}
           *
           * @usageNotes
           *
           * ### Using ngModel on a standalone control
           *
           * The following examples show a simple standalone control using `ngModel`:
           *
           * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}
           *
           * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute
           * so that the control can be registered with the parent form under that name.
           *
           * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,
           * as the parent form syncs the value for you. You access its properties by exporting it into a
           * local template variable using `ngForm` such as (`#f="ngForm"`). Use the variable where
           * needed on form submission.
           *
           * If you do need to populate initial values into your form, using a one-way binding for
           * `ngModel` tends to be sufficient as long as you use the exported form's value rather
           * than the domain model's value on submit.
           *
           * ### Using ngModel within a form
           *
           * The following example shows controls using `ngModel` within a form:
           *
           * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
           *
           * ### Using a standalone ngModel within a group
           *
           * The following example shows you how to use a standalone ngModel control
           * within a form. This controls the display of the form, but doesn't contain form data.
           *
           * ```html
           * <form>
           *   <input name="login" ngModel placeholder="Login">
           *   <input type="checkbox" ngModel [ngModelOptions]="{standalone: true}"> Show more options?
           * </form>
           * <!-- form value: {login: ''} -->
           * ```
           *
           * ### Setting the ngModel `name` attribute through options
           *
           * The following example shows you an alternate way to set the name attribute. Here,
           * an attribute identified as name is used within a custom form control component. To still be able
           * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.
           *
           * ```html
           * <form>
           *   <my-custom-form-control name="Nancy" ngModel [ngModelOptions]="{name: 'user'}">
           *   </my-custom-form-control>
           * </form>
           * <!-- form value: {user: ''} -->
           * ```
           *
           * @ngModule FormsModule
           * @publicApi
           */
          class NgModel extends NgControl {
            constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {
              super();
              this._changeDetectorRef = _changeDetectorRef;
              this.callSetDisabledState = callSetDisabledState;
              this.control = new FormControl();
              /** @internal */
              this._registered = false;
              /**
               * @description
               * Tracks the name bound to the directive. If a parent form exists, it
               * uses this name as a key to retrieve this control's value.
               */
              this.name = '';
              /**
               * @description
               * Event emitter for producing the `ngModelChange` event after
               * the view model updates.
               */
              this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this._parent = parent;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
              this.valueAccessor = selectValueAccessor(this, valueAccessors);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              this._checkForErrors();
              if (!this._registered || 'name' in changes) {
                if (this._registered) {
                  this._checkName();
                  if (this.formDirective) {
                    // We can't call `formDirective.removeControl(this)`, because the `name` has already been
                    // changed. We also can't reset the name temporarily since the logic in `removeControl`
                    // is inside a promise and it won't run immediately. We work around it by giving it an
                    // object with the same shape instead.
                    const oldName = changes['name'].previousValue;
                    this.formDirective.removeControl({
                      name: oldName,
                      path: this._getPath(oldName)
                    });
                  }
                }
                this._setUpControl();
              }
              if ('isDisabled' in changes) {
                this._updateDisabled(changes);
              }
              if (isPropertyUpdated(changes, this.viewModel)) {
                this._updateValue(this.model);
                this.viewModel = this.model;
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              this.formDirective && this.formDirective.removeControl(this);
            }
            /**
             * @description
             * Returns an array that represents the path from the top-level form to this control.
             * Each index is the string name of the control on that level.
             */
            get path() {
              return this._getPath(this.name);
            }
            /**
             * @description
             * The top-level directive for this control if present, otherwise null.
             */
            get formDirective() {
              return this._parent ? this._parent.formDirective : null;
            }
            /**
             * @description
             * Sets the new value for the view model and emits an `ngModelChange` event.
             *
             * @param newValue The new value emitted by `ngModelChange`.
             */
            viewToModelUpdate(newValue) {
              this.viewModel = newValue;
              this.update.emit(newValue);
            }
            _setUpControl() {
              this._setUpdateStrategy();
              this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);
              this._registered = true;
            }
            _setUpdateStrategy() {
              if (this.options && this.options.updateOn != null) {
                this.control._updateOn = this.options.updateOn;
              }
            }
            _isStandalone() {
              return !this._parent || !!(this.options && this.options.standalone);
            }
            _setUpStandalone() {
              setUpControl(this.control, this, this.callSetDisabledState);
              this.control.updateValueAndValidity({
                emitEvent: false
              });
            }
            _checkForErrors() {
              if (!this._isStandalone()) {
                this._checkParentType();
              }
              this._checkName();
            }
            _checkParentType() {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (!(this._parent instanceof NgModelGroup) && this._parent instanceof AbstractFormGroupDirective) {
                  throw formGroupNameException();
                } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {
                  throw modelParentException();
                }
              }
            }
            _checkName() {
              if (this.options && this.options.name) this.name = this.options.name;
              if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw missingNameException();
              }
            }
            _updateValue(value) {
              resolvedPromise.then(() => {
                this.control.setValue(value, {
                  emitViewToModelChange: false
                });
                this._changeDetectorRef?.markForCheck();
              });
            }
            _updateDisabled(changes) {
              const disabledValue = changes['isDisabled'].currentValue;
              // checking for 0 to avoid breaking change
              const isDisabled = disabledValue !== 0 && (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute)(disabledValue);
              resolvedPromise.then(() => {
                if (isDisabled && !this.control.disabled) {
                  this.control.disable();
                } else if (!isDisabled && this.control.disabled) {
                  this.control.enable();
                }
                this._changeDetectorRef?.markForCheck();
              });
            }
            _getPath(controlName) {
              return this._parent ? controlPath(controlName, this._parent) : [controlName];
            }
            static {
              this.ɵfac = function NgModel_Factory(t) {
                return new (t || NgModel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 9), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CALL_SET_DISABLED_STATE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgModel,
                selectors: [["", "ngModel", "", 3, "formControlName", "", 3, "formControl", ""]],
                inputs: {
                  name: "name",
                  isDisabled: ["disabled", "isDisabled"],
                  model: ["ngModel", "model"],
                  options: ["ngModelOptions", "options"]
                },
                outputs: {
                  update: "ngModelChange"
                },
                exportAs: ["ngModel"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModel, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[ngModel]:not([formControlName]):not([formControl])',
                providers: [formControlBinding$1],
                exportAs: 'ngModel'
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALUE_ACCESSOR]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [CALL_SET_DISABLED_STATE]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              isDisabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['disabled']
              }],
              model: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngModel']
              }],
              options: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngModelOptions']
              }],
              update: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['ngModelChange']
              }]
            });
          })();
          
          /**
           * @description
           *
           * Adds `novalidate` attribute to all forms by default.
           *
           * `novalidate` is used to disable browser's native form validation.
           *
           * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:
           *
           * ```
           * <form ngNativeValidate></form>
           * ```
           *
           * @publicApi
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           */
          class ɵNgNoValidate {
            static {
              this.ɵfac = function ɵNgNoValidate_Factory(t) {
                return new (t || ɵNgNoValidate)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: ɵNgNoValidate,
                selectors: [["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""]],
                hostAttrs: ["novalidate", ""]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgNoValidate, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
                host: {
                  'novalidate': ''
                }
              }]
            }], null, null);
          })();
          const NUMBER_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => NumberValueAccessor),
            multi: true
          };
          /**
           * @description
           * The `ControlValueAccessor` for writing a number value and listening to number input changes.
           * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`
           * directives.
           *
           * @usageNotes
           *
           * ### Using a number input with a reactive form.
           *
           * The following example shows how to use a number input with a reactive form.
           *
           * ```ts
           * const totalCountControl = new FormControl();
           * ```
           *
           * ```
           * <input type="number" [formControl]="totalCountControl">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class NumberValueAccessor extends BuiltInControlValueAccessor {
            /**
             * Sets the "value" property on the input element.
             * @nodoc
             */
            writeValue(value) {
              // The value needs to be normalized for IE9, otherwise it is set to 'null' when null
              const normalizedValue = value == null ? '' : value;
              this.setProperty('value', normalizedValue);
            }
            /**
             * Registers a function called when the control value changes.
             * @nodoc
             */
            registerOnChange(fn) {
              this.onChange = value => {
                fn(value == '' ? null : parseFloat(value));
              };
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵNumberValueAccessor_BaseFactory;
                return function NumberValueAccessor_Factory(t) {
                  return (ɵNumberValueAccessor_BaseFactory || (ɵNumberValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NumberValueAccessor)))(t || NumberValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NumberValueAccessor,
                selectors: [["input", "type", "number", "formControlName", ""], ["input", "type", "number", "formControl", ""], ["input", "type", "number", "ngModel", ""]],
                hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NumberValueAccessor_input_HostBindingHandler($event) {
                      return ctx.onChange($event.target.value);
                    })("blur", function NumberValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NUMBER_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NumberValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
                host: {
                  '(input)': 'onChange($event.target.value)',
                  '(blur)': 'onTouched()'
                },
                providers: [NUMBER_VALUE_ACCESSOR]
              }]
            }], null, null);
          })();
          const RADIO_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => RadioControlValueAccessor),
            multi: true
          };
          function throwNameError() {
            throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `
                If you define both a name and a formControlName attribute on your radio button, their values
                must match. Ex: <input type="radio" formControlName="food" name="food">
              `);
          }
          /**
           * Internal-only NgModule that works as a host for the `RadioControlRegistry` tree-shakable
           * provider. Note: the `InternalFormsSharedModule` can not be used here directly, since it's
           * declared *after* the `RadioControlRegistry` class and the `providedIn` doesn't support
           * `forwardRef` logic.
           */
          class RadioControlRegistryModule {
            static {
              this.ɵfac = function RadioControlRegistryModule_Factory(t) {
                return new (t || RadioControlRegistryModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: RadioControlRegistryModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlRegistryModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule
            }], null, null);
          })();
          /**
           * @description
           * Class used by Angular to track radio buttons. For internal use only.
           */
          class RadioControlRegistry {
            constructor() {
              this._accessors = [];
            }
            /**
             * @description
             * Adds a control to the internal registry. For internal use only.
             */
            add(control, accessor) {
              this._accessors.push([control, accessor]);
            }
            /**
             * @description
             * Removes a control from the internal registry. For internal use only.
             */
            remove(accessor) {
              for (let i = this._accessors.length - 1; i >= 0; --i) {
                if (this._accessors[i][1] === accessor) {
                  this._accessors.splice(i, 1);
                  return;
                }
              }
            }
            /**
             * @description
             * Selects a radio button. For internal use only.
             */
            select(accessor) {
              this._accessors.forEach(c => {
                if (this._isSameGroup(c, accessor) && c[1] !== accessor) {
                  c[1].fireUncheck(accessor.value);
                }
              });
            }
            _isSameGroup(controlPair, accessor) {
              if (!controlPair[0].control) return false;
              return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;
            }
            static {
              this.ɵfac = function RadioControlRegistry_Factory(t) {
                return new (t || RadioControlRegistry)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: RadioControlRegistry,
                factory: RadioControlRegistry.ɵfac,
                providedIn: RadioControlRegistryModule
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlRegistry, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: RadioControlRegistryModule
              }]
            }], null, null);
          })();
          /**
           * @description
           * The `ControlValueAccessor` for writing radio control values and listening to radio control
           * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
           * `NgModel` directives.
           *
           * @usageNotes
           *
           * ### Using radio buttons with reactive form directives
           *
           * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in
           * a reactive form, radio buttons in the same group should have the same `formControlName`.
           * Providing a `name` attribute is optional.
           *
           * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class RadioControlValueAccessor extends BuiltInControlValueAccessor {
            constructor(renderer, elementRef, _registry, _injector) {
              super(renderer, elementRef);
              this._registry = _registry;
              this._injector = _injector;
              this.setDisabledStateFired = false;
              /**
               * The registered callback function called when a change event occurs on the input element.
               * Note: we declare `onChange` here (also used as host listener) as a function with no arguments
               * to override the `onChange` function (which expects 1 argument) in the parent
               * `BaseControlValueAccessor` class.
               * @nodoc
               */
              this.onChange = () => {};
              this.callSetDisabledState = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(CALL_SET_DISABLED_STATE, {
                optional: true
              }) ?? setDisabledStateDefault;
            }
            /** @nodoc */
            ngOnInit() {
              this._control = this._injector.get(NgControl);
              this._checkName();
              this._registry.add(this._control, this);
            }
            /** @nodoc */
            ngOnDestroy() {
              this._registry.remove(this);
            }
            /**
             * Sets the "checked" property value on the radio input element.
             * @nodoc
             */
            writeValue(value) {
              this._state = value === this.value;
              this.setProperty('checked', this._state);
            }
            /**
             * Registers a function called when the control value changes.
             * @nodoc
             */
            registerOnChange(fn) {
              this._fn = fn;
              this.onChange = () => {
                fn(this.value);
                this._registry.select(this);
              };
            }
            /** @nodoc */
            setDisabledState(isDisabled) {
              /**
               * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,
               * including upon control creation. However, a longstanding bug caused the method to not fire
               * when an *enabled* control was attached. This bug was fixed in v15 in #47576.
               *
               * This had a side effect: previously, it was possible to instantiate a reactive form control
               * with `[attr.disabled]=true`, even though the corresponding control was enabled in the
               * model. This resulted in a mismatch between the model and the DOM. Now, because
               * `setDisabledState` is always called, the value in the DOM will be immediately overwritten
               * with the "correct" enabled value.
               *
               * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms
               * models the entire group of radio buttons as a single `FormControl`, there is no way to
               * control the disabled state for individual radios, so they can no longer be configured as
               * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`
               * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`
               * is `false`, and we are not in legacy mode.
               */
              if (this.setDisabledStateFired || isDisabled || this.callSetDisabledState === 'whenDisabledForLegacyCode') {
                this.setProperty('disabled', isDisabled);
              }
              this.setDisabledStateFired = true;
            }
            /**
             * Sets the "value" on the radio input element and unchecks it.
             *
             * @param value
             */
            fireUncheck(value) {
              this.writeValue(value);
            }
            _checkName() {
              if (this.name && this.formControlName && this.name !== this.formControlName && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throwNameError();
              }
              if (!this.name && this.formControlName) this.name = this.formControlName;
            }
            static {
              this.ɵfac = function RadioControlValueAccessor_Factory(t) {
                return new (t || RadioControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](RadioControlRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: RadioControlValueAccessor,
                selectors: [["input", "type", "radio", "formControlName", ""], ["input", "type", "radio", "formControl", ""], ["input", "type", "radio", "ngModel", ""]],
                hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RadioControlValueAccessor_change_HostBindingHandler() {
                      return ctx.onChange();
                    })("blur", function RadioControlValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                inputs: {
                  name: "name",
                  formControlName: "formControlName",
                  value: "value"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RADIO_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
                host: {
                  '(change)': 'onChange()',
                  '(blur)': 'onTouched()'
                },
                providers: [RADIO_VALUE_ACCESSOR]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: RadioControlRegistry
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injector
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              formControlName: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              value: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          const RANGE_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => RangeValueAccessor),
            multi: true
          };
          /**
           * @description
           * The `ControlValueAccessor` for writing a range value and listening to range input changes.
           * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`
           * directives.
           *
           * @usageNotes
           *
           * ### Using a range input with a reactive form
           *
           * The following example shows how to use a range input with a reactive form.
           *
           * ```ts
           * const ageControl = new FormControl();
           * ```
           *
           * ```
           * <input type="range" [formControl]="ageControl">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class RangeValueAccessor extends BuiltInControlValueAccessor {
            /**
             * Sets the "value" property on the input element.
             * @nodoc
             */
            writeValue(value) {
              this.setProperty('value', parseFloat(value));
            }
            /**
             * Registers a function called when the control value changes.
             * @nodoc
             */
            registerOnChange(fn) {
              this.onChange = value => {
                fn(value == '' ? null : parseFloat(value));
              };
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵRangeValueAccessor_BaseFactory;
                return function RangeValueAccessor_Factory(t) {
                  return (ɵRangeValueAccessor_BaseFactory || (ɵRangeValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](RangeValueAccessor)))(t || RangeValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: RangeValueAccessor,
                selectors: [["input", "type", "range", "formControlName", ""], ["input", "type", "range", "formControl", ""], ["input", "type", "range", "ngModel", ""]],
                hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RangeValueAccessor_change_HostBindingHandler($event) {
                      return ctx.onChange($event.target.value);
                    })("input", function RangeValueAccessor_input_HostBindingHandler($event) {
                      return ctx.onChange($event.target.value);
                    })("blur", function RangeValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RANGE_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RangeValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
                host: {
                  '(change)': 'onChange($event.target.value)',
                  '(input)': 'onChange($event.target.value)',
                  '(blur)': 'onTouched()'
                },
                providers: [RANGE_VALUE_ACCESSOR]
              }]
            }], null, null);
          })();
          
          /**
           * Token to provide to turn off the ngModel warning on formControl and formControlName.
           */
          const NG_MODEL_WITH_FORM_CONTROL_WARNING = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('NgModelWithFormControlWarning');
          const formControlBinding = {
            provide: NgControl,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => FormControlDirective)
          };
          /**
           * @description
           * Synchronizes a standalone `FormControl` instance to a form control element.
           *
           * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive
           * form directives was deprecated in Angular v6 and is scheduled for removal in
           * a future version of Angular.
           * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           * @see {@link FormControl}
           * @see {@link AbstractControl}
           *
           * @usageNotes
           *
           * The following example shows how to register a standalone control and set its value.
           *
           * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}
           *
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class FormControlDirective extends NgControl {
            /**
             * @description
             * Triggers a warning in dev mode that this input should not be used with reactive forms.
             */
            set isDisabled(isDisabled) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                console.warn(disabledAttrWarning);
              }
            }
            /**
             * @description
             * Static property used to track whether any ngModel warnings have been sent across
             * all instances of FormControlDirective. Used to support warning config of "once".
             *
             * @internal
             */
            static {
              this._ngModelWarningSentOnce = false;
            }
            constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {
              super();
              this._ngModelWarningConfig = _ngModelWarningConfig;
              this.callSetDisabledState = callSetDisabledState;
              /** @deprecated as of v6 */
              this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /**
               * @description
               * Instance property used to track whether an ngModel warning has been sent out for this
               * particular `FormControlDirective` instance. Used to support warning config of "always".
               *
               * @internal
               */
              this._ngModelWarningSent = false;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
              this.valueAccessor = selectValueAccessor(this, valueAccessors);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (this._isControlChanged(changes)) {
                const previousForm = changes['form'].previousValue;
                if (previousForm) {
                  cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */false);
                }
                setUpControl(this.form, this, this.callSetDisabledState);
                this.form.updateValueAndValidity({
                  emitEvent: false
                });
              }
              if (isPropertyUpdated(changes, this.viewModel)) {
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);
                }
                this.form.setValue(this.model);
                this.viewModel = this.model;
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this.form) {
                cleanUpControl(this.form, this, /* validateControlPresenceOnChange */false);
              }
            }
            /**
             * @description
             * Returns an array that represents the path from the top-level form to this control.
             * Each index is the string name of the control on that level.
             */
            get path() {
              return [];
            }
            /**
             * @description
             * The `FormControl` bound to this directive.
             */
            get control() {
              return this.form;
            }
            /**
             * @description
             * Sets the new value for the view model and emits an `ngModelChange` event.
             *
             * @param newValue The new value for the view model.
             */
            viewToModelUpdate(newValue) {
              this.viewModel = newValue;
              this.update.emit(newValue);
            }
            _isControlChanged(changes) {
              return changes.hasOwnProperty('form');
            }
            static {
              this.ɵfac = function FormControlDirective_Factory(t) {
                return new (t || FormControlDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CALL_SET_DISABLED_STATE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: FormControlDirective,
                selectors: [["", "formControl", ""]],
                inputs: {
                  form: ["formControl", "form"],
                  isDisabled: ["disabled", "isDisabled"],
                  model: ["ngModel", "model"]
                },
                outputs: {
                  update: "ngModelChange"
                },
                exportAs: ["ngForm"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formControl]',
                providers: [formControlBinding],
                exportAs: 'ngForm'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALUE_ACCESSOR]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [CALL_SET_DISABLED_STATE]
                }]
              }];
            }, {
              form: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['formControl']
              }],
              isDisabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['disabled']
              }],
              model: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngModel']
              }],
              update: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['ngModelChange']
              }]
            });
          })();
          const formDirectiveProvider = {
            provide: ControlContainer,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => FormGroupDirective)
          };
          /**
           * @description
           *
           * Binds an existing `FormGroup` or `FormRecord` to a DOM element.
           *
           * This directive accepts an existing `FormGroup` instance. It will then use this
           * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,
           * and `FormArray` instances to child `FormControlName`, `FormGroupName`,
           * and `FormArrayName` directives.
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           * @see {@link AbstractControl}
           *
           * @usageNotes
           * ### Register Form Group
           *
           * The following example registers a `FormGroup` with first name and last name controls,
           * and listens for the *ngSubmit* event when the button is clicked.
           *
           * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
           *
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class FormGroupDirective extends ControlContainer {
            constructor(validators, asyncValidators, callSetDisabledState) {
              super();
              this.callSetDisabledState = callSetDisabledState;
              /**
               * @description
               * Reports whether the form submission has been triggered.
               */
              this.submitted = false;
              /**
               * Callback that should be invoked when controls in FormGroup or FormArray collection change
               * (added or removed). This callback triggers corresponding DOM updates.
               */
              this._onCollectionChange = () => this._updateDomValue();
              /**
               * @description
               * Tracks the list of added `FormControlName` instances
               */
              this.directives = [];
              /**
               * @description
               * Tracks the `FormGroup` bound to this directive.
               */
              this.form = null;
              /**
               * @description
               * Emits an event when the form submission has been triggered.
               */
              this.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              this._checkFormPresent();
              if (changes.hasOwnProperty('form')) {
                this._updateValidators();
                this._updateDomValue();
                this._updateRegistrations();
                this._oldForm = this.form;
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this.form) {
                cleanUpValidators(this.form, this);
                // Currently the `onCollectionChange` callback is rewritten each time the
                // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should
                // happen *only* when the `onCollectionChange` callback was set by this directive instance.
                // Otherwise it might cause overriding a callback of some other directive instances. We should
                // consider updating this logic later to make it similar to how `onChange` callbacks are
                // handled, see https://github.com/angular/angular/issues/39732 for additional info.
                if (this.form._onCollectionChange === this._onCollectionChange) {
                  this.form._registerOnCollectionChange(() => {});
                }
              }
            }
            /**
             * @description
             * Returns this directive's instance.
             */
            get formDirective() {
              return this;
            }
            /**
             * @description
             * Returns the `FormGroup` bound to this directive.
             */
            get control() {
              return this.form;
            }
            /**
             * @description
             * Returns an array representing the path to this group. Because this directive
             * always lives at the top level of a form, it always an empty array.
             */
            get path() {
              return [];
            }
            /**
             * @description
             * Method that sets up the control directive in this group, re-calculates its value
             * and validity, and adds the instance to the internal list of directives.
             *
             * @param dir The `FormControlName` directive instance.
             */
            addControl(dir) {
              const ctrl = this.form.get(dir.path);
              setUpControl(ctrl, dir, this.callSetDisabledState);
              ctrl.updateValueAndValidity({
                emitEvent: false
              });
              this.directives.push(dir);
              return ctrl;
            }
            /**
             * @description
             * Retrieves the `FormControl` instance from the provided `FormControlName` directive
             *
             * @param dir The `FormControlName` directive instance.
             */
            getControl(dir) {
              return this.form.get(dir.path);
            }
            /**
             * @description
             * Removes the `FormControlName` instance from the internal list of directives
             *
             * @param dir The `FormControlName` directive instance.
             */
            removeControl(dir) {
              cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */false);
              removeListItem$1(this.directives, dir);
            }
            /**
             * Adds a new `FormGroupName` directive instance to the form.
             *
             * @param dir The `FormGroupName` directive instance.
             */
            addFormGroup(dir) {
              this._setUpFormContainer(dir);
            }
            /**
             * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the
             * view.
             *
             * @param dir The `FormGroupName` directive instance.
             */
            removeFormGroup(dir) {
              this._cleanUpFormContainer(dir);
            }
            /**
             * @description
             * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance
             *
             * @param dir The `FormGroupName` directive instance.
             */
            getFormGroup(dir) {
              return this.form.get(dir.path);
            }
            /**
             * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.
             *
             * @param dir The `FormArrayName` directive instance.
             */
            addFormArray(dir) {
              this._setUpFormContainer(dir);
            }
            /**
             * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the
             * view.
             *
             * @param dir The `FormArrayName` directive instance.
             */
            removeFormArray(dir) {
              this._cleanUpFormContainer(dir);
            }
            /**
             * @description
             * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.
             *
             * @param dir The `FormArrayName` directive instance.
             */
            getFormArray(dir) {
              return this.form.get(dir.path);
            }
            /**
             * Sets the new value for the provided `FormControlName` directive.
             *
             * @param dir The `FormControlName` directive instance.
             * @param value The new value for the directive's control.
             */
            updateModel(dir, value) {
              const ctrl = this.form.get(dir.path);
              ctrl.setValue(value);
            }
            /**
             * @description
             * Method called with the "submit" event is triggered on the form.
             * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
             *
             * @param $event The "submit" event object
             */
            onSubmit($event) {
              this.submitted = true;
              syncPendingControls(this.form, this.directives);
              this.ngSubmit.emit($event);
              // Forms with `method="dialog"` have some special behavior that won't reload the page and that
              // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because
              // some internal apps call this method directly with the wrong arguments.
              return $event?.target?.method === 'dialog';
            }
            /**
             * @description
             * Method called when the "reset" event is triggered on the form.
             */
            onReset() {
              this.resetForm();
            }
            /**
             * @description
             * Resets the form to an initial value and resets its submitted status.
             *
             * @param value The new value for the form.
             */
            resetForm(value = undefined) {
              this.form.reset(value);
              this.submitted = false;
            }
            /** @internal */
            _updateDomValue() {
              this.directives.forEach(dir => {
                const oldCtrl = dir.control;
                const newCtrl = this.form.get(dir.path);
                if (oldCtrl !== newCtrl) {
                  // Note: the value of the `dir.control` may not be defined, for example when it's a first
                  // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).
                  cleanUpControl(oldCtrl || null, dir);
                  // Check whether new control at the same location inside the corresponding `FormGroup` is an
                  // instance of `FormControl` and perform control setup only if that's the case.
                  // Note: we don't need to clear the list of directives (`this.directives`) here, it would be
                  // taken care of in the `removeControl` method invoked when corresponding `formControlName`
                  // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).
                  if (isFormControl(newCtrl)) {
                    setUpControl(newCtrl, dir, this.callSetDisabledState);
                    dir.control = newCtrl;
                  }
                }
              });
              this.form._updateTreeValidity({
                emitEvent: false
              });
            }
            _setUpFormContainer(dir) {
              const ctrl = this.form.get(dir.path);
              setUpFormContainer(ctrl, dir);
              // NOTE: this operation looks unnecessary in case no new validators were added in
              // `setUpFormContainer` call. Consider updating this code to match the logic in
              // `_cleanUpFormContainer` function.
              ctrl.updateValueAndValidity({
                emitEvent: false
              });
            }
            _cleanUpFormContainer(dir) {
              if (this.form) {
                const ctrl = this.form.get(dir.path);
                if (ctrl) {
                  const isControlUpdated = cleanUpFormContainer(ctrl, dir);
                  if (isControlUpdated) {
                    // Run validity check only in case a control was updated (i.e. view validators were
                    // removed) as removing view validators might cause validity to change.
                    ctrl.updateValueAndValidity({
                      emitEvent: false
                    });
                  }
                }
              }
            }
            _updateRegistrations() {
              this.form._registerOnCollectionChange(this._onCollectionChange);
              if (this._oldForm) {
                this._oldForm._registerOnCollectionChange(() => {});
              }
            }
            _updateValidators() {
              setUpValidators(this.form, this);
              if (this._oldForm) {
                cleanUpValidators(this._oldForm, this);
              }
            }
            _checkFormPresent() {
              if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw missingFormException();
              }
            }
            static {
              this.ɵfac = function FormGroupDirective_Factory(t) {
                return new (t || FormGroupDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CALL_SET_DISABLED_STATE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: FormGroupDirective,
                selectors: [["", "formGroup", ""]],
                hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function FormGroupDirective_submit_HostBindingHandler($event) {
                      return ctx.onSubmit($event);
                    })("reset", function FormGroupDirective_reset_HostBindingHandler() {
                      return ctx.onReset();
                    });
                  }
                },
                inputs: {
                  form: ["formGroup", "form"]
                },
                outputs: {
                  ngSubmit: "ngSubmit"
                },
                exportAs: ["ngForm"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formGroup]',
                providers: [formDirectiveProvider],
                host: {
                  '(submit)': 'onSubmit($event)',
                  '(reset)': 'onReset()'
                },
                exportAs: 'ngForm'
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [CALL_SET_DISABLED_STATE]
                }]
              }];
            }, {
              form: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['formGroup']
              }],
              ngSubmit: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }]
            });
          })();
          const formGroupNameProvider = {
            provide: ControlContainer,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => FormGroupName)
          };
          /**
           * @description
           *
           * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.
           *
           * This directive can only be used with a parent `FormGroupDirective`.
           *
           * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and
           * looks for a `FormGroup` or `FormRecord` registered with that name in the parent
           * `FormGroup` instance you passed into `FormGroupDirective`.
           *
           * Use nested form groups to validate a sub-group of a
           * form separately from the rest or to group the values of certain
           * controls into their own nested object.
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           *
           * @usageNotes
           *
           * ### Access the group by name
           *
           * The following example uses the `AbstractControl.get` method to access the
           * associated `FormGroup`
           *
           * ```ts
           *   this.form.get('name');
           * ```
           *
           * ### Access individual controls in the group
           *
           * The following example uses the `AbstractControl.get` method to access
           * individual controls within the group using dot syntax.
           *
           * ```ts
           *   this.form.get('name.first');
           * ```
           *
           * ### Register a nested `FormGroup`.
           *
           * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,
           * and provides methods to retrieve the nested `FormGroup` and individual controls.
           *
           * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}
           *
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class FormGroupName extends AbstractFormGroupDirective {
            constructor(parent, validators, asyncValidators) {
              super();
              /**
               * @description
               * Tracks the name of the `FormGroup` bound to the directive. The name corresponds
               * to a key in the parent `FormGroup` or `FormArray`.
               * Accepts a name as a string or a number.
               * The name in the form of a string is useful for individual forms,
               * while the numerical form allows for form groups to be bound
               * to indices when iterating over groups in a `FormArray`.
               */
              this.name = null;
              this._parent = parent;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
            }
            /** @internal */
            _checkParentType() {
              if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw groupParentException();
              }
            }
            static {
              this.ɵfac = function FormGroupName_Factory(t) {
                return new (t || FormGroupName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: FormGroupName,
                selectors: [["", "formGroupName", ""]],
                inputs: {
                  name: ["formGroupName", "name"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formGroupNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupName, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formGroupName]',
                providers: [formGroupNameProvider]
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['formGroupName']
              }]
            });
          })();
          const formArrayNameProvider = {
            provide: ControlContainer,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => FormArrayName)
          };
          /**
           * @description
           *
           * Syncs a nested `FormArray` to a DOM element.
           *
           * This directive is designed to be used with a parent `FormGroupDirective` (selector:
           * `[formGroup]`).
           *
           * It accepts the string name of the nested `FormArray` you want to link, and
           * will look for a `FormArray` registered with that name in the parent
           * `FormGroup` instance you passed into `FormGroupDirective`.
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           * @see {@link AbstractControl}
           *
           * @usageNotes
           *
           * ### Example
           *
           * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}
           *
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class FormArrayName extends ControlContainer {
            constructor(parent, validators, asyncValidators) {
              super();
              /**
               * @description
               * Tracks the name of the `FormArray` bound to the directive. The name corresponds
               * to a key in the parent `FormGroup` or `FormArray`.
               * Accepts a name as a string or a number.
               * The name in the form of a string is useful for individual forms,
               * while the numerical form allows for form arrays to be bound
               * to indices when iterating over arrays in a `FormArray`.
               */
              this.name = null;
              this._parent = parent;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
            }
            /**
             * A lifecycle method called when the directive's inputs are initialized. For internal use only.
             * @throws If the directive does not have a valid parent.
             * @nodoc
             */
            ngOnInit() {
              this._checkParentType();
              this.formDirective.addFormArray(this);
            }
            /**
             * A lifecycle method called before the directive's instance is destroyed. For internal use only.
             * @nodoc
             */
            ngOnDestroy() {
              if (this.formDirective) {
                this.formDirective.removeFormArray(this);
              }
            }
            /**
             * @description
             * The `FormArray` bound to this directive.
             */
            get control() {
              return this.formDirective.getFormArray(this);
            }
            /**
             * @description
             * The top-level directive for this group if present, otherwise null.
             */
            get formDirective() {
              return this._parent ? this._parent.formDirective : null;
            }
            /**
             * @description
             * Returns an array that represents the path from the top-level form to this control.
             * Each index is the string name of the control on that level.
             */
            get path() {
              return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
            }
            _checkParentType() {
              if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw arrayParentException();
              }
            }
            static {
              this.ɵfac = function FormArrayName_Factory(t) {
                return new (t || FormArrayName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: FormArrayName,
                selectors: [["", "formArrayName", ""]],
                inputs: {
                  name: ["formArrayName", "name"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formArrayNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormArrayName, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formArrayName]',
                providers: [formArrayNameProvider]
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['formArrayName']
              }]
            });
          })();
          function _hasInvalidParent(parent) {
            return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);
          }
          const controlNameBinding = {
            provide: NgControl,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => FormControlName)
          };
          /**
           * @description
           * Syncs a `FormControl` in an existing `FormGroup` to a form control
           * element by name.
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           * @see {@link FormControl}
           * @see {@link AbstractControl}
           *
           * @usageNotes
           *
           * ### Register `FormControl` within a group
           *
           * The following example shows how to register multiple form controls within a form group
           * and set their value.
           *
           * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
           *
           * To see `formControlName` examples with different form control types, see:
           *
           * * Radio buttons: `RadioControlValueAccessor`
           * * Selects: `SelectControlValueAccessor`
           *
           * ### Use with ngModel is deprecated
           *
           * Support for using the `ngModel` input property and `ngModelChange` event with reactive
           * form directives has been deprecated in Angular v6 and is scheduled for removal in
           * a future version of Angular.
           *
           * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
           *
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class FormControlName extends NgControl {
            /**
             * @description
             * Triggers a warning in dev mode that this input should not be used with reactive forms.
             */
            set isDisabled(isDisabled) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                console.warn(disabledAttrWarning);
              }
            }
            /**
             * @description
             * Static property used to track whether any ngModel warnings have been sent across
             * all instances of FormControlName. Used to support warning config of "once".
             *
             * @internal
             */
            static {
              this._ngModelWarningSentOnce = false;
            }
            constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
              super();
              this._ngModelWarningConfig = _ngModelWarningConfig;
              this._added = false;
              /**
               * @description
               * Tracks the name of the `FormControl` bound to the directive. The name corresponds
               * to a key in the parent `FormGroup` or `FormArray`.
               * Accepts a name as a string or a number.
               * The name in the form of a string is useful for individual forms,
               * while the numerical form allows for form controls to be bound
               * to indices when iterating over controls in a `FormArray`.
               */
              this.name = null;
              /** @deprecated as of v6 */
              this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /**
               * @description
               * Instance property used to track whether an ngModel warning has been sent out for this
               * particular FormControlName instance. Used to support warning config of "always".
               *
               * @internal
               */
              this._ngModelWarningSent = false;
              this._parent = parent;
              this._setValidators(validators);
              this._setAsyncValidators(asyncValidators);
              this.valueAccessor = selectValueAccessor(this, valueAccessors);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (!this._added) this._setUpControl();
              if (isPropertyUpdated(changes, this.viewModel)) {
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);
                }
                this.viewModel = this.model;
                this.formDirective.updateModel(this, this.model);
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this.formDirective) {
                this.formDirective.removeControl(this);
              }
            }
            /**
             * @description
             * Sets the new value for the view model and emits an `ngModelChange` event.
             *
             * @param newValue The new value for the view model.
             */
            viewToModelUpdate(newValue) {
              this.viewModel = newValue;
              this.update.emit(newValue);
            }
            /**
             * @description
             * Returns an array that represents the path from the top-level form to this control.
             * Each index is the string name of the control on that level.
             */
            get path() {
              return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
            }
            /**
             * @description
             * The top-level directive for this group if present, otherwise null.
             */
            get formDirective() {
              return this._parent ? this._parent.formDirective : null;
            }
            _checkParentType() {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (!(this._parent instanceof FormGroupName) && this._parent instanceof AbstractFormGroupDirective) {
                  throw ngModelGroupException();
                } else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) && !(this._parent instanceof FormArrayName)) {
                  throw controlParentException();
                }
              }
            }
            _setUpControl() {
              this._checkParentType();
              this.control = this.formDirective.addControl(this);
              this._added = true;
            }
            static {
              this.ɵfac = function FormControlName_Factory(t) {
                return new (t || FormControlName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: FormControlName,
                selectors: [["", "formControlName", ""]],
                inputs: {
                  name: ["formControlName", "name"],
                  isDisabled: ["disabled", "isDisabled"],
                  model: ["ngModel", "model"]
                },
                outputs: {
                  update: "ngModelChange"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([controlNameBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlName, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[formControlName]',
                providers: [controlNameBinding]
              }]
            }], function () {
              return [{
                type: ControlContainer,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_ASYNC_VALIDATORS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_VALUE_ACCESSOR]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
                }]
              }];
            }, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['formControlName']
              }],
              isDisabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['disabled']
              }],
              model: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngModel']
              }],
              update: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['ngModelChange']
              }]
            });
          })();
          const SELECT_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => SelectControlValueAccessor),
            multi: true
          };
          function _buildValueString$1(id, value) {
            if (id == null) return `${value}`;
            if (value && typeof value === 'object') value = 'Object';
            return `${id}: ${value}`.slice(0, 50);
          }
          function _extractId$1(valueString) {
            return valueString.split(':')[0];
          }
          /**
           * @description
           * The `ControlValueAccessor` for writing select control values and listening to select control
           * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
           * `NgModel` directives.
           *
           * @usageNotes
           *
           * ### Using select controls in a reactive form
           *
           * The following examples show how to use a select control in a reactive form.
           *
           * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}
           *
           * ### Using select controls in a template-driven form
           *
           * To use a select in a template-driven form, simply add an `ngModel` and a `name`
           * attribute to the main `<select>` tag.
           *
           * {@example forms/ts/selectControl/select_control_example.ts region='Component'}
           *
           * ### Customizing option selection
           *
           * Angular uses object identity to select option. It's possible for the identities of items
           * to change while the data does not. This can happen, for example, if the items are produced
           * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the
           * second response will produce objects with different identities.
           *
           * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
           * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.
           * If `compareWith` is given, Angular selects option by the return value of the function.
           *
           * ```ts
           * const selectedCountriesControl = new FormControl();
           * ```
           *
           * ```
           * <select [compareWith]="compareFn"  [formControl]="selectedCountriesControl">
           *     <option *ngFor="let country of countries" [ngValue]="country">
           *         {{country.name}}
           *     </option>
           * </select>
           *
           * compareFn(c1: Country, c2: Country): boolean {
           *     return c1 && c2 ? c1.id === c2.id : c1 === c2;
           * }
           * ```
           *
           * **Note:** We listen to the 'change' event because 'input' events aren't fired
           * for selects in IE, see:
           * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class SelectControlValueAccessor extends BuiltInControlValueAccessor {
            constructor() {
              super(...arguments);
              /** @internal */
              this._optionMap = new Map();
              /** @internal */
              this._idCounter = 0;
              this._compareWith = Object.is;
            }
            /**
             * @description
             * Tracks the option comparison algorithm for tracking identities when
             * checking for changes.
             */
            set compareWith(fn) {
              if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
              }
              this._compareWith = fn;
            }
            /**
             * Sets the "value" property on the select element.
             * @nodoc
             */
            writeValue(value) {
              this.value = value;
              const id = this._getOptionId(value);
              const valueString = _buildValueString$1(id, value);
              this.setProperty('value', valueString);
            }
            /**
             * Registers a function called when the control value changes.
             * @nodoc
             */
            registerOnChange(fn) {
              this.onChange = valueString => {
                this.value = this._getOptionValue(valueString);
                fn(this.value);
              };
            }
            /** @internal */
            _registerOption() {
              return (this._idCounter++).toString();
            }
            /** @internal */
            _getOptionId(value) {
              for (const id of this._optionMap.keys()) {
                if (this._compareWith(this._optionMap.get(id), value)) return id;
              }
              return null;
            }
            /** @internal */
            _getOptionValue(valueString) {
              const id = _extractId$1(valueString);
              return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵSelectControlValueAccessor_BaseFactory;
                return function SelectControlValueAccessor_Factory(t) {
                  return (ɵSelectControlValueAccessor_BaseFactory || (ɵSelectControlValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](SelectControlValueAccessor)))(t || SelectControlValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: SelectControlValueAccessor,
                selectors: [["select", "formControlName", "", 3, "multiple", ""], ["select", "formControl", "", 3, "multiple", ""], ["select", "ngModel", "", 3, "multiple", ""]],
                hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectControlValueAccessor_change_HostBindingHandler($event) {
                      return ctx.onChange($event.target.value);
                    })("blur", function SelectControlValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                inputs: {
                  compareWith: "compareWith"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
                host: {
                  '(change)': 'onChange($event.target.value)',
                  '(blur)': 'onTouched()'
                },
                providers: [SELECT_VALUE_ACCESSOR]
              }]
            }], null, {
              compareWith: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Marks `<option>` as dynamic, so Angular can be notified when options change.
           *
           * @see {@link SelectControlValueAccessor}
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class NgSelectOption {
            constructor(_element, _renderer, _select) {
              this._element = _element;
              this._renderer = _renderer;
              this._select = _select;
              if (this._select) this.id = this._select._registerOption();
            }
            /**
             * @description
             * Tracks the value bound to the option element. Unlike the value binding,
             * ngValue supports binding to objects.
             */
            set ngValue(value) {
              if (this._select == null) return;
              this._select._optionMap.set(this.id, value);
              this._setElementValue(_buildValueString$1(this.id, value));
              this._select.writeValue(this._select.value);
            }
            /**
             * @description
             * Tracks simple string values bound to the option element.
             * For objects, use the `ngValue` input binding.
             */
            set value(value) {
              this._setElementValue(value);
              if (this._select) this._select.writeValue(this._select.value);
            }
            /** @internal */
            _setElementValue(value) {
              this._renderer.setProperty(this._element.nativeElement, 'value', value);
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this._select) {
                this._select._optionMap.delete(this.id);
                this._select.writeValue(this._select.value);
              }
            }
            static {
              this.ɵfac = function NgSelectOption_Factory(t) {
                return new (t || NgSelectOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectControlValueAccessor, 9));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: NgSelectOption,
                selectors: [["option"]],
                inputs: {
                  ngValue: "ngValue",
                  value: "value"
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectOption, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'option'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }, {
                type: SelectControlValueAccessor,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }];
            }, {
              ngValue: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngValue']
              }],
              value: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['value']
              }]
            });
          })();
          const SELECT_MULTIPLE_VALUE_ACCESSOR = {
            provide: NG_VALUE_ACCESSOR,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => SelectMultipleControlValueAccessor),
            multi: true
          };
          function _buildValueString(id, value) {
            if (id == null) return `${value}`;
            if (typeof value === 'string') value = `'${value}'`;
            if (value && typeof value === 'object') value = 'Object';
            return `${id}: ${value}`.slice(0, 50);
          }
          function _extractId(valueString) {
            return valueString.split(':')[0];
          }
          /** Mock interface for HTMLCollection */
          class HTMLCollection {}
          /**
           * @description
           * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
           * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
           * `NgModel` directives.
           *
           * @see {@link SelectControlValueAccessor}
           *
           * @usageNotes
           *
           * ### Using a multi-select control
           *
           * The follow example shows you how to use a multi-select control with a reactive form.
           *
           * ```ts
           * const countryControl = new FormControl();
           * ```
           *
           * ```
           * <select multiple name="countries" [formControl]="countryControl">
           *   <option *ngFor="let country of countries" [ngValue]="country">
           *     {{ country.name }}
           *   </option>
           * </select>
           * ```
           *
           * ### Customizing option selection
           *
           * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
           * See the `SelectControlValueAccessor` for usage.
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
            constructor() {
              super(...arguments);
              /** @internal */
              this._optionMap = new Map();
              /** @internal */
              this._idCounter = 0;
              this._compareWith = Object.is;
            }
            /**
             * @description
             * Tracks the option comparison algorithm for tracking identities when
             * checking for changes.
             */
            set compareWith(fn) {
              if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵRuntimeError"](1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
              }
              this._compareWith = fn;
            }
            /**
             * Sets the "value" property on one or of more of the select's options.
             * @nodoc
             */
            writeValue(value) {
              this.value = value;
              let optionSelectedStateSetter;
              if (Array.isArray(value)) {
                // convert values to ids
                const ids = value.map(v => this._getOptionId(v));
                optionSelectedStateSetter = (opt, o) => {
                  opt._setSelected(ids.indexOf(o.toString()) > -1);
                };
              } else {
                optionSelectedStateSetter = (opt, o) => {
                  opt._setSelected(false);
                };
              }
              this._optionMap.forEach(optionSelectedStateSetter);
            }
            /**
             * Registers a function called when the control value changes
             * and writes an array of the selected options.
             * @nodoc
             */
            registerOnChange(fn) {
              this.onChange = element => {
                const selected = [];
                const selectedOptions = element.selectedOptions;
                if (selectedOptions !== undefined) {
                  const options = selectedOptions;
                  for (let i = 0; i < options.length; i++) {
                    const opt = options[i];
                    const val = this._getOptionValue(opt.value);
                    selected.push(val);
                  }
                }
                // Degrade to use `options` when `selectedOptions` property is not available.
                // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib
                // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.
                else {
                  const options = element.options;
                  for (let i = 0; i < options.length; i++) {
                    const opt = options[i];
                    if (opt.selected) {
                      const val = this._getOptionValue(opt.value);
                      selected.push(val);
                    }
                  }
                }
                this.value = selected;
                fn(selected);
              };
            }
            /** @internal */
            _registerOption(value) {
              const id = (this._idCounter++).toString();
              this._optionMap.set(id, value);
              return id;
            }
            /** @internal */
            _getOptionId(value) {
              for (const id of this._optionMap.keys()) {
                if (this._compareWith(this._optionMap.get(id)._value, value)) return id;
              }
              return null;
            }
            /** @internal */
            _getOptionValue(valueString) {
              const id = _extractId(valueString);
              return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵSelectMultipleControlValueAccessor_BaseFactory;
                return function SelectMultipleControlValueAccessor_Factory(t) {
                  return (ɵSelectMultipleControlValueAccessor_BaseFactory || (ɵSelectMultipleControlValueAccessor_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](SelectMultipleControlValueAccessor)))(t || SelectMultipleControlValueAccessor);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: SelectMultipleControlValueAccessor,
                selectors: [["select", "multiple", "", "formControlName", ""], ["select", "multiple", "", "formControl", ""], ["select", "multiple", "", "ngModel", ""]],
                hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {
                      return ctx.onChange($event.target);
                    })("blur", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {
                      return ctx.onTouched();
                    });
                  }
                },
                inputs: {
                  compareWith: "compareWith"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_MULTIPLE_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectMultipleControlValueAccessor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
                host: {
                  '(change)': 'onChange($event.target)',
                  '(blur)': 'onTouched()'
                },
                providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]
              }]
            }], null, {
              compareWith: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Marks `<option>` as dynamic, so Angular can be notified when options change.
           *
           * @see {@link SelectMultipleControlValueAccessor}
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class ɵNgSelectMultipleOption {
            constructor(_element, _renderer, _select) {
              this._element = _element;
              this._renderer = _renderer;
              this._select = _select;
              if (this._select) {
                this.id = this._select._registerOption(this);
              }
            }
            /**
             * @description
             * Tracks the value bound to the option element. Unlike the value binding,
             * ngValue supports binding to objects.
             */
            set ngValue(value) {
              if (this._select == null) return;
              this._value = value;
              this._setElementValue(_buildValueString(this.id, value));
              this._select.writeValue(this._select.value);
            }
            /**
             * @description
             * Tracks simple string values bound to the option element.
             * For objects, use the `ngValue` input binding.
             */
            set value(value) {
              if (this._select) {
                this._value = value;
                this._setElementValue(_buildValueString(this.id, value));
                this._select.writeValue(this._select.value);
              } else {
                this._setElementValue(value);
              }
            }
            /** @internal */
            _setElementValue(value) {
              this._renderer.setProperty(this._element.nativeElement, 'value', value);
            }
            /** @internal */
            _setSelected(selected) {
              this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this._select) {
                this._select._optionMap.delete(this.id);
                this._select.writeValue(this._select.value);
              }
            }
            static {
              this.ɵfac = function ɵNgSelectMultipleOption_Factory(t) {
                return new (t || ɵNgSelectMultipleOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectMultipleControlValueAccessor, 9));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: ɵNgSelectMultipleOption,
                selectors: [["option"]],
                inputs: {
                  ngValue: "ngValue",
                  value: "value"
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgSelectMultipleOption, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'option'
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2
              }, {
                type: SelectMultipleControlValueAccessor,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Host
                }]
              }];
            }, {
              ngValue: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['ngValue']
              }],
              value: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['value']
              }]
            });
          })();
          
          /**
           * Method that updates string to integer if not already a number
           *
           * @param value The value to convert to integer.
           * @returns value of parameter converted to number or integer.
           */
          function toInteger(value) {
            return typeof value === 'number' ? value : parseInt(value, 10);
          }
          /**
           * Method that ensures that provided value is a float (and converts it to float if needed).
           *
           * @param value The value to convert to float.
           * @returns value of parameter converted to number or float.
           */
          function toFloat(value) {
            return typeof value === 'number' ? value : parseFloat(value);
          }
          /**
           * A base class for Validator-based Directives. The class contains common logic shared across such
           * Directives.
           *
           * For internal use only, this class is not intended for use outside of the Forms package.
           */
          class AbstractValidatorDirective {
            constructor() {
              this._validator = nullValidator;
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (this.inputName in changes) {
                const input = this.normalizeInput(changes[this.inputName].currentValue);
                this._enabled = this.enabled(input);
                this._validator = this._enabled ? this.createValidator(input) : nullValidator;
                if (this._onChange) {
                  this._onChange();
                }
              }
            }
            /** @nodoc */
            validate(control) {
              return this._validator(control);
            }
            /** @nodoc */
            registerOnValidatorChange(fn) {
              this._onChange = fn;
            }
            /**
             * @description
             * Determines whether this validator should be active or not based on an input.
             * Base class implementation checks whether an input is defined (if the value is different from
             * `null` and `undefined`). Validator classes that extend this base class can override this
             * function with the logic specific to a particular validator directive.
             */
            enabled(input) {
              return input != null /* both `null` and `undefined` */;
            }
          
            static {
              this.ɵfac = function AbstractValidatorDirective_Factory(t) {
                return new (t || AbstractValidatorDirective)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: AbstractValidatorDirective,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AbstractValidatorDirective, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], null, null);
          })();
          /**
           * @description
           * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const MAX_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => MaxValidator),
            multi: true
          };
          /**
           * A directive which installs the {@link MaxValidator} for any `formControlName`,
           * `formControl`, or control with `ngModel` that also has a `max` attribute.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a max validator
           *
           * The following example shows how to add a max validator to an input attached to an
           * ngModel binding.
           *
           * ```html
           * <input type="number" ngModel max="4">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class MaxValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'max';
              /** @internal */
              this.normalizeInput = input => toFloat(input);
              /** @internal */
              this.createValidator = max => maxValidator(max);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMaxValidator_BaseFactory;
                return function MaxValidator_Factory(t) {
                  return (ɵMaxValidator_BaseFactory || (ɵMaxValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MaxValidator)))(t || MaxValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MaxValidator,
                selectors: [["input", "type", "number", "max", "", "formControlName", ""], ["input", "type", "number", "max", "", "formControl", ""], ["input", "type", "number", "max", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function MaxValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("max", ctx._enabled ? ctx.max : null);
                  }
                },
                inputs: {
                  max: "max"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MAX_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaxValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
                providers: [MAX_VALIDATOR],
                host: {
                  '[attr.max]': '_enabled ? max : null'
                }
              }]
            }], null, {
              max: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const MIN_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => MinValidator),
            multi: true
          };
          /**
           * A directive which installs the {@link MinValidator} for any `formControlName`,
           * `formControl`, or control with `ngModel` that also has a `min` attribute.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a min validator
           *
           * The following example shows how to add a min validator to an input attached to an
           * ngModel binding.
           *
           * ```html
           * <input type="number" ngModel min="4">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class MinValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'min';
              /** @internal */
              this.normalizeInput = input => toFloat(input);
              /** @internal */
              this.createValidator = min => minValidator(min);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMinValidator_BaseFactory;
                return function MinValidator_Factory(t) {
                  return (ɵMinValidator_BaseFactory || (ɵMinValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MinValidator)))(t || MinValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MinValidator,
                selectors: [["input", "type", "number", "min", "", "formControlName", ""], ["input", "type", "number", "min", "", "formControl", ""], ["input", "type", "number", "min", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function MinValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("min", ctx._enabled ? ctx.min : null);
                  }
                },
                inputs: {
                  min: "min"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MIN_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MinValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
                providers: [MIN_VALIDATOR],
                host: {
                  '[attr.min]': '_enabled ? min : null'
                }
              }]
            }], null, {
              min: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const REQUIRED_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => RequiredValidator),
            multi: true
          };
          /**
           * @description
           * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const CHECKBOX_REQUIRED_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => CheckboxRequiredValidator),
            multi: true
          };
          /**
           * @description
           * A directive that adds the `required` validator to any controls marked with the
           * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a required validator using template-driven forms
           *
           * ```
           * <input name="fullName" ngModel required>
           * ```
           *
           * @ngModule FormsModule
           * @ngModule ReactiveFormsModule
           * @publicApi
           */
          class RequiredValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'required';
              /** @internal */
              this.normalizeInput = _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute;
              /** @internal */
              this.createValidator = input => requiredValidator;
            }
            /** @nodoc */
            enabled(input) {
              return input;
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵRequiredValidator_BaseFactory;
                return function RequiredValidator_Factory(t) {
                  return (ɵRequiredValidator_BaseFactory || (ɵRequiredValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](RequiredValidator)))(t || RequiredValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: RequiredValidator,
                selectors: [["", "required", "", "formControlName", "", 3, "type", "checkbox"], ["", "required", "", "formControl", "", 3, "type", "checkbox"], ["", "required", "", "ngModel", "", 3, "type", "checkbox"]],
                hostVars: 1,
                hostBindings: function RequiredValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx._enabled ? "" : null);
                  }
                },
                inputs: {
                  required: "required"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RequiredValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
                providers: [REQUIRED_VALIDATOR],
                host: {
                  '[attr.required]': '_enabled ? "" : null'
                }
              }]
            }], null, {
              required: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * A Directive that adds the `required` validator to checkbox controls marked with the
           * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a required checkbox validator using template-driven forms
           *
           * The following example shows how to add a checkbox required validator to an input attached to an
           * ngModel binding.
           *
           * ```
           * <input type="checkbox" name="active" ngModel required>
           * ```
           *
           * @publicApi
           * @ngModule FormsModule
           * @ngModule ReactiveFormsModule
           */
          class CheckboxRequiredValidator extends RequiredValidator {
            constructor() {
              super(...arguments);
              /** @internal */
              this.createValidator = input => requiredTrueValidator;
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵCheckboxRequiredValidator_BaseFactory;
                return function CheckboxRequiredValidator_Factory(t) {
                  return (ɵCheckboxRequiredValidator_BaseFactory || (ɵCheckboxRequiredValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CheckboxRequiredValidator)))(t || CheckboxRequiredValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: CheckboxRequiredValidator,
                selectors: [["input", "type", "checkbox", "required", "", "formControlName", ""], ["input", "type", "checkbox", "required", "", "formControl", ""], ["input", "type", "checkbox", "required", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx._enabled ? "" : null);
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxRequiredValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
                providers: [CHECKBOX_REQUIRED_VALIDATOR],
                host: {
                  '[attr.required]': '_enabled ? "" : null'
                }
              }]
            }], null, null);
          })();
          /**
           * @description
           * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const EMAIL_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => EmailValidator),
            multi: true
          };
          /**
           * A directive that adds the `email` validator to controls marked with the
           * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * The email validation is based on the WHATWG HTML specification with some enhancements to
           * incorporate more RFC rules. More information can be found on the [Validators.email
           * page](api/forms/Validators#email).
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding an email validator
           *
           * The following example shows how to add an email validator to an input attached to an ngModel
           * binding.
           *
           * ```
           * <input type="email" name="email" ngModel email>
           * <input type="email" name="email" ngModel email="true">
           * <input type="email" name="email" ngModel [email]="true">
           * ```
           *
           * @publicApi
           * @ngModule FormsModule
           * @ngModule ReactiveFormsModule
           */
          class EmailValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'email';
              /** @internal */
              this.normalizeInput = _angular_core__WEBPACK_IMPORTED_MODULE_0__.booleanAttribute;
              /** @internal */
              this.createValidator = input => emailValidator;
            }
            /** @nodoc */
            enabled(input) {
              return input;
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵEmailValidator_BaseFactory;
                return function EmailValidator_Factory(t) {
                  return (ɵEmailValidator_BaseFactory || (ɵEmailValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](EmailValidator)))(t || EmailValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: EmailValidator,
                selectors: [["", "email", "", "formControlName", ""], ["", "email", "", "formControl", ""], ["", "email", "", "ngModel", ""]],
                inputs: {
                  email: "email"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([EMAIL_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[email][formControlName],[email][formControl],[email][ngModel]',
                providers: [EMAIL_VALIDATOR]
              }]
            }], null, {
              email: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const MIN_LENGTH_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => MinLengthValidator),
            multi: true
          };
          /**
           * A directive that adds minimum length validation to controls marked with the
           * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a minimum length validator
           *
           * The following example shows how to add a minimum length validator to an input attached to an
           * ngModel binding.
           *
           * ```html
           * <input name="firstName" ngModel minlength="4">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class MinLengthValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'minlength';
              /** @internal */
              this.normalizeInput = input => toInteger(input);
              /** @internal */
              this.createValidator = minlength => minLengthValidator(minlength);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMinLengthValidator_BaseFactory;
                return function MinLengthValidator_Factory(t) {
                  return (ɵMinLengthValidator_BaseFactory || (ɵMinLengthValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MinLengthValidator)))(t || MinLengthValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MinLengthValidator,
                selectors: [["", "minlength", "", "formControlName", ""], ["", "minlength", "", "formControl", ""], ["", "minlength", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("minlength", ctx._enabled ? ctx.minlength : null);
                  }
                },
                inputs: {
                  minlength: "minlength"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MIN_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MinLengthValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
                providers: [MIN_LENGTH_VALIDATOR],
                host: {
                  '[attr.minlength]': '_enabled ? minlength : null'
                }
              }]
            }], null, {
              minlength: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const MAX_LENGTH_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => MaxLengthValidator),
            multi: true
          };
          /**
           * A directive that adds max length validation to controls marked with the
           * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a maximum length validator
           *
           * The following example shows how to add a maximum length validator to an input attached to an
           * ngModel binding.
           *
           * ```html
           * <input name="firstName" ngModel maxlength="25">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class MaxLengthValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'maxlength';
              /** @internal */
              this.normalizeInput = input => toInteger(input);
              /** @internal */
              this.createValidator = maxlength => maxLengthValidator(maxlength);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMaxLengthValidator_BaseFactory;
                return function MaxLengthValidator_Factory(t) {
                  return (ɵMaxLengthValidator_BaseFactory || (ɵMaxLengthValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MaxLengthValidator)))(t || MaxLengthValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MaxLengthValidator,
                selectors: [["", "maxlength", "", "formControlName", ""], ["", "maxlength", "", "formControl", ""], ["", "maxlength", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("maxlength", ctx._enabled ? ctx.maxlength : null);
                  }
                },
                inputs: {
                  maxlength: "maxlength"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MAX_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaxLengthValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
                providers: [MAX_LENGTH_VALIDATOR],
                host: {
                  '[attr.maxlength]': '_enabled ? maxlength : null'
                }
              }]
            }], null, {
              maxlength: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * @description
           * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.
           */
          const PATTERN_VALIDATOR = {
            provide: NG_VALIDATORS,
            useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(() => PatternValidator),
            multi: true
          };
          /**
           * @description
           * A directive that adds regex pattern validation to controls marked with the
           * `pattern` attribute. The regex must match the entire control value.
           * The directive is provided with the `NG_VALIDATORS` multi-provider list.
           *
           * @see [Form Validation](guide/form-validation)
           *
           * @usageNotes
           *
           * ### Adding a pattern validator
           *
           * The following example shows how to add a pattern validator to an input attached to an
           * ngModel binding.
           *
           * ```html
           * <input name="firstName" ngModel pattern="[a-zA-Z ]*">
           * ```
           *
           * @ngModule ReactiveFormsModule
           * @ngModule FormsModule
           * @publicApi
           */
          class PatternValidator extends AbstractValidatorDirective {
            constructor() {
              super(...arguments);
              /** @internal */
              this.inputName = 'pattern';
              /** @internal */
              this.normalizeInput = input => input;
              /** @internal */
              this.createValidator = input => patternValidator(input);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵPatternValidator_BaseFactory;
                return function PatternValidator_Factory(t) {
                  return (ɵPatternValidator_BaseFactory || (ɵPatternValidator_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](PatternValidator)))(t || PatternValidator);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: PatternValidator,
                selectors: [["", "pattern", "", "formControlName", ""], ["", "pattern", "", "formControl", ""], ["", "pattern", "", "ngModel", ""]],
                hostVars: 1,
                hostBindings: function PatternValidator_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("pattern", ctx._enabled ? ctx.pattern : null);
                  }
                },
                inputs: {
                  pattern: "pattern"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([PATTERN_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PatternValidator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
                providers: [PATTERN_VALIDATOR],
                host: {
                  '[attr.pattern]': '_enabled ? pattern : null'
                }
              }]
            }], null, {
              pattern: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          const SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator];
          const TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];
          const REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];
          /**
           * Internal module used for sharing directives between FormsModule and ReactiveFormsModule
           */
          class ɵInternalFormsSharedModule {
            static {
              this.ɵfac = function ɵInternalFormsSharedModule_Factory(t) {
                return new (t || ɵInternalFormsSharedModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: ɵInternalFormsSharedModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [RadioControlRegistryModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵInternalFormsSharedModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                declarations: SHARED_FORM_DIRECTIVES,
                imports: [RadioControlRegistryModule],
                exports: SHARED_FORM_DIRECTIVES
              }]
            }], null, null);
          })();
          
          /**
           * Tracks the value and validity state of an array of `FormControl`,
           * `FormGroup` or `FormArray` instances.
           *
           * A `FormArray` aggregates the values of each child `FormControl` into an array.
           * It calculates its status by reducing the status values of its children. For example, if one of
           * the controls in a `FormArray` is invalid, the entire array becomes invalid.
           *
           * `FormArray` accepts one generic argument, which is the type of the controls inside.
           * If you need a heterogenous array, use {@link UntypedFormArray}.
           *
           * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,
           * along with `FormControl`, `FormGroup`, and `FormRecord`.
           *
           * @usageNotes
           *
           * ### Create an array of form controls
           *
           * ```
           * const arr = new FormArray([
           *   new FormControl('Nancy', Validators.minLength(2)),
           *   new FormControl('Drew'),
           * ]);
           *
           * console.log(arr.value);   // ['Nancy', 'Drew']
           * console.log(arr.status);  // 'VALID'
           * ```
           *
           * ### Create a form array with array-level validators
           *
           * You include array-level validators and async validators. These come in handy
           * when you want to perform validation that considers the value of more than one child
           * control.
           *
           * The two types of validators are passed in separately as the second and third arg
           * respectively, or together as part of an options object.
           *
           * ```
           * const arr = new FormArray([
           *   new FormControl('Nancy'),
           *   new FormControl('Drew')
           * ], {validators: myValidator, asyncValidators: myAsyncValidator});
           * ```
           *
           * ### Set the updateOn property for all controls in a form array
           *
           * The options object is used to set a default value for each child
           * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
           * array level, all child controls default to 'blur', unless the child
           * has explicitly specified a different `updateOn` value.
           *
           * ```ts
           * const arr = new FormArray([
           *    new FormControl()
           * ], {updateOn: 'blur'});
           * ```
           *
           * ### Adding or removing controls from a form array
           *
           * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods
           * in `FormArray` itself. These methods ensure the controls are properly tracked in the
           * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate
           * the `FormArray` directly, as that result in strange and unexpected behavior such
           * as broken change detection.
           *
           * @publicApi
           */
          class FormArray extends AbstractControl {
            /**
             * Creates a new `FormArray` instance.
             *
             * @param controls An array of child controls. Each child control is given an index
             * where it is registered.
             *
             * @param validatorOrOpts A synchronous validator function, or an array of
             * such functions, or an `AbstractControlOptions` object that contains validation functions
             * and a validation trigger.
             *
             * @param asyncValidator A single async validator or array of async validator functions
             *
             */
            constructor(controls, validatorOrOpts, asyncValidator) {
              super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
              this.controls = controls;
              this._initObservables();
              this._setUpdateStrategy(validatorOrOpts);
              this._setUpControls();
              this.updateValueAndValidity({
                onlySelf: true,
                // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
                // `VALID` or `INVALID`.
                // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
                // to `true` to allow that during the control creation process.
                emitEvent: !!this.asyncValidator
              });
            }
            /**
             * Get the `AbstractControl` at the given `index` in the array.
             *
             * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap
             *     around from the back, and if index is greatly negative (less than `-length`), the result is
             * undefined. This behavior is the same as `Array.at(index)`.
             */
            at(index) {
              return this.controls[this._adjustIndex(index)];
            }
            /**
             * Insert a new `AbstractControl` at the end of the array.
             *
             * @param control Form control to be inserted
             * @param options Specifies whether this FormArray instance should emit events after a new
             *     control is added.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control is
             * inserted. When false, no events are emitted.
             */
            push(control, options = {}) {
              this.controls.push(control);
              this._registerControl(control);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
              this._onCollectionChange();
            }
            /**
             * Insert a new `AbstractControl` at the given `index` in the array.
             *
             * @param index Index in the array to insert the control. If `index` is negative, wraps around
             *     from the back. If `index` is greatly negative (less than `-length`), prepends to the array.
             * This behavior is the same as `Array.splice(index, 0, control)`.
             * @param control Form control to be inserted
             * @param options Specifies whether this FormArray instance should emit events after a new
             *     control is inserted.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control is
             * inserted. When false, no events are emitted.
             */
            insert(index, control, options = {}) {
              this.controls.splice(index, 0, control);
              this._registerControl(control);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
            }
            /**
             * Remove the control at the given `index` in the array.
             *
             * @param index Index in the array to remove the control.  If `index` is negative, wraps around
             *     from the back. If `index` is greatly negative (less than `-length`), removes the first
             *     element. This behavior is the same as `Array.splice(index, 1)`.
             * @param options Specifies whether this FormArray instance should emit events after a
             *     control is removed.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control is
             * removed. When false, no events are emitted.
             */
            removeAt(index, options = {}) {
              // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.
              let adjustedIndex = this._adjustIndex(index);
              if (adjustedIndex < 0) adjustedIndex = 0;
              if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});
              this.controls.splice(adjustedIndex, 1);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
            }
            /**
             * Replace an existing control.
             *
             * @param index Index in the array to replace the control. If `index` is negative, wraps around
             *     from the back. If `index` is greatly negative (less than `-length`), replaces the first
             *     element. This behavior is the same as `Array.splice(index, 1, control)`.
             * @param control The `AbstractControl` control to replace the existing control
             * @param options Specifies whether this FormArray instance should emit events after an
             *     existing control is replaced with a new one.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control is
             * replaced with a new one. When false, no events are emitted.
             */
            setControl(index, control, options = {}) {
              // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.
              let adjustedIndex = this._adjustIndex(index);
              if (adjustedIndex < 0) adjustedIndex = 0;
              if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});
              this.controls.splice(adjustedIndex, 1);
              if (control) {
                this.controls.splice(adjustedIndex, 0, control);
                this._registerControl(control);
              }
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
              this._onCollectionChange();
            }
            /**
             * Length of the control array.
             */
            get length() {
              return this.controls.length;
            }
            /**
             * Sets the value of the `FormArray`. It accepts an array that matches
             * the structure of the control.
             *
             * This method performs strict checks, and throws an error if you try
             * to set the value of a control that doesn't exist or if you exclude the
             * value of a control.
             *
             * @usageNotes
             * ### Set the values for the controls in the form array
             *
             * ```
             * const arr = new FormArray([
             *   new FormControl(),
             *   new FormControl()
             * ]);
             * console.log(arr.value);   // [null, null]
             *
             * arr.setValue(['Nancy', 'Drew']);
             * console.log(arr.value);   // ['Nancy', 'Drew']
             * ```
             *
             * @param value Array of values for the controls
             * @param options Configure options that determine how the control propagates changes and
             * emits events after the value changes
             *
             * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
             * is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control value is updated.
             * When false, no events are emitted.
             * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
             * updateValueAndValidity} method.
             */
            setValue(value, options = {}) {
              assertAllValuesPresent(this, false, value);
              value.forEach((newValue, index) => {
                assertControlPresent(this, false, index);
                this.at(index).setValue(newValue, {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              });
              this.updateValueAndValidity(options);
            }
            /**
             * Patches the value of the `FormArray`. It accepts an array that matches the
             * structure of the control, and does its best to match the values to the correct
             * controls in the group.
             *
             * It accepts both super-sets and sub-sets of the array without throwing an error.
             *
             * @usageNotes
             * ### Patch the values for controls in a form array
             *
             * ```
             * const arr = new FormArray([
             *    new FormControl(),
             *    new FormControl()
             * ]);
             * console.log(arr.value);   // [null, null]
             *
             * arr.patchValue(['Nancy']);
             * console.log(arr.value);   // ['Nancy', null]
             * ```
             *
             * @param value Array of latest values for the controls
             * @param options Configure options that determine how the control propagates changes and
             * emits events after the value changes
             *
             * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
             * is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when the control
             * value is updated. When false, no events are emitted. The configuration options are passed to
             * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.
             */
            patchValue(value, options = {}) {
              // Even though the `value` argument type doesn't allow `null` and `undefined` values, the
              // `patchValue` can be called recursively and inner data structures might have these values,
              // so we just ignore such cases when a field containing FormArray instance receives `null` or
              // `undefined` as a value.
              if (value == null /* both `null` and `undefined` */) return;
              value.forEach((newValue, index) => {
                if (this.at(index)) {
                  this.at(index).patchValue(newValue, {
                    onlySelf: true,
                    emitEvent: options.emitEvent
                  });
                }
              });
              this.updateValueAndValidity(options);
            }
            /**
             * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the
             * value of all descendants to null or null maps.
             *
             * You reset to a specific form state by passing in an array of states
             * that matches the structure of the control. The state is a standalone value
             * or a form state object with both a value and a disabled status.
             *
             * @usageNotes
             * ### Reset the values in a form array
             *
             * ```ts
             * const arr = new FormArray([
             *    new FormControl(),
             *    new FormControl()
             * ]);
             * arr.reset(['name', 'last name']);
             *
             * console.log(arr.value);  // ['name', 'last name']
             * ```
             *
             * ### Reset the values in a form array and the disabled status for the first control
             *
             * ```
             * arr.reset([
             *   {value: 'name', disabled: true},
             *   'last'
             * ]);
             *
             * console.log(arr.value);  // ['last']
             * console.log(arr.at(0).status);  // 'DISABLED'
             * ```
             *
             * @param value Array of values for the controls
             * @param options Configure options that determine how the control propagates changes and
             * emits events after the value changes
             *
             * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
             * is false.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges`
             * observables emit events with the latest status and value when the control is reset.
             * When false, no events are emitted.
             * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
             * updateValueAndValidity} method.
             */
            reset(value = [], options = {}) {
              this._forEachChild((control, index) => {
                control.reset(value[index], {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              });
              this._updatePristine(options);
              this._updateTouched(options);
              this.updateValueAndValidity(options);
            }
            /**
             * The aggregate value of the array, including any disabled controls.
             *
             * Reports all values regardless of disabled status.
             */
            getRawValue() {
              return this.controls.map(control => control.getRawValue());
            }
            /**
             * Remove all controls in the `FormArray`.
             *
             * @param options Specifies whether this FormArray instance should emit events after all
             *     controls are removed.
             * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
             * `valueChanges` observables emit events with the latest status and value when all controls
             * in this FormArray instance are removed. When false, no events are emitted.
             *
             * @usageNotes
             * ### Remove all elements from a FormArray
             *
             * ```ts
             * const arr = new FormArray([
             *    new FormControl(),
             *    new FormControl()
             * ]);
             * console.log(arr.length);  // 2
             *
             * arr.clear();
             * console.log(arr.length);  // 0
             * ```
             *
             * It's a simpler and more efficient alternative to removing all elements one by one:
             *
             * ```ts
             * const arr = new FormArray([
             *    new FormControl(),
             *    new FormControl()
             * ]);
             *
             * while (arr.length) {
             *    arr.removeAt(0);
             * }
             * ```
             */
            clear(options = {}) {
              if (this.controls.length < 1) return;
              this._forEachChild(control => control._registerOnCollectionChange(() => {}));
              this.controls.splice(0);
              this.updateValueAndValidity({
                emitEvent: options.emitEvent
              });
            }
            /**
             * Adjusts a negative index by summing it with the length of the array. For very negative
             * indices, the result may remain negative.
             * @internal
             */
            _adjustIndex(index) {
              return index < 0 ? index + this.length : index;
            }
            /** @internal */
            _syncPendingControls() {
              let subtreeUpdated = this.controls.reduce((updated, child) => {
                return child._syncPendingControls() ? true : updated;
              }, false);
              if (subtreeUpdated) this.updateValueAndValidity({
                onlySelf: true
              });
              return subtreeUpdated;
            }
            /** @internal */
            _forEachChild(cb) {
              this.controls.forEach((control, index) => {
                cb(control, index);
              });
            }
            /** @internal */
            _updateValue() {
              this.value = this.controls.filter(control => control.enabled || this.disabled).map(control => control.value);
            }
            /** @internal */
            _anyControls(condition) {
              return this.controls.some(control => control.enabled && condition(control));
            }
            /** @internal */
            _setUpControls() {
              this._forEachChild(control => this._registerControl(control));
            }
            /** @internal */
            _allControlsDisabled() {
              for (const control of this.controls) {
                if (control.enabled) return false;
              }
              return this.controls.length > 0 || this.disabled;
            }
            _registerControl(control) {
              control.setParent(this);
              control._registerOnCollectionChange(this._onCollectionChange);
            }
            /** @internal */
            _find(name) {
              return this.at(name) ?? null;
            }
          }
          const UntypedFormArray = FormArray;
          /**
           * @description
           * Asserts that the given control is an instance of `FormArray`
           *
           * @publicApi
           */
          const isFormArray = control => control instanceof FormArray;
          function isAbstractControlOptions(options) {
            return !!options && (options.asyncValidators !== undefined || options.validators !== undefined || options.updateOn !== undefined);
          }
          // clang-format on
          /**
           * @description
           * Creates an `AbstractControl` from a user-specified configuration.
           *
           * The `FormBuilder` provides syntactic sugar that shortens creating instances of a
           * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to
           * build complex forms.
           *
           * @see [Reactive Forms Guide](guide/reactive-forms)
           *
           * @publicApi
           */
          class FormBuilder {
            constructor() {
              this.useNonNullable = false;
            }
            /**
             * @description
             * Returns a FormBuilder in which automatically constructed `FormControl` elements
             * have `{nonNullable: true}` and are non-nullable.
             *
             * **Constructing non-nullable controls**
             *
             * When constructing a control, it will be non-nullable, and will reset to its initial value.
             *
             * ```ts
             * let nnfb = new FormBuilder().nonNullable;
             * let name = nnfb.control('Alex'); // FormControl<string>
             * name.reset();
             * console.log(name); // 'Alex'
             * ```
             *
             * **Constructing non-nullable groups or arrays**
             *
             * When constructing a group or array, all automatically created inner controls will be
             * non-nullable, and will reset to their initial values.
             *
             * ```ts
             * let nnfb = new FormBuilder().nonNullable;
             * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>
             * name.reset();
             * console.log(name); // {who: 'Alex'}
             * ```
             * **Constructing *nullable* fields on groups or arrays**
             *
             * It is still possible to have a nullable field. In particular, any `FormControl` which is
             * *already* constructed will not be altered. For example:
             *
             * ```ts
             * let nnfb = new FormBuilder().nonNullable;
             * // FormGroup<{who: FormControl<string|null>}>
             * let name = nnfb.group({who: new FormControl('Alex')});
             * name.reset(); console.log(name); // {who: null}
             * ```
             *
             * Because the inner control is constructed explicitly by the caller, the builder has
             * no control over how it is created, and cannot exclude the `null`.
             */
            get nonNullable() {
              const nnfb = new FormBuilder();
              nnfb.useNonNullable = true;
              return nnfb;
            }
            group(controls, options = null) {
              const reducedControls = this._reduceControls(controls);
              let newOptions = {};
              if (isAbstractControlOptions(options)) {
                // `options` are `AbstractControlOptions`
                newOptions = options;
              } else if (options !== null) {
                // `options` are legacy form group options
                newOptions.validators = options.validator;
                newOptions.asyncValidators = options.asyncValidator;
              }
              return new FormGroup(reducedControls, newOptions);
            }
            /**
             * @description
             * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object
             * containing all the keys and corresponding inner control types.
             *
             * @param controls A collection of child controls. The key for each child is the name
             * under which it is registered.
             *
             * @param options Configuration options object for the `FormRecord`. The object should have the
             * `AbstractControlOptions` type and might contain the following fields:
             * * `validators`: A synchronous validator function, or an array of validator functions.
             * * `asyncValidators`: A single async validator or array of async validator functions.
             * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'
             * | submit').
             */
            record(controls, options = null) {
              const reducedControls = this._reduceControls(controls);
              // Cast to `any` because the inferred types are not as specific as Element.
              return new FormRecord(reducedControls, options);
            }
            /**
             * @description
             * Constructs a new `FormControl` with the given state, validators and options. Sets
             * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the
             * control will be nullable. Accepts a single generic argument, which is the type  of the
             * control's value.
             *
             * @param formState Initializes the control with an initial state value, or
             * with an object that contains both a value and a disabled status.
             *
             * @param validatorOrOpts A synchronous validator function, or an array of
             * such functions, or a `FormControlOptions` object that contains
             * validation functions and a validation trigger.
             *
             * @param asyncValidator A single async validator or array of async validator
             * functions.
             *
             * @usageNotes
             *
             * ### Initialize a control as disabled
             *
             * The following example returns a control with an initial value in a disabled state.
             *
             * <code-example path="forms/ts/formBuilder/form_builder_example.ts" region="disabled-control">
             * </code-example>
             */
            control(formState, validatorOrOpts, asyncValidator) {
              let newOptions = {};
              if (!this.useNonNullable) {
                return new FormControl(formState, validatorOrOpts, asyncValidator);
              }
              if (isAbstractControlOptions(validatorOrOpts)) {
                // If the second argument is options, then they are copied.
                newOptions = validatorOrOpts;
              } else {
                // If the other arguments are validators, they are copied into an options object.
                newOptions.validators = validatorOrOpts;
                newOptions.asyncValidators = asyncValidator;
              }
              return new FormControl(formState, {
                ...newOptions,
                nonNullable: true
              });
            }
            /**
             * Constructs a new `FormArray` from the given array of configurations,
             * validators and options. Accepts a single generic argument, which is the type of each control
             * inside the array.
             *
             * @param controls An array of child controls or control configs. Each child control is given an
             *     index when it is registered.
             *
             * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an
             *     `AbstractControlOptions` object that contains
             * validation functions and a validation trigger.
             *
             * @param asyncValidator A single async validator or array of async validator functions.
             */
            array(controls, validatorOrOpts, asyncValidator) {
              const createdControls = controls.map(c => this._createControl(c));
              // Cast to `any` because the inferred types are not as specific as Element.
              return new FormArray(createdControls, validatorOrOpts, asyncValidator);
            }
            /** @internal */
            _reduceControls(controls) {
              const createdControls = {};
              Object.keys(controls).forEach(controlName => {
                createdControls[controlName] = this._createControl(controls[controlName]);
              });
              return createdControls;
            }
            /** @internal */
            _createControl(controls) {
              if (controls instanceof FormControl) {
                return controls;
              } else if (controls instanceof AbstractControl) {
                // A control; just return it
                return controls;
              } else if (Array.isArray(controls)) {
                // ControlConfig Tuple
                const value = controls[0];
                const validator = controls.length > 1 ? controls[1] : null;
                const asyncValidator = controls.length > 2 ? controls[2] : null;
                return this.control(value, validator, asyncValidator);
              } else {
                // T or FormControlState<T>
                return this.control(controls);
              }
            }
            static {
              this.ɵfac = function FormBuilder_Factory(t) {
                return new (t || FormBuilder)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: FormBuilder,
                factory: FormBuilder.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormBuilder, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * @description
           * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed
           * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.
           *
           * @publicApi
           */
          class NonNullableFormBuilder {
            static {
              this.ɵfac = function NonNullableFormBuilder_Factory(t) {
                return new (t || NonNullableFormBuilder)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: NonNullableFormBuilder,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(FormBuilder).nonNullable)();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NonNullableFormBuilder, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(FormBuilder).nonNullable
              }]
            }], null, null);
          })();
          /**
           * UntypedFormBuilder is the same as `FormBuilder`, but it provides untyped controls.
           */
          class UntypedFormBuilder extends FormBuilder {
            group(controlsConfig, options = null) {
              return super.group(controlsConfig, options);
            }
            /**
             * Like `FormBuilder#control`, except the resulting control is untyped.
             */
            control(formState, validatorOrOpts, asyncValidator) {
              return super.control(formState, validatorOrOpts, asyncValidator);
            }
            /**
             * Like `FormBuilder#array`, except the resulting array is untyped.
             */
            array(controlsConfig, validatorOrOpts, asyncValidator) {
              return super.array(controlsConfig, validatorOrOpts, asyncValidator);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵUntypedFormBuilder_BaseFactory;
                return function UntypedFormBuilder_Factory(t) {
                  return (ɵUntypedFormBuilder_BaseFactory || (ɵUntypedFormBuilder_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](UntypedFormBuilder)))(t || UntypedFormBuilder);
                };
              }();
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: UntypedFormBuilder,
                factory: UntypedFormBuilder.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UntypedFormBuilder, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of the forms package.
           */
          /**
           * @publicApi
           */
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version('16.2.12');
          
          /**
           * Exports the required providers and directives for template-driven forms,
           * making them available for import by NgModules that import this module.
           *
           * Providers associated with this module:
           * * `RadioControlRegistry`
           *
           * @see [Forms Overview](/guide/forms-overview)
           * @see [Template-driven Forms Guide](/guide/forms)
           *
           * @publicApi
           */
          class FormsModule {
            /**
             * @description
             * Provides options for configuring the forms module.
             *
             * @param opts An object of configuration options
             * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more
             * correct, or to only call it `whenDisabled`, which is the legacy behavior.
             */
            static withConfig(opts) {
              return {
                ngModule: FormsModule,
                providers: [{
                  provide: CALL_SET_DISABLED_STATE,
                  useValue: opts.callSetDisabledState ?? setDisabledStateDefault
                }]
              };
            }
            static {
              this.ɵfac = function FormsModule_Factory(t) {
                return new (t || FormsModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: FormsModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [ɵInternalFormsSharedModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormsModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                declarations: TEMPLATE_DRIVEN_DIRECTIVES,
                exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]
              }]
            }], null, null);
          })();
          /**
           * Exports the required infrastructure and directives for reactive forms,
           * making them available for import by NgModules that import this module.
           *
           * Providers associated with this module:
           * * `RadioControlRegistry`
           *
           * @see [Forms Overview](guide/forms-overview)
           * @see [Reactive Forms Guide](guide/reactive-forms)
           *
           * @publicApi
           */
          class ReactiveFormsModule {
            /**
             * @description
             * Provides options for configuring the reactive forms module.
             *
             * @param opts An object of configuration options
             * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`
             * binding is used with reactive form directives.
             * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more
             * correct, or to only call it `whenDisabled`, which is the legacy behavior.
             */
            static withConfig(opts) {
              return {
                ngModule: ReactiveFormsModule,
                providers: [{
                  provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,
                  useValue: opts.warnOnNgModelWithFormControl ?? 'always'
                }, {
                  provide: CALL_SET_DISABLED_STATE,
                  useValue: opts.callSetDisabledState ?? setDisabledStateDefault
                }]
              };
            }
            static {
              this.ɵfac = function ReactiveFormsModule_Factory(t) {
                return new (t || ReactiveFormsModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: ReactiveFormsModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [ɵInternalFormsSharedModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ReactiveFormsModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                declarations: [REACTIVE_DRIVEN_DIRECTIVES],
                exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]
              }]
            }], null, null);
          })();
          
          /**
           * @module
           * @description
           * This module is used for handling user input, by defining and building a `FormGroup` that
           * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`
           * objects can then be used to read information from the form DOM elements.
           *
           * Forms providers are not included in default providers; you must import these providers
           * explicitly.
           */
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          // This file only reexports content of the `src` folder. Keep it that way.
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4175:
          /*!************************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/button.mjs ***!
            \************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_FAB_DEFAULT_OPTIONS: () => (/* binding */ MAT_FAB_DEFAULT_OPTIONS),
          /* harmony export */   MAT_FAB_DEFAULT_OPTIONS_FACTORY: () => (/* binding */ MAT_FAB_DEFAULT_OPTIONS_FACTORY),
          /* harmony export */   MatAnchor: () => (/* binding */ MatAnchor),
          /* harmony export */   MatButton: () => (/* binding */ MatButton),
          /* harmony export */   MatButtonModule: () => (/* binding */ MatButtonModule),
          /* harmony export */   MatFabAnchor: () => (/* binding */ MatFabAnchor),
          /* harmony export */   MatFabButton: () => (/* binding */ MatFabButton),
          /* harmony export */   MatIconAnchor: () => (/* binding */ MatIconAnchor),
          /* harmony export */   MatIconButton: () => (/* binding */ MatIconButton),
          /* harmony export */   MatMiniFabAnchor: () => (/* binding */ MatMiniFabAnchor),
          /* harmony export */   MatMiniFabButton: () => (/* binding */ MatMiniFabButton)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7580);
          /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/a11y */ 2102);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/material/core */ 4646);
          
          
          
          
          
          
          
          
          /** Inputs common to all buttons. */
          const _c0 = ["mat-button", ""];
          const _c1 = [[["", 8, "material-icons", 3, "iconPositionEnd", ""], ["mat-icon", 3, "iconPositionEnd", ""], ["", "matButtonIcon", "", 3, "iconPositionEnd", ""]], "*", [["", "iconPositionEnd", "", 8, "material-icons"], ["mat-icon", "iconPositionEnd", ""], ["", "matButtonIcon", "", "iconPositionEnd", ""]]];
          const _c2 = [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];
          const _c3 = ".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}";
          const _c4 = ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";
          const _c5 = ["mat-fab", ""];
          const _c6 = ["mat-mini-fab", ""];
          const _c7 = ".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}";
          const _c8 = ["mat-icon-button", ""];
          const _c9 = ["*"];
          const _c10 = ".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}";
          const MAT_BUTTON_INPUTS = ['disabled', 'disableRipple', 'color'];
          /** Shared host configuration for all buttons */
          const MAT_BUTTON_HOST = {
            '[attr.disabled]': 'disabled || null',
            '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
            // MDC automatically applies the primary theme color to the button, but we want to support
            // an unthemed version. If color is undefined, apply a CSS class that makes it easy to
            // select and style this "theme".
            '[class.mat-unthemed]': '!color',
            // Add a class that applies to all buttons. This makes it easier to target if somebody
            // wants to target all Material buttons.
            '[class.mat-mdc-button-base]': 'true'
          };
          /** List of classes to add to buttons instances based on host attribute selector. */
          const HOST_SELECTOR_MDC_CLASS_PAIR = [{
            selector: 'mat-button',
            mdcClasses: ['mdc-button', 'mat-mdc-button']
          }, {
            selector: 'mat-flat-button',
            mdcClasses: ['mdc-button', 'mdc-button--unelevated', 'mat-mdc-unelevated-button']
          }, {
            selector: 'mat-raised-button',
            mdcClasses: ['mdc-button', 'mdc-button--raised', 'mat-mdc-raised-button']
          }, {
            selector: 'mat-stroked-button',
            mdcClasses: ['mdc-button', 'mdc-button--outlined', 'mat-mdc-outlined-button']
          }, {
            selector: 'mat-fab',
            mdcClasses: ['mdc-fab', 'mat-mdc-fab']
          }, {
            selector: 'mat-mini-fab',
            mdcClasses: ['mdc-fab', 'mdc-fab--mini', 'mat-mdc-mini-fab']
          }, {
            selector: 'mat-icon-button',
            mdcClasses: ['mdc-icon-button', 'mat-mdc-icon-button']
          }];
          // Boilerplate for applying mixins to MatButton.
          /** @docs-private */
          const _MatButtonMixin = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.mixinColor)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.mixinDisabled)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.mixinDisableRipple)(class {
            constructor(_elementRef) {
              this._elementRef = _elementRef;
            }
          })));
          /** Base class for all buttons.  */
          class MatButtonBase extends _MatButtonMixin {
            /**
             * Reference to the MatRipple instance of the button.
             * @deprecated Considered an implementation detail. To be removed.
             * @breaking-change 17.0.0
             */
            get ripple() {
              return this._rippleLoader?.getRipple(this._elementRef.nativeElement);
            }
            set ripple(v) {
              this._rippleLoader?.attachRipple(this._elementRef.nativeElement, v);
            }
            // We override `disableRipple` and `disabled` so we can hook into
            // their setters and update the ripple disabled state accordingly.
            /** Whether the ripple effect is disabled or not. */
            get disableRipple() {
              return this._disableRipple;
            }
            set disableRipple(value) {
              this._disableRipple = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)(value);
              this._updateRippleDisabled();
            }
            get disabled() {
              return this._disabled;
            }
            set disabled(value) {
              this._disabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)(value);
              this._updateRippleDisabled();
            }
            constructor(elementRef, _platform, _ngZone, _animationMode) {
              super(elementRef);
              this._platform = _platform;
              this._ngZone = _ngZone;
              this._animationMode = _animationMode;
              this._focusMonitor = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.inject)(_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__.FocusMonitor);
              /**
               * Handles the lazy creation of the MatButton ripple.
               * Used to improve initial load time of large applications.
               */
              this._rippleLoader = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.inject)(_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatRippleLoader);
              /** Whether this button is a FAB. Used to apply the correct class on the ripple. */
              this._isFab = false;
              this._disableRipple = false;
              this._disabled = false;
              this._rippleLoader?.configureRipple(this._elementRef.nativeElement, {
                className: 'mat-mdc-button-ripple'
              });
              const classList = elementRef.nativeElement.classList;
              // For each of the variant selectors that is present in the button's host
              // attributes, add the correct corresponding MDC classes.
              for (const pair of HOST_SELECTOR_MDC_CLASS_PAIR) {
                if (this._hasHostAttributes(pair.selector)) {
                  pair.mdcClasses.forEach(className => {
                    classList.add(className);
                  });
                }
              }
            }
            ngAfterViewInit() {
              this._focusMonitor.monitor(this._elementRef, true);
            }
            ngOnDestroy() {
              this._focusMonitor.stopMonitoring(this._elementRef);
              this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);
            }
            /** Focuses the button. */
            focus(_origin = 'program', options) {
              if (_origin) {
                this._focusMonitor.focusVia(this._elementRef.nativeElement, _origin, options);
              } else {
                this._elementRef.nativeElement.focus(options);
              }
            }
            /** Gets whether the button has one of the given attributes. */
            _hasHostAttributes(...attributes) {
              return attributes.some(attribute => this._elementRef.nativeElement.hasAttribute(attribute));
            }
            _updateRippleDisabled() {
              this._rippleLoader?.setDisabled(this._elementRef.nativeElement, this.disableRipple || this.disabled);
            }
            static {
              this.ɵfac = function MatButtonBase_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
                type: MatButtonBase,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatButtonBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined
              }];
            }, null);
          })();
          /** Shared inputs by buttons using the `<a>` tag */
          const MAT_ANCHOR_INPUTS = ['disabled', 'disableRipple', 'color', 'tabIndex'];
          /** Shared host configuration for buttons using the `<a>` tag. */
          const MAT_ANCHOR_HOST = {
            '[attr.disabled]': 'disabled || null',
            '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
            // Note that we ignore the user-specified tabindex when it's disabled for
            // consistency with the `mat-button` applied on native buttons where even
            // though they have an index, they're not tabbable.
            '[attr.tabindex]': 'disabled ? -1 : tabIndex',
            '[attr.aria-disabled]': 'disabled.toString()',
            // MDC automatically applies the primary theme color to the button, but we want to support
            // an unthemed version. If color is undefined, apply a CSS class that makes it easy to
            // select and style this "theme".
            '[class.mat-unthemed]': '!color',
            // Add a class that applies to all buttons. This makes it easier to target if somebody
            // wants to target all Material buttons.
            '[class.mat-mdc-button-base]': 'true'
          };
          /**
           * Anchor button base.
           */
          class MatAnchorBase extends MatButtonBase {
            constructor(elementRef, platform, ngZone, animationMode) {
              super(elementRef, platform, ngZone, animationMode);
              this._haltDisabledEvents = event => {
                // A disabled button shouldn't apply any actions
                if (this.disabled) {
                  event.preventDefault();
                  event.stopImmediatePropagation();
                }
              };
            }
            ngOnInit() {
              this._ngZone.runOutsideAngular(() => {
                this._elementRef.nativeElement.addEventListener('click', this._haltDisabledEvents);
              });
            }
            ngOnDestroy() {
              super.ngOnDestroy();
              this._elementRef.nativeElement.removeEventListener('click', this._haltDisabledEvents);
            }
            static {
              this.ɵfac = function MatAnchorBase_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
                type: MatAnchorBase,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatAnchorBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined
              }];
            }, null);
          })();
          
          /**
           * Material Design button component. Users interact with a button to perform an action.
           * See https://material.io/components/buttons
           *
           * The `MatButton` class applies to native button elements and captures the appearances for
           * "text button", "outlined button", and "contained button" per the Material Design
           * specification. `MatButton` additionally captures an additional "flat" appearance, which matches
           * "contained" but without elevation.
           */
          class MatButton extends MatButtonBase {
            constructor(elementRef, platform, ngZone, animationMode) {
              super(elementRef, platform, ngZone, animationMode);
            }
            static {
              this.ɵfac = function MatButton_Factory(t) {
                return new (t || MatButton)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatButton,
                selectors: [["button", "mat-button", ""], ["button", "mat-raised-button", ""], ["button", "mat-flat-button", ""], ["button", "mat-stroked-button", ""]],
                hostVars: 7,
                hostBindings: function MatButton_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color"
                },
                exportAs: ["matButton"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c0,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatButton_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}", ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatButton, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `
              button[mat-button], button[mat-raised-button], button[mat-flat-button],
              button[mat-stroked-button]
            `,
                inputs: MAT_BUTTON_INPUTS,
                host: MAT_BUTTON_HOST,
                exportAs: 'matButton',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}", ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, null);
          })();
          /**
           * Material Design button component for anchor elements. Anchor elements are used to provide
           * links for the user to navigate across different routes or pages.
           * See https://material.io/components/buttons
           *
           * The `MatAnchor` class applies to native anchor elements and captures the appearances for
           * "text button", "outlined button", and "contained button" per the Material Design
           * specification. `MatAnchor` additionally captures an additional "flat" appearance, which matches
           * "contained" but without elevation.
           */
          class MatAnchor extends MatAnchorBase {
            constructor(elementRef, platform, ngZone, animationMode) {
              super(elementRef, platform, ngZone, animationMode);
            }
            static {
              this.ɵfac = function MatAnchor_Factory(t) {
                return new (t || MatAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatAnchor,
                selectors: [["a", "mat-button", ""], ["a", "mat-raised-button", ""], ["a", "mat-flat-button", ""], ["a", "mat-stroked-button", ""]],
                hostVars: 9,
                hostBindings: function MatAnchor_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null)("tabindex", ctx.disabled ? -1 : ctx.tabIndex)("aria-disabled", ctx.disabled.toString());
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color",
                  tabIndex: "tabIndex"
                },
                exportAs: ["matButton", "matAnchor"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c0,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatAnchor_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [_c3, _c4],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatAnchor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]`,
                exportAs: 'matButton, matAnchor',
                host: MAT_ANCHOR_HOST,
                inputs: MAT_ANCHOR_INPUTS,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}", ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, null);
          })();
          
          /** Injection token to be used to override the default options for FAB. */
          const MAT_FAB_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.InjectionToken('mat-mdc-fab-default-options', {
            providedIn: 'root',
            factory: MAT_FAB_DEFAULT_OPTIONS_FACTORY
          });
          /** @docs-private */
          function MAT_FAB_DEFAULT_OPTIONS_FACTORY() {
            return {
              // The FAB by default has its color set to accent.
              color: 'accent'
            };
          }
          // Default FAB configuration.
          const defaults = MAT_FAB_DEFAULT_OPTIONS_FACTORY();
          let buttonInputs = [...MAT_ANCHOR_INPUTS, 'extended'];
          /**
           * Material Design floating action button (FAB) component. These buttons represent the primary
           * or most common action for users to interact with.
           * See https://material.io/components/buttons-floating-action-button/
           *
           * The `MatFabButton` class has two appearances: normal and extended.
           */
          class MatFabButton extends MatButtonBase {
            get extended() {
              return this._extended;
            }
            set extended(value) {
              this._extended = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)(value);
            }
            constructor(elementRef, platform, ngZone, animationMode, _options) {
              super(elementRef, platform, ngZone, animationMode);
              this._options = _options;
              this._isFab = true;
              this._options = this._options || defaults;
              this.color = this.defaultColor = this._options.color || defaults.color;
            }
            static {
              this.ɵfac = function MatFabButton_Factory(t) {
                return new (t || MatFabButton)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_FAB_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatFabButton,
                selectors: [["button", "mat-fab", ""]],
                hostVars: 11,
                hostBindings: function MatFabButton_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true)("mdc-fab--extended", ctx.extended)("mat-mdc-extended-fab", ctx.extended);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color",
                  tabIndex: "tabIndex",
                  extended: "extended"
                },
                exportAs: ["matButton"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c5,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatFabButton_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatFabButton, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `button[mat-fab]`,
                inputs: buttonInputs,
                host: {
                  ...MAT_BUTTON_HOST,
                  '[class.mdc-fab--extended]': 'extended',
                  '[class.mat-mdc-extended-fab]': 'extended'
                },
                exportAs: 'matButton',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [MAT_FAB_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          /**
           * Material Design mini floating action button (FAB) component. These buttons represent the primary
           * or most common action for users to interact with.
           * See https://material.io/components/buttons-floating-action-button/
           */
          class MatMiniFabButton extends MatButtonBase {
            constructor(elementRef, platform, ngZone, animationMode, _options) {
              super(elementRef, platform, ngZone, animationMode);
              this._options = _options;
              this._isFab = true;
              this._options = this._options || defaults;
              this.color = this.defaultColor = this._options.color || defaults.color;
            }
            static {
              this.ɵfac = function MatMiniFabButton_Factory(t) {
                return new (t || MatMiniFabButton)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_FAB_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatMiniFabButton,
                selectors: [["button", "mat-mini-fab", ""]],
                hostVars: 7,
                hostBindings: function MatMiniFabButton_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color"
                },
                exportAs: ["matButton"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c6,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatMiniFabButton_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [_c7],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatMiniFabButton, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `button[mat-mini-fab]`,
                inputs: MAT_BUTTON_INPUTS,
                host: MAT_BUTTON_HOST,
                exportAs: 'matButton',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [MAT_FAB_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          /**
           * Material Design floating action button (FAB) component for anchor elements. Anchor elements
           * are used to provide links for the user to navigate across different routes or pages.
           * See https://material.io/components/buttons-floating-action-button/
           *
           * The `MatFabAnchor` class has two appearances: normal and extended.
           */
          class MatFabAnchor extends MatAnchor {
            get extended() {
              return this._extended;
            }
            set extended(value) {
              this._extended = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__.coerceBooleanProperty)(value);
            }
            constructor(elementRef, platform, ngZone, animationMode, _options) {
              super(elementRef, platform, ngZone, animationMode);
              this._options = _options;
              this._isFab = true;
              this._options = this._options || defaults;
              this.color = this.defaultColor = this._options.color || defaults.color;
            }
            static {
              this.ɵfac = function MatFabAnchor_Factory(t) {
                return new (t || MatFabAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_FAB_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatFabAnchor,
                selectors: [["a", "mat-fab", ""]],
                hostVars: 13,
                hostBindings: function MatFabAnchor_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null)("tabindex", ctx.disabled ? -1 : ctx.tabIndex)("aria-disabled", ctx.disabled.toString());
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true)("mdc-fab--extended", ctx.extended)("mat-mdc-extended-fab", ctx.extended);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color",
                  tabIndex: "tabIndex",
                  extended: "extended"
                },
                exportAs: ["matButton", "matAnchor"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c5,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatFabAnchor_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [_c7],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatFabAnchor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `a[mat-fab]`,
                inputs: buttonInputs,
                host: {
                  ...MAT_ANCHOR_HOST,
                  '[class.mdc-fab--extended]': 'extended',
                  '[class.mat-mdc-extended-fab]': 'extended'
                },
                exportAs: 'matButton, matAnchor',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [MAT_FAB_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          /**
           * Material Design mini floating action button (FAB) component for anchor elements. Anchor elements
           * are used to provide links for the user to navigate across different routes or pages.
           * See https://material.io/components/buttons-floating-action-button/
           */
          class MatMiniFabAnchor extends MatAnchor {
            constructor(elementRef, platform, ngZone, animationMode, _options) {
              super(elementRef, platform, ngZone, animationMode);
              this._options = _options;
              this._isFab = true;
              this._options = this._options || defaults;
              this.color = this.defaultColor = this._options.color || defaults.color;
            }
            static {
              this.ɵfac = function MatMiniFabAnchor_Factory(t) {
                return new (t || MatMiniFabAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_FAB_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatMiniFabAnchor,
                selectors: [["a", "mat-mini-fab", ""]],
                hostVars: 9,
                hostBindings: function MatMiniFabAnchor_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null)("tabindex", ctx.disabled ? -1 : ctx.tabIndex)("aria-disabled", ctx.disabled.toString());
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color",
                  tabIndex: "tabIndex"
                },
                exportAs: ["matButton", "matAnchor"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c6,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatMiniFabAnchor_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [_c7],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatMiniFabAnchor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `a[mat-mini-fab]`,
                inputs: MAT_ANCHOR_INPUTS,
                host: MAT_ANCHOR_HOST,
                exportAs: 'matButton, matAnchor',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color);--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [MAT_FAB_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          
          /**
           * Material Design icon button component. This type of button displays a single interactive icon for
           * users to perform an action.
           * See https://material.io/develop/web/components/buttons/icon-buttons/
           */
          class MatIconButton extends MatButtonBase {
            constructor(elementRef, platform, ngZone, animationMode) {
              super(elementRef, platform, ngZone, animationMode);
              this._rippleLoader.configureRipple(this._elementRef.nativeElement, {
                centered: true
              });
            }
            static {
              this.ɵfac = function MatIconButton_Factory(t) {
                return new (t || MatIconButton)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatIconButton,
                selectors: [["button", "mat-icon-button", ""]],
                hostVars: 7,
                hostBindings: function MatIconButton_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color"
                },
                exportAs: ["matButton"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c8,
                ngContentSelectors: _c9,
                decls: 4,
                vars: 0,
                consts: [[1, "mat-mdc-button-persistent-ripple", "mdc-icon-button__ripple"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatIconButton_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "span", 1)(3, "span", 2);
                  }
                },
                styles: [".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}", _c4],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatIconButton, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `button[mat-icon-button]`,
                inputs: MAT_BUTTON_INPUTS,
                host: MAT_BUTTON_HOST,
                exportAs: 'matButton',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span class=\"mat-mdc-button-persistent-ripple mdc-icon-button__ripple\"></span>\n\n<ng-content></ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}", ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, null);
          })();
          /**
           * Material Design icon button component for anchor elements. This button displays a single
           * interaction icon that allows users to navigate across different routes or pages.
           * See https://material.io/develop/web/components/buttons/icon-buttons/
           */
          class MatIconAnchor extends MatAnchorBase {
            constructor(elementRef, platform, ngZone, animationMode) {
              super(elementRef, platform, ngZone, animationMode);
            }
            static {
              this.ɵfac = function MatIconAnchor_Factory(t) {
                return new (t || MatIconAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: MatIconAnchor,
                selectors: [["a", "mat-icon-button", ""]],
                hostVars: 9,
                hostBindings: function MatIconAnchor_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.disabled || null)("tabindex", ctx.disabled ? -1 : ctx.tabIndex)("aria-disabled", ctx.disabled.toString());
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-unthemed", !ctx.color)("mat-mdc-button-base", true);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  color: "color",
                  tabIndex: "tabIndex"
                },
                exportAs: ["matButton", "matAnchor"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
                attrs: _c8,
                ngContentSelectors: _c2,
                decls: 7,
                vars: 4,
                consts: [[1, "mat-mdc-button-persistent-ripple"], [1, "mdc-button__label"], [1, "mat-mdc-focus-indicator"], [1, "mat-mdc-button-touch-target"]],
                template: function MatIconAnchor_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "span", 2)(6, "span", 3);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mdc-button__ripple", !ctx._isFab)("mdc-fab__ripple", ctx._isFab);
                  }
                },
                styles: [_c10, _c4],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatIconAnchor, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Component,
              args: [{
                selector: `a[mat-icon-button]`,
                inputs: MAT_ANCHOR_INPUTS,
                host: MAT_ANCHOR_HOST,
                exportAs: 'matButton, matAnchor',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ChangeDetectionStrategy.OnPush,
                template: "<span\n    class=\"mat-mdc-button-persistent-ripple\"\n    [class.mdc-button__ripple]=\"!_isFab\"\n    [class.mdc-fab__ripple]=\"_isFab\"></span>\n\n<ng-content select=\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\">\n</ng-content>\n\n<span class=\"mdc-button__label\"><ng-content></ng-content></span>\n\n<ng-content select=\".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\">\n</ng-content>\n\n<!--\n  The indicator can't be directly on the button, because MDC uses ::before for high contrast\n  indication and it can't be on the ripple, because it has a border radius and overflow: hidden.\n-->\n<span class=\"mat-mdc-focus-indicator\"></span>\n\n<span class=\"mat-mdc-button-touch-target\"></span>\n",
                styles: [".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\"\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\"\";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\"\"}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}", ".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__.Platform
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, null);
          })();
          class MatButtonModule {
            static {
              this.ɵfac = function MatButtonModule_Factory(t) {
                return new (t || MatButtonModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
                type: MatButtonModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatCommonModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatRippleModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatButtonModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule,
              args: [{
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatCommonModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatRippleModule],
                exports: [MatAnchor, MatButton, MatIconAnchor, MatIconButton, MatMiniFabAnchor, MatMiniFabButton, MatFabAnchor, MatFabButton, _angular_material_core__WEBPACK_IMPORTED_MODULE_0__.MatCommonModule],
                declarations: [MatAnchor, MatButton, MatIconAnchor, MatMiniFabAnchor, MatMiniFabButton, MatIconButton, MatFabAnchor, MatFabButton]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4646:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/core.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AnimationCurves: () => (/* binding */ AnimationCurves),
          /* harmony export */   AnimationDurations: () => (/* binding */ AnimationDurations),
          /* harmony export */   DateAdapter: () => (/* binding */ DateAdapter),
          /* harmony export */   ErrorStateMatcher: () => (/* binding */ ErrorStateMatcher),
          /* harmony export */   MATERIAL_SANITY_CHECKS: () => (/* binding */ MATERIAL_SANITY_CHECKS),
          /* harmony export */   MAT_DATE_FORMATS: () => (/* binding */ MAT_DATE_FORMATS),
          /* harmony export */   MAT_DATE_LOCALE: () => (/* binding */ MAT_DATE_LOCALE),
          /* harmony export */   MAT_DATE_LOCALE_FACTORY: () => (/* binding */ MAT_DATE_LOCALE_FACTORY),
          /* harmony export */   MAT_NATIVE_DATE_FORMATS: () => (/* binding */ MAT_NATIVE_DATE_FORMATS),
          /* harmony export */   MAT_OPTGROUP: () => (/* binding */ MAT_OPTGROUP),
          /* harmony export */   MAT_OPTION_PARENT_COMPONENT: () => (/* binding */ MAT_OPTION_PARENT_COMPONENT),
          /* harmony export */   MAT_RIPPLE_GLOBAL_OPTIONS: () => (/* binding */ MAT_RIPPLE_GLOBAL_OPTIONS),
          /* harmony export */   MatCommonModule: () => (/* binding */ MatCommonModule),
          /* harmony export */   MatLine: () => (/* binding */ MatLine),
          /* harmony export */   MatLineModule: () => (/* binding */ MatLineModule),
          /* harmony export */   MatNativeDateModule: () => (/* binding */ MatNativeDateModule),
          /* harmony export */   MatOptgroup: () => (/* binding */ MatOptgroup),
          /* harmony export */   MatOption: () => (/* binding */ MatOption),
          /* harmony export */   MatOptionModule: () => (/* binding */ MatOptionModule),
          /* harmony export */   MatOptionSelectionChange: () => (/* binding */ MatOptionSelectionChange),
          /* harmony export */   MatPseudoCheckbox: () => (/* binding */ MatPseudoCheckbox),
          /* harmony export */   MatPseudoCheckboxModule: () => (/* binding */ MatPseudoCheckboxModule),
          /* harmony export */   MatRipple: () => (/* binding */ MatRipple),
          /* harmony export */   MatRippleLoader: () => (/* binding */ MatRippleLoader),
          /* harmony export */   MatRippleModule: () => (/* binding */ MatRippleModule),
          /* harmony export */   NativeDateAdapter: () => (/* binding */ NativeDateAdapter),
          /* harmony export */   NativeDateModule: () => (/* binding */ NativeDateModule),
          /* harmony export */   RippleRef: () => (/* binding */ RippleRef),
          /* harmony export */   RippleRenderer: () => (/* binding */ RippleRenderer),
          /* harmony export */   ShowOnDirtyErrorStateMatcher: () => (/* binding */ ShowOnDirtyErrorStateMatcher),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   _MatOptgroupBase: () => (/* binding */ _MatOptgroupBase),
          /* harmony export */   _MatOptionBase: () => (/* binding */ _MatOptionBase),
          /* harmony export */   _countGroupLabelsBeforeOption: () => (/* binding */ _countGroupLabelsBeforeOption),
          /* harmony export */   _getOptionScrollPosition: () => (/* binding */ _getOptionScrollPosition),
          /* harmony export */   defaultRippleAnimationConfig: () => (/* binding */ defaultRippleAnimationConfig),
          /* harmony export */   mixinColor: () => (/* binding */ mixinColor),
          /* harmony export */   mixinDisableRipple: () => (/* binding */ mixinDisableRipple),
          /* harmony export */   mixinDisabled: () => (/* binding */ mixinDisabled),
          /* harmony export */   mixinErrorState: () => (/* binding */ mixinErrorState),
          /* harmony export */   mixinInitialized: () => (/* binding */ mixinInitialized),
          /* harmony export */   mixinTabIndex: () => (/* binding */ mixinTabIndex),
          /* harmony export */   setLines: () => (/* binding */ setLines)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7580);
          /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/a11y */ 2102);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk */ 1398);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 3942);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 3037);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          /** Current version of Angular Material. */
          const _c0 = ["*", [["mat-option"], ["ng-container"]]];
          const _c1 = ["*", "mat-option, ng-container"];
          const _c2 = ["text"];
          function MatOption_mat_pseudo_checkbox_0_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-pseudo-checkbox", 6);
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r0.disabled)("state", ctx_r0.selected ? "checked" : "unchecked");
            }
          }
          function MatOption_mat_pseudo_checkbox_5_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-pseudo-checkbox", 7);
            }
            if (rf & 2) {
              const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r2.disabled);
            }
          }
          function MatOption_span_6_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 8);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("(", ctx_r3.group.label, ")");
            }
          }
          const _c3 = [[["mat-icon"]], "*"];
          const _c4 = ["mat-icon", "*"];
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Version('16.2.14');
          
          /** @docs-private */
          class AnimationCurves {
            static {
              this.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
            }
            static {
              this.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
            }
            static {
              this.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
            }
            static {
              this.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
            }
          }
          /** @docs-private */
          class AnimationDurations {
            static {
              this.COMPLEX = '375ms';
            }
            static {
              this.ENTERING = '225ms';
            }
            static {
              this.EXITING = '195ms';
            }
          }
          
          /** @docs-private */
          function MATERIAL_SANITY_CHECKS_FACTORY() {
            return true;
          }
          /** Injection token that configures whether the Material sanity checks are enabled. */
          const MATERIAL_SANITY_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-sanity-checks', {
            providedIn: 'root',
            factory: MATERIAL_SANITY_CHECKS_FACTORY
          });
          /**
           * Module that captures anything that should be loaded and/or run for *all* Angular Material
           * components. This includes Bidi, etc.
           *
           * This module should be imported to each top-level component module (e.g., MatTabsModule).
           */
          class MatCommonModule {
            constructor(highContrastModeDetector, _sanityChecks, _document) {
              this._sanityChecks = _sanityChecks;
              this._document = _document;
              /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */
              this._hasDoneGlobalChecks = false;
              // While A11yModule also does this, we repeat it here to avoid importing A11yModule
              // in MatCommonModule.
              highContrastModeDetector._applyBodyHighContrastModeCssClasses();
              if (!this._hasDoneGlobalChecks) {
                this._hasDoneGlobalChecks = true;
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  // Inject in here so the reference to `Platform` can be removed in production mode.
                  const platform = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform, {
                    optional: true
                  });
                  if (this._checkIsEnabled('doctype')) {
                    _checkDoctypeIsDefined(this._document);
                  }
                  if (this._checkIsEnabled('theme')) {
                    _checkThemeIsPresent(this._document, !!platform?.isBrowser);
                  }
                  if (this._checkIsEnabled('version')) {
                    _checkCdkVersionMatch();
                  }
                }
              }
            }
            /** Gets whether a specific sanity check is enabled. */
            _checkIsEnabled(name) {
              if ((0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._isTestEnvironment)()) {
                return false;
              }
              if (typeof this._sanityChecks === 'boolean') {
                return this._sanityChecks;
              }
              return !!this._sanityChecks[name];
            }
            static {
              this.ɵfac = function MatCommonModule_Factory(t) {
                return new (t || MatCommonModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__.HighContrastModeDetector), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MATERIAL_SANITY_CHECKS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__.DOCUMENT));
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatCommonModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__.BidiModule, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__.BidiModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCommonModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__.BidiModule],
                exports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__.BidiModule]
              }]
            }], function () {
              return [{
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__.HighContrastModeDetector
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MATERIAL_SANITY_CHECKS]
                }]
              }, {
                type: Document,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          /** Checks that the page has a doctype. */
          function _checkDoctypeIsDefined(doc) {
            if (!doc.doctype) {
              console.warn('Current document does not have a doctype. This may cause ' + 'some Angular Material components not to behave as expected.');
            }
          }
          /** Checks that a theme has been included. */
          function _checkThemeIsPresent(doc, isBrowser) {
            // We need to assert that the `body` is defined, because these checks run very early
            // and the `body` won't be defined if the consumer put their scripts in the `head`.
            if (!doc.body || !isBrowser) {
              return;
            }
            const testElement = doc.createElement('div');
            testElement.classList.add('mat-theme-loaded-marker');
            doc.body.appendChild(testElement);
            const computedStyle = getComputedStyle(testElement);
            // In some situations the computed style of the test element can be null. For example in
            // Firefox, the computed style is null if an application is running inside of a hidden iframe.
            // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397
            if (computedStyle && computedStyle.display !== 'none') {
              console.warn('Could not find Angular Material core theme. Most Material ' + 'components may not work as expected. For more info refer ' + 'to the theming guide: https://material.angular.io/guide/theming');
            }
            testElement.remove();
          }
          /** Checks whether the Material version matches the CDK version. */
          function _checkCdkVersionMatch() {
            if (VERSION.full !== _angular_cdk__WEBPACK_IMPORTED_MODULE_5__.VERSION.full) {
              console.warn('The Angular Material version (' + VERSION.full + ') does not match ' + 'the Angular CDK version (' + _angular_cdk__WEBPACK_IMPORTED_MODULE_5__.VERSION.full + ').\n' + 'Please ensure the versions of these two packages exactly match.');
            }
          }
          function mixinDisabled(base) {
            return class extends base {
              get disabled() {
                return this._disabled;
              }
              set disabled(value) {
                this._disabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
              }
              constructor(...args) {
                super(...args);
                this._disabled = false;
              }
            };
          }
          function mixinColor(base, defaultColor) {
            return class extends base {
              get color() {
                return this._color;
              }
              set color(value) {
                const colorPalette = value || this.defaultColor;
                if (colorPalette !== this._color) {
                  if (this._color) {
                    this._elementRef.nativeElement.classList.remove(`mat-${this._color}`);
                  }
                  if (colorPalette) {
                    this._elementRef.nativeElement.classList.add(`mat-${colorPalette}`);
                  }
                  this._color = colorPalette;
                }
              }
              constructor(...args) {
                super(...args);
                this.defaultColor = defaultColor;
                // Set the default color that can be specified from the mixin.
                this.color = defaultColor;
              }
            };
          }
          function mixinDisableRipple(base) {
            return class extends base {
              /** Whether the ripple effect is disabled or not. */
              get disableRipple() {
                return this._disableRipple;
              }
              set disableRipple(value) {
                this._disableRipple = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
              }
              constructor(...args) {
                super(...args);
                this._disableRipple = false;
              }
            };
          }
          function mixinTabIndex(base, defaultTabIndex = 0) {
            return class extends base {
              get tabIndex() {
                return this.disabled ? -1 : this._tabIndex;
              }
              set tabIndex(value) {
                // If the specified tabIndex value is null or undefined, fall back to the default value.
                this._tabIndex = value != null ? (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceNumberProperty)(value) : this.defaultTabIndex;
              }
              constructor(...args) {
                super(...args);
                this._tabIndex = defaultTabIndex;
                this.defaultTabIndex = defaultTabIndex;
              }
            };
          }
          function mixinErrorState(base) {
            return class extends base {
              /** Updates the error state based on the provided error state matcher. */
              updateErrorState() {
                const oldState = this.errorState;
                const parent = this._parentFormGroup || this._parentForm;
                const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;
                const control = this.ngControl ? this.ngControl.control : null;
                const newState = matcher.isErrorState(control, parent);
                if (newState !== oldState) {
                  this.errorState = newState;
                  this.stateChanges.next();
                }
              }
              constructor(...args) {
                super(...args);
                /** Whether the component is in an error state. */
                this.errorState = false;
              }
            };
          }
          
          /** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */
          function mixinInitialized(base) {
            return class extends base {
              constructor(...args) {
                super(...args);
                /** Whether this directive has been marked as initialized. */
                this._isInitialized = false;
                /**
                 * List of subscribers that subscribed before the directive was initialized. Should be notified
                 * during _markInitialized. Set to null after pending subscribers are notified, and should
                 * not expect to be populated after.
                 */
                this._pendingSubscribers = [];
                /**
                 * Observable stream that emits when the directive initializes. If already initialized, the
                 * subscriber is stored to be notified once _markInitialized is called.
                 */
                this.initialized = new rxjs__WEBPACK_IMPORTED_MODULE_7__.Observable(subscriber => {
                  // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify
                  // when _markInitialized is called.
                  if (this._isInitialized) {
                    this._notifySubscriber(subscriber);
                  } else {
                    this._pendingSubscribers.push(subscriber);
                  }
                });
              }
              /**
               * Marks the state as initialized and notifies pending subscribers. Should be called at the end
               * of ngOnInit.
               * @docs-private
               */
              _markInitialized() {
                if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw Error('This directive has already been marked as initialized and ' + 'should not be called twice.');
                }
                this._isInitialized = true;
                this._pendingSubscribers.forEach(this._notifySubscriber);
                this._pendingSubscribers = null;
              }
              /** Emits and completes the subscriber stream (should only emit once). */
              _notifySubscriber(subscriber) {
                subscriber.next();
                subscriber.complete();
              }
            };
          }
          
          /** InjectionToken for datepicker that can be used to override default locale code. */
          const MAT_DATE_LOCALE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_DATE_LOCALE', {
            providedIn: 'root',
            factory: MAT_DATE_LOCALE_FACTORY
          });
          /** @docs-private */
          function MAT_DATE_LOCALE_FACTORY() {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LOCALE_ID);
          }
          /** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */
          class DateAdapter {
            constructor() {
              this._localeChanges = new rxjs__WEBPACK_IMPORTED_MODULE_8__.Subject();
              /** A stream that emits when the locale changes. */
              this.localeChanges = this._localeChanges;
            }
            /**
             * Given a potential date object, returns that same date object if it is
             * a valid date, or `null` if it's not a valid date.
             * @param obj The object to check.
             * @returns A date or `null`.
             */
            getValidDateOrNull(obj) {
              return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;
            }
            /**
             * Attempts to deserialize a value to a valid date object. This is different from parsing in that
             * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
             * string). The default implementation does not allow any deserialization, it simply checks that
             * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
             * method on all of its `@Input()` properties that accept dates. It is therefore possible to
             * support passing values from your backend directly to these properties by overriding this method
             * to also deserialize the format used by your backend.
             * @param value The value to be deserialized into a date object.
             * @returns The deserialized date object, either a valid date, null if the value can be
             *     deserialized into a null date (e.g. the empty string), or an invalid date.
             */
            deserialize(value) {
              if (value == null || this.isDateInstance(value) && this.isValid(value)) {
                return value;
              }
              return this.invalid();
            }
            /**
             * Sets the locale used for all dates.
             * @param locale The new locale.
             */
            setLocale(locale) {
              this.locale = locale;
              this._localeChanges.next();
            }
            /**
             * Compares two dates.
             * @param first The first date to compare.
             * @param second The second date to compare.
             * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,
             *     a number greater than 0 if the first date is later.
             */
            compareDate(first, second) {
              return this.getYear(first) - this.getYear(second) || this.getMonth(first) - this.getMonth(second) || this.getDate(first) - this.getDate(second);
            }
            /**
             * Checks if two dates are equal.
             * @param first The first date to check.
             * @param second The second date to check.
             * @returns Whether the two dates are equal.
             *     Null dates are considered equal to other null dates.
             */
            sameDate(first, second) {
              if (first && second) {
                let firstValid = this.isValid(first);
                let secondValid = this.isValid(second);
                if (firstValid && secondValid) {
                  return !this.compareDate(first, second);
                }
                return firstValid == secondValid;
              }
              return first == second;
            }
            /**
             * Clamp the given date between min and max dates.
             * @param date The date to clamp.
             * @param min The minimum value to allow. If null or omitted no min is enforced.
             * @param max The maximum value to allow. If null or omitted no max is enforced.
             * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,
             *     otherwise `date`.
             */
            clampDate(date, min, max) {
              if (min && this.compareDate(date, min) < 0) {
                return min;
              }
              if (max && this.compareDate(date, max) > 0) {
                return max;
              }
              return date;
            }
          }
          const MAT_DATE_FORMATS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-date-formats');
          
          /**
           * Matches strings that have the form of a valid RFC 3339 string
           * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
           * because the regex will match strings an with out of bounds month, date, etc.
           */
          const ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
          /** Creates an array and fills it with values. */
          function range(length, valueFunction) {
            const valuesArray = Array(length);
            for (let i = 0; i < length; i++) {
              valuesArray[i] = valueFunction(i);
            }
            return valuesArray;
          }
          /** Adapts the native JS Date for use with cdk-based components that work with dates. */
          class NativeDateAdapter extends DateAdapter {
            constructor(matDateLocale,
            /**
             * @deprecated No longer being used. To be removed.
             * @breaking-change 14.0.0
             */
            _platform) {
              super();
              /**
               * @deprecated No longer being used. To be removed.
               * @breaking-change 14.0.0
               */
              this.useUtcForDisplay = false;
              super.setLocale(matDateLocale);
            }
            getYear(date) {
              return date.getFullYear();
            }
            getMonth(date) {
              return date.getMonth();
            }
            getDate(date) {
              return date.getDate();
            }
            getDayOfWeek(date) {
              return date.getDay();
            }
            getMonthNames(style) {
              const dtf = new Intl.DateTimeFormat(this.locale, {
                month: style,
                timeZone: 'utc'
              });
              return range(12, i => this._format(dtf, new Date(2017, i, 1)));
            }
            getDateNames() {
              const dtf = new Intl.DateTimeFormat(this.locale, {
                day: 'numeric',
                timeZone: 'utc'
              });
              return range(31, i => this._format(dtf, new Date(2017, 0, i + 1)));
            }
            getDayOfWeekNames(style) {
              const dtf = new Intl.DateTimeFormat(this.locale, {
                weekday: style,
                timeZone: 'utc'
              });
              return range(7, i => this._format(dtf, new Date(2017, 0, i + 1)));
            }
            getYearName(date) {
              const dtf = new Intl.DateTimeFormat(this.locale, {
                year: 'numeric',
                timeZone: 'utc'
              });
              return this._format(dtf, date);
            }
            getFirstDayOfWeek() {
              // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
              return 0;
            }
            getNumDaysInMonth(date) {
              return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
            }
            clone(date) {
              return new Date(date.getTime());
            }
            createDate(year, month, date) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                // Check for invalid month and date (except upper bound on date which we have to check after
                // creating the Date).
                if (month < 0 || month > 11) {
                  throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);
                }
                if (date < 1) {
                  throw Error(`Invalid date "${date}". Date has to be greater than 0.`);
                }
              }
              let result = this._createDateWithOverflow(year, month, date);
              // Check that the date wasn't above the upper bound for the month, causing the month to overflow
              if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error(`Invalid date "${date}" for month with index "${month}".`);
              }
              return result;
            }
            today() {
              return new Date();
            }
            parse(value, parseFormat) {
              // We have no way using the native JS Date to set the parse format or locale, so we ignore these
              // parameters.
              if (typeof value == 'number') {
                return new Date(value);
              }
              return value ? new Date(Date.parse(value)) : null;
            }
            format(date, displayFormat) {
              if (!this.isValid(date)) {
                throw Error('NativeDateAdapter: Cannot format invalid date.');
              }
              const dtf = new Intl.DateTimeFormat(this.locale, {
                ...displayFormat,
                timeZone: 'utc'
              });
              return this._format(dtf, date);
            }
            addCalendarYears(date, years) {
              return this.addCalendarMonths(date, years * 12);
            }
            addCalendarMonths(date, months) {
              let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));
              // It's possible to wind up in the wrong month if the original month has more days than the new
              // month. In this case we want to go to the last day of the desired month.
              // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
              // guarantee this.
              if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
                newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
              }
              return newDate;
            }
            addCalendarDays(date, days) {
              return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
            }
            toIso8601(date) {
              return [date.getUTCFullYear(), this._2digit(date.getUTCMonth() + 1), this._2digit(date.getUTCDate())].join('-');
            }
            /**
             * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
             * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
             * invalid date for all other values.
             */
            deserialize(value) {
              if (typeof value === 'string') {
                if (!value) {
                  return null;
                }
                // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the
                // string is the right format first.
                if (ISO_8601_REGEX.test(value)) {
                  let date = new Date(value);
                  if (this.isValid(date)) {
                    return date;
                  }
                }
              }
              return super.deserialize(value);
            }
            isDateInstance(obj) {
              return obj instanceof Date;
            }
            isValid(date) {
              return !isNaN(date.getTime());
            }
            invalid() {
              return new Date(NaN);
            }
            /** Creates a date but allows the month and date to overflow. */
            _createDateWithOverflow(year, month, date) {
              // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.
              // To work around this we use `setFullYear` and `setHours` instead.
              const d = new Date();
              d.setFullYear(year, month, date);
              d.setHours(0, 0, 0, 0);
              return d;
            }
            /**
             * Pads a number to make it two digits.
             * @param n The number to pad.
             * @returns The padded number.
             */
            _2digit(n) {
              return ('00' + n).slice(-2);
            }
            /**
             * When converting Date object to string, javascript built-in functions may return wrong
             * results because it applies its internal DST rules. The DST rules around the world change
             * very frequently, and the current valid rule is not always valid in previous years though.
             * We work around this problem building a new Date object which has its internal UTC
             * representation with the local date and time.
             * @param dtf Intl.DateTimeFormat object, containing the desired string format. It must have
             *    timeZone set to 'utc' to work fine.
             * @param date Date from which we want to get the string representation according to dtf
             * @returns A Date object with its UTC representation based on the passed in date info
             */
            _format(dtf, date) {
              // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.
              // To work around this we use `setUTCFullYear` and `setUTCHours` instead.
              const d = new Date();
              d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());
              d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
              return dtf.format(d);
            }
            static {
              this.ɵfac = function NativeDateAdapter_Factory(t) {
                return new (t || NativeDateAdapter)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MAT_DATE_LOCALE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: NativeDateAdapter,
                factory: NativeDateAdapter.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateAdapter, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_DATE_LOCALE]
                }]
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }];
            }, null);
          })();
          const MAT_NATIVE_DATE_FORMATS = {
            parse: {
              dateInput: null
            },
            display: {
              dateInput: {
                year: 'numeric',
                month: 'numeric',
                day: 'numeric'
              },
              monthYearLabel: {
                year: 'numeric',
                month: 'short'
              },
              dateA11yLabel: {
                year: 'numeric',
                month: 'long',
                day: 'numeric'
              },
              monthYearA11yLabel: {
                year: 'numeric',
                month: 'long'
              }
            }
          };
          class NativeDateModule {
            static {
              this.ɵfac = function NativeDateModule_Factory(t) {
                return new (t || NativeDateModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: NativeDateModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [{
                  provide: DateAdapter,
                  useClass: NativeDateAdapter
                }]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                providers: [{
                  provide: DateAdapter,
                  useClass: NativeDateAdapter
                }]
              }]
            }], null, null);
          })();
          class MatNativeDateModule {
            static {
              this.ɵfac = function MatNativeDateModule_Factory(t) {
                return new (t || MatNativeDateModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatNativeDateModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [{
                  provide: MAT_DATE_FORMATS,
                  useValue: MAT_NATIVE_DATE_FORMATS
                }],
                imports: [NativeDateModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatNativeDateModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [NativeDateModule],
                providers: [{
                  provide: MAT_DATE_FORMATS,
                  useValue: MAT_NATIVE_DATE_FORMATS
                }]
              }]
            }], null, null);
          })();
          
          /** Error state matcher that matches when a control is invalid and dirty. */
          class ShowOnDirtyErrorStateMatcher {
            isErrorState(control, form) {
              return !!(control && control.invalid && (control.dirty || form && form.submitted));
            }
            static {
              this.ɵfac = function ShowOnDirtyErrorStateMatcher_Factory(t) {
                return new (t || ShowOnDirtyErrorStateMatcher)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ShowOnDirtyErrorStateMatcher,
                factory: ShowOnDirtyErrorStateMatcher.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShowOnDirtyErrorStateMatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable
            }], null, null);
          })();
          /** Provider that defines how form controls behave with regards to displaying error messages. */
          class ErrorStateMatcher {
            isErrorState(control, form) {
              return !!(control && control.invalid && (control.touched || form && form.submitted));
            }
            static {
              this.ɵfac = function ErrorStateMatcher_Factory(t) {
                return new (t || ErrorStateMatcher)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: ErrorStateMatcher,
                factory: ErrorStateMatcher.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ErrorStateMatcher, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * Shared directive to count lines inside a text area, such as a list item.
           * Line elements can be extracted with a @ContentChildren(MatLine) query, then
           * counted by checking the query list's length.
           */
          class MatLine {
            static {
              this.ɵfac = function MatLine_Factory(t) {
                return new (t || MatLine)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatLine,
                selectors: [["", "mat-line", ""], ["", "matLine", ""]],
                hostAttrs: [1, "mat-line"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLine, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[mat-line], [matLine]',
                host: {
                  'class': 'mat-line'
                }
              }]
            }], null, null);
          })();
          /**
           * Helper that takes a query list of lines and sets the correct class on the host.
           * @docs-private
           */
          function setLines(lines, element, prefix = 'mat') {
            // Note: doesn't need to unsubscribe, because `changes`
            // gets completed by Angular when the view is destroyed.
            lines.changes.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.startWith)(lines)).subscribe(({
              length
            }) => {
              setClass(element, `${prefix}-2-line`, false);
              setClass(element, `${prefix}-3-line`, false);
              setClass(element, `${prefix}-multi-line`, false);
              if (length === 2 || length === 3) {
                setClass(element, `${prefix}-${length}-line`, true);
              } else if (length > 3) {
                setClass(element, `${prefix}-multi-line`, true);
              }
            });
          }
          /** Adds or removes a class from an element. */
          function setClass(element, className, isAdd) {
            element.nativeElement.classList.toggle(className, isAdd);
          }
          class MatLineModule {
            static {
              this.ɵfac = function MatLineModule_Factory(t) {
                return new (t || MatLineModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatLineModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [MatCommonModule, MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLineModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [MatCommonModule],
                exports: [MatLine, MatCommonModule],
                declarations: [MatLine]
              }]
            }], null, null);
          })();
          
          /**
           * Reference to a previously launched ripple element.
           */
          class RippleRef {
            constructor(_renderer, /** Reference to the ripple HTML element. */
            element, /** Ripple configuration used for the ripple. */
            config, /* Whether animations are forcibly disabled for ripples through CSS. */
            _animationForciblyDisabledThroughCss = false) {
              this._renderer = _renderer;
              this.element = element;
              this.config = config;
              this._animationForciblyDisabledThroughCss = _animationForciblyDisabledThroughCss;
              /** Current state of the ripple. */
              this.state = 3 /* RippleState.HIDDEN */;
            }
            /** Fades out the ripple element. */
            fadeOut() {
              this._renderer.fadeOutRipple(this);
            }
          }
          
          /** Options used to bind a passive capturing event. */
          const passiveCapturingEventOptions$1 = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.normalizePassiveListenerOptions)({
            passive: true,
            capture: true
          });
          /** Manages events through delegation so that as few event handlers as possible are bound. */
          class RippleEventManager {
            constructor() {
              this._events = new Map();
              /** Event handler that is bound and which dispatches the events to the different targets. */
              this._delegateEventHandler = event => {
                const target = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__._getEventTarget)(event);
                if (target) {
                  this._events.get(event.type)?.forEach((handlers, element) => {
                    if (element === target || element.contains(target)) {
                      handlers.forEach(handler => handler.handleEvent(event));
                    }
                  });
                }
              };
            }
            /** Adds an event handler. */
            addHandler(ngZone, name, element, handler) {
              const handlersForEvent = this._events.get(name);
              if (handlersForEvent) {
                const handlersForElement = handlersForEvent.get(element);
                if (handlersForElement) {
                  handlersForElement.add(handler);
                } else {
                  handlersForEvent.set(element, new Set([handler]));
                }
              } else {
                this._events.set(name, new Map([[element, new Set([handler])]]));
                ngZone.runOutsideAngular(() => {
                  document.addEventListener(name, this._delegateEventHandler, passiveCapturingEventOptions$1);
                });
              }
            }
            /** Removes an event handler. */
            removeHandler(name, element, handler) {
              const handlersForEvent = this._events.get(name);
              if (!handlersForEvent) {
                return;
              }
              const handlersForElement = handlersForEvent.get(element);
              if (!handlersForElement) {
                return;
              }
              handlersForElement.delete(handler);
              if (handlersForElement.size === 0) {
                handlersForEvent.delete(element);
              }
              if (handlersForEvent.size === 0) {
                this._events.delete(name);
                document.removeEventListener(name, this._delegateEventHandler, passiveCapturingEventOptions$1);
              }
            }
          }
          
          /**
           * Default ripple animation configuration for ripples without an explicit
           * animation config specified.
           */
          const defaultRippleAnimationConfig = {
            enterDuration: 225,
            exitDuration: 150
          };
          /**
           * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch
           * events to avoid synthetic mouse events.
           */
          const ignoreMouseEventsTimeout = 800;
          /** Options used to bind a passive capturing event. */
          const passiveCapturingEventOptions = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.normalizePassiveListenerOptions)({
            passive: true,
            capture: true
          });
          /** Events that signal that the pointer is down. */
          const pointerDownEvents = ['mousedown', 'touchstart'];
          /** Events that signal that the pointer is up. */
          const pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];
          /**
           * Helper service that performs DOM manipulations. Not intended to be used outside this module.
           * The constructor takes a reference to the ripple directive's host element and a map of DOM
           * event handlers to be installed on the element that triggers ripple animations.
           * This will eventually become a custom renderer once Angular support exists.
           * @docs-private
           */
          class RippleRenderer {
            static {
              this._eventManager = new RippleEventManager();
            }
            constructor(_target, _ngZone, elementOrElementRef, _platform) {
              this._target = _target;
              this._ngZone = _ngZone;
              this._platform = _platform;
              /** Whether the pointer is currently down or not. */
              this._isPointerDown = false;
              /**
               * Map of currently active ripple references.
               * The ripple reference is mapped to its element event listeners.
               * The reason why `| null` is used is that event listeners are added only
               * when the condition is truthy (see the `_startFadeOutTransition` method).
               */
              this._activeRipples = new Map();
              /** Whether pointer-up event listeners have been registered. */
              this._pointerUpEventsRegistered = false;
              // Only do anything if we're on the browser.
              if (_platform.isBrowser) {
                this._containerElement = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceElement)(elementOrElementRef);
              }
            }
            /**
             * Fades in a ripple at the given coordinates.
             * @param x Coordinate within the element, along the X axis at which to start the ripple.
             * @param y Coordinate within the element, along the Y axis at which to start the ripple.
             * @param config Extra ripple options.
             */
            fadeInRipple(x, y, config = {}) {
              const containerRect = this._containerRect = this._containerRect || this._containerElement.getBoundingClientRect();
              const animationConfig = {
                ...defaultRippleAnimationConfig,
                ...config.animation
              };
              if (config.centered) {
                x = containerRect.left + containerRect.width / 2;
                y = containerRect.top + containerRect.height / 2;
              }
              const radius = config.radius || distanceToFurthestCorner(x, y, containerRect);
              const offsetX = x - containerRect.left;
              const offsetY = y - containerRect.top;
              const enterDuration = animationConfig.enterDuration;
              const ripple = document.createElement('div');
              ripple.classList.add('mat-ripple-element');
              ripple.style.left = `${offsetX - radius}px`;
              ripple.style.top = `${offsetY - radius}px`;
              ripple.style.height = `${radius * 2}px`;
              ripple.style.width = `${radius * 2}px`;
              // If a custom color has been specified, set it as inline style. If no color is
              // set, the default color will be applied through the ripple theme styles.
              if (config.color != null) {
                ripple.style.backgroundColor = config.color;
              }
              ripple.style.transitionDuration = `${enterDuration}ms`;
              this._containerElement.appendChild(ripple);
              // By default the browser does not recalculate the styles of dynamically created
              // ripple elements. This is critical to ensure that the `scale` animates properly.
              // We enforce a style recalculation by calling `getComputedStyle` and *accessing* a property.
              // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
              const computedStyles = window.getComputedStyle(ripple);
              const userTransitionProperty = computedStyles.transitionProperty;
              const userTransitionDuration = computedStyles.transitionDuration;
              // Note: We detect whether animation is forcibly disabled through CSS (e.g. through
              // `transition: none` or `display: none`). This is technically unexpected since animations are
              // controlled through the animation config, but this exists for backwards compatibility. This
              // logic does not need to be super accurate since it covers some edge cases which can be easily
              // avoided by users.
              const animationForciblyDisabledThroughCss = userTransitionProperty === 'none' ||
              // Note: The canonical unit for serialized CSS `<time>` properties is seconds. Additionally
              // some browsers expand the duration for every property (in our case `opacity` and `transform`).
              userTransitionDuration === '0s' || userTransitionDuration === '0s, 0s' ||
              // If the container is 0x0, it's likely `display: none`.
              containerRect.width === 0 && containerRect.height === 0;
              // Exposed reference to the ripple that will be returned.
              const rippleRef = new RippleRef(this, ripple, config, animationForciblyDisabledThroughCss);
              // Start the enter animation by setting the transform/scale to 100%. The animation will
              // execute as part of this statement because we forced a style recalculation before.
              // Note: We use a 3d transform here in order to avoid an issue in Safari where
              // the ripples aren't clipped when inside the shadow DOM (see #24028).
              ripple.style.transform = 'scale3d(1, 1, 1)';
              rippleRef.state = 0 /* RippleState.FADING_IN */;
              if (!config.persistent) {
                this._mostRecentTransientRipple = rippleRef;
              }
              let eventListeners = null;
              // Do not register the `transition` event listener if fade-in and fade-out duration
              // are set to zero. The events won't fire anyway and we can save resources here.
              if (!animationForciblyDisabledThroughCss && (enterDuration || animationConfig.exitDuration)) {
                this._ngZone.runOutsideAngular(() => {
                  const onTransitionEnd = () => this._finishRippleTransition(rippleRef);
                  const onTransitionCancel = () => this._destroyRipple(rippleRef);
                  ripple.addEventListener('transitionend', onTransitionEnd);
                  // If the transition is cancelled (e.g. due to DOM removal), we destroy the ripple
                  // directly as otherwise we would keep it part of the ripple container forever.
                  // https://www.w3.org/TR/css-transitions-1/#:~:text=no%20longer%20in%20the%20document.
                  ripple.addEventListener('transitioncancel', onTransitionCancel);
                  eventListeners = {
                    onTransitionEnd,
                    onTransitionCancel
                  };
                });
              }
              // Add the ripple reference to the list of all active ripples.
              this._activeRipples.set(rippleRef, eventListeners);
              // In case there is no fade-in transition duration, we need to manually call the transition
              // end listener because `transitionend` doesn't fire if there is no transition.
              if (animationForciblyDisabledThroughCss || !enterDuration) {
                this._finishRippleTransition(rippleRef);
              }
              return rippleRef;
            }
            /** Fades out a ripple reference. */
            fadeOutRipple(rippleRef) {
              // For ripples already fading out or hidden, this should be a noop.
              if (rippleRef.state === 2 /* RippleState.FADING_OUT */ || rippleRef.state === 3 /* RippleState.HIDDEN */) {
                return;
              }
              const rippleEl = rippleRef.element;
              const animationConfig = {
                ...defaultRippleAnimationConfig,
                ...rippleRef.config.animation
              };
              // This starts the fade-out transition and will fire the transition end listener that
              // removes the ripple element from the DOM.
              rippleEl.style.transitionDuration = `${animationConfig.exitDuration}ms`;
              rippleEl.style.opacity = '0';
              rippleRef.state = 2 /* RippleState.FADING_OUT */;
              // In case there is no fade-out transition duration, we need to manually call the
              // transition end listener because `transitionend` doesn't fire if there is no transition.
              if (rippleRef._animationForciblyDisabledThroughCss || !animationConfig.exitDuration) {
                this._finishRippleTransition(rippleRef);
              }
            }
            /** Fades out all currently active ripples. */
            fadeOutAll() {
              this._getActiveRipples().forEach(ripple => ripple.fadeOut());
            }
            /** Fades out all currently active non-persistent ripples. */
            fadeOutAllNonPersistent() {
              this._getActiveRipples().forEach(ripple => {
                if (!ripple.config.persistent) {
                  ripple.fadeOut();
                }
              });
            }
            /** Sets up the trigger event listeners */
            setupTriggerEvents(elementOrElementRef) {
              const element = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceElement)(elementOrElementRef);
              if (!this._platform.isBrowser || !element || element === this._triggerElement) {
                return;
              }
              // Remove all previously registered event listeners from the trigger element.
              this._removeTriggerEvents();
              this._triggerElement = element;
              // Use event delegation for the trigger events since they're
              // set up during creation and are performance-sensitive.
              pointerDownEvents.forEach(type => {
                RippleRenderer._eventManager.addHandler(this._ngZone, type, element, this);
              });
            }
            /**
             * Handles all registered events.
             * @docs-private
             */
            handleEvent(event) {
              if (event.type === 'mousedown') {
                this._onMousedown(event);
              } else if (event.type === 'touchstart') {
                this._onTouchStart(event);
              } else {
                this._onPointerUp();
              }
              // If pointer-up events haven't been registered yet, do so now.
              // We do this on-demand in order to reduce the total number of event listeners
              // registered by the ripples, which speeds up the rendering time for large UIs.
              if (!this._pointerUpEventsRegistered) {
                // The events for hiding the ripple are bound directly on the trigger, because:
                // 1. Some of them occur frequently (e.g. `mouseleave`) and any advantage we get from
                // delegation will be diminished by having to look through all the data structures often.
                // 2. They aren't as performance-sensitive, because they're bound only after the user
                // has interacted with an element.
                this._ngZone.runOutsideAngular(() => {
                  pointerUpEvents.forEach(type => {
                    this._triggerElement.addEventListener(type, this, passiveCapturingEventOptions);
                  });
                });
                this._pointerUpEventsRegistered = true;
              }
            }
            /** Method that will be called if the fade-in or fade-in transition completed. */
            _finishRippleTransition(rippleRef) {
              if (rippleRef.state === 0 /* RippleState.FADING_IN */) {
                this._startFadeOutTransition(rippleRef);
              } else if (rippleRef.state === 2 /* RippleState.FADING_OUT */) {
                this._destroyRipple(rippleRef);
              }
            }
            /**
             * Starts the fade-out transition of the given ripple if it's not persistent and the pointer
             * is not held down anymore.
             */
            _startFadeOutTransition(rippleRef) {
              const isMostRecentTransientRipple = rippleRef === this._mostRecentTransientRipple;
              const {
                persistent
              } = rippleRef.config;
              rippleRef.state = 1 /* RippleState.VISIBLE */;
              // When the timer runs out while the user has kept their pointer down, we want to
              // keep only the persistent ripples and the latest transient ripple. We do this,
              // because we don't want stacked transient ripples to appear after their enter
              // animation has finished.
              if (!persistent && (!isMostRecentTransientRipple || !this._isPointerDown)) {
                rippleRef.fadeOut();
              }
            }
            /** Destroys the given ripple by removing it from the DOM and updating its state. */
            _destroyRipple(rippleRef) {
              const eventListeners = this._activeRipples.get(rippleRef) ?? null;
              this._activeRipples.delete(rippleRef);
              // Clear out the cached bounding rect if we have no more ripples.
              if (!this._activeRipples.size) {
                this._containerRect = null;
              }
              // If the current ref is the most recent transient ripple, unset it
              // avoid memory leaks.
              if (rippleRef === this._mostRecentTransientRipple) {
                this._mostRecentTransientRipple = null;
              }
              rippleRef.state = 3 /* RippleState.HIDDEN */;
              if (eventListeners !== null) {
                rippleRef.element.removeEventListener('transitionend', eventListeners.onTransitionEnd);
                rippleRef.element.removeEventListener('transitioncancel', eventListeners.onTransitionCancel);
              }
              rippleRef.element.remove();
            }
            /** Function being called whenever the trigger is being pressed using mouse. */
            _onMousedown(event) {
              // Screen readers will fire fake mouse events for space/enter. Skip launching a
              // ripple in this case for consistency with the non-screen-reader experience.
              const isFakeMousedown = (0,_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__.isFakeMousedownFromScreenReader)(event);
              const isSyntheticEvent = this._lastTouchStartEvent && Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout;
              if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) {
                this._isPointerDown = true;
                this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig);
              }
            }
            /** Function being called whenever the trigger is being pressed using touch. */
            _onTouchStart(event) {
              if (!this._target.rippleDisabled && !(0,_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__.isFakeTouchstartFromScreenReader)(event)) {
                // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse
                // events will launch a second ripple if we don't ignore mouse events for a specific
                // time after a touchstart event.
                this._lastTouchStartEvent = Date.now();
                this._isPointerDown = true;
                // Use `changedTouches` so we skip any touches where the user put
                // their finger down, but used another finger to tap the element again.
                const touches = event.changedTouches;
                // According to the typings the touches should always be defined, but in some cases
                // the browser appears to not assign them in tests which leads to flakes.
                if (touches) {
                  for (let i = 0; i < touches.length; i++) {
                    this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig);
                  }
                }
              }
            }
            /** Function being called whenever the trigger is being released. */
            _onPointerUp() {
              if (!this._isPointerDown) {
                return;
              }
              this._isPointerDown = false;
              // Fade-out all ripples that are visible and not persistent.
              this._getActiveRipples().forEach(ripple => {
                // By default, only ripples that are completely visible will fade out on pointer release.
                // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.
                const isVisible = ripple.state === 1 /* RippleState.VISIBLE */ || ripple.config.terminateOnPointerUp && ripple.state === 0 /* RippleState.FADING_IN */;
                if (!ripple.config.persistent && isVisible) {
                  ripple.fadeOut();
                }
              });
            }
            _getActiveRipples() {
              return Array.from(this._activeRipples.keys());
            }
            /** Removes previously registered event listeners from the trigger element. */
            _removeTriggerEvents() {
              const trigger = this._triggerElement;
              if (trigger) {
                pointerDownEvents.forEach(type => RippleRenderer._eventManager.removeHandler(type, trigger, this));
                if (this._pointerUpEventsRegistered) {
                  pointerUpEvents.forEach(type => trigger.removeEventListener(type, this, passiveCapturingEventOptions));
                }
              }
            }
          }
          /**
           * Returns the distance from the point (x, y) to the furthest corner of a rectangle.
           */
          function distanceToFurthestCorner(x, y, rect) {
            const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
            const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
            return Math.sqrt(distX * distX + distY * distY);
          }
          
          /** Injection token that can be used to specify the global ripple options. */
          const MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-ripple-global-options');
          class MatRipple {
            /**
             * Whether click events will not trigger the ripple. Ripples can be still launched manually
             * by using the `launch()` method.
             */
            get disabled() {
              return this._disabled;
            }
            set disabled(value) {
              if (value) {
                this.fadeOutAllNonPersistent();
              }
              this._disabled = value;
              this._setupTriggerEventsIfEnabled();
            }
            /**
             * The element that triggers the ripple when click events are received.
             * Defaults to the directive's host element.
             */
            get trigger() {
              return this._trigger || this._elementRef.nativeElement;
            }
            set trigger(trigger) {
              this._trigger = trigger;
              this._setupTriggerEventsIfEnabled();
            }
            constructor(_elementRef, ngZone, platform, globalOptions, _animationMode) {
              this._elementRef = _elementRef;
              this._animationMode = _animationMode;
              /**
               * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
               * will be the distance from the center of the ripple to the furthest corner of the host element's
               * bounding rectangle.
               */
              this.radius = 0;
              this._disabled = false;
              /** @docs-private Whether ripple directive is initialized and the input bindings are set. */
              this._isInitialized = false;
              this._globalOptions = globalOptions || {};
              this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);
            }
            ngOnInit() {
              this._isInitialized = true;
              this._setupTriggerEventsIfEnabled();
            }
            ngOnDestroy() {
              this._rippleRenderer._removeTriggerEvents();
            }
            /** Fades out all currently showing ripple elements. */
            fadeOutAll() {
              this._rippleRenderer.fadeOutAll();
            }
            /** Fades out all currently showing non-persistent ripple elements. */
            fadeOutAllNonPersistent() {
              this._rippleRenderer.fadeOutAllNonPersistent();
            }
            /**
             * Ripple configuration from the directive's input values.
             * @docs-private Implemented as part of RippleTarget
             */
            get rippleConfig() {
              return {
                centered: this.centered,
                radius: this.radius,
                color: this.color,
                animation: {
                  ...this._globalOptions.animation,
                  ...(this._animationMode === 'NoopAnimations' ? {
                    enterDuration: 0,
                    exitDuration: 0
                  } : {}),
                  ...this.animation
                },
                terminateOnPointerUp: this._globalOptions.terminateOnPointerUp
              };
            }
            /**
             * Whether ripples on pointer-down are disabled or not.
             * @docs-private Implemented as part of RippleTarget
             */
            get rippleDisabled() {
              return this.disabled || !!this._globalOptions.disabled;
            }
            /** Sets up the trigger event listeners if ripples are enabled. */
            _setupTriggerEventsIfEnabled() {
              if (!this.disabled && this._isInitialized) {
                this._rippleRenderer.setupTriggerEvents(this.trigger);
              }
            }
            /** Launches a manual ripple at the specified coordinated or just by the ripple config. */
            launch(configOrX, y = 0, config) {
              if (typeof configOrX === 'number') {
                return this._rippleRenderer.fadeInRipple(configOrX, y, {
                  ...this.rippleConfig,
                  ...config
                });
              } else {
                return this._rippleRenderer.fadeInRipple(0, 0, {
                  ...this.rippleConfig,
                  ...configOrX
                });
              }
            }
            static {
              this.ɵfac = function MatRipple_Factory(t) {
                return new (t || MatRipple)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_RIPPLE_GLOBAL_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatRipple,
                selectors: [["", "mat-ripple", ""], ["", "matRipple", ""]],
                hostAttrs: [1, "mat-ripple"],
                hostVars: 2,
                hostBindings: function MatRipple_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-ripple-unbounded", ctx.unbounded);
                  }
                },
                inputs: {
                  color: ["matRippleColor", "color"],
                  unbounded: ["matRippleUnbounded", "unbounded"],
                  centered: ["matRippleCentered", "centered"],
                  radius: ["matRippleRadius", "radius"],
                  animation: ["matRippleAnimation", "animation"],
                  disabled: ["matRippleDisabled", "disabled"],
                  trigger: ["matRippleTrigger", "trigger"]
                },
                exportAs: ["matRipple"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRipple, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[mat-ripple], [matRipple]',
                exportAs: 'matRipple',
                host: {
                  'class': 'mat-ripple',
                  '[class.mat-ripple-unbounded]': 'unbounded'
                }
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_RIPPLE_GLOBAL_OPTIONS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, {
              color: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleColor']
              }],
              unbounded: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleUnbounded']
              }],
              centered: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleCentered']
              }],
              radius: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleRadius']
              }],
              animation: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleAnimation']
              }],
              disabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleDisabled']
              }],
              trigger: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matRippleTrigger']
              }]
            });
          })();
          class MatRippleModule {
            static {
              this.ɵfac = function MatRippleModule_Factory(t) {
                return new (t || MatRippleModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatRippleModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [MatCommonModule, MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRippleModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [MatCommonModule],
                exports: [MatRipple, MatCommonModule],
                declarations: [MatRipple]
              }]
            }], null, null);
          })();
          
          /**
           * Component that shows a simplified checkbox without including any kind of "real" checkbox.
           * Meant to be used when the checkbox is purely decorative and a large number of them will be
           * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
           * Note that theming is meant to be handled by the parent element, e.g.
           * `mat-primary .mat-pseudo-checkbox`.
           *
           * Note that this component will be completely invisible to screen-reader users. This is *not*
           * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
           * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
           * of more complex components that appropriately handle selected / checked state.
           * @docs-private
           */
          class MatPseudoCheckbox {
            constructor(_animationMode) {
              this._animationMode = _animationMode;
              /** Display state of the checkbox. */
              this.state = 'unchecked';
              /** Whether the checkbox is disabled. */
              this.disabled = false;
              /**
               * Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark
               * indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.
               */
              this.appearance = 'full';
            }
            static {
              this.ɵfac = function MatPseudoCheckbox_Factory(t) {
                return new (t || MatPseudoCheckbox)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatPseudoCheckbox,
                selectors: [["mat-pseudo-checkbox"]],
                hostAttrs: [1, "mat-pseudo-checkbox"],
                hostVars: 12,
                hostBindings: function MatPseudoCheckbox_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-pseudo-checkbox-indeterminate", ctx.state === "indeterminate")("mat-pseudo-checkbox-checked", ctx.state === "checked")("mat-pseudo-checkbox-disabled", ctx.disabled)("mat-pseudo-checkbox-minimal", ctx.appearance === "minimal")("mat-pseudo-checkbox-full", ctx.appearance === "full")("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
                  }
                },
                inputs: {
                  state: "state",
                  disabled: "disabled",
                  appearance: "appearance"
                },
                decls: 0,
                vars: 0,
                template: function MatPseudoCheckbox_Template(rf, ctx) {},
                styles: [".mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckbox, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                selector: 'mat-pseudo-checkbox',
                template: '',
                host: {
                  'class': 'mat-pseudo-checkbox',
                  '[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
                  '[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
                  '[class.mat-pseudo-checkbox-disabled]': 'disabled',
                  '[class.mat-pseudo-checkbox-minimal]': 'appearance === "minimal"',
                  '[class.mat-pseudo-checkbox-full]': 'appearance === "full"',
                  '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"'
                },
                styles: [".mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}"]
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, {
              state: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              disabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              appearance: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class MatPseudoCheckboxModule {
            static {
              this.ɵfac = function MatPseudoCheckboxModule_Factory(t) {
                return new (t || MatPseudoCheckboxModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatPseudoCheckboxModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckboxModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [MatCommonModule],
                exports: [MatPseudoCheckbox],
                declarations: [MatPseudoCheckbox]
              }]
            }], null, null);
          })();
          
          /**
           * Injection token used to provide the parent component to options.
           */
          const MAT_OPTION_PARENT_COMPONENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_OPTION_PARENT_COMPONENT');
          
          // Notes on the accessibility pattern used for `mat-optgroup`.
          // The option group has two different "modes": regular and inert. The regular mode uses the
          // recommended a11y pattern which has `role="group"` on the group element with `aria-labelledby`
          // pointing to the label. This works for `mat-select`, but it seems to hit a bug for autocomplete
          // under VoiceOver where the group doesn't get read out at all. The bug appears to be that if
          // there's __any__ a11y-related attribute on the group (e.g. `role` or `aria-labelledby`),
          // VoiceOver on Safari won't read it out.
          // We've introduced the `inert` mode as a workaround. Under this mode, all a11y attributes are
          // removed from the group, and we get the screen reader to read out the group label by mirroring it
          // inside an invisible element in the option. This is sub-optimal, because the screen reader will
          // repeat the group label on each navigation, whereas the default pattern only reads the group when
          // the user enters a new group. The following alternate approaches were considered:
          // 1. Reading out the group label using the `LiveAnnouncer` solves the problem, but we can't control
          //    when the text will be read out so sometimes it comes in too late or never if the user
          //    navigates quickly.
          // 2. `<mat-option aria-describedby="groupLabel"` - This works on Safari, but VoiceOver in Chrome
          //    won't read out the description at all.
          // 3. `<mat-option aria-labelledby="optionLabel groupLabel"` - This works on Chrome, but Safari
          //     doesn't read out the text at all. Furthermore, on
          // Boilerplate for applying mixins to MatOptgroup.
          /** @docs-private */
          const _MatOptgroupMixinBase = mixinDisabled(class {});
          // Counter for unique group ids.
          let _uniqueOptgroupIdCounter = 0;
          class _MatOptgroupBase extends _MatOptgroupMixinBase {
            constructor(parent) {
              super();
              /** Unique id for the underlying label. */
              this._labelId = `mat-optgroup-label-${_uniqueOptgroupIdCounter++}`;
              this._inert = parent?.inertGroups ?? false;
            }
            static {
              this.ɵfac = function _MatOptgroupBase_Factory(t) {
                return new (t || _MatOptgroupBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTION_PARENT_COMPONENT, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _MatOptgroupBase,
                inputs: {
                  label: "label"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptgroupBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_OPTION_PARENT_COMPONENT]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }];
            }, {
              label: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * Injection token that can be used to reference instances of `MatOptgroup`. It serves as
           * alternative token to the actual `MatOptgroup` class which could cause unnecessary
           * retention of the class and its component metadata.
           */
          const MAT_OPTGROUP = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatOptgroup');
          /**
           * Component that is used to group instances of `mat-option`.
           */
          class MatOptgroup extends _MatOptgroupBase {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatOptgroup_BaseFactory;
                return function MatOptgroup_Factory(t) {
                  return (ɵMatOptgroup_BaseFactory || (ɵMatOptgroup_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatOptgroup)))(t || MatOptgroup);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatOptgroup,
                selectors: [["mat-optgroup"]],
                hostAttrs: [1, "mat-mdc-optgroup"],
                hostVars: 3,
                hostBindings: function MatOptgroup_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("role", ctx._inert ? null : "group")("aria-disabled", ctx._inert ? null : ctx.disabled.toString())("aria-labelledby", ctx._inert ? null : ctx._labelId);
                  }
                },
                inputs: {
                  disabled: "disabled"
                },
                exportAs: ["matOptgroup"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_OPTGROUP,
                  useExisting: MatOptgroup
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                ngContentSelectors: _c1,
                decls: 5,
                vars: 4,
                consts: [["role", "presentation", 1, "mat-mdc-optgroup-label", 3, "id"], [1, "mdc-list-item__primary-text"]],
                template: function MatOptgroup_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 0)(1, "span", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](4, 1);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-list-item--disabled", ctx.disabled);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx._labelId);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.label, " ");
                  }
                },
                styles: [".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptgroup, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-optgroup',
                exportAs: 'matOptgroup',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                inputs: ['disabled'],
                host: {
                  'class': 'mat-mdc-optgroup',
                  '[attr.role]': '_inert ? null : "group"',
                  '[attr.aria-disabled]': '_inert ? null : disabled.toString()',
                  '[attr.aria-labelledby]': '_inert ? null : _labelId'
                },
                providers: [{
                  provide: MAT_OPTGROUP,
                  useExisting: MatOptgroup
                }],
                template: "<span\n  class=\"mat-mdc-optgroup-label\"\n  role=\"presentation\"\n  [class.mdc-list-item--disabled]=\"disabled\"\n  [id]=\"_labelId\">\n  <span class=\"mdc-list-item__primary-text\">{{ label }} <ng-content></ng-content></span>\n</span>\n\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n",
                styles: [".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"]
              }]
            }], null, null);
          })();
          
          /**
           * Option IDs need to be unique across components, so this counter exists outside of
           * the component definition.
           */
          let _uniqueIdCounter = 0;
          /** Event object emitted by MatOption when selected or deselected. */
          class MatOptionSelectionChange {
            constructor( /** Reference to the option that emitted the event. */
            source, /** Whether the change in the option's value was a result of a user action. */
            isUserInput = false) {
              this.source = source;
              this.isUserInput = isUserInput;
            }
          }
          class _MatOptionBase {
            /** Whether the wrapping component is in multiple selection mode. */
            get multiple() {
              return this._parent && this._parent.multiple;
            }
            /** Whether or not the option is currently selected. */
            get selected() {
              return this._selected;
            }
            /** Whether the option is disabled. */
            get disabled() {
              return this.group && this.group.disabled || this._disabled;
            }
            set disabled(value) {
              this._disabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
            }
            /** Whether ripples for the option are disabled. */
            get disableRipple() {
              return !!(this._parent && this._parent.disableRipple);
            }
            /** Whether to display checkmark for single-selection. */
            get hideSingleSelectionIndicator() {
              return !!(this._parent && this._parent.hideSingleSelectionIndicator);
            }
            constructor(_element, _changeDetectorRef, _parent, group) {
              this._element = _element;
              this._changeDetectorRef = _changeDetectorRef;
              this._parent = _parent;
              this.group = group;
              this._selected = false;
              this._active = false;
              this._disabled = false;
              this._mostRecentViewValue = '';
              /** The unique ID of the option. */
              this.id = `mat-option-${_uniqueIdCounter++}`;
              /** Event emitted when the option is selected or deselected. */
              // tslint:disable-next-line:no-output-on-prefix
              this.onSelectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /** Emits when the state of the option changes and any parents have to be notified. */
              this._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_8__.Subject();
            }
            /**
             * Whether or not the option is currently active and ready to be selected.
             * An active option displays styles as if it is focused, but the
             * focus is actually retained somewhere else. This comes in handy
             * for components like autocomplete where focus must remain on the input.
             */
            get active() {
              return this._active;
            }
            /**
             * The displayed value of the option. It is necessary to show the selected option in the
             * select's trigger.
             */
            get viewValue() {
              // TODO(kara): Add input property alternative for node envs.
              return (this._text?.nativeElement.textContent || '').trim();
            }
            /** Selects the option. */
            select(emitEvent = true) {
              if (!this._selected) {
                this._selected = true;
                this._changeDetectorRef.markForCheck();
                if (emitEvent) {
                  this._emitSelectionChangeEvent();
                }
              }
            }
            /** Deselects the option. */
            deselect(emitEvent = true) {
              if (this._selected) {
                this._selected = false;
                this._changeDetectorRef.markForCheck();
                if (emitEvent) {
                  this._emitSelectionChangeEvent();
                }
              }
            }
            /** Sets focus onto this option. */
            focus(_origin, options) {
              // Note that we aren't using `_origin`, but we need to keep it because some internal consumers
              // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.
              const element = this._getHostElement();
              if (typeof element.focus === 'function') {
                element.focus(options);
              }
            }
            /**
             * This method sets display styles on the option to make it appear
             * active. This is used by the ActiveDescendantKeyManager so key
             * events will display the proper options as active on arrow key events.
             */
            setActiveStyles() {
              if (!this._active) {
                this._active = true;
                this._changeDetectorRef.markForCheck();
              }
            }
            /**
             * This method removes display styles on the option that made it appear
             * active. This is used by the ActiveDescendantKeyManager so key
             * events will display the proper options as active on arrow key events.
             */
            setInactiveStyles() {
              if (this._active) {
                this._active = false;
                this._changeDetectorRef.markForCheck();
              }
            }
            /** Gets the label to be used when determining whether the option should be focused. */
            getLabel() {
              return this.viewValue;
            }
            /** Ensures the option is selected when activated from the keyboard. */
            _handleKeydown(event) {
              if ((event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__.ENTER || event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__.SPACE) && !(0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__.hasModifierKey)(event)) {
                this._selectViaInteraction();
                // Prevent the page from scrolling down and form submits.
                event.preventDefault();
              }
            }
            /**
             * `Selects the option while indicating the selection came from the user. Used to
             * determine if the select's view -> model callback should be invoked.`
             */
            _selectViaInteraction() {
              if (!this.disabled) {
                this._selected = this.multiple ? !this._selected : true;
                this._changeDetectorRef.markForCheck();
                this._emitSelectionChangeEvent(true);
              }
            }
            /** Returns the correct tabindex for the option depending on disabled state. */
            // This method is only used by `MatLegacyOption`. Keeping it here to avoid breaking the types.
            // That's because `MatLegacyOption` use `MatOption` type in a few places such as
            // `MatOptionSelectionChange`. It is safe to delete this when `MatLegacyOption` is deleted.
            _getTabIndex() {
              return this.disabled ? '-1' : '0';
            }
            /** Gets the host DOM element. */
            _getHostElement() {
              return this._element.nativeElement;
            }
            ngAfterViewChecked() {
              // Since parent components could be using the option's label to display the selected values
              // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed
              // we have to check for changes in the DOM ourselves and dispatch an event. These checks are
              // relatively cheap, however we still limit them only to selected options in order to avoid
              // hitting the DOM too often.
              if (this._selected) {
                const viewValue = this.viewValue;
                if (viewValue !== this._mostRecentViewValue) {
                  if (this._mostRecentViewValue) {
                    this._stateChanges.next();
                  }
                  this._mostRecentViewValue = viewValue;
                }
              }
            }
            ngOnDestroy() {
              this._stateChanges.complete();
            }
            /** Emits the selection change event. */
            _emitSelectionChangeEvent(isUserInput = false) {
              this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
            }
            static {
              this.ɵfac = function _MatOptionBase_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _MatOptionBase,
                viewQuery: function _MatOptionBase_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c2, 7);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._text = _t.first);
                  }
                },
                inputs: {
                  value: "value",
                  id: "id",
                  disabled: "disabled"
                },
                outputs: {
                  onSelectionChange: "onSelectionChange"
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptionBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: undefined
              }, {
                type: _MatOptgroupBase
              }];
            }, {
              value: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              id: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              disabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              onSelectionChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }],
              _text: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['text', {
                  static: true
                }]
              }]
            });
          })();
          /**
           * Single option inside of a `<mat-select>` element.
           */
          class MatOption extends _MatOptionBase {
            constructor(element, changeDetectorRef, parent, group) {
              super(element, changeDetectorRef, parent, group);
            }
            static {
              this.ɵfac = function MatOption_Factory(t) {
                return new (t || MatOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTION_PARENT_COMPONENT, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTGROUP, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatOption,
                selectors: [["mat-option"]],
                hostAttrs: ["role", "option", 1, "mat-mdc-option", "mdc-list-item"],
                hostVars: 11,
                hostBindings: function MatOption_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatOption_click_HostBindingHandler() {
                      return ctx._selectViaInteraction();
                    })("keydown", function MatOption_keydown_HostBindingHandler($event) {
                      return ctx._handleKeydown($event);
                    });
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-selected", ctx.selected)("aria-disabled", ctx.disabled.toString());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-list-item--selected", ctx.selected)("mat-mdc-option-multiple", ctx.multiple)("mat-mdc-option-active", ctx.active)("mdc-list-item--disabled", ctx.disabled);
                  }
                },
                exportAs: ["matOption"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                ngContentSelectors: _c4,
                decls: 8,
                vars: 5,
                consts: [["class", "mat-mdc-option-pseudo-checkbox", "aria-hidden", "true", 3, "disabled", "state", 4, "ngIf"], [1, "mdc-list-item__primary-text"], ["text", ""], ["class", "mat-mdc-option-pseudo-checkbox", "state", "checked", "aria-hidden", "true", "appearance", "minimal", 3, "disabled", 4, "ngIf"], ["class", "cdk-visually-hidden", 4, "ngIf"], ["aria-hidden", "true", "mat-ripple", "", 1, "mat-mdc-option-ripple", "mat-mdc-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled"], ["aria-hidden", "true", 1, "mat-mdc-option-pseudo-checkbox", 3, "disabled", "state"], ["state", "checked", "aria-hidden", "true", "appearance", "minimal", 1, "mat-mdc-option-pseudo-checkbox", 3, "disabled"], [1, "cdk-visually-hidden"]],
                template: function MatOption_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatOption_mat_pseudo_checkbox_0_Template, 1, 2, "mat-pseudo-checkbox", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 1, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](4, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, MatOption_mat_pseudo_checkbox_5_Template, 1, 1, "mat-pseudo-checkbox", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MatOption_span_6_Template, 2, 1, "span", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 5);
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.multiple);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.multiple && ctx.selected && !ctx.hideSingleSelectionIndicator);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.group && ctx.group._inert);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx.disabled || ctx.disableRipple);
                  }
                },
                dependencies: [MatRipple, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, MatPseudoCheckbox],
                styles: [".mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:\"\"}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOption, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-option',
                exportAs: 'matOption',
                host: {
                  'role': 'option',
                  '[class.mdc-list-item--selected]': 'selected',
                  '[class.mat-mdc-option-multiple]': 'multiple',
                  '[class.mat-mdc-option-active]': 'active',
                  '[class.mdc-list-item--disabled]': 'disabled',
                  '[id]': 'id',
                  // Set aria-selected to false for non-selected items and true for selected items. Conform to
                  // [WAI ARIA Listbox authoring practices guide](
                  //  https://www.w3.org/WAI/ARIA/apg/patterns/listbox/), "If any options are selected, each
                  // selected option has either aria-selected or aria-checked  set to true. All options that are
                  // selectable but not selected have either aria-selected or aria-checked set to false." Align
                  // aria-selected implementation of Chips and List components.
                  //
                  // Set `aria-selected="false"` on not-selected listbox options to fix VoiceOver announcing
                  // every option as "selected" (#21491).
                  '[attr.aria-selected]': 'selected',
                  '[attr.aria-disabled]': 'disabled.toString()',
                  '(click)': '_selectViaInteraction()',
                  '(keydown)': '_handleKeydown($event)',
                  'class': 'mat-mdc-option mdc-list-item'
                },
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                template: "<!-- Set aria-hidden=\"true\" to this DOM node and other decorative nodes in this file. This might\n be contributing to issue where sometimes VoiceOver focuses on a TextNode in the a11y tree instead\n of the Option node (#23202). Most assistive technology will generally ignore non-role,\n non-text-content elements. Adding aria-hidden seems to make VoiceOver behave more consistently. -->\n<mat-pseudo-checkbox *ngIf=\"multiple\" class=\"mat-mdc-option-pseudo-checkbox\" [disabled]=\"disabled\"\n    [state]=\"selected ? 'checked' : 'unchecked'\" aria-hidden=\"true\"></mat-pseudo-checkbox>\n\n<ng-content select=\"mat-icon\"></ng-content>\n\n<span class=\"mdc-list-item__primary-text\" #text><ng-content></ng-content></span>\n\n<!-- Render checkmark at the end for single-selection. -->\n<mat-pseudo-checkbox *ngIf=\"!multiple && selected && !hideSingleSelectionIndicator\"\n    class=\"mat-mdc-option-pseudo-checkbox\" [disabled]=\"disabled\" state=\"checked\"\n    aria-hidden=\"true\" appearance=\"minimal\"></mat-pseudo-checkbox>\n\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\n<span class=\"cdk-visually-hidden\" *ngIf=\"group && group._inert\">({{ group.label }})</span>\n\n<div class=\"mat-mdc-option-ripple mat-mdc-focus-indicator\" aria-hidden=\"true\" mat-ripple\n     [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n",
                styles: [".mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:\"\"}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_OPTION_PARENT_COMPONENT]
                }]
              }, {
                type: MatOptgroup,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_OPTGROUP]
                }]
              }];
            }, null);
          })();
          /**
           * Counts the amount of option group labels that precede the specified option.
           * @param optionIndex Index of the option at which to start counting.
           * @param options Flat list of all of the options.
           * @param optionGroups Flat list of all of the option groups.
           * @docs-private
           */
          function _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {
            if (optionGroups.length) {
              let optionsArray = options.toArray();
              let groups = optionGroups.toArray();
              let groupCounter = 0;
              for (let i = 0; i < optionIndex + 1; i++) {
                if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
                  groupCounter++;
                }
              }
              return groupCounter;
            }
            return 0;
          }
          /**
           * Determines the position to which to scroll a panel in order for an option to be into view.
           * @param optionOffset Offset of the option from the top of the panel.
           * @param optionHeight Height of the options.
           * @param currentScrollPosition Current scroll position of the panel.
           * @param panelHeight Height of the panel.
           * @docs-private
           */
          function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {
            if (optionOffset < currentScrollPosition) {
              return optionOffset;
            }
            if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {
              return Math.max(0, optionOffset - panelHeight + optionHeight);
            }
            return currentScrollPosition;
          }
          class MatOptionModule {
            static {
              this.ɵfac = function MatOptionModule_Factory(t) {
                return new (t || MatOptionModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatOptionModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, MatCommonModule, MatPseudoCheckboxModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptionModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, MatCommonModule, MatPseudoCheckboxModule],
                exports: [MatOption, MatOptgroup],
                declarations: [MatOption, MatOptgroup]
              }]
            }], null, null);
          })();
          
          /** The options for the MatRippleLoader's event listeners. */
          const eventListenerOptions = {
            capture: true
          };
          /** The events that should trigger the initialization of the ripple. */
          const rippleInteractionEvents = ['focus', 'click', 'mouseenter', 'touchstart'];
          /** The attribute attached to a component whose ripple has not yet been initialized. */
          const matRippleUninitialized = 'mat-ripple-loader-uninitialized';
          /** Additional classes that should be added to the ripple when it is rendered. */
          const matRippleClassName = 'mat-ripple-loader-class-name';
          /** Whether the ripple should be centered. */
          const matRippleCentered = 'mat-ripple-loader-centered';
          /** Whether the ripple should be disabled. */
          const matRippleDisabled = 'mat-ripple-loader-disabled';
          /**
           * Handles attaching ripples on demand.
           *
           * This service allows us to avoid eagerly creating & attaching MatRipples.
           * It works by creating & attaching a ripple only when a component is first interacted with.
           *
           * @docs-private
           */
          class MatRippleLoader {
            constructor() {
              this._document = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_common__WEBPACK_IMPORTED_MODULE_3__.DOCUMENT, {
                optional: true
              });
              this._animationMode = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, {
                optional: true
              });
              this._globalRippleOptions = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(MAT_RIPPLE_GLOBAL_OPTIONS, {
                optional: true
              });
              this._platform = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_1__.Platform);
              this._ngZone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone);
              this._hosts = new Map();
              /** Handles creating and attaching component internals when a component it is initially interacted with. */
              this._onInteraction = event => {
                if (!(event.target instanceof HTMLElement)) {
                  return;
                }
                const eventTarget = event.target;
                // TODO(wagnermaciel): Consider batching these events to improve runtime performance.
                const element = eventTarget.closest(`[${matRippleUninitialized}]`);
                if (element) {
                  this._createRipple(element);
                }
              };
              this._ngZone.runOutsideAngular(() => {
                for (const event of rippleInteractionEvents) {
                  this._document?.addEventListener(event, this._onInteraction, eventListenerOptions);
                }
              });
            }
            ngOnDestroy() {
              const hosts = this._hosts.keys();
              for (const host of hosts) {
                this.destroyRipple(host);
              }
              for (const event of rippleInteractionEvents) {
                this._document?.removeEventListener(event, this._onInteraction, eventListenerOptions);
              }
            }
            /**
             * Configures the ripple that will be rendered by the ripple loader.
             *
             * Stores the given information about how the ripple should be configured on the host
             * element so that it can later be retrived & used when the ripple is actually created.
             */
            configureRipple(host, config) {
              // Indicates that the ripple has not yet been rendered for this component.
              host.setAttribute(matRippleUninitialized, '');
              // Store the additional class name(s) that should be added to the ripple element.
              if (config.className || !host.hasAttribute(matRippleClassName)) {
                host.setAttribute(matRippleClassName, config.className || '');
              }
              // Store whether the ripple should be centered.
              if (config.centered) {
                host.setAttribute(matRippleCentered, '');
              }
              if (config.disabled) {
                host.setAttribute(matRippleDisabled, '');
              }
            }
            /** Returns the ripple instance for the given host element. */
            getRipple(host) {
              const ripple = this._hosts.get(host);
              return ripple || this._createRipple(host);
            }
            /** Sets the disabled state on the ripple instance corresponding to the given host element. */
            setDisabled(host, disabled) {
              const ripple = this._hosts.get(host);
              // If the ripple has already been instantiated, just disable it.
              if (ripple) {
                ripple.disabled = disabled;
                return;
              }
              // Otherwise, set an attribute so we know what the
              // disabled state should be when the ripple is initialized.
              if (disabled) {
                host.setAttribute(matRippleDisabled, '');
              } else {
                host.removeAttribute(matRippleDisabled);
              }
            }
            /** Creates a MatRipple and appends it to the given element. */
            _createRipple(host) {
              if (!this._document) {
                return;
              }
              const existingRipple = this._hosts.get(host);
              if (existingRipple) {
                return existingRipple;
              }
              // Create the ripple element.
              host.querySelector('.mat-ripple')?.remove();
              const rippleEl = this._document.createElement('span');
              rippleEl.classList.add('mat-ripple', host.getAttribute(matRippleClassName));
              host.append(rippleEl);
              // Create the MatRipple.
              const ripple = new MatRipple(new _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef(rippleEl), this._ngZone, this._platform, this._globalRippleOptions ? this._globalRippleOptions : undefined, this._animationMode ? this._animationMode : undefined);
              ripple._isInitialized = true;
              ripple.trigger = host;
              ripple.centered = host.hasAttribute(matRippleCentered);
              ripple.disabled = host.hasAttribute(matRippleDisabled);
              this.attachRipple(host, ripple);
              return ripple;
            }
            attachRipple(host, ripple) {
              host.removeAttribute(matRippleUninitialized);
              this._hosts.set(host, ripple);
            }
            destroyRipple(host) {
              const ripple = this._hosts.get(host);
              if (ripple) {
                // Since this directive is created manually, it needs to be destroyed manually too.
                // tslint:disable-next-line:no-lifecycle-invocation
                ripple.ngOnDestroy();
                this._hosts.delete(host);
              }
            }
            static {
              this.ɵfac = function MatRippleLoader_Factory(t) {
                return new (t || MatRippleLoader)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: MatRippleLoader,
                factory: MatRippleLoader.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRippleLoader, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4950:
          /*!****************************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/form-field.mjs ***!
            \****************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_ERROR: () => (/* binding */ MAT_ERROR),
          /* harmony export */   MAT_FORM_FIELD: () => (/* binding */ MAT_FORM_FIELD),
          /* harmony export */   MAT_FORM_FIELD_DEFAULT_OPTIONS: () => (/* binding */ MAT_FORM_FIELD_DEFAULT_OPTIONS),
          /* harmony export */   MAT_PREFIX: () => (/* binding */ MAT_PREFIX),
          /* harmony export */   MAT_SUFFIX: () => (/* binding */ MAT_SUFFIX),
          /* harmony export */   MatError: () => (/* binding */ MatError),
          /* harmony export */   MatFormField: () => (/* binding */ MatFormField),
          /* harmony export */   MatFormFieldControl: () => (/* binding */ MatFormFieldControl),
          /* harmony export */   MatFormFieldModule: () => (/* binding */ MatFormFieldModule),
          /* harmony export */   MatHint: () => (/* binding */ MatHint),
          /* harmony export */   MatLabel: () => (/* binding */ MatLabel),
          /* harmony export */   MatPrefix: () => (/* binding */ MatPrefix),
          /* harmony export */   MatSuffix: () => (/* binding */ MatSuffix),
          /* harmony export */   getMatFormFieldDuplicatedHintError: () => (/* binding */ getMatFormFieldDuplicatedHintError),
          /* harmony export */   getMatFormFieldMissingControlError: () => (/* binding */ getMatFormFieldMissingControlError),
          /* harmony export */   getMatFormFieldPlaceholderConflictError: () => (/* binding */ getMatFormFieldPlaceholderConflictError),
          /* harmony export */   matFormFieldAnimations: () => (/* binding */ matFormFieldAnimations)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7580);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var _angular_cdk_observers_private__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/observers/private */ 8615);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/animations */ 7172);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/observers */ 9539);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/core */ 4646);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          /** The floating label for a `mat-form-field`. */
          const _c0 = ["notch"];
          const _c1 = ["matFormFieldNotchedOutline", ""];
          const _c2 = ["*"];
          const _c3 = ["textField"];
          const _c4 = ["iconPrefixContainer"];
          const _c5 = ["textPrefixContainer"];
          function MatFormField_ng_template_0_label_0_span_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 19);
            }
          }
          function MatFormField_ng_template_0_label_0_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 17);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatFormField_ng_template_0_label_0_span_2_Template, 1, 0, "span", 18);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("floating", ctx_r13._shouldLabelFloat())("monitorResize", ctx_r13._hasOutline())("id", ctx_r13._labelId);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("for", ctx_r13._control.id);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r13.hideRequiredMarker && ctx_r13._control.required);
            }
          }
          function MatFormField_ng_template_0_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatFormField_ng_template_0_label_0_Template, 3, 5, "label", 16);
            }
            if (rf & 2) {
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1._hasFloatingLabel());
            }
          }
          function MatFormField_div_4_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 20);
            }
          }
          function MatFormField_div_6_ng_template_1_ng_template_0_Template(rf, ctx) {}
          function MatFormField_div_6_ng_template_1_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatFormField_div_6_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 22);
            }
            if (rf & 2) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", _r0);
            }
          }
          function MatFormField_div_6_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 21);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MatFormField_div_6_ng_template_1_Template, 1, 1, "ng-template", 9);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matFormFieldNotchedOutlineOpen", ctx_r4._shouldLabelFloat());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4._forceDisplayInfixLabel());
            }
          }
          function MatFormField_div_7_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23, 24);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2, 2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
          }
          function MatFormField_div_8_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25, 26);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2, 3);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
          }
          function MatFormField_ng_template_10_ng_template_0_Template(rf, ctx) {}
          function MatFormField_ng_template_10_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatFormField_ng_template_10_ng_template_0_Template, 0, 0, "ng-template", 22);
            }
            if (rf & 2) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", _r0);
            }
          }
          function MatFormField_div_12_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 4);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
          }
          function MatFormField_div_13_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 5);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
          }
          function MatFormField_div_14_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 29);
            }
          }
          function MatFormField_div_16_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 6);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@transitionMessages", ctx_r11._subscriptAnimationState);
            }
          }
          function MatFormField_div_17_mat_hint_1_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-hint", 34);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r20._hintLabelId);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r20.hintLabel);
            }
          }
          function MatFormField_div_17_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MatFormField_div_17_mat_hint_1_Template, 2, 2, "mat-hint", 32);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2, 7);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 33);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](4, 8);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@transitionMessages", ctx_r12._subscriptAnimationState);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.hintLabel);
            }
          }
          const _c6 = ["*", [["mat-label"]], [["", "matPrefix", ""], ["", "matIconPrefix", ""]], [["", "matTextPrefix", ""]], [["", "matTextSuffix", ""]], [["", "matSuffix", ""], ["", "matIconSuffix", ""]], [["mat-error"], ["", "matError", ""]], [["mat-hint", 3, "align", "end"]], [["mat-hint", "align", "end"]]];
          const _c7 = ["*", "mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error, [matError]", "mat-hint:not([align='end'])", "mat-hint[align='end']"];
          class MatLabel {
            static {
              this.ɵfac = function MatLabel_Factory(t) {
                return new (t || MatLabel)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatLabel,
                selectors: [["mat-label"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLabel, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-label'
              }]
            }], null, null);
          })();
          let nextUniqueId$2 = 0;
          /**
           * Injection token that can be used to reference instances of `MatError`. It serves as
           * alternative token to the actual `MatError` class which could cause unnecessary
           * retention of the class and its directive metadata.
           */
          const MAT_ERROR = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatError');
          /** Single error message to be shown underneath the form-field. */
          class MatError {
            constructor(ariaLive, elementRef) {
              this.id = `mat-mdc-error-${nextUniqueId$2++}`;
              // If no aria-live value is set add 'polite' as a default. This is preferred over setting
              // role='alert' so that screen readers do not interrupt the current task to read this aloud.
              if (!ariaLive) {
                elementRef.nativeElement.setAttribute('aria-live', 'polite');
              }
            }
            static {
              this.ɵfac = function MatError_Factory(t) {
                return new (t || MatError)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('aria-live'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatError,
                selectors: [["mat-error"], ["", "matError", ""]],
                hostAttrs: ["aria-atomic", "true", 1, "mat-mdc-form-field-error", "mat-mdc-form-field-bottom-align"],
                hostVars: 1,
                hostBindings: function MatError_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
                  }
                },
                inputs: {
                  id: "id"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_ERROR,
                  useExisting: MatError
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatError, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-error, [matError]',
                host: {
                  'class': 'mat-mdc-form-field-error mat-mdc-form-field-bottom-align',
                  'aria-atomic': 'true',
                  '[id]': 'id'
                },
                providers: [{
                  provide: MAT_ERROR,
                  useExisting: MatError
                }]
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute,
                  args: ['aria-live']
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }];
            }, {
              id: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          let nextUniqueId$1 = 0;
          /** Hint text to be shown underneath the form field control. */
          class MatHint {
            constructor() {
              /** Whether to align the hint label at the start or end of the line. */
              this.align = 'start';
              /** Unique ID for the hint. Used for the aria-describedby on the form field control. */
              this.id = `mat-mdc-hint-${nextUniqueId$1++}`;
            }
            static {
              this.ɵfac = function MatHint_Factory(t) {
                return new (t || MatHint)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatHint,
                selectors: [["mat-hint"]],
                hostAttrs: [1, "mat-mdc-form-field-hint", "mat-mdc-form-field-bottom-align"],
                hostVars: 4,
                hostBindings: function MatHint_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("align", null);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-mdc-form-field-hint-end", ctx.align === "end");
                  }
                },
                inputs: {
                  align: "align",
                  id: "id"
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHint, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-hint',
                host: {
                  'class': 'mat-mdc-form-field-hint mat-mdc-form-field-bottom-align',
                  '[class.mat-mdc-form-field-hint-end]': 'align === "end"',
                  '[id]': 'id',
                  // Remove align attribute to prevent it from interfering with layout.
                  '[attr.align]': 'null'
                }
              }]
            }], null, {
              align: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              id: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          
          /**
           * Injection token that can be used to reference instances of `MatPrefix`. It serves as
           * alternative token to the actual `MatPrefix` class which could cause unnecessary
           * retention of the class and its directive metadata.
           */
          const MAT_PREFIX = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatPrefix');
          /** Prefix to be placed in front of the form field. */
          class MatPrefix {
            constructor() {
              this._isText = false;
            }
            set _isTextSelector(value) {
              this._isText = true;
            }
            static {
              this.ɵfac = function MatPrefix_Factory(t) {
                return new (t || MatPrefix)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatPrefix,
                selectors: [["", "matPrefix", ""], ["", "matIconPrefix", ""], ["", "matTextPrefix", ""]],
                inputs: {
                  _isTextSelector: ["matTextPrefix", "_isTextSelector"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_PREFIX,
                  useExisting: MatPrefix
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPrefix, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matPrefix], [matIconPrefix], [matTextPrefix]',
                providers: [{
                  provide: MAT_PREFIX,
                  useExisting: MatPrefix
                }]
              }]
            }], null, {
              _isTextSelector: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTextPrefix']
              }]
            });
          })();
          
          /**
           * Injection token that can be used to reference instances of `MatSuffix`. It serves as
           * alternative token to the actual `MatSuffix` class which could cause unnecessary
           * retention of the class and its directive metadata.
           */
          const MAT_SUFFIX = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatSuffix');
          /** Suffix to be placed at the end of the form field. */
          class MatSuffix {
            constructor() {
              this._isText = false;
            }
            set _isTextSelector(value) {
              this._isText = true;
            }
            static {
              this.ɵfac = function MatSuffix_Factory(t) {
                return new (t || MatSuffix)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatSuffix,
                selectors: [["", "matSuffix", ""], ["", "matIconSuffix", ""], ["", "matTextSuffix", ""]],
                inputs: {
                  _isTextSelector: ["matTextSuffix", "_isTextSelector"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_SUFFIX,
                  useExisting: MatSuffix
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSuffix, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matSuffix], [matIconSuffix], [matTextSuffix]',
                providers: [{
                  provide: MAT_SUFFIX,
                  useExisting: MatSuffix
                }]
              }]
            }], null, {
              _isTextSelector: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTextSuffix']
              }]
            });
          })();
          
          /** An injion token for the parent form-field. */
          const FLOATING_LABEL_PARENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('FloatingLabelParent');
          /**
           * Internal directive that maintains a MDC floating label. This directive does not
           * use the `MDCFloatingLabelFoundation` class, as it is not worth the size cost of
           * including it just to measure the label width and toggle some classes.
           *
           * The use of a directive allows us to conditionally render a floating label in the
           * template without having to manually manage instantiation and destruction of the
           * floating label component based on.
           *
           * The component is responsible for setting up the floating label styles, measuring label
           * width for the outline notch, and providing inputs that can be used to toggle the
           * label's floating or required state.
           */
          class MatFormFieldFloatingLabel {
            /** Whether the label is floating. */
            get floating() {
              return this._floating;
            }
            set floating(value) {
              this._floating = value;
              if (this.monitorResize) {
                this._handleResize();
              }
            }
            /** Whether to monitor for resize events on the floating label. */
            get monitorResize() {
              return this._monitorResize;
            }
            set monitorResize(value) {
              this._monitorResize = value;
              if (this._monitorResize) {
                this._subscribeToResize();
              } else {
                this._resizeSubscription.unsubscribe();
              }
            }
            constructor(_elementRef) {
              this._elementRef = _elementRef;
              this._floating = false;
              this._monitorResize = false;
              /** The shared ResizeObserver. */
              this._resizeObserver = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_cdk_observers_private__WEBPACK_IMPORTED_MODULE_1__.SharedResizeObserver);
              /** The Angular zone. */
              this._ngZone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone);
              /** The parent form-field. */
              this._parent = (0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.inject)(FLOATING_LABEL_PARENT);
              /** The current resize event subscription. */
              this._resizeSubscription = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subscription();
            }
            ngOnDestroy() {
              this._resizeSubscription.unsubscribe();
            }
            /** Gets the width of the label. Used for the outline notch. */
            getWidth() {
              return estimateScrollWidth(this._elementRef.nativeElement);
            }
            /** Gets the HTML element for the floating label. */
            get element() {
              return this._elementRef.nativeElement;
            }
            /** Handles resize events from the ResizeObserver. */
            _handleResize() {
              // In the case where the label grows in size, the following sequence of events occurs:
              // 1. The label grows by 1px triggering the ResizeObserver
              // 2. The notch is expanded to accommodate the entire label
              // 3. The label expands to its full width, triggering the ResizeObserver again
              //
              // This is expected, but If we allow this to all happen within the same macro task it causes an
              // error: `ResizeObserver loop limit exceeded`. Therefore we push the notch resize out until
              // the next macro task.
              setTimeout(() => this._parent._handleLabelResized());
            }
            /** Subscribes to resize events. */
            _subscribeToResize() {
              this._resizeSubscription.unsubscribe();
              this._ngZone.runOutsideAngular(() => {
                this._resizeSubscription = this._resizeObserver.observe(this._elementRef.nativeElement, {
                  box: 'border-box'
                }).subscribe(() => this._handleResize());
              });
            }
            static {
              this.ɵfac = function MatFormFieldFloatingLabel_Factory(t) {
                return new (t || MatFormFieldFloatingLabel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFormFieldFloatingLabel,
                selectors: [["label", "matFormFieldFloatingLabel", ""]],
                hostAttrs: [1, "mdc-floating-label", "mat-mdc-floating-label"],
                hostVars: 2,
                hostBindings: function MatFormFieldFloatingLabel_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-floating-label--float-above", ctx.floating);
                  }
                },
                inputs: {
                  floating: "floating",
                  monitorResize: "monitorResize"
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormFieldFloatingLabel, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'label[matFormFieldFloatingLabel]',
                host: {
                  'class': 'mdc-floating-label mat-mdc-floating-label',
                  '[class.mdc-floating-label--float-above]': 'floating'
                }
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }];
            }, {
              floating: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              monitorResize: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          /**
           * Estimates the scroll width of an element.
           * via https://github.com/material-components/material-components-web/blob/c0a11ef0d000a098fd0c372be8f12d6a99302855/packages/mdc-dom/ponyfill.ts
           */
          function estimateScrollWidth(element) {
            // Check the offsetParent. If the element inherits display: none from any
            // parent, the offsetParent property will be null (see
            // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).
            // This check ensures we only clone the node when necessary.
            const htmlEl = element;
            if (htmlEl.offsetParent !== null) {
              return htmlEl.scrollWidth;
            }
            const clone = htmlEl.cloneNode(true);
            clone.style.setProperty('position', 'absolute');
            clone.style.setProperty('transform', 'translate(-9999px, -9999px)');
            document.documentElement.appendChild(clone);
            const scrollWidth = clone.scrollWidth;
            clone.remove();
            return scrollWidth;
          }
          
          /** Class added when the line ripple is active. */
          const ACTIVATE_CLASS = 'mdc-line-ripple--active';
          /** Class added when the line ripple is being deactivated. */
          const DEACTIVATING_CLASS = 'mdc-line-ripple--deactivating';
          /**
           * Internal directive that creates an instance of the MDC line-ripple component. Using a
           * directive allows us to conditionally render a line-ripple in the template without having
           * to manually create and destroy the `MDCLineRipple` component whenever the condition changes.
           *
           * The directive sets up the styles for the line-ripple and provides an API for activating
           * and deactivating the line-ripple.
           */
          class MatFormFieldLineRipple {
            constructor(_elementRef, ngZone) {
              this._elementRef = _elementRef;
              this._handleTransitionEnd = event => {
                const classList = this._elementRef.nativeElement.classList;
                const isDeactivating = classList.contains(DEACTIVATING_CLASS);
                if (event.propertyName === 'opacity' && isDeactivating) {
                  classList.remove(ACTIVATE_CLASS, DEACTIVATING_CLASS);
                }
              };
              ngZone.runOutsideAngular(() => {
                _elementRef.nativeElement.addEventListener('transitionend', this._handleTransitionEnd);
              });
            }
            activate() {
              const classList = this._elementRef.nativeElement.classList;
              classList.remove(DEACTIVATING_CLASS);
              classList.add(ACTIVATE_CLASS);
            }
            deactivate() {
              this._elementRef.nativeElement.classList.add(DEACTIVATING_CLASS);
            }
            ngOnDestroy() {
              this._elementRef.nativeElement.removeEventListener('transitionend', this._handleTransitionEnd);
            }
            static {
              this.ɵfac = function MatFormFieldLineRipple_Factory(t) {
                return new (t || MatFormFieldLineRipple)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFormFieldLineRipple,
                selectors: [["div", "matFormFieldLineRipple", ""]],
                hostAttrs: [1, "mdc-line-ripple"]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormFieldLineRipple, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'div[matFormFieldLineRipple]',
                host: {
                  'class': 'mdc-line-ripple'
                }
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, null);
          })();
          
          /**
           * Internal component that creates an instance of the MDC notched-outline component.
           *
           * The component sets up the HTML structure and styles for the notched-outline. It provides
           * inputs to toggle the notch state and width.
           */
          class MatFormFieldNotchedOutline {
            constructor(_elementRef, _ngZone) {
              this._elementRef = _elementRef;
              this._ngZone = _ngZone;
              /** Whether the notch should be opened. */
              this.open = false;
            }
            ngAfterViewInit() {
              const label = this._elementRef.nativeElement.querySelector('.mdc-floating-label');
              if (label) {
                this._elementRef.nativeElement.classList.add('mdc-notched-outline--upgraded');
                if (typeof requestAnimationFrame === 'function') {
                  label.style.transitionDuration = '0s';
                  this._ngZone.runOutsideAngular(() => {
                    requestAnimationFrame(() => label.style.transitionDuration = '');
                  });
                }
              } else {
                this._elementRef.nativeElement.classList.add('mdc-notched-outline--no-label');
              }
            }
            _setNotchWidth(labelWidth) {
              if (!this.open || !labelWidth) {
                this._notch.nativeElement.style.width = '';
              } else {
                const NOTCH_ELEMENT_PADDING = 8;
                const NOTCH_ELEMENT_BORDER = 1;
                this._notch.nativeElement.style.width = `calc(${labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + ${NOTCH_ELEMENT_PADDING + NOTCH_ELEMENT_BORDER}px)`;
              }
            }
            static {
              this.ɵfac = function MatFormFieldNotchedOutline_Factory(t) {
                return new (t || MatFormFieldNotchedOutline)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatFormFieldNotchedOutline,
                selectors: [["div", "matFormFieldNotchedOutline", ""]],
                viewQuery: function MatFormFieldNotchedOutline_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._notch = _t.first);
                  }
                },
                hostAttrs: [1, "mdc-notched-outline"],
                hostVars: 2,
                hostBindings: function MatFormFieldNotchedOutline_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-notched-outline--notched", ctx.open);
                  }
                },
                inputs: {
                  open: ["matFormFieldNotchedOutlineOpen", "open"]
                },
                attrs: _c1,
                ngContentSelectors: _c2,
                decls: 5,
                vars: 0,
                consts: [[1, "mdc-notched-outline__leading"], [1, "mdc-notched-outline__notch"], ["notch", ""], [1, "mdc-notched-outline__trailing"]],
                template: function MatFormFieldNotchedOutline_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "div", 3);
                  }
                },
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormFieldNotchedOutline, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'div[matFormFieldNotchedOutline]',
                host: {
                  'class': 'mdc-notched-outline',
                  // Besides updating the notch state through the MDC component, we toggle this class through
                  // a host binding in order to ensure that the notched-outline renders correctly on the server.
                  '[class.mdc-notched-outline--notched]': 'open'
                },
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                template: "<div class=\"mdc-notched-outline__leading\"></div>\n<div class=\"mdc-notched-outline__notch\" #notch>\n  <ng-content></ng-content>\n</div>\n<div class=\"mdc-notched-outline__trailing\"></div>\n"
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }];
            }, {
              open: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matFormFieldNotchedOutlineOpen']
              }],
              _notch: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['notch']
              }]
            });
          })();
          
          /**
           * Animations used by the MatFormField.
           * @docs-private
           */
          const matFormFieldAnimations = {
            /** Animation that transitions the form field's error and hint messages. */
            transitionMessages: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.trigger)('transitionMessages', [
            // TODO(mmalerba): Use angular animations for label animation as well.
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.state)('enter', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
              opacity: 1,
              transform: 'translateY(0%)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.transition)('void => enter', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
              opacity: 0,
              transform: 'translateY(-5px)'
            }), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.animate)('300ms cubic-bezier(0.55, 0, 0.55, 0.2)')])])
          };
          
          /** An interface which allows a control to work inside of a `MatFormField`. */
          class MatFormFieldControl {
            static {
              this.ɵfac = function MatFormFieldControl_Factory(t) {
                return new (t || MatFormFieldControl)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFormFieldControl
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormFieldControl, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], null, null);
          })();
          
          /** @docs-private */
          function getMatFormFieldPlaceholderConflictError() {
            return Error('Placeholder attribute and child element were both specified.');
          }
          /** @docs-private */
          function getMatFormFieldDuplicatedHintError(align) {
            return Error(`A hint was already declared for 'align="${align}"'.`);
          }
          /** @docs-private */
          function getMatFormFieldMissingControlError() {
            return Error('mat-form-field must contain a MatFormFieldControl.');
          }
          
          /**
           * Injection token that can be used to inject an instances of `MatFormField`. It serves
           * as alternative token to the actual `MatFormField` class which would cause unnecessary
           * retention of the `MatFormField` class and its component metadata.
           */
          const MAT_FORM_FIELD = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatFormField');
          /**
           * Injection token that can be used to configure the
           * default options for all form field within an app.
           */
          const MAT_FORM_FIELD_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_FORM_FIELD_DEFAULT_OPTIONS');
          let nextUniqueId = 0;
          /** Default appearance used by the form field. */
          const DEFAULT_APPEARANCE = 'fill';
          /**
           * Whether the label for form fields should by default float `always`,
           * `never`, or `auto`.
           */
          const DEFAULT_FLOAT_LABEL = 'auto';
          /** Default way that the subscript element height is set. */
          const DEFAULT_SUBSCRIPT_SIZING = 'fixed';
          /**
           * Default transform for docked floating labels in a MDC text-field. This value has been
           * extracted from the MDC text-field styles because we programmatically modify the docked
           * label transform, but do not want to accidentally discard the default label transform.
           */
          const FLOATING_LABEL_DEFAULT_DOCKED_TRANSFORM = `translateY(-50%)`;
          /** Container for form controls that applies Material Design styling and behavior. */
          class MatFormField {
            /** Whether the required marker should be hidden. */
            get hideRequiredMarker() {
              return this._hideRequiredMarker;
            }
            set hideRequiredMarker(value) {
              this._hideRequiredMarker = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__.coerceBooleanProperty)(value);
            }
            /** Whether the label should always float or float as the user types. */
            get floatLabel() {
              return this._floatLabel || this._defaults?.floatLabel || DEFAULT_FLOAT_LABEL;
            }
            set floatLabel(value) {
              if (value !== this._floatLabel) {
                this._floatLabel = value;
                // For backwards compatibility. Custom form field controls or directives might set
                // the "floatLabel" input and expect the form field view to be updated automatically.
                // e.g. autocomplete trigger. Ideally we'd get rid of this and the consumers would just
                // emit the "stateChanges" observable. TODO(devversion): consider removing.
                this._changeDetectorRef.markForCheck();
              }
            }
            /** The form field appearance style. */
            get appearance() {
              return this._appearance;
            }
            set appearance(value) {
              const oldValue = this._appearance;
              const newAppearance = value || this._defaults?.appearance || DEFAULT_APPEARANCE;
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (newAppearance !== 'fill' && newAppearance !== 'outline') {
                  throw new Error(`MatFormField: Invalid appearance "${newAppearance}", valid values are "fill" or "outline".`);
                }
              }
              this._appearance = newAppearance;
              if (this._appearance === 'outline' && this._appearance !== oldValue) {
                // If the appearance has been switched to `outline`, the label offset needs to be updated.
                // The update can happen once the view has been re-checked, but not immediately because
                // the view has not been updated and the notched-outline floating label is not present.
                this._needsOutlineLabelOffsetUpdateOnStable = true;
              }
            }
            /**
             * Whether the form field should reserve space for one line of hint/error text (default)
             * or to have the spacing grow from 0px as needed based on the size of the hint/error content.
             * Note that when using dynamic sizing, layout shifts will occur when hint/error text changes.
             */
            get subscriptSizing() {
              return this._subscriptSizing || this._defaults?.subscriptSizing || DEFAULT_SUBSCRIPT_SIZING;
            }
            set subscriptSizing(value) {
              this._subscriptSizing = value || this._defaults?.subscriptSizing || DEFAULT_SUBSCRIPT_SIZING;
            }
            /** Text for the form field hint. */
            get hintLabel() {
              return this._hintLabel;
            }
            set hintLabel(value) {
              this._hintLabel = value;
              this._processHints();
            }
            /** Gets the current form field control */
            get _control() {
              return this._explicitFormFieldControl || this._formFieldControl;
            }
            set _control(value) {
              this._explicitFormFieldControl = value;
            }
            constructor(_elementRef, _changeDetectorRef, _ngZone, _dir, _platform, _defaults, _animationMode,
            /**
             * @deprecated not needed, to be removed.
             * @breaking-change 17.0.0 remove this param
             */
            _unusedDocument) {
              this._elementRef = _elementRef;
              this._changeDetectorRef = _changeDetectorRef;
              this._ngZone = _ngZone;
              this._dir = _dir;
              this._platform = _platform;
              this._defaults = _defaults;
              this._animationMode = _animationMode;
              this._hideRequiredMarker = false;
              /** The color palette for the form field. */
              this.color = 'primary';
              this._appearance = DEFAULT_APPEARANCE;
              this._subscriptSizing = null;
              this._hintLabel = '';
              this._hasIconPrefix = false;
              this._hasTextPrefix = false;
              this._hasIconSuffix = false;
              this._hasTextSuffix = false;
              // Unique id for the internal form field label.
              this._labelId = `mat-mdc-form-field-label-${nextUniqueId++}`;
              // Unique id for the hint label.
              this._hintLabelId = `mat-mdc-hint-${nextUniqueId++}`;
              /** State of the mat-hint and mat-error animations. */
              this._subscriptAnimationState = '';
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject();
              this._isFocused = null;
              this._needsOutlineLabelOffsetUpdateOnStable = false;
              if (_defaults) {
                if (_defaults.appearance) {
                  this.appearance = _defaults.appearance;
                }
                this._hideRequiredMarker = Boolean(_defaults?.hideRequiredMarker);
                if (_defaults.color) {
                  this.color = _defaults.color;
                }
              }
            }
            ngAfterViewInit() {
              // Initial focus state sync. This happens rarely, but we want to account for
              // it in case the form field control has "focused" set to true on init.
              this._updateFocusState();
              // Enable animations now. This ensures we don't animate on initial render.
              this._subscriptAnimationState = 'enter';
              // Because the above changes a value used in the template after it was checked, we need
              // to trigger CD or the change might not be reflected if there is no other CD scheduled.
              this._changeDetectorRef.detectChanges();
            }
            ngAfterContentInit() {
              this._assertFormFieldControl();
              this._initializeControl();
              this._initializeSubscript();
              this._initializePrefixAndSuffix();
              this._initializeOutlineLabelOffsetSubscriptions();
            }
            ngAfterContentChecked() {
              this._assertFormFieldControl();
            }
            ngOnDestroy() {
              this._destroyed.next();
              this._destroyed.complete();
            }
            /**
             * Gets the id of the label element. If no label is present, returns `null`.
             */
            getLabelId() {
              return this._hasFloatingLabel() ? this._labelId : null;
            }
            /**
             * Gets an ElementRef for the element that a overlay attached to the form field
             * should be positioned relative to.
             */
            getConnectedOverlayOrigin() {
              return this._textField || this._elementRef;
            }
            /** Animates the placeholder up and locks it in position. */
            _animateAndLockLabel() {
              // This is for backwards compatibility only. Consumers of the form field might use
              // this method. e.g. the autocomplete trigger. This method has been added to the non-MDC
              // form field because setting "floatLabel" to "always" caused the label to float without
              // animation. This is different in MDC where the label always animates, so this method
              // is no longer necessary. There doesn't seem any benefit in adding logic to allow changing
              // the floating label state without animations. The non-MDC implementation was inconsistent
              // because it always animates if "floatLabel" is set away from "always".
              // TODO(devversion): consider removing this method when releasing the MDC form field.
              if (this._hasFloatingLabel()) {
                this.floatLabel = 'always';
              }
            }
            /** Initializes the registered form field control. */
            _initializeControl() {
              const control = this._control;
              if (control.controlType) {
                this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${control.controlType}`);
              }
              // Subscribe to changes in the child control state in order to update the form field UI.
              control.stateChanges.subscribe(() => {
                this._updateFocusState();
                this._syncDescribedByIds();
                this._changeDetectorRef.markForCheck();
              });
              // Run change detection if the value changes.
              if (control.ngControl && control.ngControl.valueChanges) {
                control.ngControl.valueChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.takeUntil)(this._destroyed)).subscribe(() => this._changeDetectorRef.markForCheck());
              }
            }
            _checkPrefixAndSuffixTypes() {
              this._hasIconPrefix = !!this._prefixChildren.find(p => !p._isText);
              this._hasTextPrefix = !!this._prefixChildren.find(p => p._isText);
              this._hasIconSuffix = !!this._suffixChildren.find(s => !s._isText);
              this._hasTextSuffix = !!this._suffixChildren.find(s => s._isText);
            }
            /** Initializes the prefix and suffix containers. */
            _initializePrefixAndSuffix() {
              this._checkPrefixAndSuffixTypes();
              // Mark the form field as dirty whenever the prefix or suffix children change. This
              // is necessary because we conditionally display the prefix/suffix containers based
              // on whether there is projected content.
              (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)(this._prefixChildren.changes, this._suffixChildren.changes).subscribe(() => {
                this._checkPrefixAndSuffixTypes();
                this._changeDetectorRef.markForCheck();
              });
            }
            /**
             * Initializes the subscript by validating hints and synchronizing "aria-describedby" ids
             * with the custom form field control. Also subscribes to hint and error changes in order
             * to be able to validate and synchronize ids on change.
             */
            _initializeSubscript() {
              // Re-validate when the number of hints changes.
              this._hintChildren.changes.subscribe(() => {
                this._processHints();
                this._changeDetectorRef.markForCheck();
              });
              // Update the aria-described by when the number of errors changes.
              this._errorChildren.changes.subscribe(() => {
                this._syncDescribedByIds();
                this._changeDetectorRef.markForCheck();
              });
              // Initial mat-hint validation and subscript describedByIds sync.
              this._validateHints();
              this._syncDescribedByIds();
            }
            /** Throws an error if the form field's control is missing. */
            _assertFormFieldControl() {
              if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatFormFieldMissingControlError();
              }
            }
            _updateFocusState() {
              // Usually the MDC foundation would call "activateFocus" and "deactivateFocus" whenever
              // certain DOM events are emitted. This is not possible in our implementation of the
              // form field because we support abstract form field controls which are not necessarily
              // of type input, nor do we have a reference to a native form field control element. Instead
              // we handle the focus by checking if the abstract form field control focused state changes.
              if (this._control.focused && !this._isFocused) {
                this._isFocused = true;
                this._lineRipple?.activate();
              } else if (!this._control.focused && (this._isFocused || this._isFocused === null)) {
                this._isFocused = false;
                this._lineRipple?.deactivate();
              }
              this._textField?.nativeElement.classList.toggle('mdc-text-field--focused', this._control.focused);
            }
            /**
             * The floating label in the docked state needs to account for prefixes. The horizontal offset
             * is calculated whenever the appearance changes to `outline`, the prefixes change, or when the
             * form field is added to the DOM. This method sets up all subscriptions which are needed to
             * trigger the label offset update. In general, we want to avoid performing measurements often,
             * so we rely on the `NgZone` as indicator when the offset should be recalculated, instead of
             * checking every change detection cycle.
             */
            _initializeOutlineLabelOffsetSubscriptions() {
              // Whenever the prefix changes, schedule an update of the label offset.
              this._prefixChildren.changes.subscribe(() => this._needsOutlineLabelOffsetUpdateOnStable = true);
              // Note that we have to run outside of the `NgZone` explicitly, in order to avoid
              // throwing users into an infinite loop if `zone-patch-rxjs` is included.
              this._ngZone.runOutsideAngular(() => {
                this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.takeUntil)(this._destroyed)).subscribe(() => {
                  if (this._needsOutlineLabelOffsetUpdateOnStable) {
                    this._needsOutlineLabelOffsetUpdateOnStable = false;
                    this._updateOutlineLabelOffset();
                  }
                });
              });
              this._dir.change.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.takeUntil)(this._destroyed)).subscribe(() => this._needsOutlineLabelOffsetUpdateOnStable = true);
            }
            /** Whether the floating label should always float or not. */
            _shouldAlwaysFloat() {
              return this.floatLabel === 'always';
            }
            _hasOutline() {
              return this.appearance === 'outline';
            }
            /**
             * Whether the label should display in the infix. Labels in the outline appearance are
             * displayed as part of the notched-outline and are horizontally offset to account for
             * form field prefix content. This won't work in server side rendering since we cannot
             * measure the width of the prefix container. To make the docked label appear as if the
             * right offset has been calculated, we forcibly render the label inside the infix. Since
             * the label is part of the infix, the label cannot overflow the prefix content.
             */
            _forceDisplayInfixLabel() {
              return !this._platform.isBrowser && this._prefixChildren.length && !this._shouldLabelFloat();
            }
            _hasFloatingLabel() {
              return !!this._labelChildNonStatic || !!this._labelChildStatic;
            }
            _shouldLabelFloat() {
              return this._control.shouldLabelFloat || this._shouldAlwaysFloat();
            }
            /**
             * Determines whether a class from the AbstractControlDirective
             * should be forwarded to the host element.
             */
            _shouldForward(prop) {
              const control = this._control ? this._control.ngControl : null;
              return control && control[prop];
            }
            /** Determines whether to display hints or errors. */
            _getDisplayedMessages() {
              return this._errorChildren && this._errorChildren.length > 0 && this._control.errorState ? 'error' : 'hint';
            }
            /** Handle label resize events. */
            _handleLabelResized() {
              this._refreshOutlineNotchWidth();
            }
            /** Refreshes the width of the outline-notch, if present. */
            _refreshOutlineNotchWidth() {
              if (!this._hasOutline() || !this._floatingLabel || !this._shouldLabelFloat()) {
                this._notchedOutline?._setNotchWidth(0);
              } else {
                this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth());
              }
            }
            /** Does any extra processing that is required when handling the hints. */
            _processHints() {
              this._validateHints();
              this._syncDescribedByIds();
            }
            /**
             * Ensure that there is a maximum of one of each "mat-hint" alignment specified. The hint
             * label specified set through the input is being considered as "start" aligned.
             *
             * This method is a noop if Angular runs in production mode.
             */
            _validateHints() {
              if (this._hintChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                let startHint;
                let endHint;
                this._hintChildren.forEach(hint => {
                  if (hint.align === 'start') {
                    if (startHint || this.hintLabel) {
                      throw getMatFormFieldDuplicatedHintError('start');
                    }
                    startHint = hint;
                  } else if (hint.align === 'end') {
                    if (endHint) {
                      throw getMatFormFieldDuplicatedHintError('end');
                    }
                    endHint = hint;
                  }
                });
              }
            }
            /**
             * Sets the list of element IDs that describe the child control. This allows the control to update
             * its `aria-describedby` attribute accordingly.
             */
            _syncDescribedByIds() {
              if (this._control) {
                let ids = [];
                // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug.
                if (this._control.userAriaDescribedBy && typeof this._control.userAriaDescribedBy === 'string') {
                  ids.push(...this._control.userAriaDescribedBy.split(' '));
                }
                if (this._getDisplayedMessages() === 'hint') {
                  const startHint = this._hintChildren ? this._hintChildren.find(hint => hint.align === 'start') : null;
                  const endHint = this._hintChildren ? this._hintChildren.find(hint => hint.align === 'end') : null;
                  if (startHint) {
                    ids.push(startHint.id);
                  } else if (this._hintLabel) {
                    ids.push(this._hintLabelId);
                  }
                  if (endHint) {
                    ids.push(endHint.id);
                  }
                } else if (this._errorChildren) {
                  ids.push(...this._errorChildren.map(error => error.id));
                }
                this._control.setDescribedByIds(ids);
              }
            }
            /**
             * Updates the horizontal offset of the label in the outline appearance. In the outline
             * appearance, the notched-outline and label are not relative to the infix container because
             * the outline intends to surround prefixes, suffixes and the infix. This means that the
             * floating label by default overlaps prefixes in the docked state. To avoid this, we need to
             * horizontally offset the label by the width of the prefix container. The MDC text-field does
             * not need to do this because they use a fixed width for prefixes. Hence, they can simply
             * incorporate the horizontal offset into their default text-field styles.
             */
            _updateOutlineLabelOffset() {
              if (!this._platform.isBrowser || !this._hasOutline() || !this._floatingLabel) {
                return;
              }
              const floatingLabel = this._floatingLabel.element;
              // If no prefix is displayed, reset the outline label offset from potential
              // previous label offset updates.
              if (!(this._iconPrefixContainer || this._textPrefixContainer)) {
                floatingLabel.style.transform = '';
                return;
              }
              // If the form field is not attached to the DOM yet (e.g. in a tab), we defer
              // the label offset update until the zone stabilizes.
              if (!this._isAttachedToDom()) {
                this._needsOutlineLabelOffsetUpdateOnStable = true;
                return;
              }
              const iconPrefixContainer = this._iconPrefixContainer?.nativeElement;
              const textPrefixContainer = this._textPrefixContainer?.nativeElement;
              const iconPrefixContainerWidth = iconPrefixContainer?.getBoundingClientRect().width ?? 0;
              const textPrefixContainerWidth = textPrefixContainer?.getBoundingClientRect().width ?? 0;
              // If the directionality is RTL, the x-axis transform needs to be inverted. This
              // is because `transformX` does not change based on the page directionality.
              const negate = this._dir.value === 'rtl' ? '-1' : '1';
              const prefixWidth = `${iconPrefixContainerWidth + textPrefixContainerWidth}px`;
              const labelOffset = `var(--mat-mdc-form-field-label-offset-x, 0px)`;
              const labelHorizontalOffset = `calc(${negate} * (${prefixWidth} + ${labelOffset}))`;
              // Update the translateX of the floating label to account for the prefix container,
              // but allow the CSS to override this setting via a CSS variable when the label is
              // floating.
              floatingLabel.style.transform = `var(
                  --mat-mdc-form-field-label-transform,
                  ${FLOATING_LABEL_DEFAULT_DOCKED_TRANSFORM} translateX(${labelHorizontalOffset})
              )`;
            }
            /** Checks whether the form field is attached to the DOM. */
            _isAttachedToDom() {
              const element = this._elementRef.nativeElement;
              if (element.getRootNode) {
                const rootNode = element.getRootNode();
                // If the element is inside the DOM the root node will be either the document
                // or the closest shadow root, otherwise it'll be the element itself.
                return rootNode && rootNode !== element;
              }
              // Otherwise fall back to checking if it's in the document. This doesn't account for
              // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.
              return document.documentElement.contains(element);
            }
            static {
              this.ɵfac = function MatFormField_Factory(t) {
                return new (t || MatFormField)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__.Directionality), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_FORM_FIELD_DEFAULT_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatFormField,
                selectors: [["mat-form-field"]],
                contentQueries: function MatFormField_ContentQueries(rf, ctx, dirIndex) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatLabel, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatLabel, 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatFormFieldControl, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MAT_PREFIX, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MAT_SUFFIX, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MAT_ERROR, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatHint, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._labelChildNonStatic = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._labelChildStatic = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._formFieldControl = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._prefixChildren = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._suffixChildren = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._errorChildren = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._hintChildren = _t);
                  }
                },
                viewQuery: function MatFormField_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c3, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c4, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c5, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](MatFormFieldFloatingLabel, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](MatFormFieldNotchedOutline, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](MatFormFieldLineRipple, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._textField = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._iconPrefixContainer = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._textPrefixContainer = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._floatingLabel = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._notchedOutline = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._lineRipple = _t.first);
                  }
                },
                hostAttrs: [1, "mat-mdc-form-field"],
                hostVars: 42,
                hostBindings: function MatFormField_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-mdc-form-field-label-always-float", ctx._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix", ctx._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix", ctx._hasIconSuffix)("mat-form-field-invalid", ctx._control.errorState)("mat-form-field-disabled", ctx._control.disabled)("mat-form-field-autofilled", ctx._control.autofilled)("mat-form-field-no-animations", ctx._animationMode === "NoopAnimations")("mat-form-field-appearance-fill", ctx.appearance == "fill")("mat-form-field-appearance-outline", ctx.appearance == "outline")("mat-form-field-hide-placeholder", ctx._hasFloatingLabel() && !ctx._shouldLabelFloat())("mat-focused", ctx._control.focused)("mat-primary", ctx.color !== "accent" && ctx.color !== "warn")("mat-accent", ctx.color === "accent")("mat-warn", ctx.color === "warn")("ng-untouched", ctx._shouldForward("untouched"))("ng-touched", ctx._shouldForward("touched"))("ng-pristine", ctx._shouldForward("pristine"))("ng-dirty", ctx._shouldForward("dirty"))("ng-valid", ctx._shouldForward("valid"))("ng-invalid", ctx._shouldForward("invalid"))("ng-pending", ctx._shouldForward("pending"));
                  }
                },
                inputs: {
                  hideRequiredMarker: "hideRequiredMarker",
                  color: "color",
                  floatLabel: "floatLabel",
                  appearance: "appearance",
                  subscriptSizing: "subscriptSizing",
                  hintLabel: "hintLabel"
                },
                exportAs: ["matFormField"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_FORM_FIELD,
                  useExisting: MatFormField
                }, {
                  provide: FLOATING_LABEL_PARENT,
                  useExisting: MatFormField
                }])],
                ngContentSelectors: _c7,
                decls: 18,
                vars: 23,
                consts: [["labelTemplate", ""], [1, "mat-mdc-text-field-wrapper", "mdc-text-field", 3, "click"], ["textField", ""], ["class", "mat-mdc-form-field-focus-overlay", 4, "ngIf"], [1, "mat-mdc-form-field-flex"], ["matFormFieldNotchedOutline", "", 3, "matFormFieldNotchedOutlineOpen", 4, "ngIf"], ["class", "mat-mdc-form-field-icon-prefix", 4, "ngIf"], ["class", "mat-mdc-form-field-text-prefix", 4, "ngIf"], [1, "mat-mdc-form-field-infix"], [3, "ngIf"], ["class", "mat-mdc-form-field-text-suffix", 4, "ngIf"], ["class", "mat-mdc-form-field-icon-suffix", 4, "ngIf"], ["matFormFieldLineRipple", "", 4, "ngIf"], [1, "mat-mdc-form-field-subscript-wrapper", "mat-mdc-form-field-bottom-align", 3, "ngSwitch"], ["class", "mat-mdc-form-field-error-wrapper", 4, "ngSwitchCase"], ["class", "mat-mdc-form-field-hint-wrapper", 4, "ngSwitchCase"], ["matFormFieldFloatingLabel", "", 3, "floating", "monitorResize", "id", 4, "ngIf"], ["matFormFieldFloatingLabel", "", 3, "floating", "monitorResize", "id"], ["aria-hidden", "true", "class", "mat-mdc-form-field-required-marker mdc-floating-label--required", 4, "ngIf"], ["aria-hidden", "true", 1, "mat-mdc-form-field-required-marker", "mdc-floating-label--required"], [1, "mat-mdc-form-field-focus-overlay"], ["matFormFieldNotchedOutline", "", 3, "matFormFieldNotchedOutlineOpen"], [3, "ngTemplateOutlet"], [1, "mat-mdc-form-field-icon-prefix"], ["iconPrefixContainer", ""], [1, "mat-mdc-form-field-text-prefix"], ["textPrefixContainer", ""], [1, "mat-mdc-form-field-text-suffix"], [1, "mat-mdc-form-field-icon-suffix"], ["matFormFieldLineRipple", ""], [1, "mat-mdc-form-field-error-wrapper"], [1, "mat-mdc-form-field-hint-wrapper"], [3, "id", 4, "ngIf"], [1, "mat-mdc-form-field-hint-spacer"], [3, "id"]],
                template: function MatFormField_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatFormField_ng_template_0_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1, 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatFormField_Template_div_click_2_listener($event) {
                      return ctx._control.onContainerClick($event);
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MatFormField_div_4_Template, 1, 0, "div", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MatFormField_div_6_Template, 2, 2, "div", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, MatFormField_div_7_Template, 3, 0, "div", 6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, MatFormField_div_8_Template, 3, 0, "div", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, MatFormField_ng_template_10_Template, 1, 1, "ng-template", 9);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](11);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, MatFormField_div_12_Template, 2, 0, "div", 10);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, MatFormField_div_13_Template, 2, 0, "div", 11);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, MatFormField_div_14_Template, 1, 0, "div", 12);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 13);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, MatFormField_div_16_Template, 2, 1, "div", 14);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, MatFormField_div_17_Template, 5, 2, "div", 15);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-text-field--filled", !ctx._hasOutline())("mdc-text-field--outlined", ctx._hasOutline())("mdc-text-field--no-label", !ctx._hasFloatingLabel())("mdc-text-field--disabled", ctx._control.disabled)("mdc-text-field--invalid", ctx._control.errorState);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx._hasOutline() && !ctx._control.disabled);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._hasOutline());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._hasIconPrefix);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._hasTextPrefix);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx._hasOutline() || ctx._forceDisplayInfixLabel());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._hasTextSuffix);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._hasIconSuffix);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx._hasOutline());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-mdc-form-field-subscript-dynamic-size", ctx.subscriptSizing === "dynamic");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx._getDisplayedMessages());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "error");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "hint");
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgSwitch, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgSwitchCase, MatHint, MatFormFieldFloatingLabel, MatFormFieldNotchedOutline, MatFormFieldLineRipple],
                styles: [".mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:\"\";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:\"*\"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:\"\"}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:\"\";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}"],
                encapsulation: 2,
                data: {
                  animation: [matFormFieldAnimations.transitionMessages]
                },
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormField, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-form-field',
                exportAs: 'matFormField',
                animations: [matFormFieldAnimations.transitionMessages],
                host: {
                  'class': 'mat-mdc-form-field',
                  '[class.mat-mdc-form-field-label-always-float]': '_shouldAlwaysFloat()',
                  '[class.mat-mdc-form-field-has-icon-prefix]': '_hasIconPrefix',
                  '[class.mat-mdc-form-field-has-icon-suffix]': '_hasIconSuffix',
                  // Note that these classes reuse the same names as the non-MDC version, because they can be
                  // considered a public API since custom form controls may use them to style themselves.
                  // See https://github.com/angular/components/pull/20502#discussion_r486124901.
                  '[class.mat-form-field-invalid]': '_control.errorState',
                  '[class.mat-form-field-disabled]': '_control.disabled',
                  '[class.mat-form-field-autofilled]': '_control.autofilled',
                  '[class.mat-form-field-no-animations]': '_animationMode === "NoopAnimations"',
                  '[class.mat-form-field-appearance-fill]': 'appearance == "fill"',
                  '[class.mat-form-field-appearance-outline]': 'appearance == "outline"',
                  '[class.mat-form-field-hide-placeholder]': '_hasFloatingLabel() && !_shouldLabelFloat()',
                  '[class.mat-focused]': '_control.focused',
                  '[class.mat-primary]': 'color !== "accent" && color !== "warn"',
                  '[class.mat-accent]': 'color === "accent"',
                  '[class.mat-warn]': 'color === "warn"',
                  '[class.ng-untouched]': '_shouldForward("untouched")',
                  '[class.ng-touched]': '_shouldForward("touched")',
                  '[class.ng-pristine]': '_shouldForward("pristine")',
                  '[class.ng-dirty]': '_shouldForward("dirty")',
                  '[class.ng-valid]': '_shouldForward("valid")',
                  '[class.ng-invalid]': '_shouldForward("invalid")',
                  '[class.ng-pending]': '_shouldForward("pending")'
                },
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                providers: [{
                  provide: MAT_FORM_FIELD,
                  useExisting: MatFormField
                }, {
                  provide: FLOATING_LABEL_PARENT,
                  useExisting: MatFormField
                }],
                template: "<ng-template #labelTemplate>\n  <!--\n    MDC recommends that the text-field is a `<label>` element. This rather complicates the\n    setup because it would require every form-field control to explicitly set `aria-labelledby`.\n    This is because the `<label>` itself contains more than the actual label (e.g. prefix, suffix\n    or other projected content), and screen readers could potentially read out undesired content.\n    Excluding elements from being printed out requires them to be marked with `aria-hidden`, or\n    the form control is set to a scoped element for the label (using `aria-labelledby`). Both of\n    these options seem to complicate the setup because we know exactly what content is rendered\n    as part of the label, and we don't want to spend resources on walking through projected content\n    to set `aria-hidden`. Nor do we want to set `aria-labelledby` on every form control if we could\n    simply link the label to the control using the label `for` attribute.\n  -->\n  <label matFormFieldFloatingLabel\n         [floating]=\"_shouldLabelFloat()\"\n         [monitorResize]=\"_hasOutline()\"\n         *ngIf=\"_hasFloatingLabel()\"\n         [id]=\"_labelId\"\n         [attr.for]=\"_control.id\">\n    <ng-content select=\"mat-label\"></ng-content>\n    <!--\n      We set the required marker as a separate element, in order to make it easier to target if\n      apps want to override it and to be able to set `aria-hidden` so that screen readers don't\n      pick it up.\n     -->\n    <span\n      *ngIf=\"!hideRequiredMarker && _control.required\"\n      aria-hidden=\"true\"\n      class=\"mat-mdc-form-field-required-marker mdc-floating-label--required\"></span>\n  </label>\n</ng-template>\n\n<div class=\"mat-mdc-text-field-wrapper mdc-text-field\" #textField\n     [class.mdc-text-field--filled]=\"!_hasOutline()\"\n     [class.mdc-text-field--outlined]=\"_hasOutline()\"\n     [class.mdc-text-field--no-label]=\"!_hasFloatingLabel()\"\n     [class.mdc-text-field--disabled]=\"_control.disabled\"\n     [class.mdc-text-field--invalid]=\"_control.errorState\"\n     (click)=\"_control.onContainerClick($event)\">\n  <div class=\"mat-mdc-form-field-focus-overlay\" *ngIf=\"!_hasOutline() && !_control.disabled\"></div>\n  <div class=\"mat-mdc-form-field-flex\">\n    <div *ngIf=\"_hasOutline()\" matFormFieldNotchedOutline\n         [matFormFieldNotchedOutlineOpen]=\"_shouldLabelFloat()\">\n      <ng-template [ngIf]=\"!_forceDisplayInfixLabel()\">\n        <ng-template [ngTemplateOutlet]=\"labelTemplate\"></ng-template>\n      </ng-template>\n    </div>\n\n    <div class=\"mat-mdc-form-field-icon-prefix\" *ngIf=\"_hasIconPrefix\" #iconPrefixContainer>\n      <ng-content select=\"[matPrefix], [matIconPrefix]\"></ng-content>\n    </div>\n    <div class=\"mat-mdc-form-field-text-prefix\" *ngIf=\"_hasTextPrefix\" #textPrefixContainer>\n      <ng-content select=\"[matTextPrefix]\"></ng-content>\n    </div>\n\n    <div class=\"mat-mdc-form-field-infix\">\n      <ng-template [ngIf]=\"!_hasOutline() || _forceDisplayInfixLabel()\">\n        <ng-template [ngTemplateOutlet]=\"labelTemplate\"></ng-template>\n      </ng-template>\n\n      <ng-content></ng-content>\n    </div>\n\n    <div class=\"mat-mdc-form-field-text-suffix\" *ngIf=\"_hasTextSuffix\">\n      <ng-content select=\"[matTextSuffix]\"></ng-content>\n    </div>\n    <div class=\"mat-mdc-form-field-icon-suffix\" *ngIf=\"_hasIconSuffix\">\n      <ng-content select=\"[matSuffix], [matIconSuffix]\"></ng-content>\n    </div>\n  </div>\n\n  <div matFormFieldLineRipple *ngIf=\"!_hasOutline()\"></div>\n</div>\n\n<div class=\"mat-mdc-form-field-subscript-wrapper mat-mdc-form-field-bottom-align\"\n     [class.mat-mdc-form-field-subscript-dynamic-size]=\"subscriptSizing === 'dynamic'\"\n     [ngSwitch]=\"_getDisplayedMessages()\">\n  <div class=\"mat-mdc-form-field-error-wrapper\" *ngSwitchCase=\"'error'\"\n       [@transitionMessages]=\"_subscriptAnimationState\">\n    <ng-content select=\"mat-error, [matError]\"></ng-content>\n  </div>\n\n  <div class=\"mat-mdc-form-field-hint-wrapper\" *ngSwitchCase=\"'hint'\"\n       [@transitionMessages]=\"_subscriptAnimationState\">\n    <mat-hint *ngIf=\"hintLabel\" [id]=\"_hintLabelId\">{{hintLabel}}</mat-hint>\n    <ng-content select=\"mat-hint:not([align='end'])\"></ng-content>\n    <div class=\"mat-mdc-form-field-hint-spacer\"></div>\n    <ng-content select=\"mat-hint[align='end']\"></ng-content>\n  </div>\n</div>\n",
                styles: [".mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:\"\";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:\"\";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:\"*\"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:\"\"}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:\"\";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__.Directionality
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__.Platform
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.DOCUMENT]
                }]
              }];
            }, {
              _textField: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['textField']
              }],
              _iconPrefixContainer: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['iconPrefixContainer']
              }],
              _textPrefixContainer: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['textPrefixContainer']
              }],
              _floatingLabel: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: [MatFormFieldFloatingLabel]
              }],
              _notchedOutline: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: [MatFormFieldNotchedOutline]
              }],
              _lineRipple: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: [MatFormFieldLineRipple]
              }],
              _labelChildNonStatic: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
                args: [MatLabel]
              }],
              _labelChildStatic: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
                args: [MatLabel, {
                  static: true
                }]
              }],
              _formFieldControl: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
                args: [MatFormFieldControl]
              }],
              _prefixChildren: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [MAT_PREFIX, {
                  descendants: true
                }]
              }],
              _suffixChildren: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [MAT_SUFFIX, {
                  descendants: true
                }]
              }],
              _errorChildren: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [MAT_ERROR, {
                  descendants: true
                }]
              }],
              _hintChildren: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [MatHint, {
                  descendants: true
                }]
              }],
              hideRequiredMarker: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              color: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              floatLabel: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              appearance: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              subscriptSizing: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              hintLabel: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class MatFormFieldModule {
            static {
              this.ɵfac = function MatFormFieldModule_Factory(t) {
                return new (t || MatFormFieldModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatFormFieldModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_11__.MatCommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_12__.ObserversModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_11__.MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFormFieldModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_11__.MatCommonModule, _angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_12__.ObserversModule],
                exports: [MatFormField, MatLabel, MatHint, MatError, MatPrefix, MatSuffix, _angular_material_core__WEBPACK_IMPORTED_MODULE_11__.MatCommonModule],
                declarations: [MatFormField, MatLabel, MatError, MatHint, MatPrefix, MatSuffix, MatFormFieldFloatingLabel, MatFormFieldNotchedOutline, MatFormFieldLineRipple]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 4624:
          /*!***************************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/paginator.mjs ***!
            \***************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_PAGINATOR_DEFAULT_OPTIONS: () => (/* binding */ MAT_PAGINATOR_DEFAULT_OPTIONS),
          /* harmony export */   MAT_PAGINATOR_INTL_PROVIDER: () => (/* binding */ MAT_PAGINATOR_INTL_PROVIDER),
          /* harmony export */   MAT_PAGINATOR_INTL_PROVIDER_FACTORY: () => (/* binding */ MAT_PAGINATOR_INTL_PROVIDER_FACTORY),
          /* harmony export */   MatPaginator: () => (/* binding */ MatPaginator),
          /* harmony export */   MatPaginatorIntl: () => (/* binding */ MatPaginatorIntl),
          /* harmony export */   MatPaginatorModule: () => (/* binding */ MatPaginatorModule),
          /* harmony export */   PageEvent: () => (/* binding */ PageEvent),
          /* harmony export */   _MatPaginatorBase: () => (/* binding */ _MatPaginatorBase)
          /* harmony export */ });
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/button */ 4175);
          /* harmony import */ var _angular_material_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/select */ 5175);
          /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/tooltip */ 640);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/core */ 4646);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ 4950);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          /**
           * To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
           * include it in a custom provider
           */
          function MatPaginator_div_2_mat_form_field_3_mat_option_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-option", 19);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const pageSizeOption_r6 = ctx.$implicit;
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", pageSizeOption_r6);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", pageSizeOption_r6, " ");
            }
          }
          function MatPaginator_div_2_mat_form_field_3_Template(rf, ctx) {
            if (rf & 1) {
              const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-form-field", 16)(1, "mat-select", 17);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("selectionChange", function MatPaginator_div_2_mat_form_field_3_Template_mat_select_selectionChange_1_listener($event) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8);
                const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7._changePageSize($event.value));
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatPaginator_div_2_mat_form_field_3_mat_option_2_Template, 2, 2, "mat-option", 18);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("appearance", ctx_r3._formFieldAppearance)("color", ctx_r3.color);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r3.pageSize)("disabled", ctx_r3.disabled)("aria-labelledby", ctx_r3._pageSizeLabelId)("panelClass", ctx_r3.selectConfig.panelClass || "")("disableOptionCentering", ctx_r3.selectConfig.disableOptionCentering);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3._displayedPageSizeOptions);
            }
          }
          function MatPaginator_div_2_div_4_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r4.pageSize);
            }
          }
          function MatPaginator_div_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12)(1, "div", 13);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MatPaginator_div_2_mat_form_field_3_Template, 3, 8, "mat-form-field", 14);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MatPaginator_div_2_div_4_Template, 2, 1, "div", 15);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", ctx_r0._pageSizeLabelId);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0._intl.itemsPerPageLabel, " ");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0._displayedPageSizeOptions.length > 1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0._displayedPageSizeOptions.length <= 1);
            }
          }
          function MatPaginator_button_6_Template(rf, ctx) {
            if (rf & 1) {
              const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 21);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginator_button_6_Template_button_click_0_listener() {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10);
                const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r9.firstPage());
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "svg", 7);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "path", 22);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matTooltip", ctx_r1._intl.firstPageLabel)("matTooltipDisabled", ctx_r1._previousButtonsDisabled())("matTooltipPosition", "above")("disabled", ctx_r1._previousButtonsDisabled());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx_r1._intl.firstPageLabel);
            }
          }
          function MatPaginator_button_13_Template(rf, ctx) {
            if (rf & 1) {
              const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 23);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginator_button_13_Template_button_click_0_listener() {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12);
                const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r11.lastPage());
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "svg", 7);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "path", 24);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matTooltip", ctx_r2._intl.lastPageLabel)("matTooltipDisabled", ctx_r2._nextButtonsDisabled())("matTooltipPosition", "above")("disabled", ctx_r2._nextButtonsDisabled());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx_r2._intl.lastPageLabel);
            }
          }
          class MatPaginatorIntl {
            constructor() {
              /**
               * Stream to emit from when labels are changed. Use this to notify components when the labels have
               * changed after initialization.
               */
              this.changes = new rxjs__WEBPACK_IMPORTED_MODULE_1__.Subject();
              /** A label for the page size selector. */
              this.itemsPerPageLabel = 'Items per page:';
              /** A label for the button that increments the current page. */
              this.nextPageLabel = 'Next page';
              /** A label for the button that decrements the current page. */
              this.previousPageLabel = 'Previous page';
              /** A label for the button that moves to the first page. */
              this.firstPageLabel = 'First page';
              /** A label for the button that moves to the last page. */
              this.lastPageLabel = 'Last page';
              /** A label for the range of items within the current page and the length of the whole list. */
              this.getRangeLabel = (page, pageSize, length) => {
                if (length == 0 || pageSize == 0) {
                  return `0 of ${length}`;
                }
                length = Math.max(length, 0);
                const startIndex = page * pageSize;
                // If the start index exceeds the list length, do not try and fix the end index to the end.
                const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
                return `${startIndex + 1} – ${endIndex} of ${length}`;
              };
            }
            static {
              this.ɵfac = function MatPaginatorIntl_Factory(t) {
                return new (t || MatPaginatorIntl)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: MatPaginatorIntl,
                factory: MatPaginatorIntl.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPaginatorIntl, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /** @docs-private */
          function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl) {
            return parentIntl || new MatPaginatorIntl();
          }
          /** @docs-private */
          const MAT_PAGINATOR_INTL_PROVIDER = {
            // If there is already an MatPaginatorIntl available, use that. Otherwise, provide a new one.
            provide: MatPaginatorIntl,
            deps: [[new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), new _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf(), MatPaginatorIntl]],
            useFactory: MAT_PAGINATOR_INTL_PROVIDER_FACTORY
          };
          
          /** The default page size if there is no page size and there are no provided page size options. */
          const DEFAULT_PAGE_SIZE = 50;
          /**
           * Change event object that is emitted when the user selects a
           * different page size or navigates to another page.
           */
          class PageEvent {}
          /** Injection token that can be used to provide the default options for the paginator module. */
          const MAT_PAGINATOR_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_PAGINATOR_DEFAULT_OPTIONS');
          // Boilerplate for applying mixins to _MatPaginatorBase.
          /** @docs-private */
          const _MatPaginatorMixinBase = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_2__.mixinDisabled)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_2__.mixinInitialized)(class {}));
          /**
           * Base class with all of the `MatPaginator` functionality.
           * @docs-private
           */
          class _MatPaginatorBase extends _MatPaginatorMixinBase {
            /** The zero-based page index of the displayed list of items. Defaulted to 0. */
            get pageIndex() {
              return this._pageIndex;
            }
            set pageIndex(value) {
              this._pageIndex = Math.max((0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value), 0);
              this._changeDetectorRef.markForCheck();
            }
            /** The length of the total number of items that are being paginated. Defaulted to 0. */
            get length() {
              return this._length;
            }
            set length(value) {
              this._length = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
              this._changeDetectorRef.markForCheck();
            }
            /** Number of items to display on a page. By default set to 50. */
            get pageSize() {
              return this._pageSize;
            }
            set pageSize(value) {
              this._pageSize = Math.max((0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value), 0);
              this._updateDisplayedPageSizeOptions();
            }
            /** The set of provided page size options to display to the user. */
            get pageSizeOptions() {
              return this._pageSizeOptions;
            }
            set pageSizeOptions(value) {
              this._pageSizeOptions = (value || []).map(p => (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(p));
              this._updateDisplayedPageSizeOptions();
            }
            /** Whether to hide the page size selection UI from the user. */
            get hidePageSize() {
              return this._hidePageSize;
            }
            set hidePageSize(value) {
              this._hidePageSize = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)(value);
            }
            /** Whether to show the first/last buttons UI to the user. */
            get showFirstLastButtons() {
              return this._showFirstLastButtons;
            }
            set showFirstLastButtons(value) {
              this._showFirstLastButtons = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)(value);
            }
            constructor(_intl, _changeDetectorRef, defaults) {
              super();
              this._intl = _intl;
              this._changeDetectorRef = _changeDetectorRef;
              this._pageIndex = 0;
              this._length = 0;
              this._pageSizeOptions = [];
              this._hidePageSize = false;
              this._showFirstLastButtons = false;
              /** Used to configure the underlying `MatSelect` inside the paginator. */
              this.selectConfig = {};
              /** Event emitted when the paginator changes the page size or page index. */
              this.page = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this._intlChanges = _intl.changes.subscribe(() => this._changeDetectorRef.markForCheck());
              if (defaults) {
                const {
                  pageSize,
                  pageSizeOptions,
                  hidePageSize,
                  showFirstLastButtons
                } = defaults;
                if (pageSize != null) {
                  this._pageSize = pageSize;
                }
                if (pageSizeOptions != null) {
                  this._pageSizeOptions = pageSizeOptions;
                }
                if (hidePageSize != null) {
                  this._hidePageSize = hidePageSize;
                }
                if (showFirstLastButtons != null) {
                  this._showFirstLastButtons = showFirstLastButtons;
                }
              }
            }
            ngOnInit() {
              this._initialized = true;
              this._updateDisplayedPageSizeOptions();
              this._markInitialized();
            }
            ngOnDestroy() {
              this._intlChanges.unsubscribe();
            }
            /** Advances to the next page if it exists. */
            nextPage() {
              if (!this.hasNextPage()) {
                return;
              }
              const previousPageIndex = this.pageIndex;
              this.pageIndex = this.pageIndex + 1;
              this._emitPageEvent(previousPageIndex);
            }
            /** Move back to the previous page if it exists. */
            previousPage() {
              if (!this.hasPreviousPage()) {
                return;
              }
              const previousPageIndex = this.pageIndex;
              this.pageIndex = this.pageIndex - 1;
              this._emitPageEvent(previousPageIndex);
            }
            /** Move to the first page if not already there. */
            firstPage() {
              // hasPreviousPage being false implies at the start
              if (!this.hasPreviousPage()) {
                return;
              }
              const previousPageIndex = this.pageIndex;
              this.pageIndex = 0;
              this._emitPageEvent(previousPageIndex);
            }
            /** Move to the last page if not already there. */
            lastPage() {
              // hasNextPage being false implies at the end
              if (!this.hasNextPage()) {
                return;
              }
              const previousPageIndex = this.pageIndex;
              this.pageIndex = this.getNumberOfPages() - 1;
              this._emitPageEvent(previousPageIndex);
            }
            /** Whether there is a previous page. */
            hasPreviousPage() {
              return this.pageIndex >= 1 && this.pageSize != 0;
            }
            /** Whether there is a next page. */
            hasNextPage() {
              const maxPageIndex = this.getNumberOfPages() - 1;
              return this.pageIndex < maxPageIndex && this.pageSize != 0;
            }
            /** Calculate the number of pages */
            getNumberOfPages() {
              if (!this.pageSize) {
                return 0;
              }
              return Math.ceil(this.length / this.pageSize);
            }
            /**
             * Changes the page size so that the first item displayed on the page will still be
             * displayed using the new page size.
             *
             * For example, if the page size is 10 and on the second page (items indexed 10-19) then
             * switching so that the page size is 5 will set the third page as the current page so
             * that the 10th item will still be displayed.
             */
            _changePageSize(pageSize) {
              // Current page needs to be updated to reflect the new page size. Navigate to the page
              // containing the previous page's first item.
              const startIndex = this.pageIndex * this.pageSize;
              const previousPageIndex = this.pageIndex;
              this.pageIndex = Math.floor(startIndex / pageSize) || 0;
              this.pageSize = pageSize;
              this._emitPageEvent(previousPageIndex);
            }
            /** Checks whether the buttons for going forwards should be disabled. */
            _nextButtonsDisabled() {
              return this.disabled || !this.hasNextPage();
            }
            /** Checks whether the buttons for going backwards should be disabled. */
            _previousButtonsDisabled() {
              return this.disabled || !this.hasPreviousPage();
            }
            /**
             * Updates the list of page size options to display to the user. Includes making sure that
             * the page size is an option and that the list is sorted.
             */
            _updateDisplayedPageSizeOptions() {
              if (!this._initialized) {
                return;
              }
              // If no page size is provided, use the first page size option or the default page size.
              if (!this.pageSize) {
                this._pageSize = this.pageSizeOptions.length != 0 ? this.pageSizeOptions[0] : DEFAULT_PAGE_SIZE;
              }
              this._displayedPageSizeOptions = this.pageSizeOptions.slice();
              if (this._displayedPageSizeOptions.indexOf(this.pageSize) === -1) {
                this._displayedPageSizeOptions.push(this.pageSize);
              }
              // Sort the numbers using a number-specific sort function.
              this._displayedPageSizeOptions.sort((a, b) => a - b);
              this._changeDetectorRef.markForCheck();
            }
            /** Emits an event notifying that a change of the paginator's properties has been triggered. */
            _emitPageEvent(previousPageIndex) {
              this.page.emit({
                previousPageIndex,
                pageIndex: this.pageIndex,
                pageSize: this.pageSize,
                length: this.length
              });
            }
            static {
              this.ɵfac = function _MatPaginatorBase_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _MatPaginatorBase,
                inputs: {
                  color: "color",
                  pageIndex: "pageIndex",
                  length: "length",
                  pageSize: "pageSize",
                  pageSizeOptions: "pageSizeOptions",
                  hidePageSize: "hidePageSize",
                  showFirstLastButtons: "showFirstLastButtons",
                  selectConfig: "selectConfig"
                },
                outputs: {
                  page: "page"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatPaginatorBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: MatPaginatorIntl
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: undefined
              }];
            }, {
              color: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              pageIndex: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              length: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              pageSize: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              pageSizeOptions: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              hidePageSize: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              showFirstLastButtons: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              selectConfig: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              page: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }]
            });
          })();
          let nextUniqueId = 0;
          /**
           * Component to provide navigation between paged information. Displays the size of the current
           * page, user-selectable options to change that size, what items are being shown, and
           * navigational button to go to the previous or next page.
           */
          class MatPaginator extends _MatPaginatorBase {
            constructor(intl, changeDetectorRef, defaults) {
              super(intl, changeDetectorRef, defaults);
              /** ID for the DOM node containing the paginator's items per page label. */
              this._pageSizeLabelId = `mat-paginator-page-size-label-${nextUniqueId++}`;
              this._formFieldAppearance = defaults?.formFieldAppearance || 'outline';
            }
            static {
              this.ɵfac = function MatPaginator_Factory(t) {
                return new (t || MatPaginator)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MatPaginatorIntl), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_PAGINATOR_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatPaginator,
                selectors: [["mat-paginator"]],
                hostAttrs: ["role", "group", 1, "mat-mdc-paginator"],
                inputs: {
                  disabled: "disabled"
                },
                exportAs: ["matPaginator"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 14,
                vars: 14,
                consts: [[1, "mat-mdc-paginator-outer-container"], [1, "mat-mdc-paginator-container"], ["class", "mat-mdc-paginator-page-size", 4, "ngIf"], [1, "mat-mdc-paginator-range-actions"], ["aria-live", "polite", 1, "mat-mdc-paginator-range-label"], ["mat-icon-button", "", "type", "button", "class", "mat-mdc-paginator-navigation-first", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click", 4, "ngIf"], ["mat-icon-button", "", "type", "button", 1, "mat-mdc-paginator-navigation-previous", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click"], ["viewBox", "0 0 24 24", "focusable", "false", "aria-hidden", "true", 1, "mat-mdc-paginator-icon"], ["d", "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"], ["mat-icon-button", "", "type", "button", 1, "mat-mdc-paginator-navigation-next", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click"], ["d", "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"], ["mat-icon-button", "", "type", "button", "class", "mat-mdc-paginator-navigation-last", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click", 4, "ngIf"], [1, "mat-mdc-paginator-page-size"], [1, "mat-mdc-paginator-page-size-label", 3, "id"], ["class", "mat-mdc-paginator-page-size-select", 3, "appearance", "color", 4, "ngIf"], ["class", "mat-mdc-paginator-page-size-value", 4, "ngIf"], [1, "mat-mdc-paginator-page-size-select", 3, "appearance", "color"], ["hideSingleSelectionIndicator", "", 3, "value", "disabled", "aria-labelledby", "panelClass", "disableOptionCentering", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "mat-mdc-paginator-page-size-value"], ["mat-icon-button", "", "type", "button", 1, "mat-mdc-paginator-navigation-first", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click"], ["d", "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"], ["mat-icon-button", "", "type", "button", 1, "mat-mdc-paginator-navigation-last", 3, "matTooltip", "matTooltipDisabled", "matTooltipPosition", "disabled", "click"], ["d", "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],
                template: function MatPaginator_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatPaginator_div_2_Template, 5, 4, "div", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MatPaginator_button_6_Template, 3, 5, "button", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginator_Template_button_click_7_listener() {
                      return ctx.previousPage();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "svg", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "path", 8);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 9);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginator_Template_button_click_10_listener() {
                      return ctx.nextPage();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "svg", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "path", 10);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, MatPaginator_button_13_Template, 3, 5, "button", 11);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.hidePageSize);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx._intl.getRangeLabel(ctx.pageIndex, ctx.pageSize, ctx.length), " ");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showFirstLastButtons);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matTooltip", ctx._intl.previousPageLabel)("matTooltipDisabled", ctx._previousButtonsDisabled())("matTooltipPosition", "above")("disabled", ctx._previousButtonsDisabled());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx._intl.previousPageLabel);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matTooltip", ctx._intl.nextPageLabel)("matTooltipDisabled", ctx._nextButtonsDisabled())("matTooltipPosition", "above")("disabled", ctx._nextButtonsDisabled());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx._intl.nextPageLabel);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showFirstLastButtons);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_material_button__WEBPACK_IMPORTED_MODULE_5__.MatIconButton, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__.MatFormField, _angular_material_select__WEBPACK_IMPORTED_MODULE_7__.MatSelect, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__.MatOption, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__.MatTooltip],
                styles: [".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPaginator, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-paginator',
                exportAs: 'matPaginator',
                inputs: ['disabled'],
                host: {
                  'class': 'mat-mdc-paginator',
                  'role': 'group'
                },
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                template: "<div class=\"mat-mdc-paginator-outer-container\">\n  <div class=\"mat-mdc-paginator-container\">\n    <div class=\"mat-mdc-paginator-page-size\" *ngIf=\"!hidePageSize\">\n      <div class=\"mat-mdc-paginator-page-size-label\" id=\"{{_pageSizeLabelId}}\">\n        {{_intl.itemsPerPageLabel}}\n      </div>\n\n      <mat-form-field\n        *ngIf=\"_displayedPageSizeOptions.length > 1\"\n        [appearance]=\"_formFieldAppearance!\"\n        [color]=\"color\"\n        class=\"mat-mdc-paginator-page-size-select\">\n        <mat-select\n          [value]=\"pageSize\"\n          [disabled]=\"disabled\"\n          [aria-labelledby]=\"_pageSizeLabelId\"\n          [panelClass]=\"selectConfig.panelClass || ''\"\n          [disableOptionCentering]=\"selectConfig.disableOptionCentering\"\n          (selectionChange)=\"_changePageSize($event.value)\"\n          hideSingleSelectionIndicator>\n          <mat-option *ngFor=\"let pageSizeOption of _displayedPageSizeOptions\" [value]=\"pageSizeOption\">\n            {{pageSizeOption}}\n          </mat-option>\n        </mat-select>\n      </mat-form-field>\n\n      <div\n        class=\"mat-mdc-paginator-page-size-value\"\n        *ngIf=\"_displayedPageSizeOptions.length <= 1\">{{pageSize}}</div>\n    </div>\n\n    <div class=\"mat-mdc-paginator-range-actions\">\n      <div class=\"mat-mdc-paginator-range-label\" aria-live=\"polite\">\n        {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\n      </div>\n\n      <button mat-icon-button type=\"button\"\n              class=\"mat-mdc-paginator-navigation-first\"\n              (click)=\"firstPage()\"\n              [attr.aria-label]=\"_intl.firstPageLabel\"\n              [matTooltip]=\"_intl.firstPageLabel\"\n              [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n              [matTooltipPosition]=\"'above'\"\n              [disabled]=\"_previousButtonsDisabled()\"\n              *ngIf=\"showFirstLastButtons\">\n        <svg class=\"mat-mdc-paginator-icon\"\n             viewBox=\"0 0 24 24\"\n             focusable=\"false\"\n             aria-hidden=\"true\">\n          <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"/>\n        </svg>\n      </button>\n      <button mat-icon-button type=\"button\"\n              class=\"mat-mdc-paginator-navigation-previous\"\n              (click)=\"previousPage()\"\n              [attr.aria-label]=\"_intl.previousPageLabel\"\n              [matTooltip]=\"_intl.previousPageLabel\"\n              [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n              [matTooltipPosition]=\"'above'\"\n              [disabled]=\"_previousButtonsDisabled()\">\n        <svg class=\"mat-mdc-paginator-icon\"\n             viewBox=\"0 0 24 24\"\n             focusable=\"false\"\n             aria-hidden=\"true\">\n          <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/>\n        </svg>\n      </button>\n      <button mat-icon-button type=\"button\"\n              class=\"mat-mdc-paginator-navigation-next\"\n              (click)=\"nextPage()\"\n              [attr.aria-label]=\"_intl.nextPageLabel\"\n              [matTooltip]=\"_intl.nextPageLabel\"\n              [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n              [matTooltipPosition]=\"'above'\"\n              [disabled]=\"_nextButtonsDisabled()\">\n        <svg class=\"mat-mdc-paginator-icon\"\n             viewBox=\"0 0 24 24\"\n             focusable=\"false\"\n             aria-hidden=\"true\">\n          <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/>\n        </svg>\n      </button>\n      <button mat-icon-button type=\"button\"\n              class=\"mat-mdc-paginator-navigation-last\"\n              (click)=\"lastPage()\"\n              [attr.aria-label]=\"_intl.lastPageLabel\"\n              [matTooltip]=\"_intl.lastPageLabel\"\n              [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n              [matTooltipPosition]=\"'above'\"\n              [disabled]=\"_nextButtonsDisabled()\"\n              *ngIf=\"showFirstLastButtons\">\n        <svg class=\"mat-mdc-paginator-icon\"\n             viewBox=\"0 0 24 24\"\n             focusable=\"false\"\n             aria-hidden=\"true\">\n          <path d=\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"/>\n        </svg>\n      </button>\n    </div>\n  </div>\n</div>\n",
                styles: [".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"]
              }]
            }], function () {
              return [{
                type: MatPaginatorIntl
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_PAGINATOR_DEFAULT_OPTIONS]
                }]
              }];
            }, null);
          })();
          class MatPaginatorModule {
            static {
              this.ɵfac = function MatPaginatorModule_Factory(t) {
                return new (t || MatPaginatorModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatPaginatorModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [MAT_PAGINATOR_INTL_PROVIDER],
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, _angular_material_button__WEBPACK_IMPORTED_MODULE_5__.MatButtonModule, _angular_material_select__WEBPACK_IMPORTED_MODULE_7__.MatSelectModule, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__.MatTooltipModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPaginatorModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, _angular_material_button__WEBPACK_IMPORTED_MODULE_5__.MatButtonModule, _angular_material_select__WEBPACK_IMPORTED_MODULE_7__.MatSelectModule, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_8__.MatTooltipModule],
                exports: [MatPaginator],
                declarations: [MatPaginator],
                providers: [MAT_PAGINATOR_INTL_PROVIDER]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 5175:
          /*!************************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/select.mjs ***!
            \************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_SELECT_CONFIG: () => (/* binding */ MAT_SELECT_CONFIG),
          /* harmony export */   MAT_SELECT_SCROLL_STRATEGY: () => (/* binding */ MAT_SELECT_SCROLL_STRATEGY),
          /* harmony export */   MAT_SELECT_SCROLL_STRATEGY_PROVIDER: () => (/* binding */ MAT_SELECT_SCROLL_STRATEGY_PROVIDER),
          /* harmony export */   MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY: () => (/* binding */ MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY),
          /* harmony export */   MAT_SELECT_TRIGGER: () => (/* binding */ MAT_SELECT_TRIGGER),
          /* harmony export */   MatSelect: () => (/* binding */ MatSelect),
          /* harmony export */   MatSelectChange: () => (/* binding */ MatSelectChange),
          /* harmony export */   MatSelectModule: () => (/* binding */ MatSelectModule),
          /* harmony export */   MatSelectTrigger: () => (/* binding */ MatSelectTrigger),
          /* harmony export */   _MatSelectBase: () => (/* binding */ _MatSelectBase),
          /* harmony export */   matSelectAnimations: () => (/* binding */ matSelectAnimations)
          /* harmony export */ });
          /* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/overlay */ 1570);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/core */ 4646);
          /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/material/form-field */ 4950);
          /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/cdk/scrolling */ 9975);
          /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/cdk/a11y */ 2102);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/cdk/collections */ 7989);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 4456);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 137);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 3037);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 6647);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 271);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs/operators */ 1817);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ 7172);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          /**
           * The following are all the animations for the mat-select component, with each
           * const containing the metadata for one animation.
           *
           * The values below match the implementation of the AngularJS Material mat-select animation.
           * @docs-private
           */
          const _c0 = ["trigger"];
          const _c1 = ["panel"];
          function MatSelect_span_4_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 10);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.placeholder);
            }
          }
          function MatSelect_span_5_span_1_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 14);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r5.triggerValue);
            }
          }
          function MatSelect_span_5_ng_content_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0, 0, ["*ngSwitchCase", "true"]);
            }
          }
          function MatSelect_span_5_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 11);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MatSelect_span_5_span_1_Template, 2, 1, "span", 12);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatSelect_span_5_ng_content_2_Template, 1, 0, "ng-content", 13);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", !!ctx_r3.customTrigger);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", true);
            }
          }
          function MatSelect_ng_template_10_Template(rf, ctx) {
            if (rf & 1) {
              const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15, 16);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("@transformPanel.done", function MatSelect_ng_template_10_Template_div_animation_transformPanel_done_0_listener($event) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9);
                const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r8._panelDoneAnimatingStream.next($event.toState));
              })("keydown", function MatSelect_ng_template_10_Template_div_keydown_0_listener($event) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9);
                const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r10._handleKeydown($event));
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2, 1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ", ctx_r4._getPanelTheme(), "");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r4.panelClass)("@transformPanel", "showing");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", ctx_r4.id + "-panel")("aria-multiselectable", ctx_r4.multiple)("aria-label", ctx_r4.ariaLabel || null)("aria-labelledby", ctx_r4._getPanelAriaLabelledby());
            }
          }
          const _c2 = [[["mat-select-trigger"]], "*"];
          const _c3 = ["mat-select-trigger", "*"];
          const matSelectAnimations = {
            /**
             * This animation ensures the select's overlay panel animation (transformPanel) is called when
             * closing the select.
             * This is needed due to https://github.com/angular/angular/issues/23302
             */
            transformPanelWrap: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.trigger)('transformPanelWrap', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.transition)('* => void', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.query)('@transformPanel', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.animateChild)()], {
              optional: true
            }))]),
            /** This animation transforms the select's overlay panel on and off the page. */
            transformPanel: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.trigger)('transformPanel', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.state)('void', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.style)({
              opacity: 0,
              transform: 'scale(1, 0.8)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.transition)('void => showing', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.animate)('120ms cubic-bezier(0, 0, 0.2, 1)', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.style)({
              opacity: 1,
              transform: 'scale(1, 1)'
            }))), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.transition)('* => void', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.animate)('100ms linear', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_1__.style)({
              opacity: 0
            })))])
          };
          
          // Note that these have been copied over verbatim from
          // `material/select` so that we don't have to expose them publicly.
          /**
           * Returns an exception to be thrown when attempting to change a select's `multiple` option
           * after initialization.
           * @docs-private
           */
          function getMatSelectDynamicMultipleError() {
            return Error('Cannot change `multiple` mode of select after initialization.');
          }
          /**
           * Returns an exception to be thrown when attempting to assign a non-array value to a select
           * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
           * resetting the value.
           * @docs-private
           */
          function getMatSelectNonArrayValueError() {
            return Error('Value must be an array in multiple-selection mode.');
          }
          /**
           * Returns an exception to be thrown when assigning a non-function value to the comparator
           * used to determine if a value corresponds to an option. Note that whether the function
           * actually takes two values and returns a boolean is not checked.
           */
          function getMatSelectNonFunctionValueError() {
            return Error('`compareWith` must be a function.');
          }
          let nextUniqueId = 0;
          /** Injection token that determines the scroll handling while a select is open. */
          const MAT_SELECT_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-select-scroll-strategy');
          /** @docs-private */
          function MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
            return () => overlay.scrollStrategies.reposition();
          }
          /** Injection token that can be used to provide the default options the select module. */
          const MAT_SELECT_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_SELECT_CONFIG');
          /** @docs-private */
          const MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {
            provide: MAT_SELECT_SCROLL_STRATEGY,
            deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.Overlay],
            useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY
          };
          /**
           * Injection token that can be used to reference instances of `MatSelectTrigger`. It serves as
           * alternative token to the actual `MatSelectTrigger` class which could cause unnecessary
           * retention of the class and its directive metadata.
           */
          const MAT_SELECT_TRIGGER = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MatSelectTrigger');
          /** Change event object that is emitted when the select value has changed. */
          class MatSelectChange {
            constructor( /** Reference to the select that emitted the change event. */
            source, /** Current value of the select that emitted the event. */
            value) {
              this.source = source;
              this.value = value;
            }
          }
          // Boilerplate for applying mixins to MatSelect.
          /** @docs-private */
          const _MatSelectMixinBase = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.mixinDisableRipple)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.mixinTabIndex)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.mixinDisabled)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.mixinErrorState)(class {
            constructor(_elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup,
            /**
             * Form control bound to the component.
             * Implemented as part of `MatFormFieldControl`.
             * @docs-private
             */
            ngControl) {
              this._elementRef = _elementRef;
              this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
              this._parentForm = _parentForm;
              this._parentFormGroup = _parentFormGroup;
              this.ngControl = ngControl;
              /**
               * Emits whenever the component state changes and should cause the parent
               * form-field to update. Implemented as part of `MatFormFieldControl`.
               * @docs-private
               */
              this.stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject();
            }
          }))));
          /** Base class with all of the `MatSelect` functionality. */
          class _MatSelectBase extends _MatSelectMixinBase {
            /** Whether the select is focused. */
            get focused() {
              return this._focused || this._panelOpen;
            }
            /** Placeholder to be shown if no value has been selected. */
            get placeholder() {
              return this._placeholder;
            }
            set placeholder(value) {
              this._placeholder = value;
              this.stateChanges.next();
            }
            /** Whether the component is required. */
            get required() {
              return this._required ?? this.ngControl?.control?.hasValidator(_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required) ?? false;
            }
            set required(value) {
              this._required = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
              this.stateChanges.next();
            }
            /** Whether the user should be allowed to select multiple options. */
            get multiple() {
              return this._multiple;
            }
            set multiple(value) {
              if (this._selectionModel && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatSelectDynamicMultipleError();
              }
              this._multiple = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
            }
            /** Whether to center the active option over the trigger. */
            get disableOptionCentering() {
              return this._disableOptionCentering;
            }
            set disableOptionCentering(value) {
              this._disableOptionCentering = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
            }
            /**
             * Function to compare the option values with the selected values. The first argument
             * is a value from an option. The second is a value from the selection. A boolean
             * should be returned.
             */
            get compareWith() {
              return this._compareWith;
            }
            set compareWith(fn) {
              if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatSelectNonFunctionValueError();
              }
              this._compareWith = fn;
              if (this._selectionModel) {
                // A different comparator means the selection could change.
                this._initializeSelection();
              }
            }
            /** Value of the select control. */
            get value() {
              return this._value;
            }
            set value(newValue) {
              const hasAssigned = this._assignValue(newValue);
              if (hasAssigned) {
                this._onChange(newValue);
              }
            }
            /** Time to wait in milliseconds after the last keystroke before moving focus to an item. */
            get typeaheadDebounceInterval() {
              return this._typeaheadDebounceInterval;
            }
            set typeaheadDebounceInterval(value) {
              this._typeaheadDebounceInterval = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceNumberProperty)(value);
            }
            /** Unique id of the element. */
            get id() {
              return this._id;
            }
            set id(value) {
              this._id = value || this._uid;
              this.stateChanges.next();
            }
            constructor(_viewportRuler, _changeDetectorRef, _ngZone, _defaultErrorStateMatcher, elementRef, _dir, _parentForm, _parentFormGroup, _parentFormField, ngControl, tabIndex, scrollStrategyFactory, _liveAnnouncer, _defaultOptions) {
              super(elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
              this._viewportRuler = _viewportRuler;
              this._changeDetectorRef = _changeDetectorRef;
              this._ngZone = _ngZone;
              this._dir = _dir;
              this._parentFormField = _parentFormField;
              this._liveAnnouncer = _liveAnnouncer;
              this._defaultOptions = _defaultOptions;
              /** Whether or not the overlay panel is open. */
              this._panelOpen = false;
              /** Comparison function to specify which option is displayed. Defaults to object equality. */
              this._compareWith = (o1, o2) => o1 === o2;
              /** Unique id for this input. */
              this._uid = `mat-select-${nextUniqueId++}`;
              /** Current `aria-labelledby` value for the select trigger. */
              this._triggerAriaLabelledBy = null;
              /** Emits whenever the component is destroyed. */
              this._destroy = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject();
              /** `View -> model callback called when value changes` */
              this._onChange = () => {};
              /** `View -> model callback called when select has been touched` */
              this._onTouched = () => {};
              /** ID for the DOM node containing the select's value. */
              this._valueId = `mat-select-value-${nextUniqueId++}`;
              /** Emits when the panel element is finished transforming in. */
              this._panelDoneAnimatingStream = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject();
              this._overlayPanelClass = this._defaultOptions?.overlayPanelClass || '';
              this._focused = false;
              /** A name for this control that can be used by `mat-form-field`. */
              this.controlType = 'mat-select';
              this._multiple = false;
              this._disableOptionCentering = this._defaultOptions?.disableOptionCentering ?? false;
              /** Aria label of the select. */
              this.ariaLabel = '';
              /** Combined stream of all of the child options' change events. */
              this.optionSelectionChanges = (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.defer)(() => {
                const options = this.options;
                if (options) {
                  return options.changes.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.startWith)(options), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.switchMap)(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.merge)(...options.map(option => option.onSelectionChange))));
                }
                return this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.switchMap)(() => this.optionSelectionChanges));
              });
              /** Event emitted when the select panel has been toggled. */
              this.openedChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /** Event emitted when the select has been opened. */
              this._openedStream = this.openedChange.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.filter)(o => o), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.map)(() => {}));
              /** Event emitted when the select has been closed. */
              this._closedStream = this.openedChange.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.filter)(o => !o), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.map)(() => {}));
              /** Event emitted when the selected value has been changed by the user. */
              this.selectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /**
               * Event that emits whenever the raw value of the select changes. This is here primarily
               * to facilitate the two-way binding for the `value` input.
               * @docs-private
               */
              this.valueChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              /**
               * Track which modal we have modified the `aria-owns` attribute of. When the combobox trigger is
               * inside an aria-modal, we apply aria-owns to the parent modal with the `id` of the options
               * panel. Track the modal we have changed so we can undo the changes on destroy.
               */
              this._trackedModal = null;
              if (this.ngControl) {
                // Note: we provide the value accessor through here, instead of
                // the `providers` to avoid running into a circular import.
                this.ngControl.valueAccessor = this;
              }
              // Note that we only want to set this when the defaults pass it in, otherwise it should
              // stay as `undefined` so that it falls back to the default in the key manager.
              if (_defaultOptions?.typeaheadDebounceInterval != null) {
                this._typeaheadDebounceInterval = _defaultOptions.typeaheadDebounceInterval;
              }
              this._scrollStrategyFactory = scrollStrategyFactory;
              this._scrollStrategy = this._scrollStrategyFactory();
              this.tabIndex = parseInt(tabIndex) || 0;
              // Force setter to be called in case id was not specified.
              this.id = this.id;
            }
            ngOnInit() {
              this._selectionModel = new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_14__.SelectionModel(this.multiple);
              this.stateChanges.next();
              // We need `distinctUntilChanged` here, because some browsers will
              // fire the animation end event twice for the same animation. See:
              // https://github.com/angular/angular/issues/24084
              this._panelDoneAnimatingStream.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.distinctUntilChanged)(), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(this._destroy)).subscribe(() => this._panelDoneAnimating(this.panelOpen));
            }
            ngAfterContentInit() {
              this._initKeyManager();
              this._selectionModel.changed.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(this._destroy)).subscribe(event => {
                event.added.forEach(option => option.select());
                event.removed.forEach(option => option.deselect());
              });
              this.options.changes.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.startWith)(null), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(this._destroy)).subscribe(() => {
                this._resetOptions();
                this._initializeSelection();
              });
            }
            ngDoCheck() {
              const newAriaLabelledby = this._getTriggerAriaLabelledby();
              const ngControl = this.ngControl;
              // We have to manage setting the `aria-labelledby` ourselves, because part of its value
              // is computed as a result of a content query which can cause this binding to trigger a
              // "changed after checked" error.
              if (newAriaLabelledby !== this._triggerAriaLabelledBy) {
                const element = this._elementRef.nativeElement;
                this._triggerAriaLabelledBy = newAriaLabelledby;
                if (newAriaLabelledby) {
                  element.setAttribute('aria-labelledby', newAriaLabelledby);
                } else {
                  element.removeAttribute('aria-labelledby');
                }
              }
              if (ngControl) {
                // The disabled state might go out of sync if the form group is swapped out. See #17860.
                if (this._previousControl !== ngControl.control) {
                  if (this._previousControl !== undefined && ngControl.disabled !== null && ngControl.disabled !== this.disabled) {
                    this.disabled = ngControl.disabled;
                  }
                  this._previousControl = ngControl.control;
                }
                this.updateErrorState();
              }
            }
            ngOnChanges(changes) {
              // Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let
              // the parent form field know to run change detection when the disabled state changes.
              if (changes['disabled'] || changes['userAriaDescribedBy']) {
                this.stateChanges.next();
              }
              if (changes['typeaheadDebounceInterval'] && this._keyManager) {
                this._keyManager.withTypeAhead(this._typeaheadDebounceInterval);
              }
            }
            ngOnDestroy() {
              this._keyManager?.destroy();
              this._destroy.next();
              this._destroy.complete();
              this.stateChanges.complete();
              this._clearFromModal();
            }
            /** Toggles the overlay panel open or closed. */
            toggle() {
              this.panelOpen ? this.close() : this.open();
            }
            /** Opens the overlay panel. */
            open() {
              if (this._canOpen()) {
                this._applyModalPanelOwnership();
                this._panelOpen = true;
                this._keyManager.withHorizontalOrientation(null);
                this._highlightCorrectOption();
                this._changeDetectorRef.markForCheck();
              }
            }
            /**
             * If the autocomplete trigger is inside of an `aria-modal` element, connect
             * that modal to the options panel with `aria-owns`.
             *
             * For some browser + screen reader combinations, when navigation is inside
             * of an `aria-modal` element, the screen reader treats everything outside
             * of that modal as hidden or invisible.
             *
             * This causes a problem when the combobox trigger is _inside_ of a modal, because the
             * options panel is rendered _outside_ of that modal, preventing screen reader navigation
             * from reaching the panel.
             *
             * We can work around this issue by applying `aria-owns` to the modal with the `id` of
             * the options panel. This effectively communicates to assistive technology that the
             * options panel is part of the same interaction as the modal.
             *
             * At time of this writing, this issue is present in VoiceOver.
             * See https://github.com/angular/components/issues/20694
             */
            _applyModalPanelOwnership() {
              // TODO(http://github.com/angular/components/issues/26853): consider de-duplicating this with
              // the `LiveAnnouncer` and any other usages.
              //
              // Note that the selector here is limited to CDK overlays at the moment in order to reduce the
              // section of the DOM we need to look through. This should cover all the cases we support, but
              // the selector can be expanded if it turns out to be too narrow.
              const modal = this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');
              if (!modal) {
                // Most commonly, the autocomplete trigger is not inside a modal.
                return;
              }
              const panelId = `${this.id}-panel`;
              if (this._trackedModal) {
                (0,_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.removeAriaReferencedId)(this._trackedModal, 'aria-owns', panelId);
              }
              (0,_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.addAriaReferencedId)(modal, 'aria-owns', panelId);
              this._trackedModal = modal;
            }
            /** Clears the reference to the listbox overlay element from the modal it was added to. */
            _clearFromModal() {
              if (!this._trackedModal) {
                // Most commonly, the autocomplete trigger is not used inside a modal.
                return;
              }
              const panelId = `${this.id}-panel`;
              (0,_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.removeAriaReferencedId)(this._trackedModal, 'aria-owns', panelId);
              this._trackedModal = null;
            }
            /** Closes the overlay panel and focuses the host element. */
            close() {
              if (this._panelOpen) {
                this._panelOpen = false;
                this._keyManager.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr');
                this._changeDetectorRef.markForCheck();
                this._onTouched();
              }
            }
            /**
             * Sets the select's value. Part of the ControlValueAccessor interface
             * required to integrate with Angular's core forms API.
             *
             * @param value New value to be written to the model.
             */
            writeValue(value) {
              this._assignValue(value);
            }
            /**
             * Saves a callback function to be invoked when the select's value
             * changes from user input. Part of the ControlValueAccessor interface
             * required to integrate with Angular's core forms API.
             *
             * @param fn Callback to be triggered when the value changes.
             */
            registerOnChange(fn) {
              this._onChange = fn;
            }
            /**
             * Saves a callback function to be invoked when the select is blurred
             * by the user. Part of the ControlValueAccessor interface required
             * to integrate with Angular's core forms API.
             *
             * @param fn Callback to be triggered when the component has been touched.
             */
            registerOnTouched(fn) {
              this._onTouched = fn;
            }
            /**
             * Disables the select. Part of the ControlValueAccessor interface required
             * to integrate with Angular's core forms API.
             *
             * @param isDisabled Sets whether the component is disabled.
             */
            setDisabledState(isDisabled) {
              this.disabled = isDisabled;
              this._changeDetectorRef.markForCheck();
              this.stateChanges.next();
            }
            /** Whether or not the overlay panel is open. */
            get panelOpen() {
              return this._panelOpen;
            }
            /** The currently selected option. */
            get selected() {
              return this.multiple ? this._selectionModel?.selected || [] : this._selectionModel?.selected[0];
            }
            /** The value displayed in the trigger. */
            get triggerValue() {
              if (this.empty) {
                return '';
              }
              if (this._multiple) {
                const selectedOptions = this._selectionModel.selected.map(option => option.viewValue);
                if (this._isRtl()) {
                  selectedOptions.reverse();
                }
                // TODO(crisbeto): delimiter should be configurable for proper localization.
                return selectedOptions.join(', ');
              }
              return this._selectionModel.selected[0].viewValue;
            }
            /** Whether the element is in RTL mode. */
            _isRtl() {
              return this._dir ? this._dir.value === 'rtl' : false;
            }
            /** Handles all keydown events on the select. */
            _handleKeydown(event) {
              if (!this.disabled) {
                this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);
              }
            }
            /** Handles keyboard events while the select is closed. */
            _handleClosedKeydown(event) {
              const keyCode = event.keyCode;
              const isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.DOWN_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.UP_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.LEFT_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.RIGHT_ARROW;
              const isOpenKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.ENTER || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.SPACE;
              const manager = this._keyManager;
              // Open the select on ALT + arrow key to match the native <select>
              if (!manager.isTyping() && isOpenKey && !(0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.hasModifierKey)(event) || (this.multiple || event.altKey) && isArrowKey) {
                event.preventDefault(); // prevents the page from scrolling down when pressing space
                this.open();
              } else if (!this.multiple) {
                const previouslySelectedOption = this.selected;
                manager.onKeydown(event);
                const selectedOption = this.selected;
                // Since the value has changed, we need to announce it ourselves.
                if (selectedOption && previouslySelectedOption !== selectedOption) {
                  // We set a duration on the live announcement, because we want the live element to be
                  // cleared after a while so that users can't navigate to it using the arrow keys.
                  this._liveAnnouncer.announce(selectedOption.viewValue, 10000);
                }
              }
            }
            /** Handles keyboard events when the selected is open. */
            _handleOpenKeydown(event) {
              const manager = this._keyManager;
              const keyCode = event.keyCode;
              const isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.DOWN_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.UP_ARROW;
              const isTyping = manager.isTyping();
              if (isArrowKey && event.altKey) {
                // Close the select on ALT + arrow key to match the native <select>
                event.preventDefault();
                this.close();
                // Don't do anything in this case if the user is typing,
                // because the typing sequence can include the space key.
              } else if (!isTyping && (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.ENTER || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.SPACE) && manager.activeItem && !(0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.hasModifierKey)(event)) {
                event.preventDefault();
                manager.activeItem._selectViaInteraction();
              } else if (!isTyping && this._multiple && keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_18__.A && event.ctrlKey) {
                event.preventDefault();
                const hasDeselectedOptions = this.options.some(opt => !opt.disabled && !opt.selected);
                this.options.forEach(option => {
                  if (!option.disabled) {
                    hasDeselectedOptions ? option.select() : option.deselect();
                  }
                });
              } else {
                const previouslyFocusedIndex = manager.activeItemIndex;
                manager.onKeydown(event);
                if (this._multiple && isArrowKey && event.shiftKey && manager.activeItem && manager.activeItemIndex !== previouslyFocusedIndex) {
                  manager.activeItem._selectViaInteraction();
                }
              }
            }
            _onFocus() {
              if (!this.disabled) {
                this._focused = true;
                this.stateChanges.next();
              }
            }
            /**
             * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
             * "blur" to the panel when it opens, causing a false positive.
             */
            _onBlur() {
              this._focused = false;
              this._keyManager?.cancelTypeahead();
              if (!this.disabled && !this.panelOpen) {
                this._onTouched();
                this._changeDetectorRef.markForCheck();
                this.stateChanges.next();
              }
            }
            /**
             * Callback that is invoked when the overlay panel has been attached.
             */
            _onAttached() {
              this._overlayDir.positionChange.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.take)(1)).subscribe(() => {
                this._changeDetectorRef.detectChanges();
                this._positioningSettled();
              });
            }
            /** Returns the theme to be used on the panel. */
            _getPanelTheme() {
              return this._parentFormField ? `mat-${this._parentFormField.color}` : '';
            }
            /** Whether the select has a value. */
            get empty() {
              return !this._selectionModel || this._selectionModel.isEmpty();
            }
            _initializeSelection() {
              // Defer setting the value in order to avoid the "Expression
              // has changed after it was checked" errors from Angular.
              Promise.resolve().then(() => {
                if (this.ngControl) {
                  this._value = this.ngControl.value;
                }
                this._setSelectionByValue(this._value);
                this.stateChanges.next();
              });
            }
            /**
             * Sets the selected option based on a value. If no option can be
             * found with the designated value, the select trigger is cleared.
             */
            _setSelectionByValue(value) {
              this.options.forEach(option => option.setInactiveStyles());
              this._selectionModel.clear();
              if (this.multiple && value) {
                if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throw getMatSelectNonArrayValueError();
                }
                value.forEach(currentValue => this._selectOptionByValue(currentValue));
                this._sortValues();
              } else {
                const correspondingOption = this._selectOptionByValue(value);
                // Shift focus to the active item. Note that we shouldn't do this in multiple
                // mode, because we don't know what option the user interacted with last.
                if (correspondingOption) {
                  this._keyManager.updateActiveItem(correspondingOption);
                } else if (!this.panelOpen) {
                  // Otherwise reset the highlighted option. Note that we only want to do this while
                  // closed, because doing it while open can shift the user's focus unnecessarily.
                  this._keyManager.updateActiveItem(-1);
                }
              }
              this._changeDetectorRef.markForCheck();
            }
            /**
             * Finds and selects and option based on its value.
             * @returns Option that has the corresponding value.
             */
            _selectOptionByValue(value) {
              const correspondingOption = this.options.find(option => {
                // Skip options that are already in the model. This allows us to handle cases
                // where the same primitive value is selected multiple times.
                if (this._selectionModel.isSelected(option)) {
                  return false;
                }
                try {
                  // Treat null as a special reset value.
                  return option.value != null && this._compareWith(option.value, value);
                } catch (error) {
                  if (typeof ngDevMode === 'undefined' || ngDevMode) {
                    // Notify developers of errors in their comparator.
                    console.warn(error);
                  }
                  return false;
                }
              });
              if (correspondingOption) {
                this._selectionModel.select(correspondingOption);
              }
              return correspondingOption;
            }
            /** Assigns a specific value to the select. Returns whether the value has changed. */
            _assignValue(newValue) {
              // Always re-assign an array, because it might have been mutated.
              if (newValue !== this._value || this._multiple && Array.isArray(newValue)) {
                if (this.options) {
                  this._setSelectionByValue(newValue);
                }
                this._value = newValue;
                return true;
              }
              return false;
            }
            _skipPredicate(item) {
              return item.disabled;
            }
            /** Sets up a key manager to listen to keyboard events on the overlay panel. */
            _initKeyManager() {
              this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.ActiveDescendantKeyManager(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr').withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(['shiftKey']).skipPredicate(this._skipPredicate);
              this._keyManager.tabOut.subscribe(() => {
                if (this.panelOpen) {
                  // Select the active item when tabbing away. This is consistent with how the native
                  // select behaves. Note that we only want to do this in single selection mode.
                  if (!this.multiple && this._keyManager.activeItem) {
                    this._keyManager.activeItem._selectViaInteraction();
                  }
                  // Restore focus to the trigger before closing. Ensures that the focus
                  // position won't be lost if the user got focus into the overlay.
                  this.focus();
                  this.close();
                }
              });
              this._keyManager.change.subscribe(() => {
                if (this._panelOpen && this.panel) {
                  this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);
                } else if (!this._panelOpen && !this.multiple && this._keyManager.activeItem) {
                  this._keyManager.activeItem._selectViaInteraction();
                }
              });
            }
            /** Drops current option subscriptions and IDs and resets from scratch. */
            _resetOptions() {
              const changedOrDestroyed = (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.merge)(this.options.changes, this._destroy);
              this.optionSelectionChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(changedOrDestroyed)).subscribe(event => {
                this._onSelect(event.source, event.isUserInput);
                if (event.isUserInput && !this.multiple && this._panelOpen) {
                  this.close();
                  this.focus();
                }
              });
              // Listen to changes in the internal state of the options and react accordingly.
              // Handles cases like the labels of the selected options changing.
              (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.merge)(...this.options.map(option => option._stateChanges)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(changedOrDestroyed)).subscribe(() => {
                // `_stateChanges` can fire as a result of a change in the label's DOM value which may
                // be the result of an expression changing. We have to use `detectChanges` in order
                // to avoid "changed after checked" errors (see #14793).
                this._changeDetectorRef.detectChanges();
                this.stateChanges.next();
              });
            }
            /** Invoked when an option is clicked. */
            _onSelect(option, isUserInput) {
              const wasSelected = this._selectionModel.isSelected(option);
              if (option.value == null && !this._multiple) {
                option.deselect();
                this._selectionModel.clear();
                if (this.value != null) {
                  this._propagateChanges(option.value);
                }
              } else {
                if (wasSelected !== option.selected) {
                  option.selected ? this._selectionModel.select(option) : this._selectionModel.deselect(option);
                }
                if (isUserInput) {
                  this._keyManager.setActiveItem(option);
                }
                if (this.multiple) {
                  this._sortValues();
                  if (isUserInput) {
                    // In case the user selected the option with their mouse, we
                    // want to restore focus back to the trigger, in order to
                    // prevent the select keyboard controls from clashing with
                    // the ones from `mat-option`.
                    this.focus();
                  }
                }
              }
              if (wasSelected !== this._selectionModel.isSelected(option)) {
                this._propagateChanges();
              }
              this.stateChanges.next();
            }
            /** Sorts the selected values in the selected based on their order in the panel. */
            _sortValues() {
              if (this.multiple) {
                const options = this.options.toArray();
                this._selectionModel.sort((a, b) => {
                  return this.sortComparator ? this.sortComparator(a, b, options) : options.indexOf(a) - options.indexOf(b);
                });
                this.stateChanges.next();
              }
            }
            /** Emits change event to set the model value. */
            _propagateChanges(fallbackValue) {
              let valueToEmit = null;
              if (this.multiple) {
                valueToEmit = this.selected.map(option => option.value);
              } else {
                valueToEmit = this.selected ? this.selected.value : fallbackValue;
              }
              this._value = valueToEmit;
              this.valueChange.emit(valueToEmit);
              this._onChange(valueToEmit);
              this.selectionChange.emit(this._getChangeEvent(valueToEmit));
              this._changeDetectorRef.markForCheck();
            }
            /**
             * Highlights the selected item. If no option is selected, it will highlight
             * the first *enabled* option.
             */
            _highlightCorrectOption() {
              if (this._keyManager) {
                if (this.empty) {
                  // Find the index of the first *enabled* option. Avoid calling `_keyManager.setActiveItem`
                  // because it activates the first option that passes the skip predicate, rather than the
                  // first *enabled* option.
                  let firstEnabledOptionIndex = -1;
                  for (let index = 0; index < this.options.length; index++) {
                    const option = this.options.get(index);
                    if (!option.disabled) {
                      firstEnabledOptionIndex = index;
                      break;
                    }
                  }
                  this._keyManager.setActiveItem(firstEnabledOptionIndex);
                } else {
                  this._keyManager.setActiveItem(this._selectionModel.selected[0]);
                }
              }
            }
            /** Whether the panel is allowed to open. */
            _canOpen() {
              return !this._panelOpen && !this.disabled && this.options?.length > 0;
            }
            /** Focuses the select element. */
            focus(options) {
              this._elementRef.nativeElement.focus(options);
            }
            /** Gets the aria-labelledby for the select panel. */
            _getPanelAriaLabelledby() {
              if (this.ariaLabel) {
                return null;
              }
              const labelId = this._parentFormField?.getLabelId();
              const labelExpression = labelId ? labelId + ' ' : '';
              return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;
            }
            /** Determines the `aria-activedescendant` to be set on the host. */
            _getAriaActiveDescendant() {
              if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {
                return this._keyManager.activeItem.id;
              }
              return null;
            }
            /** Gets the aria-labelledby of the select component trigger. */
            _getTriggerAriaLabelledby() {
              if (this.ariaLabel) {
                return null;
              }
              const labelId = this._parentFormField?.getLabelId();
              let value = (labelId ? labelId + ' ' : '') + this._valueId;
              if (this.ariaLabelledby) {
                value += ' ' + this.ariaLabelledby;
              }
              return value;
            }
            /** Called when the overlay panel is done animating. */
            _panelDoneAnimating(isOpen) {
              this.openedChange.emit(isOpen);
            }
            /**
             * Implemented as part of MatFormFieldControl.
             * @docs-private
             */
            setDescribedByIds(ids) {
              if (ids.length) {
                this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));
              } else {
                this._elementRef.nativeElement.removeAttribute('aria-describedby');
              }
            }
            /**
             * Implemented as part of MatFormFieldControl.
             * @docs-private
             */
            onContainerClick() {
              this.focus();
              this.open();
            }
            /**
             * Implemented as part of MatFormFieldControl.
             * @docs-private
             */
            get shouldLabelFloat() {
              return this._panelOpen || !this.empty || this._focused && !!this._placeholder;
            }
            static {
              this.ɵfac = function _MatSelectBase_Factory(t) {
                return new (t || _MatSelectBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_19__.ViewportRuler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.ErrorStateMatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_20__.Directionality, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgForm, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MAT_FORM_FIELD, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControl, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_SELECT_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.LiveAnnouncer), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_SELECT_CONFIG, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _MatSelectBase,
                viewQuery: function _MatSelectBase_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c1, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.CdkConnectedOverlay, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.trigger = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.panel = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._overlayDir = _t.first);
                  }
                },
                inputs: {
                  userAriaDescribedBy: ["aria-describedby", "userAriaDescribedBy"],
                  panelClass: "panelClass",
                  placeholder: "placeholder",
                  required: "required",
                  multiple: "multiple",
                  disableOptionCentering: "disableOptionCentering",
                  compareWith: "compareWith",
                  value: "value",
                  ariaLabel: ["aria-label", "ariaLabel"],
                  ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
                  errorStateMatcher: "errorStateMatcher",
                  typeaheadDebounceInterval: "typeaheadDebounceInterval",
                  sortComparator: "sortComparator",
                  id: "id"
                },
                outputs: {
                  openedChange: "openedChange",
                  _openedStream: "opened",
                  _closedStream: "closed",
                  selectionChange: "selectionChange",
                  valueChange: "valueChange"
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatSelectBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_19__.ViewportRuler
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.ErrorStateMatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_20__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgForm,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MatFormField,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MAT_FORM_FIELD]
                }]
              }, {
                type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControl,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Self
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Attribute,
                  args: ['tabindex']
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_SELECT_SCROLL_STRATEGY]
                }]
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.LiveAnnouncer
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_SELECT_CONFIG]
                }]
              }];
            }, {
              userAriaDescribedBy: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['aria-describedby']
              }],
              trigger: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['trigger']
              }],
              panel: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['panel']
              }],
              _overlayDir: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.CdkConnectedOverlay]
              }],
              panelClass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              placeholder: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              required: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              multiple: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              disableOptionCentering: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              compareWith: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              value: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              ariaLabel: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['aria-label']
              }],
              ariaLabelledby: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['aria-labelledby']
              }],
              errorStateMatcher: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              typeaheadDebounceInterval: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              sortComparator: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              id: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              openedChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }],
              _openedStream: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['opened']
              }],
              _closedStream: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['closed']
              }],
              selectionChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }],
              valueChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output
              }]
            });
          })();
          /**
           * Allows the user to customize the trigger that is displayed when the select has a value.
           */
          class MatSelectTrigger {
            static {
              this.ɵfac = function MatSelectTrigger_Factory(t) {
                return new (t || MatSelectTrigger)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatSelectTrigger,
                selectors: [["mat-select-trigger"]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: MAT_SELECT_TRIGGER,
                  useExisting: MatSelectTrigger
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSelectTrigger, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-select-trigger',
                providers: [{
                  provide: MAT_SELECT_TRIGGER,
                  useExisting: MatSelectTrigger
                }]
              }]
            }], null, null);
          })();
          class MatSelect extends _MatSelectBase {
            constructor() {
              super(...arguments);
              /**
               * Width of the panel. If set to `auto`, the panel will match the trigger width.
               * If set to null or an empty string, the panel will grow to match the longest option's text.
               */
              this.panelWidth = this._defaultOptions && typeof this._defaultOptions.panelWidth !== 'undefined' ? this._defaultOptions.panelWidth : 'auto';
              this._positions = [{
                originX: 'start',
                originY: 'bottom',
                overlayX: 'start',
                overlayY: 'top'
              }, {
                originX: 'end',
                originY: 'bottom',
                overlayX: 'end',
                overlayY: 'top'
              }, {
                originX: 'start',
                originY: 'top',
                overlayX: 'start',
                overlayY: 'bottom',
                panelClass: 'mat-mdc-select-panel-above'
              }, {
                originX: 'end',
                originY: 'top',
                overlayX: 'end',
                overlayY: 'bottom',
                panelClass: 'mat-mdc-select-panel-above'
              }];
              this._hideSingleSelectionIndicator = this._defaultOptions?.hideSingleSelectionIndicator ?? false;
              // `skipPredicate` determines if key manager should avoid putting a given option in the tab
              // order. Allow disabled list items to receive focus via keyboard to align with WAI ARIA
              // recommendation.
              //
              // Normally WAI ARIA's instructions are to exclude disabled items from the tab order, but it
              // makes a few exceptions for compound widgets.
              //
              // From [Developing a Keyboard Interface](
              // https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/):
              //   "For the following composite widget elements, keep them focusable when disabled: Options in a
              //   Listbox..."
              //
              // The user can focus disabled options using the keyboard, but the user cannot click disabled
              // options.
              this._skipPredicate = option => {
                if (this.panelOpen) {
                  // Support keyboard focusing disabled options in an ARIA listbox.
                  return false;
                }
                // When the panel is closed, skip over disabled options. Support options via the UP/DOWN arrow
                // keys on a closed select. ARIA listbox interaction pattern is less relevant when the panel is
                // closed.
                return option.disabled;
              };
            }
            get shouldLabelFloat() {
              // Since the panel doesn't overlap the trigger, we
              // want the label to only float when there's a value.
              return this.panelOpen || !this.empty || this.focused && !!this.placeholder;
            }
            ngOnInit() {
              super.ngOnInit();
              this._viewportRuler.change().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.takeUntil)(this._destroy)).subscribe(() => {
                if (this.panelOpen) {
                  this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
                  this._changeDetectorRef.detectChanges();
                }
              });
            }
            open() {
              // It's important that we read this as late as possible, because doing so earlier will
              // return a different element since it's based on queries in the form field which may
              // not have run yet. Also this needs to be assigned before we measure the overlay width.
              if (this._parentFormField) {
                this._preferredOverlayOrigin = this._parentFormField.getConnectedOverlayOrigin();
              }
              this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
              super.open();
              // Required for the MDC form field to pick up when the overlay has been opened.
              this.stateChanges.next();
            }
            close() {
              super.close();
              // Required for the MDC form field to pick up when the overlay has been closed.
              this.stateChanges.next();
            }
            /** Scrolls the active option into view. */
            _scrollOptionIntoView(index) {
              const option = this.options.toArray()[index];
              if (option) {
                const panel = this.panel.nativeElement;
                const labelCount = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__._countGroupLabelsBeforeOption)(index, this.options, this.optionGroups);
                const element = option._getHostElement();
                if (index === 0 && labelCount === 1) {
                  // If we've got one group label before the option and we're at the top option,
                  // scroll the list to the top. This is better UX than scrolling the list to the
                  // top of the option, because it allows the user to read the top group's label.
                  panel.scrollTop = 0;
                } else {
                  panel.scrollTop = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_3__._getOptionScrollPosition)(element.offsetTop, element.offsetHeight, panel.scrollTop, panel.offsetHeight);
                }
              }
            }
            _positioningSettled() {
              this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);
            }
            _getChangeEvent(value) {
              return new MatSelectChange(this, value);
            }
            /** Gets how wide the overlay panel should be. */
            _getOverlayWidth(preferredOrigin) {
              if (this.panelWidth === 'auto') {
                const refToMeasure = preferredOrigin instanceof _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.CdkOverlayOrigin ? preferredOrigin.elementRef : preferredOrigin || this._elementRef;
                return refToMeasure.nativeElement.getBoundingClientRect().width;
              }
              return this.panelWidth === null ? '' : this.panelWidth;
            }
            /** Whether checkmark indicator for single-selection options is hidden. */
            get hideSingleSelectionIndicator() {
              return this._hideSingleSelectionIndicator;
            }
            set hideSingleSelectionIndicator(value) {
              this._hideSingleSelectionIndicator = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__.coerceBooleanProperty)(value);
              this._syncParentProperties();
            }
            /** Syncs the parent state with the individual options. */
            _syncParentProperties() {
              if (this.options) {
                for (const option of this.options) {
                  option._changeDetectorRef.markForCheck();
                }
              }
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatSelect_BaseFactory;
                return function MatSelect_Factory(t) {
                  return (ɵMatSelect_BaseFactory || (ɵMatSelect_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatSelect)))(t || MatSelect);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatSelect,
                selectors: [["mat-select"]],
                contentQueries: function MatSelect_ContentQueries(rf, ctx, dirIndex) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MAT_SELECT_TRIGGER, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOption, 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MAT_OPTGROUP, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.customTrigger = _t.first);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.options = _t);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.optionGroups = _t);
                  }
                },
                hostAttrs: ["role", "combobox", "aria-autocomplete", "none", "aria-haspopup", "listbox", "ngSkipHydration", "", 1, "mat-mdc-select"],
                hostVars: 19,
                hostBindings: function MatSelect_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown", function MatSelect_keydown_HostBindingHandler($event) {
                      return ctx._handleKeydown($event);
                    })("focus", function MatSelect_focus_HostBindingHandler() {
                      return ctx._onFocus();
                    })("blur", function MatSelect_blur_HostBindingHandler() {
                      return ctx._onBlur();
                    });
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", ctx.id)("tabindex", ctx.tabIndex)("aria-controls", ctx.panelOpen ? ctx.id + "-panel" : null)("aria-expanded", ctx.panelOpen)("aria-label", ctx.ariaLabel || null)("aria-required", ctx.required.toString())("aria-disabled", ctx.disabled.toString())("aria-invalid", ctx.errorState)("aria-activedescendant", ctx._getAriaActiveDescendant());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-mdc-select-disabled", ctx.disabled)("mat-mdc-select-invalid", ctx.errorState)("mat-mdc-select-required", ctx.required)("mat-mdc-select-empty", ctx.empty)("mat-mdc-select-multiple", ctx.multiple);
                  }
                },
                inputs: {
                  disabled: "disabled",
                  disableRipple: "disableRipple",
                  tabIndex: "tabIndex",
                  panelWidth: "panelWidth",
                  hideSingleSelectionIndicator: "hideSingleSelectionIndicator"
                },
                exportAs: ["matSelect"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MatFormFieldControl,
                  useExisting: MatSelect
                }, {
                  provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MAT_OPTION_PARENT_COMPONENT,
                  useExisting: MatSelect
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                ngContentSelectors: _c3,
                decls: 11,
                vars: 10,
                consts: [["cdk-overlay-origin", "", 1, "mat-mdc-select-trigger", 3, "click"], ["fallbackOverlayOrigin", "cdkOverlayOrigin", "trigger", ""], [1, "mat-mdc-select-value", 3, "ngSwitch"], ["class", "mat-mdc-select-placeholder mat-mdc-select-min-line", 4, "ngSwitchCase"], ["class", "mat-mdc-select-value-text", 3, "ngSwitch", 4, "ngSwitchCase"], [1, "mat-mdc-select-arrow-wrapper"], [1, "mat-mdc-select-arrow"], ["viewBox", "0 0 24 24", "width", "24px", "height", "24px", "focusable", "false", "aria-hidden", "true"], ["d", "M7 10l5 5 5-5z"], ["cdk-connected-overlay", "", "cdkConnectedOverlayLockPosition", "", "cdkConnectedOverlayHasBackdrop", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayWidth", "backdropClick", "attach", "detach"], [1, "mat-mdc-select-placeholder", "mat-mdc-select-min-line"], [1, "mat-mdc-select-value-text", 3, "ngSwitch"], ["class", "mat-mdc-select-min-line", 4, "ngSwitchDefault"], [4, "ngSwitchCase"], [1, "mat-mdc-select-min-line"], ["role", "listbox", "tabindex", "-1", 3, "ngClass", "keydown"], ["panel", ""]],
                template: function MatSelect_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatSelect_Template_div_click_0_listener() {
                      return ctx.toggle();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MatSelect_span_4_Template, 2, 1, "span", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, MatSelect_span_5_Template, 3, 2, "span", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5)(7, "div", 6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "svg", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "path", 8);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, MatSelect_ng_template_10_Template, 3, 9, "ng-template", 9);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("backdropClick", function MatSelect_Template_ng_template_backdropClick_10_listener() {
                      return ctx.close();
                    })("attach", function MatSelect_Template_ng_template_attach_10_listener() {
                      return ctx._onAttached();
                    })("detach", function MatSelect_Template_ng_template_detach_10_listener() {
                      return ctx.close();
                    });
                  }
                  if (rf & 2) {
                    const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx.empty);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", ctx._valueId);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", true);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", false);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("cdkConnectedOverlayPanelClass", ctx._overlayPanelClass)("cdkConnectedOverlayScrollStrategy", ctx._scrollStrategy)("cdkConnectedOverlayOrigin", ctx._preferredOverlayOrigin || _r0)("cdkConnectedOverlayOpen", ctx.panelOpen)("cdkConnectedOverlayPositions", ctx._positions)("cdkConnectedOverlayWidth", ctx._overlayWidth);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_22__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgSwitch, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgSwitchCase, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgSwitchDefault, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.CdkConnectedOverlay, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.CdkOverlayOrigin],
                styles: [".mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}"],
                encapsulation: 2,
                data: {
                  animation: [matSelectAnimations.transformPanel]
                },
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSelect, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-select',
                exportAs: 'matSelect',
                inputs: ['disabled', 'disableRipple', 'tabIndex'],
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                host: {
                  'role': 'combobox',
                  'aria-autocomplete': 'none',
                  'aria-haspopup': 'listbox',
                  'class': 'mat-mdc-select',
                  '[attr.id]': 'id',
                  '[attr.tabindex]': 'tabIndex',
                  '[attr.aria-controls]': 'panelOpen ? id + "-panel" : null',
                  '[attr.aria-expanded]': 'panelOpen',
                  '[attr.aria-label]': 'ariaLabel || null',
                  '[attr.aria-required]': 'required.toString()',
                  '[attr.aria-disabled]': 'disabled.toString()',
                  '[attr.aria-invalid]': 'errorState',
                  '[attr.aria-activedescendant]': '_getAriaActiveDescendant()',
                  'ngSkipHydration': '',
                  '[class.mat-mdc-select-disabled]': 'disabled',
                  '[class.mat-mdc-select-invalid]': 'errorState',
                  '[class.mat-mdc-select-required]': 'required',
                  '[class.mat-mdc-select-empty]': 'empty',
                  '[class.mat-mdc-select-multiple]': 'multiple',
                  '(keydown)': '_handleKeydown($event)',
                  '(focus)': '_onFocus()',
                  '(blur)': '_onBlur()'
                },
                animations: [matSelectAnimations.transformPanel],
                providers: [{
                  provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MatFormFieldControl,
                  useExisting: MatSelect
                }, {
                  provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MAT_OPTION_PARENT_COMPONENT,
                  useExisting: MatSelect
                }],
                template: "<div cdk-overlay-origin\n     class=\"mat-mdc-select-trigger\"\n     (click)=\"toggle()\"\n     #fallbackOverlayOrigin=\"cdkOverlayOrigin\"\n     #trigger>\n  <div class=\"mat-mdc-select-value\" [ngSwitch]=\"empty\" [attr.id]=\"_valueId\">\n    <span class=\"mat-mdc-select-placeholder mat-mdc-select-min-line\" *ngSwitchCase=\"true\">{{placeholder}}</span>\n    <span class=\"mat-mdc-select-value-text\" *ngSwitchCase=\"false\" [ngSwitch]=\"!!customTrigger\">\n      <span class=\"mat-mdc-select-min-line\" *ngSwitchDefault>{{triggerValue}}</span>\n      <ng-content select=\"mat-select-trigger\" *ngSwitchCase=\"true\"></ng-content>\n    </span>\n  </div>\n\n  <div class=\"mat-mdc-select-arrow-wrapper\">\n    <div class=\"mat-mdc-select-arrow\">\n      <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->\n      <svg viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" focusable=\"false\" aria-hidden=\"true\">\n        <path d=\"M7 10l5 5 5-5z\"/>\n      </svg>\n    </div>\n  </div>\n</div>\n\n<ng-template\n  cdk-connected-overlay\n  cdkConnectedOverlayLockPosition\n  cdkConnectedOverlayHasBackdrop\n  cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n  [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n  [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n  [cdkConnectedOverlayOrigin]=\"_preferredOverlayOrigin || fallbackOverlayOrigin\"\n  [cdkConnectedOverlayOpen]=\"panelOpen\"\n  [cdkConnectedOverlayPositions]=\"_positions\"\n  [cdkConnectedOverlayWidth]=\"_overlayWidth\"\n  (backdropClick)=\"close()\"\n  (attach)=\"_onAttached()\"\n  (detach)=\"close()\">\n  <div\n    #panel\n    role=\"listbox\"\n    tabindex=\"-1\"\n    class=\"mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open {{ _getPanelTheme() }}\"\n    [attr.id]=\"id + '-panel'\"\n    [attr.aria-multiselectable]=\"multiple\"\n    [attr.aria-label]=\"ariaLabel || null\"\n    [attr.aria-labelledby]=\"_getPanelAriaLabelledby()\"\n    [ngClass]=\"panelClass\"\n    [@transformPanel]=\"'showing'\"\n    (@transformPanel.done)=\"_panelDoneAnimatingStream.next($event.toState)\"\n    (keydown)=\"_handleKeydown($event)\">\n    <ng-content></ng-content>\n  </div>\n</ng-template>\n",
                styles: [".mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}"]
              }]
            }], null, {
              options: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOption, {
                  descendants: true
                }]
              }],
              optionGroups: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChildren,
                args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MAT_OPTGROUP, {
                  descendants: true
                }]
              }],
              customTrigger: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ContentChild,
                args: [MAT_SELECT_TRIGGER]
              }],
              panelWidth: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              hideSingleSelectionIndicator: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class MatSelectModule {
            static {
              this.ɵfac = function MatSelectModule_Factory(t) {
                return new (t || MatSelectModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatSelectModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER],
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_22__.CommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.OverlayModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOptionModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_19__.CdkScrollableModule, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MatFormFieldModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOptionModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSelectModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_22__.CommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__.OverlayModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOptionModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule],
                exports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_19__.CdkScrollableModule, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_21__.MatFormFieldModule, MatSelect, MatSelectTrigger, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatOptionModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule],
                declarations: [MatSelect, MatSelectTrigger],
                providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 2047:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/sort.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_SORT_DEFAULT_OPTIONS: () => (/* binding */ MAT_SORT_DEFAULT_OPTIONS),
          /* harmony export */   MAT_SORT_HEADER_INTL_PROVIDER: () => (/* binding */ MAT_SORT_HEADER_INTL_PROVIDER),
          /* harmony export */   MAT_SORT_HEADER_INTL_PROVIDER_FACTORY: () => (/* binding */ MAT_SORT_HEADER_INTL_PROVIDER_FACTORY),
          /* harmony export */   MatSort: () => (/* binding */ MatSort),
          /* harmony export */   MatSortHeader: () => (/* binding */ MatSortHeader),
          /* harmony export */   MatSortHeaderIntl: () => (/* binding */ MatSortHeaderIntl),
          /* harmony export */   MatSortModule: () => (/* binding */ MatSortModule),
          /* harmony export */   matSortAnimations: () => (/* binding */ matSortAnimations)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/cdk/a11y */ 2102);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/core */ 4646);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/animations */ 7172);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 316);
          
          
          
          
          
          
          
          
          
          
          
          /** @docs-private */
          const _c0 = ["mat-sort-header", ""];
          function MatSortHeader_div_3_Template(rf, ctx) {
            if (rf & 1) {
              const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("@arrowPosition.start", function MatSortHeader_div_3_Template_div_animation_arrowPosition_start_0_listener() {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r2);
                const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r1._disableViewStateAnimation = true);
              })("@arrowPosition.done", function MatSortHeader_div_3_Template_div_animation_arrowPosition_done_0_listener() {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r2);
                const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r3._disableViewStateAnimation = false);
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 4);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 5);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 6)(4, "div", 7)(5, "div", 8);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@arrowOpacity", ctx_r0._getArrowViewState())("@arrowPosition", ctx_r0._getArrowViewState())("@allowChildren", ctx_r0._getArrowDirectionState());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@indicator", ctx_r0._getArrowDirectionState());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@leftPointer", ctx_r0._getArrowDirectionState());
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@rightPointer", ctx_r0._getArrowDirectionState());
            }
          }
          const _c1 = ["*"];
          function getSortDuplicateSortableIdError(id) {
            return Error(`Cannot have two MatSortables with the same id (${id}).`);
          }
          /** @docs-private */
          function getSortHeaderNotContainedWithinSortError() {
            return Error(`MatSortHeader must be placed within a parent element with the MatSort directive.`);
          }
          /** @docs-private */
          function getSortHeaderMissingIdError() {
            return Error(`MatSortHeader must be provided with a unique id.`);
          }
          /** @docs-private */
          function getSortInvalidDirectionError(direction) {
            return Error(`${direction} is not a valid sort direction ('asc' or 'desc').`);
          }
          
          /** Injection token to be used to override the default options for `mat-sort`. */
          const MAT_SORT_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('MAT_SORT_DEFAULT_OPTIONS');
          // Boilerplate for applying mixins to MatSort.
          /** @docs-private */
          const _MatSortBase = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_1__.mixinInitialized)((0,_angular_material_core__WEBPACK_IMPORTED_MODULE_1__.mixinDisabled)(class {}));
          /** Container for MatSortables to manage the sort state and provide default sort parameters. */
          class MatSort extends _MatSortBase {
            /** The sort direction of the currently active MatSortable. */
            get direction() {
              return this._direction;
            }
            set direction(direction) {
              if (direction && direction !== 'asc' && direction !== 'desc' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getSortInvalidDirectionError(direction);
              }
              this._direction = direction;
            }
            /**
             * Whether to disable the user from clearing the sort by finishing the sort direction cycle.
             * May be overridden by the MatSortable's disable clear input.
             */
            get disableClear() {
              return this._disableClear;
            }
            set disableClear(v) {
              this._disableClear = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
            }
            constructor(_defaultOptions) {
              super();
              this._defaultOptions = _defaultOptions;
              /** Collection of all registered sortables that this directive manages. */
              this.sortables = new Map();
              /** Used to notify any child components listening to state changes. */
              this._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
              /**
               * The direction to set when an MatSortable is initially sorted.
               * May be overridden by the MatSortable's sort start.
               */
              this.start = 'asc';
              this._direction = '';
              /** Event emitted when the user changes either the active sort or sort direction. */
              this.sortChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
            }
            /**
             * Register function to be used by the contained MatSortables. Adds the MatSortable to the
             * collection of MatSortables.
             */
            register(sortable) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (!sortable.id) {
                  throw getSortHeaderMissingIdError();
                }
                if (this.sortables.has(sortable.id)) {
                  throw getSortDuplicateSortableIdError(sortable.id);
                }
              }
              this.sortables.set(sortable.id, sortable);
            }
            /**
             * Unregister function to be used by the contained MatSortables. Removes the MatSortable from the
             * collection of contained MatSortables.
             */
            deregister(sortable) {
              this.sortables.delete(sortable.id);
            }
            /** Sets the active sort id and determines the new sort direction. */
            sort(sortable) {
              if (this.active != sortable.id) {
                this.active = sortable.id;
                this.direction = sortable.start ? sortable.start : this.start;
              } else {
                this.direction = this.getNextSortDirection(sortable);
              }
              this.sortChange.emit({
                active: this.active,
                direction: this.direction
              });
            }
            /** Returns the next sort direction of the active sortable, checking for potential overrides. */
            getNextSortDirection(sortable) {
              if (!sortable) {
                return '';
              }
              // Get the sort direction cycle with the potential sortable overrides.
              const disableClear = sortable?.disableClear ?? this.disableClear ?? !!this._defaultOptions?.disableClear;
              let sortDirectionCycle = getSortDirectionCycle(sortable.start || this.start, disableClear);
              // Get and return the next direction in the cycle
              let nextDirectionIndex = sortDirectionCycle.indexOf(this.direction) + 1;
              if (nextDirectionIndex >= sortDirectionCycle.length) {
                nextDirectionIndex = 0;
              }
              return sortDirectionCycle[nextDirectionIndex];
            }
            ngOnInit() {
              this._markInitialized();
            }
            ngOnChanges() {
              this._stateChanges.next();
            }
            ngOnDestroy() {
              this._stateChanges.complete();
            }
            static {
              this.ɵfac = function MatSort_Factory(t) {
                return new (t || MatSort)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_SORT_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatSort,
                selectors: [["", "matSort", ""]],
                hostAttrs: [1, "mat-sort"],
                inputs: {
                  disabled: ["matSortDisabled", "disabled"],
                  active: ["matSortActive", "active"],
                  start: ["matSortStart", "start"],
                  direction: ["matSortDirection", "direction"],
                  disableClear: ["matSortDisableClear", "disableClear"]
                },
                outputs: {
                  sortChange: "matSortChange"
                },
                exportAs: ["matSort"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSort, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matSort]',
                exportAs: 'matSort',
                host: {
                  'class': 'mat-sort'
                },
                inputs: ['disabled: matSortDisabled']
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_SORT_DEFAULT_OPTIONS]
                }]
              }];
            }, {
              active: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matSortActive']
              }],
              start: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matSortStart']
              }],
              direction: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matSortDirection']
              }],
              disableClear: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matSortDisableClear']
              }],
              sortChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
                args: ['matSortChange']
              }]
            });
          })();
          /** Returns the sort direction cycle to use given the provided parameters of order and clear. */
          function getSortDirectionCycle(start, disableClear) {
            let sortOrder = ['asc', 'desc'];
            if (start == 'desc') {
              sortOrder.reverse();
            }
            if (!disableClear) {
              sortOrder.push('');
            }
            return sortOrder;
          }
          const SORT_ANIMATION_TRANSITION = _angular_material_core__WEBPACK_IMPORTED_MODULE_1__.AnimationDurations.ENTERING + ' ' + _angular_material_core__WEBPACK_IMPORTED_MODULE_1__.AnimationCurves.STANDARD_CURVE;
          /**
           * Animations used by MatSort.
           * @docs-private
           */
          const matSortAnimations = {
            /** Animation that moves the sort indicator. */
            indicator: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('indicator', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-asc, asc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0px)'
            })),
            // 10px is the height of the sort indicator, minus the width of the pointers
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-desc, desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(10px)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('active-asc <=> active-desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION))]),
            /** Animation that rotates the left pointer of the indicator based on the sorting direction. */
            leftPointer: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('leftPointer', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-asc, asc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'rotate(-45deg)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-desc, desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'rotate(45deg)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('active-asc <=> active-desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION))]),
            /** Animation that rotates the right pointer of the indicator based on the sorting direction. */
            rightPointer: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('rightPointer', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-asc, asc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'rotate(45deg)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('active-desc, desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'rotate(-45deg)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('active-asc <=> active-desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION))]),
            /** Animation that controls the arrow opacity. */
            arrowOpacity: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('arrowOpacity', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('desc-to-active, asc-to-active, active', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              opacity: 1
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('desc-to-hint, asc-to-hint, hint', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              opacity: 0.54
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              opacity: 0
            })),
            // Transition between all states except for immediate transitions
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* => asc, * => desc, * => active, * => hint, * => void', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)('0ms')), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* <=> *', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION))]),
            /**
             * Animation for the translation of the arrow as a whole. States are separated into two
             * groups: ones with animations and others that are immediate. Immediate states are asc, desc,
             * peek, and active. The other states define a specific animation (source-to-destination)
             * and are determined as a function of their prev user-perceived state and what the next state
             * should be.
             */
            arrowPosition: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('arrowPosition', [
            // Hidden Above => Hint Center
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* => desc-to-hint, * => desc-to-active', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION, (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.keyframes)([(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(-25%)'
            }), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0)'
            })]))),
            // Hint Center => Hidden Below
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* => hint-to-desc, * => active-to-desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION, (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.keyframes)([(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0)'
            }), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(25%)'
            })]))),
            // Hidden Below => Hint Center
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* => asc-to-hint, * => asc-to-active', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION, (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.keyframes)([(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(25%)'
            }), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0)'
            })]))),
            // Hint Center => Hidden Above
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* => hint-to-asc, * => active-to-asc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animate)(SORT_ANIMATION_TRANSITION, (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.keyframes)([(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0)'
            }), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(-25%)'
            })]))), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(0)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('hint-to-desc, active-to-desc, desc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(-25%)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.state)('hint-to-asc, active-to-asc, asc', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.style)({
              transform: 'translateY(25%)'
            }))]),
            /** Necessary trigger that calls animate on children animations. */
            allowChildren: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.trigger)('allowChildren', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.transition)('* <=> *', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.query)('@*', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_4__.animateChild)(), {
              optional: true
            })])])
          };
          
          /**
           * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
           * include it in a custom provider.
           */
          class MatSortHeaderIntl {
            constructor() {
              /**
               * Stream that emits whenever the labels here are changed. Use this to notify
               * components if the labels have changed after initialization.
               */
              this.changes = new rxjs__WEBPACK_IMPORTED_MODULE_3__.Subject();
            }
            static {
              this.ɵfac = function MatSortHeaderIntl_Factory(t) {
                return new (t || MatSortHeaderIntl)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
                token: MatSortHeaderIntl,
                factory: MatSortHeaderIntl.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSortHeaderIntl, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /** @docs-private */
          function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl) {
            return parentIntl || new MatSortHeaderIntl();
          }
          /** @docs-private */
          const MAT_SORT_HEADER_INTL_PROVIDER = {
            // If there is already an MatSortHeaderIntl available, use that. Otherwise, provide a new one.
            provide: MatSortHeaderIntl,
            deps: [[new _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional(), new _angular_core__WEBPACK_IMPORTED_MODULE_0__.SkipSelf(), MatSortHeaderIntl]],
            useFactory: MAT_SORT_HEADER_INTL_PROVIDER_FACTORY
          };
          
          // Boilerplate for applying mixins to the sort header.
          /** @docs-private */
          const _MatSortHeaderBase = (0,_angular_material_core__WEBPACK_IMPORTED_MODULE_1__.mixinDisabled)(class {});
          /**
           * Applies sorting behavior (click to change sort) and styles to an element, including an
           * arrow to display the current sort direction.
           *
           * Must be provided with an id and contained within a parent MatSort directive.
           *
           * If used on header cells in a CdkTable, it will automatically default its id from its containing
           * column definition.
           */
          class MatSortHeader extends _MatSortHeaderBase {
            /**
             * Description applied to MatSortHeader's button element with aria-describedby. This text should
             * describe the action that will occur when the user clicks the sort header.
             */
            get sortActionDescription() {
              return this._sortActionDescription;
            }
            set sortActionDescription(value) {
              this._updateSortActionDescription(value);
            }
            /** Overrides the disable clear value of the containing MatSort for this MatSortable. */
            get disableClear() {
              return this._disableClear;
            }
            set disableClear(v) {
              this._disableClear = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__.coerceBooleanProperty)(v);
            }
            constructor(
            /**
             * @deprecated `_intl` parameter isn't being used anymore and it'll be removed.
             * @breaking-change 13.0.0
             */
            _intl, _changeDetectorRef,
            // `MatSort` is not optionally injected, but just asserted manually w/ better error.
            // tslint:disable-next-line: lightweight-tokens
            _sort, _columnDef, _focusMonitor, _elementRef, /** @breaking-change 14.0.0 _ariaDescriber will be required. */
            _ariaDescriber, defaultOptions) {
              // Note that we use a string token for the `_columnDef`, because the value is provided both by
              // `material/table` and `cdk/table` and we can't have the CDK depending on Material,
              // and we want to avoid having the sort header depending on the CDK table because
              // of this single reference.
              super();
              this._intl = _intl;
              this._changeDetectorRef = _changeDetectorRef;
              this._sort = _sort;
              this._columnDef = _columnDef;
              this._focusMonitor = _focusMonitor;
              this._elementRef = _elementRef;
              this._ariaDescriber = _ariaDescriber;
              /**
               * Flag set to true when the indicator should be displayed while the sort is not active. Used to
               * provide an affordance that the header is sortable by showing on focus and hover.
               */
              this._showIndicatorHint = false;
              /**
               * The view transition state of the arrow (translation/ opacity) - indicates its `from` and `to`
               * position through the animation. If animations are currently disabled, the fromState is removed
               * so that there is no animation displayed.
               */
              this._viewState = {};
              /** The direction the arrow should be facing according to the current state. */
              this._arrowDirection = '';
              /**
               * Whether the view state animation should show the transition between the `from` and `to` states.
               */
              this._disableViewStateAnimation = false;
              /** Sets the position of the arrow that displays when sorted. */
              this.arrowPosition = 'after';
              // Default the action description to "Sort" because it's better than nothing.
              // Without a description, the button's label comes from the sort header text content,
              // which doesn't give any indication that it performs a sorting operation.
              this._sortActionDescription = 'Sort';
              if (!_sort && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getSortHeaderNotContainedWithinSortError();
              }
              if (defaultOptions?.arrowPosition) {
                this.arrowPosition = defaultOptions?.arrowPosition;
              }
              this._handleStateChanges();
            }
            ngOnInit() {
              if (!this.id && this._columnDef) {
                this.id = this._columnDef.name;
              }
              // Initialize the direction of the arrow and set the view state to be immediately that state.
              this._updateArrowDirection();
              this._setAnimationTransitionState({
                toState: this._isSorted() ? 'active' : this._arrowDirection
              });
              this._sort.register(this);
              this._sortButton = this._elementRef.nativeElement.querySelector('.mat-sort-header-container');
              this._updateSortActionDescription(this._sortActionDescription);
            }
            ngAfterViewInit() {
              // We use the focus monitor because we also want to style
              // things differently based on the focus origin.
              this._focusMonitor.monitor(this._elementRef, true).subscribe(origin => {
                const newState = !!origin;
                if (newState !== this._showIndicatorHint) {
                  this._setIndicatorHintVisible(newState);
                  this._changeDetectorRef.markForCheck();
                }
              });
            }
            ngOnDestroy() {
              this._focusMonitor.stopMonitoring(this._elementRef);
              this._sort.deregister(this);
              this._rerenderSubscription.unsubscribe();
            }
            /**
             * Sets the "hint" state such that the arrow will be semi-transparently displayed as a hint to the
             * user showing what the active sort will become. If set to false, the arrow will fade away.
             */
            _setIndicatorHintVisible(visible) {
              // No-op if the sort header is disabled - should not make the hint visible.
              if (this._isDisabled() && visible) {
                return;
              }
              this._showIndicatorHint = visible;
              if (!this._isSorted()) {
                this._updateArrowDirection();
                if (this._showIndicatorHint) {
                  this._setAnimationTransitionState({
                    fromState: this._arrowDirection,
                    toState: 'hint'
                  });
                } else {
                  this._setAnimationTransitionState({
                    fromState: 'hint',
                    toState: this._arrowDirection
                  });
                }
              }
            }
            /**
             * Sets the animation transition view state for the arrow's position and opacity. If the
             * `disableViewStateAnimation` flag is set to true, the `fromState` will be ignored so that
             * no animation appears.
             */
            _setAnimationTransitionState(viewState) {
              this._viewState = viewState || {};
              // If the animation for arrow position state (opacity/translation) should be disabled,
              // remove the fromState so that it jumps right to the toState.
              if (this._disableViewStateAnimation) {
                this._viewState = {
                  toState: viewState.toState
                };
              }
            }
            /** Triggers the sort on this sort header and removes the indicator hint. */
            _toggleOnInteraction() {
              this._sort.sort(this);
              // Do not show the animation if the header was already shown in the right position.
              if (this._viewState.toState === 'hint' || this._viewState.toState === 'active') {
                this._disableViewStateAnimation = true;
              }
            }
            _handleClick() {
              if (!this._isDisabled()) {
                this._sort.sort(this);
              }
            }
            _handleKeydown(event) {
              if (!this._isDisabled() && (event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_5__.SPACE || event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_5__.ENTER)) {
                event.preventDefault();
                this._toggleOnInteraction();
              }
            }
            /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */
            _isSorted() {
              return this._sort.active == this.id && (this._sort.direction === 'asc' || this._sort.direction === 'desc');
            }
            /** Returns the animation state for the arrow direction (indicator and pointers). */
            _getArrowDirectionState() {
              return `${this._isSorted() ? 'active-' : ''}${this._arrowDirection}`;
            }
            /** Returns the arrow position state (opacity, translation). */
            _getArrowViewState() {
              const fromState = this._viewState.fromState;
              return (fromState ? `${fromState}-to-` : '') + this._viewState.toState;
            }
            /**
             * Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be
             * facing the start direction. Otherwise if it is sorted, the arrow should point in the currently
             * active sorted direction. The reason this is updated through a function is because the direction
             * should only be changed at specific times - when deactivated but the hint is displayed and when
             * the sort is active and the direction changes. Otherwise the arrow's direction should linger
             * in cases such as the sort becoming deactivated but we want to animate the arrow away while
             * preserving its direction, even though the next sort direction is actually different and should
             * only be changed once the arrow displays again (hint or activation).
             */
            _updateArrowDirection() {
              this._arrowDirection = this._isSorted() ? this._sort.direction : this.start || this._sort.start;
            }
            _isDisabled() {
              return this._sort.disabled || this.disabled;
            }
            /**
             * Gets the aria-sort attribute that should be applied to this sort header. If this header
             * is not sorted, returns null so that the attribute is removed from the host element. Aria spec
             * says that the aria-sort property should only be present on one header at a time, so removing
             * ensures this is true.
             */
            _getAriaSortAttribute() {
              if (!this._isSorted()) {
                return 'none';
              }
              return this._sort.direction == 'asc' ? 'ascending' : 'descending';
            }
            /** Whether the arrow inside the sort header should be rendered. */
            _renderArrow() {
              return !this._isDisabled() || this._isSorted();
            }
            _updateSortActionDescription(newDescription) {
              // We use AriaDescriber for the sort button instead of setting an `aria-label` because some
              // screen readers (notably VoiceOver) will read both the column header *and* the button's label
              // for every *cell* in the table, creating a lot of unnecessary noise.
              // If _sortButton is undefined, the component hasn't been initialized yet so there's
              // nothing to update in the DOM.
              if (this._sortButton) {
                // removeDescription will no-op if there is no existing message.
                // TODO(jelbourn): remove optional chaining when AriaDescriber is required.
                this._ariaDescriber?.removeDescription(this._sortButton, this._sortActionDescription);
                this._ariaDescriber?.describe(this._sortButton, newDescription);
              }
              this._sortActionDescription = newDescription;
            }
            /** Handles changes in the sorting state. */
            _handleStateChanges() {
              this._rerenderSubscription = (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.merge)(this._sort.sortChange, this._sort._stateChanges, this._intl.changes).subscribe(() => {
                if (this._isSorted()) {
                  this._updateArrowDirection();
                  // Do not show the animation if the header was already shown in the right position.
                  if (this._viewState.toState === 'hint' || this._viewState.toState === 'active') {
                    this._disableViewStateAnimation = true;
                  }
                  this._setAnimationTransitionState({
                    fromState: this._arrowDirection,
                    toState: 'active'
                  });
                  this._showIndicatorHint = false;
                }
                // If this header was recently active and now no longer sorted, animate away the arrow.
                if (!this._isSorted() && this._viewState && this._viewState.toState === 'active') {
                  this._disableViewStateAnimation = false;
                  this._setAnimationTransitionState({
                    fromState: 'active',
                    toState: this._arrowDirection
                  });
                }
                this._changeDetectorRef.markForCheck();
              });
            }
            static {
              this.ɵfac = function MatSortHeader_Factory(t) {
                return new (t || MatSortHeader)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MatSortHeaderIntl), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MatSort, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"]('MAT_SORT_HEADER_COLUMN_DEF', 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__.FocusMonitor), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__.AriaDescriber, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_SORT_DEFAULT_OPTIONS, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatSortHeader,
                selectors: [["", "mat-sort-header", ""]],
                hostAttrs: [1, "mat-sort-header"],
                hostVars: 3,
                hostBindings: function MatSortHeader_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatSortHeader_click_HostBindingHandler() {
                      return ctx._handleClick();
                    })("keydown", function MatSortHeader_keydown_HostBindingHandler($event) {
                      return ctx._handleKeydown($event);
                    })("mouseenter", function MatSortHeader_mouseenter_HostBindingHandler() {
                      return ctx._setIndicatorHintVisible(true);
                    })("mouseleave", function MatSortHeader_mouseleave_HostBindingHandler() {
                      return ctx._setIndicatorHintVisible(false);
                    });
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-sort", ctx._getAriaSortAttribute());
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-sort-header-disabled", ctx._isDisabled());
                  }
                },
                inputs: {
                  disabled: "disabled",
                  id: ["mat-sort-header", "id"],
                  arrowPosition: "arrowPosition",
                  start: "start",
                  sortActionDescription: "sortActionDescription",
                  disableClear: "disableClear"
                },
                exportAs: ["matSortHeader"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                attrs: _c0,
                ngContentSelectors: _c1,
                decls: 4,
                vars: 7,
                consts: [[1, "mat-sort-header-container", "mat-focus-indicator"], [1, "mat-sort-header-content"], ["class", "mat-sort-header-arrow", 4, "ngIf"], [1, "mat-sort-header-arrow"], [1, "mat-sort-header-stem"], [1, "mat-sort-header-indicator"], [1, "mat-sort-header-pointer-left"], [1, "mat-sort-header-pointer-right"], [1, "mat-sort-header-pointer-middle"]],
                template: function MatSortHeader_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MatSortHeader_div_3_Template, 6, 6, "div", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-sort-header-sorted", ctx._isSorted())("mat-sort-header-position-before", ctx.arrowPosition === "before");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx._isDisabled() ? null : 0)("role", ctx._isDisabled() ? null : "button");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx._renderArrow());
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf],
                styles: [".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],
                encapsulation: 2,
                data: {
                  animation: [matSortAnimations.indicator, matSortAnimations.leftPointer, matSortAnimations.rightPointer, matSortAnimations.arrowOpacity, matSortAnimations.arrowPosition, matSortAnimations.allowChildren]
                },
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSortHeader, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: '[mat-sort-header]',
                exportAs: 'matSortHeader',
                host: {
                  'class': 'mat-sort-header',
                  '(click)': '_handleClick()',
                  '(keydown)': '_handleKeydown($event)',
                  '(mouseenter)': '_setIndicatorHintVisible(true)',
                  '(mouseleave)': '_setIndicatorHintVisible(false)',
                  '[attr.aria-sort]': '_getAriaSortAttribute()',
                  '[class.mat-sort-header-disabled]': '_isDisabled()'
                },
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                inputs: ['disabled'],
                animations: [matSortAnimations.indicator, matSortAnimations.leftPointer, matSortAnimations.rightPointer, matSortAnimations.arrowOpacity, matSortAnimations.arrowPosition, matSortAnimations.allowChildren],
                template: "<!--\n  We set the `tabindex` on an element inside the table header, rather than the header itself,\n  because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the\n  table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both\n  be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach\n  over having a button with an `aria-label` inside the header, because the button's `aria-label`\n  will be read out as the user is navigating the table's cell (see #13012).\n\n  The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid\n-->\n<div class=\"mat-sort-header-container mat-focus-indicator\"\n     [class.mat-sort-header-sorted]=\"_isSorted()\"\n     [class.mat-sort-header-position-before]=\"arrowPosition === 'before'\"\n     [attr.tabindex]=\"_isDisabled() ? null : 0\"\n     [attr.role]=\"_isDisabled() ? null : 'button'\">\n\n  <!--\n    TODO(crisbeto): this div isn't strictly necessary, but we have to keep it due to a large\n    number of screenshot diff failures. It should be removed eventually. Note that the difference\n    isn't visible with a shorter header, but once it breaks up into multiple lines, this element\n    causes it to be center-aligned, whereas removing it will keep the text to the left.\n  -->\n  <div class=\"mat-sort-header-content\">\n    <ng-content></ng-content>\n  </div>\n\n  <!-- Disable animations while a current animation is running -->\n  <div class=\"mat-sort-header-arrow\"\n       *ngIf=\"_renderArrow()\"\n       [@arrowOpacity]=\"_getArrowViewState()\"\n       [@arrowPosition]=\"_getArrowViewState()\"\n       [@allowChildren]=\"_getArrowDirectionState()\"\n       (@arrowPosition.start)=\"_disableViewStateAnimation = true\"\n       (@arrowPosition.done)=\"_disableViewStateAnimation = false\">\n    <div class=\"mat-sort-header-stem\"></div>\n    <div class=\"mat-sort-header-indicator\" [@indicator]=\"_getArrowDirectionState()\">\n      <div class=\"mat-sort-header-pointer-left\" [@leftPointer]=\"_getArrowDirectionState()\"></div>\n      <div class=\"mat-sort-header-pointer-right\" [@rightPointer]=\"_getArrowDirectionState()\"></div>\n      <div class=\"mat-sort-header-pointer-middle\"></div>\n    </div>\n  </div>\n</div>\n",
                styles: [".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"]
              }]
            }], function () {
              return [{
                type: MatSortHeaderIntl
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: MatSort,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: ['MAT_SORT_HEADER_COLUMN_DEF']
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__.FocusMonitor
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__.AriaDescriber,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_SORT_DEFAULT_OPTIONS]
                }]
              }];
            }, {
              id: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['mat-sort-header']
              }],
              arrowPosition: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              start: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              sortActionDescription: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }],
              disableClear: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input
              }]
            });
          })();
          class MatSortModule {
            static {
              this.ɵfac = function MatSortModule_Factory(t) {
                return new (t || MatSortModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatSortModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [MAT_SORT_HEADER_INTL_PROVIDER],
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__.MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatSortModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__.MatCommonModule],
                exports: [MatSort, MatSortHeader],
                declarations: [MatSort, MatSortHeader],
                providers: [MAT_SORT_HEADER_INTL_PROVIDER]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 7697:
          /*!***********************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/table.mjs ***!
            \***********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MatCell: () => (/* binding */ MatCell),
          /* harmony export */   MatCellDef: () => (/* binding */ MatCellDef),
          /* harmony export */   MatColumnDef: () => (/* binding */ MatColumnDef),
          /* harmony export */   MatFooterCell: () => (/* binding */ MatFooterCell),
          /* harmony export */   MatFooterCellDef: () => (/* binding */ MatFooterCellDef),
          /* harmony export */   MatFooterRow: () => (/* binding */ MatFooterRow),
          /* harmony export */   MatFooterRowDef: () => (/* binding */ MatFooterRowDef),
          /* harmony export */   MatHeaderCell: () => (/* binding */ MatHeaderCell),
          /* harmony export */   MatHeaderCellDef: () => (/* binding */ MatHeaderCellDef),
          /* harmony export */   MatHeaderRow: () => (/* binding */ MatHeaderRow),
          /* harmony export */   MatHeaderRowDef: () => (/* binding */ MatHeaderRowDef),
          /* harmony export */   MatNoDataRow: () => (/* binding */ MatNoDataRow),
          /* harmony export */   MatRecycleRows: () => (/* binding */ MatRecycleRows),
          /* harmony export */   MatRow: () => (/* binding */ MatRow),
          /* harmony export */   MatRowDef: () => (/* binding */ MatRowDef),
          /* harmony export */   MatTable: () => (/* binding */ MatTable),
          /* harmony export */   MatTableDataSource: () => (/* binding */ MatTableDataSource),
          /* harmony export */   MatTableModule: () => (/* binding */ MatTableModule),
          /* harmony export */   MatTextColumn: () => (/* binding */ MatTextColumn),
          /* harmony export */   _MatTableDataSource: () => (/* binding */ _MatTableDataSource)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/table */ 198);
          /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/collections */ 7989);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/core */ 4646);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 5797);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 3617);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 9999);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 271);
          
          
          
          
          
          
          
          
          
          
          /**
           * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
           * tables that animate rows.
           */
          const _c0 = [[["caption"]], [["colgroup"], ["col"]]];
          const _c1 = ["caption", "colgroup, col"];
          function MatTextColumn_th_1_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 3);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("text-align", ctx_r0.justify);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.headerText, " ");
            }
          }
          function MatTextColumn_td_2_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 4);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const data_r2 = ctx.$implicit;
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("text-align", ctx_r1.justify);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.dataAccessor(data_r2, ctx_r1.name), " ");
            }
          }
          class MatRecycleRows {
            static {
              this.ɵfac = function MatRecycleRows_Factory(t) {
                return new (t || MatRecycleRows)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatRecycleRows,
                selectors: [["mat-table", "recycleRows", ""], ["table", "mat-table", "", "recycleRows", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._RecycleViewRepeaterStrategy
                }])]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRecycleRows, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-table[recycleRows], table[mat-table][recycleRows]',
                providers: [{
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._RecycleViewRepeaterStrategy
                }]
              }]
            }], null, null);
          })();
          class MatTable extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable {
            constructor() {
              super(...arguments);
              /** Overrides the sticky CSS class set by the `CdkTable`. */
              this.stickyCssClass = 'mat-mdc-table-sticky';
              /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */
              this.needsPositionStickyOnElement = false;
            }
            ngOnInit() {
              super.ngOnInit();
              // After ngOnInit, the `CdkTable` has created and inserted the table sections (thead, tbody,
              // tfoot). MDC requires the `mdc-data-table__content` class to be added to the body. Note that
              // this only applies to native tables, because we don't wrap the content of flexbox-based ones.
              if (this._isNativeHtmlTable) {
                const tbody = this._elementRef.nativeElement.querySelector('tbody');
                tbody.classList.add('mdc-data-table__content');
              }
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatTable_BaseFactory;
                return function MatTable_Factory(t) {
                  return (ɵMatTable_BaseFactory || (ɵMatTable_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatTable)))(t || MatTable);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatTable,
                selectors: [["mat-table"], ["table", "mat-table", ""]],
                hostAttrs: ["ngSkipHydration", "", 1, "mat-mdc-table", "mdc-data-table__table"],
                hostVars: 2,
                hostBindings: function MatTable_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-table-fixed-layout", ctx.fixedLayout);
                  }
                },
                exportAs: ["matTable"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable,
                  useExisting: MatTable
                }, {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_TABLE,
                  useExisting: MatTable
                }, {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._COALESCED_STYLE_SCHEDULER,
                  useClass: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._CoalescedStyleScheduler
                },
                // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
                //  is only included in the build if used.
                {
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._DisposeViewRepeaterStrategy
                },
                // Prevent nested tables from seeing this table's StickyPositioningListener.
                {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.STICKY_POSITIONING_LISTENER,
                  useValue: null
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                ngContentSelectors: _c1,
                decls: 6,
                vars: 0,
                consts: [["headerRowOutlet", ""], ["rowOutlet", ""], ["noDataRowOutlet", ""], ["footerRowOutlet", ""]],
                template: function MatTable_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](2, 0)(3, 1)(4, 2)(5, 3);
                  }
                },
                dependencies: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.DataRowOutlet, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.HeaderRowOutlet, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.FooterRowOutlet, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.NoDataRowOutlet],
                styles: [".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTable, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-table, table[mat-table]',
                exportAs: 'matTable',
                template: `
              <ng-content select="caption"></ng-content>
              <ng-content select="colgroup, col"></ng-content>
              <ng-container headerRowOutlet></ng-container>
              <ng-container rowOutlet></ng-container>
              <ng-container noDataRowOutlet></ng-container>
              <ng-container footerRowOutlet></ng-container>
            `,
                host: {
                  'class': 'mat-mdc-table mdc-data-table__table',
                  '[class.mdc-table-fixed-layout]': 'fixedLayout',
                  'ngSkipHydration': ''
                },
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTable,
                  useExisting: MatTable
                }, {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CDK_TABLE,
                  useExisting: MatTable
                }, {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._COALESCED_STYLE_SCHEDULER,
                  useClass: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__._CoalescedStyleScheduler
                },
                // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
                //  is only included in the build if used.
                {
                  provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._VIEW_REPEATER_STRATEGY,
                  useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__._DisposeViewRepeaterStrategy
                },
                // Prevent nested tables from seeing this table's StickyPositioningListener.
                {
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.STICKY_POSITIONING_LISTENER,
                  useValue: null
                }],
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.Default,
                styles: [".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"]
              }]
            }], null, null);
          })();
          
          /**
           * Cell definition for the mat-table.
           * Captures the template of a column's data row cell as well as cell-specific properties.
           */
          class MatCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatCellDef_BaseFactory;
                return function MatCellDef_Factory(t) {
                  return (ɵMatCellDef_BaseFactory || (ɵMatCellDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatCellDef)))(t || MatCellDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatCellDef,
                selectors: [["", "matCellDef", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef,
                  useExisting: MatCellDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matCellDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellDef,
                  useExisting: MatCellDef
                }]
              }]
            }], null, null);
          })();
          /**
           * Header cell definition for the mat-table.
           * Captures the template of a column's header cell and as well as cell-specific properties.
           */
          class MatHeaderCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatHeaderCellDef_BaseFactory;
                return function MatHeaderCellDef_Factory(t) {
                  return (ɵMatHeaderCellDef_BaseFactory || (ɵMatHeaderCellDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderCellDef)))(t || MatHeaderCellDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatHeaderCellDef,
                selectors: [["", "matHeaderCellDef", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef,
                  useExisting: MatHeaderCellDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matHeaderCellDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCellDef,
                  useExisting: MatHeaderCellDef
                }]
              }]
            }], null, null);
          })();
          /**
           * Footer cell definition for the mat-table.
           * Captures the template of a column's footer cell and as well as cell-specific properties.
           */
          class MatFooterCellDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatFooterCellDef_BaseFactory;
                return function MatFooterCellDef_Factory(t) {
                  return (ɵMatFooterCellDef_BaseFactory || (ɵMatFooterCellDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterCellDef)))(t || MatFooterCellDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFooterCellDef,
                selectors: [["", "matFooterCellDef", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef,
                  useExisting: MatFooterCellDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterCellDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matFooterCellDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCellDef,
                  useExisting: MatFooterCellDef
                }]
              }]
            }], null, null);
          })();
          /**
           * Column definition for the mat-table.
           * Defines a set of cells available for a table column.
           */
          class MatColumnDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef {
            /** Unique name for this column. */
            get name() {
              return this._name;
            }
            set name(name) {
              this._setNameInput(name);
            }
            /**
             * Add "mat-column-" prefix in addition to "cdk-column-" prefix.
             * In the future, this will only add "mat-column-" and columnCssClassName
             * will change from type string[] to string.
             * @docs-private
             */
            _updateColumnCssClassName() {
              super._updateColumnCssClassName();
              this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatColumnDef_BaseFactory;
                return function MatColumnDef_Factory(t) {
                  return (ɵMatColumnDef_BaseFactory || (ɵMatColumnDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatColumnDef)))(t || MatColumnDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatColumnDef,
                selectors: [["", "matColumnDef", ""]],
                inputs: {
                  sticky: "sticky",
                  name: ["matColumnDef", "name"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef,
                  useExisting: MatColumnDef
                }, {
                  provide: 'MAT_SORT_HEADER_COLUMN_DEF',
                  useExisting: MatColumnDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatColumnDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matColumnDef]',
                inputs: ['sticky'],
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkColumnDef,
                  useExisting: MatColumnDef
                }, {
                  provide: 'MAT_SORT_HEADER_COLUMN_DEF',
                  useExisting: MatColumnDef
                }]
              }]
            }], null, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matColumnDef']
              }]
            });
          })();
          /** Header cell template container that adds the right classes and role. */
          class MatHeaderCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderCell {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatHeaderCell_BaseFactory;
                return function MatHeaderCell_Factory(t) {
                  return (ɵMatHeaderCell_BaseFactory || (ɵMatHeaderCell_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderCell)))(t || MatHeaderCell);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatHeaderCell,
                selectors: [["mat-header-cell"], ["th", "mat-header-cell", ""]],
                hostAttrs: ["role", "columnheader", 1, "mat-mdc-header-cell", "mdc-data-table__header-cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-header-cell, th[mat-header-cell]',
                host: {
                  'class': 'mat-mdc-header-cell mdc-data-table__header-cell',
                  'role': 'columnheader'
                }
              }]
            }], null, null);
          })();
          /** Footer cell template container that adds the right classes and role. */
          class MatFooterCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterCell {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatFooterCell_BaseFactory;
                return function MatFooterCell_Factory(t) {
                  return (ɵMatFooterCell_BaseFactory || (ɵMatFooterCell_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterCell)))(t || MatFooterCell);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFooterCell,
                selectors: [["mat-footer-cell"], ["td", "mat-footer-cell", ""]],
                hostAttrs: [1, "mat-mdc-footer-cell", "mdc-data-table__cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-footer-cell, td[mat-footer-cell]',
                host: {
                  'class': 'mat-mdc-footer-cell mdc-data-table__cell'
                }
              }]
            }], null, null);
          })();
          /** Cell template container that adds the right classes and role. */
          class MatCell extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCell {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatCell_BaseFactory;
                return function MatCell_Factory(t) {
                  return (ɵMatCell_BaseFactory || (ɵMatCell_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatCell)))(t || MatCell);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatCell,
                selectors: [["mat-cell"], ["td", "mat-cell", ""]],
                hostAttrs: [1, "mat-mdc-cell", "mdc-data-table__cell"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCell, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'mat-cell, td[mat-cell]',
                host: {
                  'class': 'mat-mdc-cell mdc-data-table__cell'
                }
              }]
            }], null, null);
          })();
          
          // We can't reuse `CDK_ROW_TEMPLATE` because it's incompatible with local compilation mode.
          const ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;
          /**
           * Header row definition for the mat-table.
           * Captures the header row's template and other header properties such as the columns to display.
           */
          class MatHeaderRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatHeaderRowDef_BaseFactory;
                return function MatHeaderRowDef_Factory(t) {
                  return (ɵMatHeaderRowDef_BaseFactory || (ɵMatHeaderRowDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderRowDef)))(t || MatHeaderRowDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatHeaderRowDef,
                selectors: [["", "matHeaderRowDef", ""]],
                inputs: {
                  columns: ["matHeaderRowDef", "columns"],
                  sticky: ["matHeaderRowDefSticky", "sticky"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef,
                  useExisting: MatHeaderRowDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matHeaderRowDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRowDef,
                  useExisting: MatHeaderRowDef
                }],
                inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky']
              }]
            }], null, null);
          })();
          /**
           * Footer row definition for the mat-table.
           * Captures the footer row's template and other footer properties such as the columns to display.
           */
          class MatFooterRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatFooterRowDef_BaseFactory;
                return function MatFooterRowDef_Factory(t) {
                  return (ɵMatFooterRowDef_BaseFactory || (ɵMatFooterRowDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterRowDef)))(t || MatFooterRowDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatFooterRowDef,
                selectors: [["", "matFooterRowDef", ""]],
                inputs: {
                  columns: ["matFooterRowDef", "columns"],
                  sticky: ["matFooterRowDefSticky", "sticky"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef,
                  useExisting: MatFooterRowDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matFooterRowDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRowDef,
                  useExisting: MatFooterRowDef
                }],
                inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky']
              }]
            }], null, null);
          })();
          /**
           * Data row definition for the mat-table.
           * Captures the data row's template and other properties such as the columns to display and
           * a when predicate that describes when this row should be used.
           */
          class MatRowDef extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatRowDef_BaseFactory;
                return function MatRowDef_Factory(t) {
                  return (ɵMatRowDef_BaseFactory || (ɵMatRowDef_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatRowDef)))(t || MatRowDef);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatRowDef,
                selectors: [["", "matRowDef", ""]],
                inputs: {
                  columns: ["matRowDefColumns", "columns"],
                  when: ["matRowDefWhen", "when"]
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef,
                  useExisting: MatRowDef
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRowDef, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matRowDef]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRowDef,
                  useExisting: MatRowDef
                }],
                inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen']
              }]
            }], null, null);
          })();
          /** Header template container that contains the cell outlet. Adds the right class and role. */
          class MatHeaderRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatHeaderRow_BaseFactory;
                return function MatHeaderRow_Factory(t) {
                  return (ɵMatHeaderRow_BaseFactory || (ɵMatHeaderRow_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderRow)))(t || MatHeaderRow);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatHeaderRow,
                selectors: [["mat-header-row"], ["tr", "mat-header-row", ""]],
                hostAttrs: ["role", "row", 1, "mat-mdc-header-row", "mdc-data-table__header-row"],
                exportAs: ["matHeaderRow"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow,
                  useExisting: MatHeaderRow
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function MatHeaderRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-header-row, tr[mat-header-row]',
                template: ROW_TEMPLATE,
                host: {
                  'class': 'mat-mdc-header-row mdc-data-table__header-row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                exportAs: 'matHeaderRow',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkHeaderRow,
                  useExisting: MatHeaderRow
                }]
              }]
            }], null, null);
          })();
          /** Footer template container that contains the cell outlet. Adds the right class and role. */
          class MatFooterRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatFooterRow_BaseFactory;
                return function MatFooterRow_Factory(t) {
                  return (ɵMatFooterRow_BaseFactory || (ɵMatFooterRow_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterRow)))(t || MatFooterRow);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatFooterRow,
                selectors: [["mat-footer-row"], ["tr", "mat-footer-row", ""]],
                hostAttrs: ["role", "row", 1, "mat-mdc-footer-row", "mdc-data-table__row"],
                exportAs: ["matFooterRow"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow,
                  useExisting: MatFooterRow
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function MatFooterRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-footer-row, tr[mat-footer-row]',
                template: ROW_TEMPLATE,
                host: {
                  'class': 'mat-mdc-footer-row mdc-data-table__row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                exportAs: 'matFooterRow',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkFooterRow,
                  useExisting: MatFooterRow
                }]
              }]
            }], null, null);
          })();
          /** Data row template container that contains the cell outlet. Adds the right class and role. */
          class MatRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatRow_BaseFactory;
                return function MatRow_Factory(t) {
                  return (ɵMatRow_BaseFactory || (ɵMatRow_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatRow)))(t || MatRow);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatRow,
                selectors: [["mat-row"], ["tr", "mat-row", ""]],
                hostAttrs: ["role", "row", 1, "mat-mdc-row", "mdc-data-table__row"],
                exportAs: ["matRow"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow,
                  useExisting: MatRow
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 1,
                vars: 0,
                consts: [["cdkCellOutlet", ""]],
                template: function MatRow_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
                  }
                },
                dependencies: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkCellOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-row, tr[mat-row]',
                template: ROW_TEMPLATE,
                host: {
                  'class': 'mat-mdc-row mdc-data-table__row',
                  'role': 'row'
                },
                // See note on CdkTable for explanation on why this uses the default change detection strategy.
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.Default,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                exportAs: 'matRow',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkRow,
                  useExisting: MatRow
                }]
              }]
            }], null, null);
          })();
          /** Row that can be used to display a message when no data is shown in the table. */
          class MatNoDataRow extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow {
            constructor() {
              super(...arguments);
              this._contentClassName = 'mat-mdc-no-data-row';
            }
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatNoDataRow_BaseFactory;
                return function MatNoDataRow_Factory(t) {
                  return (ɵMatNoDataRow_BaseFactory || (ɵMatNoDataRow_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatNoDataRow)))(t || MatNoDataRow);
                };
              }();
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatNoDataRow,
                selectors: [["ng-template", "matNoDataRow", ""]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow,
                  useExisting: MatNoDataRow
                }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatNoDataRow, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: 'ng-template[matNoDataRow]',
                providers: [{
                  provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkNoDataRow,
                  useExisting: MatNoDataRow
                }]
              }]
            }], null, null);
          })();
          
          /**
           * Column that simply shows text content for the header and row cells. Assumes that the table
           * is using the native table implementation (`<table>`).
           *
           * By default, the name of this column will be the header text and data property accessor.
           * The header text can be overridden with the `headerText` input. Cell values can be overridden with
           * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
           * input.
           */
          class MatTextColumn extends _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTextColumn {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵMatTextColumn_BaseFactory;
                return function MatTextColumn_Factory(t) {
                  return (ɵMatTextColumn_BaseFactory || (ɵMatTextColumn_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatTextColumn)))(t || MatTextColumn);
                };
              }();
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: MatTextColumn,
                selectors: [["mat-text-column"]],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 3,
                vars: 0,
                consts: [["matColumnDef", ""], ["mat-header-cell", "", 3, "text-align", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "text-align", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", ""]],
                template: function MatTextColumn_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0, 0);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MatTextColumn_th_1_Template, 2, 3, "th", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatTextColumn_td_2_Template, 2, 3, "td", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
                  }
                },
                dependencies: [MatHeaderCellDef, MatColumnDef, MatCellDef, MatHeaderCell, MatCell],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTextColumn, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-text-column',
                template: `
              <ng-container matColumnDef>
                <th mat-header-cell *matHeaderCellDef [style.text-align]="justify">
                  {{headerText}}
                </th>
                <td mat-cell *matCellDef="let data" [style.text-align]="justify">
                  {{dataAccessor(data, name)}}
                </td>
              </ng-container>
            `,
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                // Change detection is intentionally not set to OnPush. This component's template will be provided
                // to the table to be inserted into its view. This is problematic when change detection runs since
                // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
                // mean's the template in the table's view will not have the updated value (and in fact will cause
                // an ExpressionChangedAfterItHasBeenCheckedError).
                // tslint:disable-next-line:validate-decorators
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.Default
              }]
            }], null, null);
          })();
          const EXPORTED_DECLARATIONS = [
          // Table
          MatTable, MatRecycleRows,
          // Template defs
          MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef,
          // Cell directives
          MatHeaderCell, MatCell, MatFooterCell,
          // Row directives
          MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn];
          class MatTableModule {
            static {
              this.ɵfac = function MatTableModule_Factory(t) {
                return new (t || MatTableModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatTableModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTableModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTableModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_2__.CdkTableModule],
                exports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__.MatCommonModule, EXPORTED_DECLARATIONS],
                declarations: EXPORTED_DECLARATIONS
              }]
            }], null, null);
          })();
          
          /**
           * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to
           * flaky browser support and the value not being defined in Closure's typings.
           */
          const MAX_SAFE_INTEGER = 9007199254740991;
          /** Shared base class with MDC-based implementation. */
          class _MatTableDataSource extends _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__.DataSource {
            /** Array of data that should be rendered by the table, where each object represents one row. */
            get data() {
              return this._data.value;
            }
            set data(data) {
              data = Array.isArray(data) ? data : [];
              this._data.next(data);
              // Normally the `filteredData` is updated by the re-render
              // subscription, but that won't happen if it's inactive.
              if (!this._renderChangesSubscription) {
                this._filterData(data);
              }
            }
            /**
             * Filter term that should be used to filter out objects from the data array. To override how
             * data objects match to this filter string, provide a custom function for filterPredicate.
             */
            get filter() {
              return this._filter.value;
            }
            set filter(filter) {
              this._filter.next(filter);
              // Normally the `filteredData` is updated by the re-render
              // subscription, but that won't happen if it's inactive.
              if (!this._renderChangesSubscription) {
                this._filterData(this.data);
              }
            }
            /**
             * Instance of the MatSort directive used by the table to control its sorting. Sort changes
             * emitted by the MatSort will trigger an update to the table's rendered data.
             */
            get sort() {
              return this._sort;
            }
            set sort(sort) {
              this._sort = sort;
              this._updateChangeSubscription();
            }
            /**
             * Instance of the paginator component used by the table to control what page of the data is
             * displayed. Page changes emitted by the paginator will trigger an update to the
             * table's rendered data.
             *
             * Note that the data source uses the paginator's properties to calculate which page of data
             * should be displayed. If the paginator receives its properties as template inputs,
             * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been
             * initialized before assigning it to this data source.
             */
            get paginator() {
              return this._paginator;
            }
            set paginator(paginator) {
              this._paginator = paginator;
              this._updateChangeSubscription();
            }
            constructor(initialData = []) {
              super();
              /** Stream emitting render data to the table (depends on ordered data changes). */
              this._renderData = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject([]);
              /** Stream that emits when a new filter string is set on the data source. */
              this._filter = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject('');
              /** Used to react to internal changes of the paginator that are made by the data source itself. */
              this._internalPageChanges = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject();
              /**
               * Subscription to the changes that should trigger an update to the table's rendered rows, such
               * as filtering, sorting, pagination, or base data changes.
               */
              this._renderChangesSubscription = null;
              /**
               * Data accessor function that is used for accessing data properties for sorting through
               * the default sortData function.
               * This default function assumes that the sort header IDs (which defaults to the column name)
               * matches the data's properties (e.g. column Xyz represents data['Xyz']).
               * May be set to a custom function for different behavior.
               * @param data Data object that is being accessed.
               * @param sortHeaderId The name of the column that represents the data.
               */
              this.sortingDataAccessor = (data, sortHeaderId) => {
                const value = data[sortHeaderId];
                if ((0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__._isNumberValue)(value)) {
                  const numberValue = Number(value);
                  // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we
                  // leave them as strings. For more info: https://goo.gl/y5vbSg
                  return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
                }
                return value;
              };
              /**
               * Gets a sorted copy of the data array based on the state of the MatSort. Called
               * after changes are made to the filtered data or when sort changes are emitted from MatSort.
               * By default, the function retrieves the active sort and its direction and compares data
               * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation
               * of data ordering.
               * @param data The array of data that should be sorted.
               * @param sort The connected MatSort that holds the current sort state.
               */
              this.sortData = (data, sort) => {
                const active = sort.active;
                const direction = sort.direction;
                if (!active || direction == '') {
                  return data;
                }
                return data.sort((a, b) => {
                  let valueA = this.sortingDataAccessor(a, active);
                  let valueB = this.sortingDataAccessor(b, active);
                  // If there are data in the column that can be converted to a number,
                  // it must be ensured that the rest of the data
                  // is of the same type so as not to order incorrectly.
                  const valueAType = typeof valueA;
                  const valueBType = typeof valueB;
                  if (valueAType !== valueBType) {
                    if (valueAType === 'number') {
                      valueA += '';
                    }
                    if (valueBType === 'number') {
                      valueB += '';
                    }
                  }
                  // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if
                  // one value exists while the other doesn't. In this case, existing value should come last.
                  // This avoids inconsistent results when comparing values to undefined/null.
                  // If neither value exists, return 0 (equal).
                  let comparatorResult = 0;
                  if (valueA != null && valueB != null) {
                    // Check if one value is greater than the other; if equal, comparatorResult should remain 0.
                    if (valueA > valueB) {
                      comparatorResult = 1;
                    } else if (valueA < valueB) {
                      comparatorResult = -1;
                    }
                  } else if (valueA != null) {
                    comparatorResult = 1;
                  } else if (valueB != null) {
                    comparatorResult = -1;
                  }
                  return comparatorResult * (direction == 'asc' ? 1 : -1);
                });
              };
              /**
               * Checks if a data object matches the data source's filter string. By default, each data object
               * is converted to a string of its properties and returns true if the filter has
               * at least one occurrence in that string. By default, the filter string has its whitespace
               * trimmed and the match is case-insensitive. May be overridden for a custom implementation of
               * filter matching.
               * @param data Data object used to check against the filter.
               * @param filter Filter string that has been set on the data source.
               * @returns Whether the filter matches against the data
               */
              this.filterPredicate = (data, filter) => {
                // Transform the data into a lowercase string of all property values.
                const dataStr = Object.keys(data).reduce((currentTerm, key) => {
                  // Use an obscure Unicode character to delimit the words in the concatenated string.
                  // This avoids matches where the values of two columns combined will match the user's query
                  // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something
                  // that has a very low chance of being typed in by somebody in a text field. This one in
                  // particular is "White up-pointing triangle with dot" from
                  // https://en.wikipedia.org/wiki/List_of_Unicode_characters
                  return currentTerm + data[key] + '◬';
                }, '').toLowerCase();
                // Transform the filter by converting it to lowercase and removing whitespace.
                const transformedFilter = filter.trim().toLowerCase();
                return dataStr.indexOf(transformedFilter) != -1;
              };
              this._data = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(initialData);
              this._updateChangeSubscription();
            }
            /**
             * Subscribe to changes that should trigger an update to the table's rendered rows. When the
             * changes occur, process the current state of the filter, sort, and pagination along with
             * the provided base data and send it to the table for rendering.
             */
            _updateChangeSubscription() {
              // Sorting and/or pagination should be watched if sort and/or paginator are provided.
              // The events should emit whenever the component emits a change or initializes, or if no
              // component is provided, a stream with just a null event should be provided.
              // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the
              // pipeline can progress to the next step. Note that the value from these streams are not used,
              // they purely act as a signal to progress in the pipeline.
              const sortChange = this._sort ? (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)(this._sort.sortChange, this._sort.initialized) : (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null);
              const pageChange = this._paginator ? (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.merge)(this._paginator.page, this._internalPageChanges, this._paginator.initialized) : (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null);
              const dataStream = this._data;
              // Watch for base data or filter changes to provide a filtered set of data.
              const filteredData = (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([dataStream, this._filter]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => this._filterData(data)));
              // Watch for filtered data or sort changes to provide an ordered set of data.
              const orderedData = (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([filteredData, sortChange]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => this._orderData(data)));
              // Watch for ordered data or page changes to provide a paged set of data.
              const paginatedData = (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.combineLatest)([orderedData, pageChange]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.map)(([data]) => this._pageData(data)));
              // Watched for paged data changes and send the result to the table to render.
              this._renderChangesSubscription?.unsubscribe();
              this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));
            }
            /**
             * Returns a filtered data array where each filter object contains the filter string within
             * the result of the filterPredicate function. If no filter is set, returns the data array
             * as provided.
             */
            _filterData(data) {
              // If there is a filter string, filter out data that does not contain it.
              // Each data object is converted to a string using the function defined by filterPredicate.
              // May be overridden for customization.
              this.filteredData = this.filter == null || this.filter === '' ? data : data.filter(obj => this.filterPredicate(obj, this.filter));
              if (this.paginator) {
                this._updatePaginator(this.filteredData.length);
              }
              return this.filteredData;
            }
            /**
             * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the
             * data array as provided. Uses the default data accessor for data lookup, unless a
             * sortDataAccessor function is defined.
             */
            _orderData(data) {
              // If there is no active sort or direction, return the data without trying to sort.
              if (!this.sort) {
                return data;
              }
              return this.sortData(data.slice(), this.sort);
            }
            /**
             * Returns a paged slice of the provided data array according to the provided paginator's page
             * index and length. If there is no paginator provided, returns the data array as provided.
             */
            _pageData(data) {
              if (!this.paginator) {
                return data;
              }
              const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
              return data.slice(startIndex, startIndex + this.paginator.pageSize);
            }
            /**
             * Updates the paginator to reflect the length of the filtered data, and makes sure that the page
             * index does not exceed the paginator's last page. Values are changed in a resolved promise to
             * guard against making property changes within a round of change detection.
             */
            _updatePaginator(filteredDataLength) {
              Promise.resolve().then(() => {
                const paginator = this.paginator;
                if (!paginator) {
                  return;
                }
                paginator.length = filteredDataLength;
                // If the page index is set beyond the page, reduce it to the last page.
                if (paginator.pageIndex > 0) {
                  const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;
                  const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);
                  if (newPageIndex !== paginator.pageIndex) {
                    paginator.pageIndex = newPageIndex;
                    // Since the paginator only emits after user-generated changes,
                    // we need our own stream so we know to should re-render the data.
                    this._internalPageChanges.next();
                  }
                }
              });
            }
            /**
             * Used by the MatTable. Called when it connects to the data source.
             * @docs-private
             */
            connect() {
              if (!this._renderChangesSubscription) {
                this._updateChangeSubscription();
              }
              return this._renderData;
            }
            /**
             * Used by the MatTable. Called when it disconnects from the data source.
             * @docs-private
             */
            disconnect() {
              this._renderChangesSubscription?.unsubscribe();
              this._renderChangesSubscription = null;
            }
          }
          /**
           * Data source that accepts a client-side data array and includes native support of filtering,
           * sorting (using MatSort), and pagination (using MatPaginator).
           *
           * Allows for sort customization by overriding sortingDataAccessor, which defines how data
           * properties are accessed. Also allows for filter customization by overriding filterPredicate,
           * which defines how row data is converted to a string for filter matching.
           *
           * **Note:** This class is meant to be a simple data source to help you get started. As such
           * it isn't equipped to handle some more advanced cases like robust i18n support or server-side
           * interactions. If your app needs to support more advanced use cases, consider implementing your
           * own `DataSource`.
           */
          class MatTableDataSource extends _MatTableDataSource {}
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 640:
          /*!*************************************************************!*\
            !*** ./node_modules/@angular/material/fesm2022/tooltip.mjs ***!
            \*************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   MAT_TOOLTIP_DEFAULT_OPTIONS: () => (/* binding */ MAT_TOOLTIP_DEFAULT_OPTIONS),
          /* harmony export */   MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY: () => (/* binding */ MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY),
          /* harmony export */   MAT_TOOLTIP_SCROLL_STRATEGY: () => (/* binding */ MAT_TOOLTIP_SCROLL_STRATEGY),
          /* harmony export */   MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY: () => (/* binding */ MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY),
          /* harmony export */   MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: () => (/* binding */ MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER),
          /* harmony export */   MatTooltip: () => (/* binding */ MatTooltip),
          /* harmony export */   MatTooltipModule: () => (/* binding */ MatTooltipModule),
          /* harmony export */   SCROLL_THROTTLE_MS: () => (/* binding */ SCROLL_THROTTLE_MS),
          /* harmony export */   TOOLTIP_PANEL_CLASS: () => (/* binding */ TOOLTIP_PANEL_CLASS),
          /* harmony export */   TooltipComponent: () => (/* binding */ TooltipComponent),
          /* harmony export */   _MatTooltipBase: () => (/* binding */ _MatTooltipBase),
          /* harmony export */   _TooltipComponentBase: () => (/* binding */ _TooltipComponentBase),
          /* harmony export */   getMatTooltipInvalidPositionError: () => (/* binding */ getMatTooltipInvalidPositionError),
          /* harmony export */   matTooltipAnimations: () => (/* binding */ matTooltipAnimations)
          /* harmony export */ });
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/coercion */ 2814);
          /* harmony import */ var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/cdk/keycodes */ 4879);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/platform */ 7699);
          /* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/cdk/a11y */ 2102);
          /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/bidi */ 3680);
          /* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/overlay */ 1570);
          /* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/cdk/scrolling */ 9975);
          /* harmony import */ var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/portal */ 9168);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/animations */ 7172);
          /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/core */ 4646);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          /** Time in ms to throttle repositioning after scroll events. */
          const _c0 = ["tooltip"];
          const SCROLL_THROTTLE_MS = 20;
          /**
           * Creates an error to be thrown if the user supplied an invalid tooltip position.
           * @docs-private
           */
          function getMatTooltipInvalidPositionError(position) {
            return Error(`Tooltip position "${position}" is invalid.`);
          }
          /** Injection token that determines the scroll handling while a tooltip is visible. */
          const MAT_TOOLTIP_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-tooltip-scroll-strategy');
          /** @docs-private */
          function MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay) {
            return () => overlay.scrollStrategies.reposition({
              scrollThrottle: SCROLL_THROTTLE_MS
            });
          }
          /** @docs-private */
          const MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {
            provide: MAT_TOOLTIP_SCROLL_STRATEGY,
            deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.Overlay],
            useFactory: MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY
          };
          /** @docs-private */
          function MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY() {
            return {
              showDelay: 0,
              hideDelay: 0,
              touchendHideDelay: 1500
            };
          }
          /** Injection token to be used to override the default options for `matTooltip`. */
          const MAT_TOOLTIP_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('mat-tooltip-default-options', {
            providedIn: 'root',
            factory: MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY
          });
          /**
           * CSS class that will be attached to the overlay panel.
           * @deprecated
           * @breaking-change 13.0.0 remove this variable
           */
          const TOOLTIP_PANEL_CLASS = 'mat-mdc-tooltip-panel';
          const PANEL_CLASS = 'tooltip-panel';
          /** Options used to bind passive event listeners. */
          const passiveListenerOptions = (0,_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.normalizePassiveListenerOptions)({
            passive: true
          });
          /**
           * Time between the user putting the pointer on a tooltip
           * trigger and the long press event being fired.
           */
          const LONGPRESS_DELAY = 500;
          // These constants were taken from MDC's `numbers` object. We can't import them from MDC,
          // because they have some top-level references to `window` which break during SSR.
          const MIN_VIEWPORT_TOOLTIP_THRESHOLD = 8;
          const UNBOUNDED_ANCHOR_GAP = 8;
          const MIN_HEIGHT = 24;
          const MAX_WIDTH = 200;
          class _MatTooltipBase {
            /** Allows the user to define the position of the tooltip relative to the parent element */
            get position() {
              return this._position;
            }
            set position(value) {
              if (value !== this._position) {
                this._position = value;
                if (this._overlayRef) {
                  this._updatePosition(this._overlayRef);
                  this._tooltipInstance?.show(0);
                  this._overlayRef.updatePosition();
                }
              }
            }
            /**
             * Whether tooltip should be relative to the click or touch origin
             * instead of outside the element bounding box.
             */
            get positionAtOrigin() {
              return this._positionAtOrigin;
            }
            set positionAtOrigin(value) {
              this._positionAtOrigin = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)(value);
              this._detach();
              this._overlayRef = null;
            }
            /** Disables the display of the tooltip. */
            get disabled() {
              return this._disabled;
            }
            set disabled(value) {
              this._disabled = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceBooleanProperty)(value);
              // If tooltip is disabled, hide immediately.
              if (this._disabled) {
                this.hide(0);
              } else {
                this._setupPointerEnterEventsIfNeeded();
              }
            }
            /** The default delay in ms before showing the tooltip after show is called */
            get showDelay() {
              return this._showDelay;
            }
            set showDelay(value) {
              this._showDelay = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
            }
            /** The default delay in ms before hiding the tooltip after hide is called */
            get hideDelay() {
              return this._hideDelay;
            }
            set hideDelay(value) {
              this._hideDelay = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceNumberProperty)(value);
              if (this._tooltipInstance) {
                this._tooltipInstance._mouseLeaveHideDelay = this._hideDelay;
              }
            }
            /** The message to be displayed in the tooltip */
            get message() {
              return this._message;
            }
            set message(value) {
              this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message, 'tooltip');
              // If the message is not a string (e.g. number), convert it to a string and trim it.
              // Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises
              // away the string-conversion: https://github.com/angular/components/issues/20684
              this._message = value != null ? String(value).trim() : '';
              if (!this._message && this._isTooltipVisible()) {
                this.hide(0);
              } else {
                this._setupPointerEnterEventsIfNeeded();
                this._updateTooltipMessage();
                this._ngZone.runOutsideAngular(() => {
                  // The `AriaDescriber` has some functionality that avoids adding a description if it's the
                  // same as the `aria-label` of an element, however we can't know whether the tooltip trigger
                  // has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the
                  // issue by deferring the description by a tick so Angular has time to set the `aria-label`.
                  Promise.resolve().then(() => {
                    this._ariaDescriber.describe(this._elementRef.nativeElement, this.message, 'tooltip');
                  });
                });
              }
            }
            /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
            get tooltipClass() {
              return this._tooltipClass;
            }
            set tooltipClass(value) {
              this._tooltipClass = value;
              if (this._tooltipInstance) {
                this._setTooltipClass(this._tooltipClass);
              }
            }
            constructor(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, scrollStrategy, _dir, _defaultOptions, _document) {
              this._overlay = _overlay;
              this._elementRef = _elementRef;
              this._scrollDispatcher = _scrollDispatcher;
              this._viewContainerRef = _viewContainerRef;
              this._ngZone = _ngZone;
              this._platform = _platform;
              this._ariaDescriber = _ariaDescriber;
              this._focusMonitor = _focusMonitor;
              this._dir = _dir;
              this._defaultOptions = _defaultOptions;
              this._position = 'below';
              this._positionAtOrigin = false;
              this._disabled = false;
              this._viewInitialized = false;
              this._pointerExitEventsInitialized = false;
              this._viewportMargin = 8;
              this._cssClassPrefix = 'mat';
              /**
               * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
               * uses a long press gesture to show and hide, however it can conflict with the native browser
               * gestures. To work around the conflict, Angular Material disables native gestures on the
               * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
               * elements). The different values for this option configure the touch event handling as follows:
               * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
               *   browser gestures on particular elements. In particular, it allows text selection on inputs
               *   and textareas, and preserves the native browser dragging on elements marked as `draggable`.
               * - `on` - Enables touch gestures for all elements and disables native
               *   browser gestures with no exceptions.
               * - `off` - Disables touch gestures. Note that this will prevent the tooltip from
               *   showing on touch devices.
               */
              this.touchGestures = 'auto';
              this._message = '';
              /** Manually-bound passive event listeners. */
              this._passiveListeners = [];
              /** Emits when the component is destroyed. */
              this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject();
              this._scrollStrategy = scrollStrategy;
              this._document = _document;
              if (_defaultOptions) {
                this._showDelay = _defaultOptions.showDelay;
                this._hideDelay = _defaultOptions.hideDelay;
                if (_defaultOptions.position) {
                  this.position = _defaultOptions.position;
                }
                if (_defaultOptions.positionAtOrigin) {
                  this.positionAtOrigin = _defaultOptions.positionAtOrigin;
                }
                if (_defaultOptions.touchGestures) {
                  this.touchGestures = _defaultOptions.touchGestures;
                }
              }
              _dir.change.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(() => {
                if (this._overlayRef) {
                  this._updatePosition(this._overlayRef);
                }
              });
            }
            ngAfterViewInit() {
              // This needs to happen after view init so the initial values for all inputs have been set.
              this._viewInitialized = true;
              this._setupPointerEnterEventsIfNeeded();
              this._focusMonitor.monitor(this._elementRef).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(origin => {
                // Note that the focus monitor runs outside the Angular zone.
                if (!origin) {
                  this._ngZone.run(() => this.hide(0));
                } else if (origin === 'keyboard') {
                  this._ngZone.run(() => this.show());
                }
              });
            }
            /**
             * Dispose the tooltip when destroyed.
             */
            ngOnDestroy() {
              const nativeElement = this._elementRef.nativeElement;
              clearTimeout(this._touchstartTimeout);
              if (this._overlayRef) {
                this._overlayRef.dispose();
                this._tooltipInstance = null;
              }
              // Clean up the event listeners set in the constructor
              this._passiveListeners.forEach(([event, listener]) => {
                nativeElement.removeEventListener(event, listener, passiveListenerOptions);
              });
              this._passiveListeners.length = 0;
              this._destroyed.next();
              this._destroyed.complete();
              this._ariaDescriber.removeDescription(nativeElement, this.message, 'tooltip');
              this._focusMonitor.stopMonitoring(nativeElement);
            }
            /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
            show(delay = this.showDelay, origin) {
              if (this.disabled || !this.message || this._isTooltipVisible()) {
                this._tooltipInstance?._cancelPendingAnimations();
                return;
              }
              const overlayRef = this._createOverlay(origin);
              this._detach();
              this._portal = this._portal || new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__.ComponentPortal(this._tooltipComponent, this._viewContainerRef);
              const instance = this._tooltipInstance = overlayRef.attach(this._portal).instance;
              instance._triggerElement = this._elementRef.nativeElement;
              instance._mouseLeaveHideDelay = this._hideDelay;
              instance.afterHidden().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(() => this._detach());
              this._setTooltipClass(this._tooltipClass);
              this._updateTooltipMessage();
              instance.show(delay);
            }
            /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
            hide(delay = this.hideDelay) {
              const instance = this._tooltipInstance;
              if (instance) {
                if (instance.isVisible()) {
                  instance.hide(delay);
                } else {
                  instance._cancelPendingAnimations();
                  this._detach();
                }
              }
            }
            /** Shows/hides the tooltip */
            toggle(origin) {
              this._isTooltipVisible() ? this.hide() : this.show(undefined, origin);
            }
            /** Returns true if the tooltip is currently visible to the user */
            _isTooltipVisible() {
              return !!this._tooltipInstance && this._tooltipInstance.isVisible();
            }
            /** Create the overlay config and position strategy */
            _createOverlay(origin) {
              if (this._overlayRef) {
                const existingStrategy = this._overlayRef.getConfig().positionStrategy;
                if ((!this.positionAtOrigin || !origin) && existingStrategy._origin instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef) {
                  return this._overlayRef;
                }
                this._detach();
              }
              const scrollableAncestors = this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);
              // Create connected position strategy that listens for scroll events to reposition.
              const strategy = this._overlay.position().flexibleConnectedTo(this.positionAtOrigin ? origin || this._elementRef : this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(false).withViewportMargin(this._viewportMargin).withScrollableContainers(scrollableAncestors);
              strategy.positionChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(change => {
                this._updateCurrentPositionClass(change.connectionPair);
                if (this._tooltipInstance) {
                  if (change.scrollableViewProperties.isOverlayClipped && this._tooltipInstance.isVisible()) {
                    // After position changes occur and the overlay is clipped by
                    // a parent scrollable then close the tooltip.
                    this._ngZone.run(() => this.hide(0));
                  }
                }
              });
              this._overlayRef = this._overlay.create({
                direction: this._dir,
                positionStrategy: strategy,
                panelClass: `${this._cssClassPrefix}-${PANEL_CLASS}`,
                scrollStrategy: this._scrollStrategy()
              });
              this._updatePosition(this._overlayRef);
              this._overlayRef.detachments().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(() => this._detach());
              this._overlayRef.outsidePointerEvents().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(() => this._tooltipInstance?._handleBodyInteraction());
              this._overlayRef.keydownEvents().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(event => {
                if (this._isTooltipVisible() && event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__.ESCAPE && !(0,_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_7__.hasModifierKey)(event)) {
                  event.preventDefault();
                  event.stopPropagation();
                  this._ngZone.run(() => this.hide(0));
                }
              });
              if (this._defaultOptions?.disableTooltipInteractivity) {
                this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`);
              }
              return this._overlayRef;
            }
            /** Detaches the currently-attached tooltip. */
            _detach() {
              if (this._overlayRef && this._overlayRef.hasAttached()) {
                this._overlayRef.detach();
              }
              this._tooltipInstance = null;
            }
            /** Updates the position of the current tooltip. */
            _updatePosition(overlayRef) {
              const position = overlayRef.getConfig().positionStrategy;
              const origin = this._getOrigin();
              const overlay = this._getOverlayPosition();
              position.withPositions([this._addOffset({
                ...origin.main,
                ...overlay.main
              }), this._addOffset({
                ...origin.fallback,
                ...overlay.fallback
              })]);
            }
            /** Adds the configured offset to a position. Used as a hook for child classes. */
            _addOffset(position) {
              return position;
            }
            /**
             * Returns the origin position and a fallback position based on the user's position preference.
             * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
             */
            _getOrigin() {
              const isLtr = !this._dir || this._dir.value == 'ltr';
              const position = this.position;
              let originPosition;
              if (position == 'above' || position == 'below') {
                originPosition = {
                  originX: 'center',
                  originY: position == 'above' ? 'top' : 'bottom'
                };
              } else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
                originPosition = {
                  originX: 'start',
                  originY: 'center'
                };
              } else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
                originPosition = {
                  originX: 'end',
                  originY: 'center'
                };
              } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
                throw getMatTooltipInvalidPositionError(position);
              }
              const {
                x,
                y
              } = this._invertPosition(originPosition.originX, originPosition.originY);
              return {
                main: originPosition,
                fallback: {
                  originX: x,
                  originY: y
                }
              };
            }
            /** Returns the overlay position and a fallback position based on the user's preference */
            _getOverlayPosition() {
              const isLtr = !this._dir || this._dir.value == 'ltr';
              const position = this.position;
              let overlayPosition;
              if (position == 'above') {
                overlayPosition = {
                  overlayX: 'center',
                  overlayY: 'bottom'
                };
              } else if (position == 'below') {
                overlayPosition = {
                  overlayX: 'center',
                  overlayY: 'top'
                };
              } else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
                overlayPosition = {
                  overlayX: 'end',
                  overlayY: 'center'
                };
              } else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
                overlayPosition = {
                  overlayX: 'start',
                  overlayY: 'center'
                };
              } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
                throw getMatTooltipInvalidPositionError(position);
              }
              const {
                x,
                y
              } = this._invertPosition(overlayPosition.overlayX, overlayPosition.overlayY);
              return {
                main: overlayPosition,
                fallback: {
                  overlayX: x,
                  overlayY: y
                }
              };
            }
            /** Updates the tooltip message and repositions the overlay according to the new message length */
            _updateTooltipMessage() {
              // Must wait for the message to be painted to the tooltip so that the overlay can properly
              // calculate the correct positioning based on the size of the text.
              if (this._tooltipInstance) {
                this._tooltipInstance.message = this.message;
                this._tooltipInstance._markForCheck();
                this._ngZone.onMicrotaskEmpty.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.takeUntil)(this._destroyed)).subscribe(() => {
                  if (this._tooltipInstance) {
                    this._overlayRef.updatePosition();
                  }
                });
              }
            }
            /** Updates the tooltip class */
            _setTooltipClass(tooltipClass) {
              if (this._tooltipInstance) {
                this._tooltipInstance.tooltipClass = tooltipClass;
                this._tooltipInstance._markForCheck();
              }
            }
            /** Inverts an overlay position. */
            _invertPosition(x, y) {
              if (this.position === 'above' || this.position === 'below') {
                if (y === 'top') {
                  y = 'bottom';
                } else if (y === 'bottom') {
                  y = 'top';
                }
              } else {
                if (x === 'end') {
                  x = 'start';
                } else if (x === 'start') {
                  x = 'end';
                }
              }
              return {
                x,
                y
              };
            }
            /** Updates the class on the overlay panel based on the current position of the tooltip. */
            _updateCurrentPositionClass(connectionPair) {
              const {
                overlayY,
                originX,
                originY
              } = connectionPair;
              let newPosition;
              // If the overlay is in the middle along the Y axis,
              // it means that it's either before or after.
              if (overlayY === 'center') {
                // Note that since this information is used for styling, we want to
                // resolve `start` and `end` to their real values, otherwise consumers
                // would have to remember to do it themselves on each consumption.
                if (this._dir && this._dir.value === 'rtl') {
                  newPosition = originX === 'end' ? 'left' : 'right';
                } else {
                  newPosition = originX === 'start' ? 'left' : 'right';
                }
              } else {
                newPosition = overlayY === 'bottom' && originY === 'top' ? 'above' : 'below';
              }
              if (newPosition !== this._currentPosition) {
                const overlayRef = this._overlayRef;
                if (overlayRef) {
                  const classPrefix = `${this._cssClassPrefix}-${PANEL_CLASS}-`;
                  overlayRef.removePanelClass(classPrefix + this._currentPosition);
                  overlayRef.addPanelClass(classPrefix + newPosition);
                }
                this._currentPosition = newPosition;
              }
            }
            /** Binds the pointer events to the tooltip trigger. */
            _setupPointerEnterEventsIfNeeded() {
              // Optimization: Defer hooking up events if there's no message or the tooltip is disabled.
              if (this._disabled || !this.message || !this._viewInitialized || this._passiveListeners.length) {
                return;
              }
              // The mouse events shouldn't be bound on mobile devices, because they can prevent the
              // first tap from firing its click event or can cause the tooltip to open for clicks.
              if (this._platformSupportsMouseEvents()) {
                this._passiveListeners.push(['mouseenter', event => {
                  this._setupPointerExitEventsIfNeeded();
                  let point = undefined;
                  if (event.x !== undefined && event.y !== undefined) {
                    point = event;
                  }
                  this.show(undefined, point);
                }]);
              } else if (this.touchGestures !== 'off') {
                this._disableNativeGesturesIfNecessary();
                this._passiveListeners.push(['touchstart', event => {
                  const touch = event.targetTouches?.[0];
                  const origin = touch ? {
                    x: touch.clientX,
                    y: touch.clientY
                  } : undefined;
                  // Note that it's important that we don't `preventDefault` here,
                  // because it can prevent click events from firing on the element.
                  this._setupPointerExitEventsIfNeeded();
                  clearTimeout(this._touchstartTimeout);
                  this._touchstartTimeout = setTimeout(() => this.show(undefined, origin), LONGPRESS_DELAY);
                }]);
              }
              this._addListeners(this._passiveListeners);
            }
            _setupPointerExitEventsIfNeeded() {
              if (this._pointerExitEventsInitialized) {
                return;
              }
              this._pointerExitEventsInitialized = true;
              const exitListeners = [];
              if (this._platformSupportsMouseEvents()) {
                exitListeners.push(['mouseleave', event => {
                  const newTarget = event.relatedTarget;
                  if (!newTarget || !this._overlayRef?.overlayElement.contains(newTarget)) {
                    this.hide();
                  }
                }], ['wheel', event => this._wheelListener(event)]);
              } else if (this.touchGestures !== 'off') {
                this._disableNativeGesturesIfNecessary();
                const touchendListener = () => {
                  clearTimeout(this._touchstartTimeout);
                  this.hide(this._defaultOptions.touchendHideDelay);
                };
                exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);
              }
              this._addListeners(exitListeners);
              this._passiveListeners.push(...exitListeners);
            }
            _addListeners(listeners) {
              listeners.forEach(([event, listener]) => {
                this._elementRef.nativeElement.addEventListener(event, listener, passiveListenerOptions);
              });
            }
            _platformSupportsMouseEvents() {
              return !this._platform.IOS && !this._platform.ANDROID;
            }
            /** Listener for the `wheel` event on the element. */
            _wheelListener(event) {
              if (this._isTooltipVisible()) {
                const elementUnderPointer = this._document.elementFromPoint(event.clientX, event.clientY);
                const element = this._elementRef.nativeElement;
                // On non-touch devices we depend on the `mouseleave` event to close the tooltip, but it
                // won't fire if the user scrolls away using the wheel without moving their cursor. We
                // work around it by finding the element under the user's cursor and closing the tooltip
                // if it's not the trigger.
                if (elementUnderPointer !== element && !element.contains(elementUnderPointer)) {
                  this.hide();
                }
              }
            }
            /** Disables the native browser gestures, based on how the tooltip has been configured. */
            _disableNativeGesturesIfNecessary() {
              const gestures = this.touchGestures;
              if (gestures !== 'off') {
                const element = this._elementRef.nativeElement;
                const style = element.style;
                // If gestures are set to `auto`, we don't disable text selection on inputs and
                // textareas, because it prevents the user from typing into them on iOS Safari.
                if (gestures === 'on' || element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA') {
                  style.userSelect = style.msUserSelect = style.webkitUserSelect = style.MozUserSelect = 'none';
                }
                // If we have `auto` gestures and the element uses native HTML dragging,
                // we don't set `-webkit-user-drag` because it prevents the native behavior.
                if (gestures === 'on' || !element.draggable) {
                  style.webkitUserDrag = 'none';
                }
                style.touchAction = 'none';
                style.webkitTapHighlightColor = 'transparent';
              }
            }
            static {
              this.ɵfac = function _MatTooltipBase_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _MatTooltipBase,
                inputs: {
                  position: ["matTooltipPosition", "position"],
                  positionAtOrigin: ["matTooltipPositionAtOrigin", "positionAtOrigin"],
                  disabled: ["matTooltipDisabled", "disabled"],
                  showDelay: ["matTooltipShowDelay", "showDelay"],
                  hideDelay: ["matTooltipHideDelay", "hideDelay"],
                  touchGestures: ["matTooltipTouchGestures", "touchGestures"],
                  message: ["matTooltip", "message"],
                  tooltipClass: ["matTooltipClass", "tooltipClass"]
                }
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatTooltipBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.Overlay
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__.ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.AriaDescriber
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.FocusMonitor
              }, {
                type: undefined
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality
              }, {
                type: undefined
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.DOCUMENT]
                }]
              }];
            }, {
              position: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipPosition']
              }],
              positionAtOrigin: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipPositionAtOrigin']
              }],
              disabled: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipDisabled']
              }],
              showDelay: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipShowDelay']
              }],
              hideDelay: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipHideDelay']
              }],
              touchGestures: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipTouchGestures']
              }],
              message: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltip']
              }],
              tooltipClass: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
                args: ['matTooltipClass']
              }]
            });
          })();
          /**
           * Directive that attaches a material design tooltip to the host element. Animates the showing and
           * hiding of a tooltip provided position (defaults to below the element).
           *
           * https://material.io/design/components/tooltips.html
           */
          class MatTooltip extends _MatTooltipBase {
            constructor(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) {
              super(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document);
              this._tooltipComponent = TooltipComponent;
              this._cssClassPrefix = 'mat-mdc';
              this._viewportMargin = MIN_VIEWPORT_TOOLTIP_THRESHOLD;
            }
            _addOffset(position) {
              const offset = UNBOUNDED_ANCHOR_GAP;
              const isLtr = !this._dir || this._dir.value == 'ltr';
              if (position.originY === 'top') {
                position.offsetY = -offset;
              } else if (position.originY === 'bottom') {
                position.offsetY = offset;
              } else if (position.originX === 'start') {
                position.offsetX = isLtr ? -offset : offset;
              } else if (position.originX === 'end') {
                position.offsetX = isLtr ? offset : -offset;
              }
              return position;
            }
            static {
              this.ɵfac = function MatTooltip_Factory(t) {
                return new (t || MatTooltip)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.Overlay), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__.ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.AriaDescriber), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.FocusMonitor), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_TOOLTIP_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_TOOLTIP_DEFAULT_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_12__.DOCUMENT));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: MatTooltip,
                selectors: [["", "matTooltip", ""]],
                hostAttrs: [1, "mat-mdc-tooltip-trigger"],
                hostVars: 2,
                hostBindings: function MatTooltip_HostBindings(rf, ctx) {
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-mdc-tooltip-disabled", ctx.disabled);
                  }
                },
                exportAs: ["matTooltip"],
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTooltip, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
              args: [{
                selector: '[matTooltip]',
                exportAs: 'matTooltip',
                host: {
                  'class': 'mat-mdc-tooltip-trigger',
                  '[class.mat-mdc-tooltip-disabled]': 'disabled'
                }
              }]
            }], function () {
              return [{
                type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.Overlay
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__.ScrollDispatcher
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewContainerRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
              }, {
                type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__.Platform
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.AriaDescriber
              }, {
                type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.FocusMonitor
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_TOOLTIP_SCROLL_STRATEGY]
                }]
              }, {
                type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_11__.Directionality,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [MAT_TOOLTIP_DEFAULT_OPTIONS]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          class _TooltipComponentBase {
            constructor(_changeDetectorRef, animationMode) {
              this._changeDetectorRef = _changeDetectorRef;
              /** Whether interactions on the page should close the tooltip */
              this._closeOnInteraction = false;
              /** Whether the tooltip is currently visible. */
              this._isVisible = false;
              /** Subject for notifying that the tooltip has been hidden from the view */
              this._onHide = new rxjs__WEBPACK_IMPORTED_MODULE_4__.Subject();
              this._animationsDisabled = animationMode === 'NoopAnimations';
            }
            /**
             * Shows the tooltip with an animation originating from the provided origin
             * @param delay Amount of milliseconds to the delay showing the tooltip.
             */
            show(delay) {
              // Cancel the delayed hide if it is scheduled
              if (this._hideTimeoutId != null) {
                clearTimeout(this._hideTimeoutId);
              }
              this._showTimeoutId = setTimeout(() => {
                this._toggleVisibility(true);
                this._showTimeoutId = undefined;
              }, delay);
            }
            /**
             * Begins the animation to hide the tooltip after the provided delay in ms.
             * @param delay Amount of milliseconds to delay showing the tooltip.
             */
            hide(delay) {
              // Cancel the delayed show if it is scheduled
              if (this._showTimeoutId != null) {
                clearTimeout(this._showTimeoutId);
              }
              this._hideTimeoutId = setTimeout(() => {
                this._toggleVisibility(false);
                this._hideTimeoutId = undefined;
              }, delay);
            }
            /** Returns an observable that notifies when the tooltip has been hidden from view. */
            afterHidden() {
              return this._onHide;
            }
            /** Whether the tooltip is being displayed. */
            isVisible() {
              return this._isVisible;
            }
            ngOnDestroy() {
              this._cancelPendingAnimations();
              this._onHide.complete();
              this._triggerElement = null;
            }
            /**
             * Interactions on the HTML body should close the tooltip immediately as defined in the
             * material design spec.
             * https://material.io/design/components/tooltips.html#behavior
             */
            _handleBodyInteraction() {
              if (this._closeOnInteraction) {
                this.hide(0);
              }
            }
            /**
             * Marks that the tooltip needs to be checked in the next change detection run.
             * Mainly used for rendering the initial text before positioning a tooltip, which
             * can be problematic in components with OnPush change detection.
             */
            _markForCheck() {
              this._changeDetectorRef.markForCheck();
            }
            _handleMouseLeave({
              relatedTarget
            }) {
              if (!relatedTarget || !this._triggerElement.contains(relatedTarget)) {
                if (this.isVisible()) {
                  this.hide(this._mouseLeaveHideDelay);
                } else {
                  this._finalizeAnimation(false);
                }
              }
            }
            /**
             * Callback for when the timeout in this.show() gets completed.
             * This method is only needed by the mdc-tooltip, and so it is only implemented
             * in the mdc-tooltip, not here.
             */
            _onShow() {}
            /** Event listener dispatched when an animation on the tooltip finishes. */
            _handleAnimationEnd({
              animationName
            }) {
              if (animationName === this._showAnimation || animationName === this._hideAnimation) {
                this._finalizeAnimation(animationName === this._showAnimation);
              }
            }
            /** Cancels any pending animation sequences. */
            _cancelPendingAnimations() {
              if (this._showTimeoutId != null) {
                clearTimeout(this._showTimeoutId);
              }
              if (this._hideTimeoutId != null) {
                clearTimeout(this._hideTimeoutId);
              }
              this._showTimeoutId = this._hideTimeoutId = undefined;
            }
            /** Handles the cleanup after an animation has finished. */
            _finalizeAnimation(toVisible) {
              if (toVisible) {
                this._closeOnInteraction = true;
              } else if (!this.isVisible()) {
                this._onHide.next();
              }
            }
            /** Toggles the visibility of the tooltip element. */
            _toggleVisibility(isVisible) {
              // We set the classes directly here ourselves so that toggling the tooltip state
              // isn't bound by change detection. This allows us to hide it even if the
              // view ref has been detached from the CD tree.
              const tooltip = this._tooltip.nativeElement;
              const showClass = this._showAnimation;
              const hideClass = this._hideAnimation;
              tooltip.classList.remove(isVisible ? hideClass : showClass);
              tooltip.classList.add(isVisible ? showClass : hideClass);
              this._isVisible = isVisible;
              // It's common for internal apps to disable animations using `* { animation: none !important }`
              // which can break the opening sequence. Try to detect such cases and work around them.
              if (isVisible && !this._animationsDisabled && typeof getComputedStyle === 'function') {
                const styles = getComputedStyle(tooltip);
                // Use `getPropertyValue` to avoid issues with property renaming.
                if (styles.getPropertyValue('animation-duration') === '0s' || styles.getPropertyValue('animation-name') === 'none') {
                  this._animationsDisabled = true;
                }
              }
              if (isVisible) {
                this._onShow();
              }
              if (this._animationsDisabled) {
                tooltip.classList.add('_mat-animation-noopable');
                this._finalizeAnimation(isVisible);
              }
            }
            static {
              this.ɵfac = function _TooltipComponentBase_Factory(t) {
                return new (t || _TooltipComponentBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
                type: _TooltipComponentBase
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_TooltipComponentBase, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, null);
          })();
          /**
           * Internal component that wraps the tooltip's content.
           * @docs-private
           */
          class TooltipComponent extends _TooltipComponentBase {
            constructor(changeDetectorRef, _elementRef, animationMode) {
              super(changeDetectorRef, animationMode);
              this._elementRef = _elementRef;
              /* Whether the tooltip text overflows to multiple lines */
              this._isMultiline = false;
              this._showAnimation = 'mat-mdc-tooltip-show';
              this._hideAnimation = 'mat-mdc-tooltip-hide';
            }
            _onShow() {
              this._isMultiline = this._isTooltipMultiline();
              this._markForCheck();
            }
            /** Whether the tooltip text has overflown to the next line */
            _isTooltipMultiline() {
              const rect = this._elementRef.nativeElement.getBoundingClientRect();
              return rect.height > MIN_HEIGHT && rect.width >= MAX_WIDTH;
            }
            static {
              this.ɵfac = function TooltipComponent_Factory(t) {
                return new (t || TooltipComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE, 8));
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: TooltipComponent,
                selectors: [["mat-tooltip-component"]],
                viewQuery: function TooltipComponent_Query(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 7);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._tooltip = _t.first);
                  }
                },
                hostAttrs: ["aria-hidden", "true"],
                hostVars: 2,
                hostBindings: function TooltipComponent_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseleave", function TooltipComponent_mouseleave_HostBindingHandler($event) {
                      return ctx._handleMouseLeave($event);
                    });
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("zoom", ctx.isVisible() ? 1 : null);
                  }
                },
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
                decls: 4,
                vars: 4,
                consts: [[1, "mdc-tooltip", "mdc-tooltip--shown", "mat-mdc-tooltip", 3, "ngClass", "animationend"], ["tooltip", ""], [1, "mdc-tooltip__surface", "mdc-tooltip__surface-animation"]],
                template: function TooltipComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0, 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("animationend", function TooltipComponent_Template_div_animationend_0_listener($event) {
                      return ctx._handleAnimationEnd($event);
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mdc-tooltip--multiline", ctx._isMultiline);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.tooltipClass);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.message);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass],
                styles: [".mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:\"\";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}"],
                encapsulation: 2,
                changeDetection: 0
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TooltipComponent, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Component,
              args: [{
                selector: 'mat-tooltip-component',
                encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewEncapsulation.None,
                changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectionStrategy.OnPush,
                host: {
                  // Forces the element to have a layout in IE and Edge. This fixes issues where the element
                  // won't be rendered if the animations are disabled or there is no web animations polyfill.
                  '[style.zoom]': 'isVisible() ? 1 : null',
                  '(mouseleave)': '_handleMouseLeave($event)',
                  'aria-hidden': 'true'
                },
                template: "<div\n  #tooltip\n  class=\"mdc-tooltip mdc-tooltip--shown mat-mdc-tooltip\"\n  [ngClass]=\"tooltipClass\"\n  (animationend)=\"_handleAnimationEnd($event)\"\n  [class.mdc-tooltip--multiline]=\"_isMultiline\">\n  <div class=\"mdc-tooltip__surface mdc-tooltip__surface-animation\">{{message}}</div>\n</div>\n",
                styles: [".mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\"\";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:\"\";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}"]
              }]
            }], function () {
              return [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__.ANIMATION_MODULE_TYPE]
                }]
              }];
            }, {
              _tooltip: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.ViewChild,
                args: ['tooltip', {
                  // Use a static query here since we interact directly with
                  // the DOM which can happen before `ngAfterViewInit`.
                  static: true
                }]
              }]
            });
          })();
          
          /**
           * Animations used by MatTooltip.
           * @docs-private
           */
          const matTooltipAnimations = {
            /** Animation that transitions a tooltip in and out. */
            tooltipState: (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.trigger)('state', [
            // TODO(crisbeto): these values are based on MDC's CSS.
            // We should be able to use their styles directly once we land #19432.
            (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.state)('initial, void, hidden', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.style)({
              opacity: 0,
              transform: 'scale(0.8)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.state)('visible', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.style)({
              transform: 'scale(1)'
            })), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.transition)('* => visible', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.animate)('150ms cubic-bezier(0, 0, 0.2, 1)')), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.transition)('* => hidden', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_13__.animate)('75ms cubic-bezier(0.4, 0, 1, 1)'))])
          };
          class MatTooltipModule {
            static {
              this.ɵfac = function MatTooltipModule_Factory(t) {
                return new (t || MatTooltipModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
                type: MatTooltipModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
                providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],
                imports: [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.A11yModule, _angular_common__WEBPACK_IMPORTED_MODULE_12__.CommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.OverlayModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_14__.MatCommonModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_14__.MatCommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__.CdkScrollableModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTooltipModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
              args: [{
                imports: [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_10__.A11yModule, _angular_common__WEBPACK_IMPORTED_MODULE_12__.CommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__.OverlayModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_14__.MatCommonModule],
                exports: [MatTooltip, TooltipComponent, _angular_material_core__WEBPACK_IMPORTED_MODULE_14__.MatCommonModule, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_9__.CdkScrollableModule],
                declarations: [MatTooltip, TooltipComponent],
                providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]
              }]
            }], null, null);
          })();
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 436:
          /*!******************************************************************************!*\
            !*** ./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs ***!
            \******************************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   BrowserModule: () => (/* binding */ BrowserModule),
          /* harmony export */   By: () => (/* binding */ By),
          /* harmony export */   DomSanitizer: () => (/* binding */ DomSanitizer),
          /* harmony export */   EVENT_MANAGER_PLUGINS: () => (/* binding */ EVENT_MANAGER_PLUGINS),
          /* harmony export */   EventManager: () => (/* binding */ EventManager),
          /* harmony export */   HAMMER_GESTURE_CONFIG: () => (/* binding */ HAMMER_GESTURE_CONFIG),
          /* harmony export */   HAMMER_LOADER: () => (/* binding */ HAMMER_LOADER),
          /* harmony export */   HammerGestureConfig: () => (/* binding */ HammerGestureConfig),
          /* harmony export */   HammerModule: () => (/* binding */ HammerModule),
          /* harmony export */   Meta: () => (/* binding */ Meta),
          /* harmony export */   REMOVE_STYLES_ON_COMPONENT_DESTROY: () => (/* binding */ REMOVE_STYLES_ON_COMPONENT_DESTROY),
          /* harmony export */   Title: () => (/* binding */ Title),
          /* harmony export */   TransferState: () => (/* binding */ TransferState),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   bootstrapApplication: () => (/* binding */ bootstrapApplication),
          /* harmony export */   createApplication: () => (/* binding */ createApplication),
          /* harmony export */   disableDebugTools: () => (/* binding */ disableDebugTools),
          /* harmony export */   enableDebugTools: () => (/* binding */ enableDebugTools),
          /* harmony export */   makeStateKey: () => (/* binding */ makeStateKey),
          /* harmony export */   platformBrowser: () => (/* binding */ platformBrowser),
          /* harmony export */   provideClientHydration: () => (/* binding */ provideClientHydration),
          /* harmony export */   provideProtractorTestingSupport: () => (/* binding */ provideProtractorTestingSupport),
          /* harmony export */   withNoDomReuse: () => (/* binding */ withNoDomReuse),
          /* harmony export */   withNoHttpTransferCache: () => (/* binding */ withNoHttpTransferCache),
          /* harmony export */   "ɵBrowserDomAdapter": () => (/* binding */ BrowserDomAdapter),
          /* harmony export */   "ɵBrowserGetTestability": () => (/* binding */ BrowserGetTestability),
          /* harmony export */   "ɵDomEventsPlugin": () => (/* binding */ DomEventsPlugin),
          /* harmony export */   "ɵDomRendererFactory2": () => (/* binding */ DomRendererFactory2),
          /* harmony export */   "ɵDomSanitizerImpl": () => (/* binding */ DomSanitizerImpl),
          /* harmony export */   "ɵHammerGesturesPlugin": () => (/* binding */ HammerGesturesPlugin),
          /* harmony export */   "ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS": () => (/* binding */ INTERNAL_BROWSER_PLATFORM_PROVIDERS),
          /* harmony export */   "ɵKeyEventsPlugin": () => (/* binding */ KeyEventsPlugin),
          /* harmony export */   "ɵSharedStylesHost": () => (/* binding */ SharedStylesHost),
          /* harmony export */   "ɵgetDOM": () => (/* reexport safe */ _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"]),
          /* harmony export */   "ɵinitDomAdapter": () => (/* binding */ initDomAdapter)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 6443);
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          
          
          
          
          /**
           * Provides DOM operations in any browser environment.
           *
           * @security Tread carefully! Interacting with the DOM directly is dangerous and
           * can introduce XSS risks.
           */
          class GenericBrowserDomAdapter extends _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵDomAdapter"] {
            constructor() {
              super(...arguments);
              this.supportsDOMEvents = true;
            }
          }
          
          /**
           * A `DomAdapter` powered by full browser DOM APIs.
           *
           * @security Tread carefully! Interacting with the DOM directly is dangerous and
           * can introduce XSS risks.
           */
          /* tslint:disable:requireParameterType no-console */
          class BrowserDomAdapter extends GenericBrowserDomAdapter {
            static makeCurrent() {
              (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵsetRootDomAdapter"])(new BrowserDomAdapter());
            }
            onAndCancel(el, evt, listener) {
              el.addEventListener(evt, listener);
              return () => {
                el.removeEventListener(evt, listener);
              };
            }
            dispatchEvent(el, evt) {
              el.dispatchEvent(evt);
            }
            remove(node) {
              if (node.parentNode) {
                node.parentNode.removeChild(node);
              }
            }
            createElement(tagName, doc) {
              doc = doc || this.getDefaultDocument();
              return doc.createElement(tagName);
            }
            createHtmlDocument() {
              return document.implementation.createHTMLDocument('fakeTitle');
            }
            getDefaultDocument() {
              return document;
            }
            isElementNode(node) {
              return node.nodeType === Node.ELEMENT_NODE;
            }
            isShadowRoot(node) {
              return node instanceof DocumentFragment;
            }
            /** @deprecated No longer being used in Ivy code. To be removed in version 14. */
            getGlobalEventTarget(doc, target) {
              if (target === 'window') {
                return window;
              }
              if (target === 'document') {
                return doc;
              }
              if (target === 'body') {
                return doc.body;
              }
              return null;
            }
            getBaseHref(doc) {
              const href = getBaseElementHref();
              return href == null ? null : relativePath(href);
            }
            resetBaseElement() {
              baseElement = null;
            }
            getUserAgent() {
              return window.navigator.userAgent;
            }
            getCookie(name) {
              return (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵparseCookieValue"])(document.cookie, name);
            }
          }
          let baseElement = null;
          function getBaseElementHref() {
            baseElement = baseElement || document.querySelector('base');
            return baseElement ? baseElement.getAttribute('href') : null;
          }
          // based on urlUtils.js in AngularJS 1
          let urlParsingNode;
          function relativePath(url) {
            urlParsingNode = urlParsingNode || document.createElement('a');
            urlParsingNode.setAttribute('href', url);
            const pathName = urlParsingNode.pathname;
            return pathName.charAt(0) === '/' ? pathName : `/${pathName}`;
          }
          class BrowserGetTestability {
            addToWindow(registry) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAngularTestability'] = (elem, findInAncestors = true) => {
                const testability = registry.findTestabilityInTree(elem, findInAncestors);
                if (testability == null) {
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Could not find testability for element.');
                }
                return testability;
              };
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularRootElements'] = () => registry.getAllRootElements();
              const whenAllStable = callback => {
                const testabilities = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities']();
                let count = testabilities.length;
                let didWork = false;
                const decrement = function (didWork_) {
                  didWork = didWork || didWork_;
                  count--;
                  if (count == 0) {
                    callback(didWork);
                  }
                };
                testabilities.forEach(testability => {
                  testability.whenStable(decrement);
                });
              };
              if (!_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers']) {
                _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'] = [];
              }
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'].push(whenAllStable);
            }
            findTestabilityInTree(registry, elem, findInAncestors) {
              if (elem == null) {
                return null;
              }
              const t = registry.getTestability(elem);
              if (t != null) {
                return t;
              } else if (!findInAncestors) {
                return null;
              }
              if ((0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isShadowRoot(elem)) {
                return this.findTestabilityInTree(registry, elem.host, true);
              }
              return this.findTestabilityInTree(registry, elem.parentElement, true);
            }
          }
          
          /**
           * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.
           */
          class BrowserXhr {
            build() {
              return new XMLHttpRequest();
            }
            static {
              this.ɵfac = function BrowserXhr_Factory(t) {
                return new (t || BrowserXhr)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: BrowserXhr,
                factory: BrowserXhr.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserXhr, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], null, null);
          })();
          
          /**
           * The injection token for the event-manager plug-in service.
           *
           * @publicApi
           */
          const EVENT_MANAGER_PLUGINS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('EventManagerPlugins');
          /**
           * An injectable service that provides event management for Angular
           * through a browser plug-in.
           *
           * @publicApi
           */
          class EventManager {
            /**
             * Initializes an instance of the event-manager service.
             */
            constructor(plugins, _zone) {
              this._zone = _zone;
              this._eventNameToPlugin = new Map();
              plugins.forEach(plugin => {
                plugin.manager = this;
              });
              this._plugins = plugins.slice().reverse();
            }
            /**
             * Registers a handler for a specific element and event.
             *
             * @param element The HTML element to receive event notifications.
             * @param eventName The name of the event to listen for.
             * @param handler A function to call when the notification occurs. Receives the
             * event object as an argument.
             * @returns  A callback function that can be used to remove the handler.
             */
            addEventListener(element, eventName, handler) {
              const plugin = this._findPluginFor(eventName);
              return plugin.addEventListener(element, eventName, handler);
            }
            /**
             * Retrieves the compilation zone in which event listeners are registered.
             */
            getZone() {
              return this._zone;
            }
            /** @internal */
            _findPluginFor(eventName) {
              let plugin = this._eventNameToPlugin.get(eventName);
              if (plugin) {
                return plugin;
              }
              const plugins = this._plugins;
              plugin = plugins.find(plugin => plugin.supports(eventName));
              if (!plugin) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `No event manager plugin found for event ${eventName}`);
              }
              this._eventNameToPlugin.set(eventName, plugin);
              return plugin;
            }
            static {
              this.ɵfac = function EventManager_Factory(t) {
                return new (t || EventManager)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EVENT_MANAGER_PLUGINS), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: EventManager,
                factory: EventManager.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventManager, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [EVENT_MANAGER_PLUGINS]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone
              }];
            }, null);
          })();
          class EventManagerPlugin {
            constructor(_doc) {
              this._doc = _doc;
            }
          }
          
          /** The style elements attribute name used to set value of `APP_ID` token. */
          const APP_ID_ATTRIBUTE_NAME = 'ng-app-id';
          class SharedStylesHost {
            constructor(doc, appId, nonce, platformId = {}) {
              this.doc = doc;
              this.appId = appId;
              this.nonce = nonce;
              this.platformId = platformId;
              // Maps all registered host nodes to a list of style nodes that have been added to the host node.
              this.styleRef = new Map();
              this.hostNodes = new Set();
              this.styleNodesInDOM = this.collectServerRenderedStyles();
              this.platformIsServer = (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__.isPlatformServer)(platformId);
              this.resetHostNodes();
            }
            addStyles(styles) {
              for (const style of styles) {
                const usageCount = this.changeUsageCount(style, 1);
                if (usageCount === 1) {
                  this.onStyleAdded(style);
                }
              }
            }
            removeStyles(styles) {
              for (const style of styles) {
                const usageCount = this.changeUsageCount(style, -1);
                if (usageCount <= 0) {
                  this.onStyleRemoved(style);
                }
              }
            }
            ngOnDestroy() {
              const styleNodesInDOM = this.styleNodesInDOM;
              if (styleNodesInDOM) {
                styleNodesInDOM.forEach(node => node.remove());
                styleNodesInDOM.clear();
              }
              for (const style of this.getAllStyles()) {
                this.onStyleRemoved(style);
              }
              this.resetHostNodes();
            }
            addHost(hostNode) {
              this.hostNodes.add(hostNode);
              for (const style of this.getAllStyles()) {
                this.addStyleToHost(hostNode, style);
              }
            }
            removeHost(hostNode) {
              this.hostNodes.delete(hostNode);
            }
            getAllStyles() {
              return this.styleRef.keys();
            }
            onStyleAdded(style) {
              for (const host of this.hostNodes) {
                this.addStyleToHost(host, style);
              }
            }
            onStyleRemoved(style) {
              const styleRef = this.styleRef;
              styleRef.get(style)?.elements?.forEach(node => node.remove());
              styleRef.delete(style);
            }
            collectServerRenderedStyles() {
              const styles = this.doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}="${this.appId}"]`);
              if (styles?.length) {
                const styleMap = new Map();
                styles.forEach(style => {
                  if (style.textContent != null) {
                    styleMap.set(style.textContent, style);
                  }
                });
                return styleMap;
              }
              return null;
            }
            changeUsageCount(style, delta) {
              const map = this.styleRef;
              if (map.has(style)) {
                const styleRefValue = map.get(style);
                styleRefValue.usage += delta;
                return styleRefValue.usage;
              }
              map.set(style, {
                usage: delta,
                elements: []
              });
              return delta;
            }
            getStyleElement(host, style) {
              const styleNodesInDOM = this.styleNodesInDOM;
              const styleEl = styleNodesInDOM?.get(style);
              if (styleEl?.parentNode === host) {
                // `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.
                styleNodesInDOM.delete(style);
                styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  // This attribute is solely used for debugging purposes.
                  styleEl.setAttribute('ng-style-reused', '');
                }
                return styleEl;
              } else {
                const styleEl = this.doc.createElement('style');
                if (this.nonce) {
                  styleEl.setAttribute('nonce', this.nonce);
                }
                styleEl.textContent = style;
                if (this.platformIsServer) {
                  styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);
                }
                return styleEl;
              }
            }
            addStyleToHost(host, style) {
              const styleEl = this.getStyleElement(host, style);
              host.appendChild(styleEl);
              const styleRef = this.styleRef;
              const styleElRef = styleRef.get(style)?.elements;
              if (styleElRef) {
                styleElRef.push(styleEl);
              } else {
                styleRef.set(style, {
                  elements: [styleEl],
                  usage: 1
                });
              }
            }
            resetHostNodes() {
              const hostNodes = this.hostNodes;
              hostNodes.clear();
              // Re-add the head element back since this is the default host.
              hostNodes.add(this.doc.head);
            }
            static {
              this.ɵfac = function SharedStylesHost_Factory(t) {
                return new (t || SharedStylesHost)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_ID), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.CSP_NONCE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: SharedStylesHost,
                factory: SharedStylesHost.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](SharedStylesHost, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: Document,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_ID]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.CSP_NONCE]
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID]
                }]
              }];
            }, null);
          })();
          const NAMESPACE_URIS = {
            'svg': 'http://www.w3.org/2000/svg',
            'xhtml': 'http://www.w3.org/1999/xhtml',
            'xlink': 'http://www.w3.org/1999/xlink',
            'xml': 'http://www.w3.org/XML/1998/namespace',
            'xmlns': 'http://www.w3.org/2000/xmlns/',
            'math': 'http://www.w3.org/1998/MathML/'
          };
          const COMPONENT_REGEX = /%COMP%/g;
          const COMPONENT_VARIABLE = '%COMP%';
          const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
          const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
          /**
           * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.
           */
          const REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = false;
          /**
           * A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
           * of destroyed components should be removed from DOM.
           *
           * By default, the value is set to `false`. This will be changed in the next major version.
           * @publicApi
           */
          const REMOVE_STYLES_ON_COMPONENT_DESTROY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('RemoveStylesOnCompDestroy', {
            providedIn: 'root',
            factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT
          });
          function shimContentAttribute(componentShortId) {
            return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);
          }
          function shimHostAttribute(componentShortId) {
            return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
          }
          function shimStylesContent(compId, styles) {
            return styles.map(s => s.replace(COMPONENT_REGEX, compId));
          }
          class DomRendererFactory2 {
            constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null) {
              this.eventManager = eventManager;
              this.sharedStylesHost = sharedStylesHost;
              this.appId = appId;
              this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;
              this.doc = doc;
              this.platformId = platformId;
              this.ngZone = ngZone;
              this.nonce = nonce;
              this.rendererByCompId = new Map();
              this.platformIsServer = (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__.isPlatformServer)(platformId);
              this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);
            }
            createRenderer(element, type) {
              if (!element || !type) {
                return this.defaultRenderer;
              }
              if (this.platformIsServer && type.encapsulation === _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.ShadowDom) {
                // Domino does not support shadow DOM.
                type = {
                  ...type,
                  encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.Emulated
                };
              }
              const renderer = this.getOrCreateRenderer(element, type);
              // Renderers have different logic due to different encapsulation behaviours.
              // Ex: for emulated, an attribute is added to the element.
              if (renderer instanceof EmulatedEncapsulationDomRenderer2) {
                renderer.applyToHost(element);
              } else if (renderer instanceof NoneEncapsulationDomRenderer) {
                renderer.applyStyles();
              }
              return renderer;
            }
            getOrCreateRenderer(element, type) {
              const rendererByCompId = this.rendererByCompId;
              let renderer = rendererByCompId.get(type.id);
              if (!renderer) {
                const doc = this.doc;
                const ngZone = this.ngZone;
                const eventManager = this.eventManager;
                const sharedStylesHost = this.sharedStylesHost;
                const removeStylesOnCompDestroy = this.removeStylesOnCompDestroy;
                const platformIsServer = this.platformIsServer;
                switch (type.encapsulation) {
                  case _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.Emulated:
                    renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);
                    break;
                  case _angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewEncapsulation.ShadowDom:
                    return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, doc, ngZone, this.nonce, platformIsServer);
                  default:
                    renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);
                    break;
                }
                rendererByCompId.set(type.id, renderer);
              }
              return renderer;
            }
            ngOnDestroy() {
              this.rendererByCompId.clear();
            }
            static {
              this.ɵfac = function DomRendererFactory2_Factory(t) {
                return new (t || DomRendererFactory2)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EventManager), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](SharedStylesHost), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_ID), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](REMOVE_STYLES_ON_COMPONENT_DESTROY), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.CSP_NONCE));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DomRendererFactory2,
                factory: DomRendererFactory2.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomRendererFactory2, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: EventManager
              }, {
                type: SharedStylesHost
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_ID]
                }]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]
                }]
              }, {
                type: Document,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }, {
                type: Object,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.CSP_NONCE]
                }]
              }];
            }, null);
          })();
          class DefaultDomRenderer2 {
            constructor(eventManager, doc, ngZone, platformIsServer) {
              this.eventManager = eventManager;
              this.doc = doc;
              this.ngZone = ngZone;
              this.platformIsServer = platformIsServer;
              this.data = Object.create(null);
              this.destroyNode = null;
            }
            destroy() {}
            createElement(name, namespace) {
              if (namespace) {
                // TODO: `|| namespace` was added in
                // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to
                // support how Ivy passed around the namespace URI rather than short name at the time. It did
                // not, however extend the support to other parts of the system (setAttribute, setAttribute,
                // and the ServerRenderer). We should decide what exactly the semantics for dealing with
                // namespaces should be and make it consistent.
                // Related issues:
                // https://github.com/angular/angular/issues/44028
                // https://github.com/angular/angular/issues/44883
                return this.doc.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);
              }
              return this.doc.createElement(name);
            }
            createComment(value) {
              return this.doc.createComment(value);
            }
            createText(value) {
              return this.doc.createTextNode(value);
            }
            appendChild(parent, newChild) {
              const targetParent = isTemplateNode(parent) ? parent.content : parent;
              targetParent.appendChild(newChild);
            }
            insertBefore(parent, newChild, refChild) {
              if (parent) {
                const targetParent = isTemplateNode(parent) ? parent.content : parent;
                targetParent.insertBefore(newChild, refChild);
              }
            }
            removeChild(parent, oldChild) {
              if (parent) {
                parent.removeChild(oldChild);
              }
            }
            selectRootElement(selectorOrNode, preserveContent) {
              let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;
              if (!el) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The selector "${selectorOrNode}" did not match any elements`);
              }
              if (!preserveContent) {
                el.textContent = '';
              }
              return el;
            }
            parentNode(node) {
              return node.parentNode;
            }
            nextSibling(node) {
              return node.nextSibling;
            }
            setAttribute(el, name, value, namespace) {
              if (namespace) {
                name = namespace + ':' + name;
                const namespaceUri = NAMESPACE_URIS[namespace];
                if (namespaceUri) {
                  el.setAttributeNS(namespaceUri, name, value);
                } else {
                  el.setAttribute(name, value);
                }
              } else {
                el.setAttribute(name, value);
              }
            }
            removeAttribute(el, name, namespace) {
              if (namespace) {
                const namespaceUri = NAMESPACE_URIS[namespace];
                if (namespaceUri) {
                  el.removeAttributeNS(namespaceUri, name);
                } else {
                  el.removeAttribute(`${namespace}:${name}`);
                }
              } else {
                el.removeAttribute(name);
              }
            }
            addClass(el, name) {
              el.classList.add(name);
            }
            removeClass(el, name) {
              el.classList.remove(name);
            }
            setStyle(el, style, value, flags) {
              if (flags & (_angular_core__WEBPACK_IMPORTED_MODULE_1__.RendererStyleFlags2.DashCase | _angular_core__WEBPACK_IMPORTED_MODULE_1__.RendererStyleFlags2.Important)) {
                el.style.setProperty(style, value, flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__.RendererStyleFlags2.Important ? 'important' : '');
              } else {
                el.style[style] = value;
              }
            }
            removeStyle(el, style, flags) {
              if (flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__.RendererStyleFlags2.DashCase) {
                // removeProperty has no effect when used on camelCased properties.
                el.style.removeProperty(style);
              } else {
                el.style[style] = '';
              }
            }
            setProperty(el, name, value) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && checkNoSyntheticProp(name, 'property');
              el[name] = value;
            }
            setValue(node, value) {
              node.nodeValue = value;
            }
            listen(target, event, callback) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && checkNoSyntheticProp(event, 'listener');
              if (typeof target === 'string') {
                target = (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().getGlobalEventTarget(this.doc, target);
                if (!target) {
                  throw new Error(`Unsupported event target ${target} for event ${event}`);
                }
              }
              return this.eventManager.addEventListener(target, event, this.decoratePreventDefault(callback));
            }
            decoratePreventDefault(eventHandler) {
              // `DebugNode.triggerEventHandler` needs to know if the listener was created with
              // decoratePreventDefault or is a listener added outside the Angular context so it can handle
              // the two differently. In the first case, the special '__ngUnwrap__' token is passed to the
              // unwrap the listener (see below).
              return event => {
                // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function
                // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The
                // debug_node can inspect the listener toString contents for the existence of this special
                // token. Because the token is a string literal, it is ensured to not be modified by compiled
                // code.
                if (event === '__ngUnwrap__') {
                  return eventHandler;
                }
                // Run the event handler inside the ngZone because event handlers are not patched
                // by Zone on the server. This is required only for tests.
                const allowDefaultBehavior = this.platformIsServer ? this.ngZone.runGuarded(() => eventHandler(event)) : eventHandler(event);
                if (allowDefaultBehavior === false) {
                  event.preventDefault();
                }
                return undefined;
              };
            }
          }
          const AT_CHARCODE = (() => '@'.charCodeAt(0))();
          function checkNoSyntheticProp(name, nameKind) {
            if (name.charCodeAt(0) === AT_CHARCODE) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:
            - Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.
            - There is corresponding configuration for the animation named \`${name}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`);
            }
          }
          function isTemplateNode(node) {
            return node.tagName === 'TEMPLATE' && node.content !== undefined;
          }
          class ShadowDomRenderer extends DefaultDomRenderer2 {
            constructor(eventManager, sharedStylesHost, hostEl, component, doc, ngZone, nonce, platformIsServer) {
              super(eventManager, doc, ngZone, platformIsServer);
              this.sharedStylesHost = sharedStylesHost;
              this.hostEl = hostEl;
              this.shadowRoot = hostEl.attachShadow({
                mode: 'open'
              });
              this.sharedStylesHost.addHost(this.shadowRoot);
              const styles = shimStylesContent(component.id, component.styles);
              for (const style of styles) {
                const styleEl = document.createElement('style');
                if (nonce) {
                  styleEl.setAttribute('nonce', nonce);
                }
                styleEl.textContent = style;
                this.shadowRoot.appendChild(styleEl);
              }
            }
            nodeOrShadowRoot(node) {
              return node === this.hostEl ? this.shadowRoot : node;
            }
            appendChild(parent, newChild) {
              return super.appendChild(this.nodeOrShadowRoot(parent), newChild);
            }
            insertBefore(parent, newChild, refChild) {
              return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);
            }
            removeChild(parent, oldChild) {
              return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);
            }
            parentNode(node) {
              return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));
            }
            destroy() {
              this.sharedStylesHost.removeHost(this.shadowRoot);
            }
          }
          class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {
            constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId) {
              super(eventManager, doc, ngZone, platformIsServer);
              this.sharedStylesHost = sharedStylesHost;
              this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;
              this.styles = compId ? shimStylesContent(compId, component.styles) : component.styles;
            }
            applyStyles() {
              this.sharedStylesHost.addStyles(this.styles);
            }
            destroy() {
              if (!this.removeStylesOnCompDestroy) {
                return;
              }
              this.sharedStylesHost.removeStyles(this.styles);
            }
          }
          class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {
            constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer) {
              const compId = appId + '-' + component.id;
              super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId);
              this.contentAttr = shimContentAttribute(compId);
              this.hostAttr = shimHostAttribute(compId);
            }
            applyToHost(element) {
              this.applyStyles();
              this.setAttribute(element, this.hostAttr, '');
            }
            createElement(parent, name) {
              const el = super.createElement(parent, name);
              super.setAttribute(el, this.contentAttr, '');
              return el;
            }
          }
          class DomEventsPlugin extends EventManagerPlugin {
            constructor(doc) {
              super(doc);
            }
            // This plugin should come last in the list of plugins, because it accepts all
            // events.
            supports(eventName) {
              return true;
            }
            addEventListener(element, eventName, handler) {
              element.addEventListener(eventName, handler, false);
              return () => this.removeEventListener(element, eventName, handler);
            }
            removeEventListener(target, eventName, callback) {
              return target.removeEventListener(eventName, callback);
            }
            static {
              this.ɵfac = function DomEventsPlugin_Factory(t) {
                return new (t || DomEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DomEventsPlugin,
                factory: DomEventsPlugin.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomEventsPlugin, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Defines supported modifiers for key events.
           */
          const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];
          // The following values are here for cross-browser compatibility and to match the W3C standard
          // cf https://www.w3.org/TR/DOM-Level-3-Events-key/
          const _keyMap = {
            '\b': 'Backspace',
            '\t': 'Tab',
            '\x7F': 'Delete',
            '\x1B': 'Escape',
            'Del': 'Delete',
            'Esc': 'Escape',
            'Left': 'ArrowLeft',
            'Right': 'ArrowRight',
            'Up': 'ArrowUp',
            'Down': 'ArrowDown',
            'Menu': 'ContextMenu',
            'Scroll': 'ScrollLock',
            'Win': 'OS'
          };
          /**
           * Retrieves modifiers from key-event objects.
           */
          const MODIFIER_KEY_GETTERS = {
            'alt': event => event.altKey,
            'control': event => event.ctrlKey,
            'meta': event => event.metaKey,
            'shift': event => event.shiftKey
          };
          /**
           * @publicApi
           * A browser plug-in that provides support for handling of key events in Angular.
           */
          class KeyEventsPlugin extends EventManagerPlugin {
            /**
             * Initializes an instance of the browser plug-in.
             * @param doc The document in which key events will be detected.
             */
            constructor(doc) {
              super(doc);
            }
            /**
             * Reports whether a named key event is supported.
             * @param eventName The event name to query.
             * @return True if the named key event is supported.
             */
            supports(eventName) {
              return KeyEventsPlugin.parseEventName(eventName) != null;
            }
            /**
             * Registers a handler for a specific element and key event.
             * @param element The HTML element to receive event notifications.
             * @param eventName The name of the key event to listen for.
             * @param handler A function to call when the notification occurs. Receives the
             * event object as an argument.
             * @returns The key event that was registered.
             */
            addEventListener(element, eventName, handler) {
              const parsedEvent = KeyEventsPlugin.parseEventName(eventName);
              const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
              return this.manager.getZone().runOutsideAngular(() => {
                return (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
              });
            }
            /**
             * Parses the user provided full keyboard event definition and normalizes it for
             * later internal use. It ensures the string is all lowercase, converts special
             * characters to a standard spelling, and orders all the values consistently.
             *
             * @param eventName The name of the key event to listen for.
             * @returns an object with the full, normalized string, and the dom event name
             * or null in the case when the event doesn't match a keyboard event.
             */
            static parseEventName(eventName) {
              const parts = eventName.toLowerCase().split('.');
              const domEventName = parts.shift();
              if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {
                return null;
              }
              const key = KeyEventsPlugin._normalizeKey(parts.pop());
              let fullKey = '';
              let codeIX = parts.indexOf('code');
              if (codeIX > -1) {
                parts.splice(codeIX, 1);
                fullKey = 'code.';
              }
              MODIFIER_KEYS.forEach(modifierName => {
                const index = parts.indexOf(modifierName);
                if (index > -1) {
                  parts.splice(index, 1);
                  fullKey += modifierName + '.';
                }
              });
              fullKey += key;
              if (parts.length != 0 || key.length === 0) {
                // returning null instead of throwing to let another plugin process the event
                return null;
              }
              // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.
              //       The code must remain in the `result['domEventName']` form.
              // return {domEventName, fullKey};
              const result = {};
              result['domEventName'] = domEventName;
              result['fullKey'] = fullKey;
              return result;
            }
            /**
             * Determines whether the actual keys pressed match the configured key code string.
             * The `fullKeyCode` event is normalized in the `parseEventName` method when the
             * event is attached to the DOM during the `addEventListener` call. This is unseen
             * by the end user and is normalized for internal consistency and parsing.
             *
             * @param event The keyboard event.
             * @param fullKeyCode The normalized user defined expected key event string
             * @returns boolean.
             */
            static matchEventFullKeyCode(event, fullKeyCode) {
              let keycode = _keyMap[event.key] || event.key;
              let key = '';
              if (fullKeyCode.indexOf('code.') > -1) {
                keycode = event.code;
                key = 'code.';
              }
              // the keycode could be unidentified so we have to check here
              if (keycode == null || !keycode) return false;
              keycode = keycode.toLowerCase();
              if (keycode === ' ') {
                keycode = 'space'; // for readability
              } else if (keycode === '.') {
                keycode = 'dot'; // because '.' is used as a separator in event names
              }
          
              MODIFIER_KEYS.forEach(modifierName => {
                if (modifierName !== keycode) {
                  const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];
                  if (modifierGetter(event)) {
                    key += modifierName + '.';
                  }
                }
              });
              key += keycode;
              return key === fullKeyCode;
            }
            /**
             * Configures a handler callback for a key event.
             * @param fullKey The event name that combines all simultaneous keystrokes.
             * @param handler The function that responds to the key event.
             * @param zone The zone in which the event occurred.
             * @returns A callback function.
             */
            static eventCallback(fullKey, handler, zone) {
              return event => {
                if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {
                  zone.runGuarded(() => handler(event));
                }
              };
            }
            /** @internal */
            static _normalizeKey(keyName) {
              // TODO: switch to a Map if the mapping grows too much
              switch (keyName) {
                case 'esc':
                  return 'escape';
                default:
                  return keyName;
              }
            }
            static {
              this.ɵfac = function KeyEventsPlugin_Factory(t) {
                return new (t || KeyEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: KeyEventsPlugin,
                factory: KeyEventsPlugin.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](KeyEventsPlugin, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Bootstraps an instance of an Angular application and renders a standalone component as the
           * application's root component. More information about standalone components can be found in [this
           * guide](guide/standalone-components).
           *
           * @usageNotes
           * The root component passed into this function *must* be a standalone one (should have the
           * `standalone: true` flag in the `@Component` decorator config).
           *
           * ```typescript
           * @Component({
           *   standalone: true,
           *   template: 'Hello world!'
           * })
           * class RootComponent {}
           *
           * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);
           * ```
           *
           * You can add the list of providers that should be available in the application injector by
           * specifying the `providers` field in an object passed as the second argument:
           *
           * ```typescript
           * await bootstrapApplication(RootComponent, {
           *   providers: [
           *     {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}
           *   ]
           * });
           * ```
           *
           * The `importProvidersFrom` helper method can be used to collect all providers from any
           * existing NgModule (and transitively from all NgModules that it imports):
           *
           * ```typescript
           * await bootstrapApplication(RootComponent, {
           *   providers: [
           *     importProvidersFrom(SomeNgModule)
           *   ]
           * });
           * ```
           *
           * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by
           * default. You can add [Testability](api/core/Testability) by getting the list of necessary
           * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`
           * array, for example:
           *
           * ```typescript
           * import {provideProtractorTestingSupport} from '@angular/platform-browser';
           *
           * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});
           * ```
           *
           * @param rootComponent A reference to a standalone component that should be rendered.
           * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for
           *     additional info.
           * @returns A promise that returns an `ApplicationRef` instance once resolved.
           *
           * @publicApi
           */
          function bootstrapApplication(rootComponent, options) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵinternalCreateApplication"])({
              rootComponent,
              ...createProvidersConfig(options)
            });
          }
          /**
           * Create an instance of an Angular application without bootstrapping any components. This is useful
           * for the situation where one wants to decouple application environment creation (a platform and
           * associated injectors) from rendering components on a screen. Components can be subsequently
           * bootstrapped on the returned `ApplicationRef`.
           *
           * @param options Extra configuration for the application environment, see `ApplicationConfig` for
           *     additional info.
           * @returns A promise that returns an `ApplicationRef` instance once resolved.
           *
           * @publicApi
           */
          function createApplication(options) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵinternalCreateApplication"])(createProvidersConfig(options));
          }
          function createProvidersConfig(options) {
            return {
              appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],
              platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS
            };
          }
          /**
           * Returns a set of providers required to setup [Testability](api/core/Testability) for an
           * application bootstrapped using the `bootstrapApplication` function. The set of providers is
           * needed to support testing an application with Protractor (which relies on the Testability APIs
           * to be present).
           *
           * @returns An array of providers required to setup Testability for an application and make it
           *     available for testing using Protractor.
           *
           * @publicApi
           */
          function provideProtractorTestingSupport() {
            // Return a copy to prevent changes to the original array in case any in-place
            // alterations are performed to the `provideProtractorTestingSupport` call results in app
            // code.
            return [...TESTABILITY_PROVIDERS];
          }
          function initDomAdapter() {
            BrowserDomAdapter.makeCurrent();
          }
          function errorHandler() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_1__.ErrorHandler();
          }
          function _document() {
            // Tell ivy about the global document
            (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetDocument"])(document);
            return document;
          }
          const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [{
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID,
            useValue: _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵPLATFORM_BROWSER_ID"]
          }, {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_INITIALIZER,
            useValue: initDomAdapter,
            multi: true
          }, {
            provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT,
            useFactory: _document,
            deps: []
          }];
          /**
           * A factory function that returns a `PlatformRef` instance associated with browser service
           * providers.
           *
           * @publicApi
           */
          const platformBrowser = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.createPlatformFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
          /**
           * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.
           * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the
           * `BrowserModule` presence itself, since the standalone-based bootstrap just imports
           * `BrowserModule` providers without referencing the module itself.
           */
          const BROWSER_MODULE_PROVIDERS_MARKER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');
          const TESTABILITY_PROVIDERS = [{
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵTESTABILITY_GETTER"],
            useClass: BrowserGetTestability,
            deps: []
          }, {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵTESTABILITY"],
            useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Testability,
            deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, _angular_core__WEBPACK_IMPORTED_MODULE_1__.TestabilityRegistry, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵTESTABILITY_GETTER"]]
          }, {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Testability,
            useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Testability,
            deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, _angular_core__WEBPACK_IMPORTED_MODULE_1__.TestabilityRegistry, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵTESTABILITY_GETTER"]]
          }];
          const BROWSER_MODULE_PROVIDERS = [{
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵINJECTOR_SCOPE"],
            useValue: 'root'
          }, {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ErrorHandler,
            useFactory: errorHandler,
            deps: []
          }, {
            provide: EVENT_MANAGER_PLUGINS,
            useClass: DomEventsPlugin,
            multi: true,
            deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT, _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone, _angular_core__WEBPACK_IMPORTED_MODULE_1__.PLATFORM_ID]
          }, {
            provide: EVENT_MANAGER_PLUGINS,
            useClass: KeyEventsPlugin,
            multi: true,
            deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
          }, DomRendererFactory2, SharedStylesHost, EventManager, {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.RendererFactory2,
            useExisting: DomRendererFactory2
          }, {
            provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__.XhrFactory,
            useClass: BrowserXhr,
            deps: []
          }, typeof ngDevMode === 'undefined' || ngDevMode ? {
            provide: BROWSER_MODULE_PROVIDERS_MARKER,
            useValue: true
          } : []];
          /**
           * Exports required infrastructure for all Angular apps.
           * Included by default in all Angular apps created with the CLI
           * `new` command.
           * Re-exports `CommonModule` and `ApplicationModule`, making their
           * exports and providers available to all apps.
           *
           * @publicApi
           */
          class BrowserModule {
            constructor(providersAlreadyPresent) {
              if ((typeof ngDevMode === 'undefined' || ngDevMode) && providersAlreadyPresent) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5100 /* RuntimeErrorCode.BROWER_MODULE_ALREADY_LOADED */, `Providers from the \`BrowserModule\` have already been loaded. If you need access ` + `to common directives such as NgIf and NgFor, import the \`CommonModule\` instead.`);
              }
            }
            /**
             * Configures a browser-based app to transition from a server-rendered app, if
             * one is present on the page.
             *
             * @param params An object containing an identifier for the app to transition.
             * The ID must match between the client and server versions of the app.
             * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
             *
             * @deprecated Use {@link APP_ID} instead to set the application ID.
             */
            static withServerTransition(params) {
              return {
                ngModule: BrowserModule,
                providers: [{
                  provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_ID,
                  useValue: params.appId
                }]
              };
            }
            static {
              this.ɵfac = function BrowserModule_Factory(t) {
                return new (t || BrowserModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](BROWSER_MODULE_PROVIDERS_MARKER, 12));
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
                type: BrowserModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
                providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
                imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule, _angular_core__WEBPACK_IMPORTED_MODULE_1__.ApplicationModule]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule,
              args: [{
                providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
                exports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.CommonModule, _angular_core__WEBPACK_IMPORTED_MODULE_1__.ApplicationModule]
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.SkipSelf
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [BROWSER_MODULE_PROVIDERS_MARKER]
                }]
              }];
            }, null);
          })();
          
          /**
           * Factory to create a `Meta` service instance for the current DOM document.
           */
          function createMeta() {
            return new Meta((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
          }
          /**
           * A service for managing HTML `<meta>` tags.
           *
           * Properties of the `MetaDefinition` object match the attributes of the
           * HTML `<meta>` tag. These tags define document metadata that is important for
           * things like configuring a Content Security Policy, defining browser compatibility
           * and security settings, setting HTTP Headers, defining rich content for social sharing,
           * and Search Engine Optimization (SEO).
           *
           * To identify specific `<meta>` tags in a document, use an attribute selection
           * string in the format `"tag_attribute='value string'"`.
           * For example, an `attrSelector` value of `"name='description'"` matches a tag
           * whose `name` attribute has the value `"description"`.
           * Selectors are used with the `querySelector()` Document method,
           * in the format `meta[{attrSelector}]`.
           *
           * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
           * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
           *
           *
           * @publicApi
           */
          class Meta {
            constructor(_doc) {
              this._doc = _doc;
              this._dom = (0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
            }
            /**
             * Retrieves or creates a specific `<meta>` tag element in the current HTML document.
             * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
             * values in the provided tag definition, and verifies that all other attribute values are equal.
             * If an existing element is found, it is returned and is not modified in any way.
             * @param tag The definition of a `<meta>` element to match or create.
             * @param forceCreation True to create a new element without checking whether one already exists.
             * @returns The existing element with the same attributes and values if found,
             * the new element if no match is found, or `null` if the tag parameter is not defined.
             */
            addTag(tag, forceCreation = false) {
              if (!tag) return null;
              return this._getOrCreateElement(tag, forceCreation);
            }
            /**
             * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.
             * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
             * values in the provided tag definition, and verifies that all other attribute values are equal.
             * @param tags An array of tag definitions to match or create.
             * @param forceCreation True to create new elements without checking whether they already exist.
             * @returns The matching elements if found, or the new elements.
             */
            addTags(tags, forceCreation = false) {
              if (!tags) return [];
              return tags.reduce((result, tag) => {
                if (tag) {
                  result.push(this._getOrCreateElement(tag, forceCreation));
                }
                return result;
              }, []);
            }
            /**
             * Retrieves a `<meta>` tag element in the current HTML document.
             * @param attrSelector The tag attribute and value to match against, in the format
             * `"tag_attribute='value string'"`.
             * @returns The matching element, if any.
             */
            getTag(attrSelector) {
              if (!attrSelector) return null;
              return this._doc.querySelector(`meta[${attrSelector}]`) || null;
            }
            /**
             * Retrieves a set of `<meta>` tag elements in the current HTML document.
             * @param attrSelector The tag attribute and value to match against, in the format
             * `"tag_attribute='value string'"`.
             * @returns The matching elements, if any.
             */
            getTags(attrSelector) {
              if (!attrSelector) return [];
              const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);
              return list ? [].slice.call(list) : [];
            }
            /**
             * Modifies an existing `<meta>` tag element in the current HTML document.
             * @param tag The tag description with which to replace the existing tag content.
             * @param selector A tag attribute and value to match against, to identify
             * an existing tag. A string in the format `"tag_attribute=`value string`"`.
             * If not supplied, matches a tag with the same `name` or `property` attribute value as the
             * replacement tag.
             * @return The modified element.
             */
            updateTag(tag, selector) {
              if (!tag) return null;
              selector = selector || this._parseSelector(tag);
              const meta = this.getTag(selector);
              if (meta) {
                return this._setMetaElementAttributes(tag, meta);
              }
              return this._getOrCreateElement(tag, true);
            }
            /**
             * Removes an existing `<meta>` tag element from the current HTML document.
             * @param attrSelector A tag attribute and value to match against, to identify
             * an existing tag. A string in the format `"tag_attribute=`value string`"`.
             */
            removeTag(attrSelector) {
              this.removeTagElement(this.getTag(attrSelector));
            }
            /**
             * Removes an existing `<meta>` tag element from the current HTML document.
             * @param meta The tag definition to match against to identify an existing tag.
             */
            removeTagElement(meta) {
              if (meta) {
                this._dom.remove(meta);
              }
            }
            _getOrCreateElement(meta, forceCreation = false) {
              if (!forceCreation) {
                const selector = this._parseSelector(meta);
                // It's allowed to have multiple elements with the same name so it's not enough to
                // just check that element with the same name already present on the page. We also need to
                // check if element has tag attributes
                const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];
                if (elem !== undefined) return elem;
              }
              const element = this._dom.createElement('meta');
              this._setMetaElementAttributes(meta, element);
              const head = this._doc.getElementsByTagName('head')[0];
              head.appendChild(element);
              return element;
            }
            _setMetaElementAttributes(tag, el) {
              Object.keys(tag).forEach(prop => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));
              return el;
            }
            _parseSelector(tag) {
              const attr = tag.name ? 'name' : 'property';
              return `${attr}="${tag[attr]}"`;
            }
            _containsAttributes(tag, elem) {
              return Object.keys(tag).every(key => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);
            }
            _getMetaKeyMap(prop) {
              return META_KEYS_MAP[prop] || prop;
            }
            static {
              this.ɵfac = function Meta_Factory(t) {
                return new (t || Meta)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: Meta,
                factory: function Meta_Factory(t) {
                  let r = null;
                  if (t) {
                    r = new t();
                  } else {
                    r = createMeta();
                  }
                  return r;
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Meta, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: createMeta,
                deps: []
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          /**
           * Mapping for MetaDefinition properties with their correct meta attribute names
           */
          const META_KEYS_MAP = {
            httpEquiv: 'http-equiv'
          };
          
          /**
           * Factory to create Title service.
           */
          function createTitle() {
            return new Title((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
          }
          /**
           * A service that can be used to get and set the title of a current HTML document.
           *
           * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
           * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
           * (representing the `<title>` tag). Instead, this service can be used to set and get the current
           * title value.
           *
           * @publicApi
           */
          class Title {
            constructor(_doc) {
              this._doc = _doc;
            }
            /**
             * Get the title of the current HTML document.
             */
            getTitle() {
              return this._doc.title;
            }
            /**
             * Set the title of the current HTML document.
             * @param newTitle
             */
            setTitle(newTitle) {
              this._doc.title = newTitle || '';
            }
            static {
              this.ɵfac = function Title_Factory(t) {
                return new (t || Title)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: Title,
                factory: function Title_Factory(t) {
                  let r = null;
                  if (t) {
                    r = new t();
                  } else {
                    r = createTitle();
                  }
                  return r;
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Title, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: createTitle,
                deps: []
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
           * `name` is `'probe'`.
           * @param name Name under which it will be exported. Keep in mind this will be a property of the
           * global `ng` object.
           * @param value The value to export.
           */
          function exportNgVar(name, value) {
            if (typeof COMPILED === 'undefined' || !COMPILED) {
              // Note: we can't export `ng` when using closure enhanced optimization as:
              // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
              // - we can't declare a closure extern as the namespace `ng` is already used within Google
              //   for typings for angularJS (via `goog.provide('ng....')`).
              const ng = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] || {};
              ng[name] = value;
            }
          }
          const win = typeof window !== 'undefined' && window || {};
          class ChangeDetectionPerfRecord {
            constructor(msPerTick, numTicks) {
              this.msPerTick = msPerTick;
              this.numTicks = numTicks;
            }
          }
          /**
           * Entry point for all Angular profiling-related debug tools. This object
           * corresponds to the `ng.profiler` in the dev console.
           */
          class AngularProfiler {
            constructor(ref) {
              this.appRef = ref.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ApplicationRef);
            }
            // tslint:disable:no-console
            /**
             * Exercises change detection in a loop and then prints the average amount of
             * time in milliseconds how long a single round of change detection takes for
             * the current state of the UI. It runs a minimum of 5 rounds for a minimum
             * of 500 milliseconds.
             *
             * Optionally, a user may pass a `config` parameter containing a map of
             * options. Supported options are:
             *
             * `record` (boolean) - causes the profiler to record a CPU profile while
             * it exercises the change detector. Example:
             *
             * ```
             * ng.profiler.timeChangeDetection({record: true})
             * ```
             */
            timeChangeDetection(config) {
              const record = config && config['record'];
              const profileName = 'Change Detection';
              // Profiler is not available in Android browsers without dev tools opened
              const isProfilerAvailable = win.console.profile != null;
              if (record && isProfilerAvailable) {
                win.console.profile(profileName);
              }
              const start = performanceNow();
              let numTicks = 0;
              while (numTicks < 5 || performanceNow() - start < 500) {
                this.appRef.tick();
                numTicks++;
              }
              const end = performanceNow();
              if (record && isProfilerAvailable) {
                win.console.profileEnd(profileName);
              }
              const msPerTick = (end - start) / numTicks;
              win.console.log(`ran ${numTicks} change detection cycles`);
              win.console.log(`${msPerTick.toFixed(2)} ms per check`);
              return new ChangeDetectionPerfRecord(msPerTick, numTicks);
            }
          }
          function performanceNow() {
            return win.performance && win.performance.now ? win.performance.now() : new Date().getTime();
          }
          const PROFILER_GLOBAL_NAME = 'profiler';
          /**
           * Enabled Angular debug tools that are accessible via your browser's
           * developer console.
           *
           * Usage:
           *
           * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
           * 1. Type `ng.` (usually the console will show auto-complete suggestion)
           * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
           *    then hit Enter.
           *
           * @publicApi
           */
          function enableDebugTools(ref) {
            exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
            return ref;
          }
          /**
           * Disables Angular tools.
           *
           * @publicApi
           */
          function disableDebugTools() {
            exportNgVar(PROFILER_GLOBAL_NAME, null);
          }
          
          /**
           * Predicates for use with {@link DebugElement}'s query functions.
           *
           * @publicApi
           */
          class By {
            /**
             * Match all nodes.
             *
             * @usageNotes
             * ### Example
             *
             * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
             */
            static all() {
              return () => true;
            }
            /**
             * Match elements by the given CSS selector.
             *
             * @usageNotes
             * ### Example
             *
             * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
             */
            static css(selector) {
              return debugElement => {
                return debugElement.nativeElement != null ? elementMatches(debugElement.nativeElement, selector) : false;
              };
            }
            /**
             * Match nodes that have the given directive present.
             *
             * @usageNotes
             * ### Example
             *
             * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
             */
            static directive(type) {
              return debugNode => debugNode.providerTokens.indexOf(type) !== -1;
            }
          }
          function elementMatches(n, selector) {
            if ((0,_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isElementNode(n)) {
              return n.matches && n.matches(selector) || n.msMatchesSelector && n.msMatchesSelector(selector) || n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
            }
            return false;
          }
          
          /**
           * Supported HammerJS recognizer event names.
           */
          const EVENT_NAMES = {
            // pan
            'pan': true,
            'panstart': true,
            'panmove': true,
            'panend': true,
            'pancancel': true,
            'panleft': true,
            'panright': true,
            'panup': true,
            'pandown': true,
            // pinch
            'pinch': true,
            'pinchstart': true,
            'pinchmove': true,
            'pinchend': true,
            'pinchcancel': true,
            'pinchin': true,
            'pinchout': true,
            // press
            'press': true,
            'pressup': true,
            // rotate
            'rotate': true,
            'rotatestart': true,
            'rotatemove': true,
            'rotateend': true,
            'rotatecancel': true,
            // swipe
            'swipe': true,
            'swipeleft': true,
            'swiperight': true,
            'swipeup': true,
            'swipedown': true,
            // tap
            'tap': true,
            'doubletap': true
          };
          /**
           * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.
           * @see {@link HammerGestureConfig}
           *
           * @ngModule HammerModule
           * @publicApi
           */
          const HAMMER_GESTURE_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('HammerGestureConfig');
          /**
           * Injection token used to provide a {@link HammerLoader} to Angular.
           *
           * @publicApi
           */
          const HAMMER_LOADER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('HammerLoader');
          /**
           * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
           * for gesture recognition. Configures specific event recognition.
           * @publicApi
           */
          class HammerGestureConfig {
            constructor() {
              /**
               * A set of supported event names for gestures to be used in Angular.
               * Angular supports all built-in recognizers, as listed in
               * [HammerJS documentation](https://hammerjs.github.io/).
               */
              this.events = [];
              /**
               * Maps gesture event names to a set of configuration options
               * that specify overrides to the default values for specific properties.
               *
               * The key is a supported event name to be configured,
               * and the options object contains a set of properties, with override values
               * to be applied to the named recognizer event.
               * For example, to disable recognition of the rotate event, specify
               *  `{"rotate": {"enable": false}}`.
               *
               * Properties that are not present take the HammerJS default values.
               * For information about which properties are supported for which events,
               * and their allowed and default values, see
               * [HammerJS documentation](https://hammerjs.github.io/).
               *
               */
              this.overrides = {};
            }
            /**
             * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
             * and attaches it to a given HTML element.
             * @param element The element that will recognize gestures.
             * @returns A HammerJS event-manager object.
             */
            buildHammer(element) {
              const mc = new Hammer(element, this.options);
              mc.get('pinch').set({
                enable: true
              });
              mc.get('rotate').set({
                enable: true
              });
              for (const eventName in this.overrides) {
                mc.get(eventName).set(this.overrides[eventName]);
              }
              return mc;
            }
            static {
              this.ɵfac = function HammerGestureConfig_Factory(t) {
                return new (t || HammerGestureConfig)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: HammerGestureConfig,
                factory: HammerGestureConfig.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGestureConfig, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], null, null);
          })();
          /**
           * Event plugin that adds Hammer support to an application.
           *
           * @ngModule HammerModule
           */
          class HammerGesturesPlugin extends EventManagerPlugin {
            constructor(doc, _config, console, loader) {
              super(doc);
              this._config = _config;
              this.console = console;
              this.loader = loader;
              this._loaderPromise = null;
            }
            supports(eventName) {
              if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
                return false;
              }
              if (!window.Hammer && !this.loader) {
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  this.console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` + `loaded and no custom loader has been specified.`);
                }
                return false;
              }
              return true;
            }
            addEventListener(element, eventName, handler) {
              const zone = this.manager.getZone();
              eventName = eventName.toLowerCase();
              // If Hammer is not present but a loader is specified, we defer adding the event listener
              // until Hammer is loaded.
              if (!window.Hammer && this.loader) {
                this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
                // This `addEventListener` method returns a function to remove the added listener.
                // Until Hammer is loaded, the returned function needs to *cancel* the registration rather
                // than remove anything.
                let cancelRegistration = false;
                let deregister = () => {
                  cancelRegistration = true;
                };
                zone.runOutsideAngular(() => this._loaderPromise.then(() => {
                  // If Hammer isn't actually loaded when the custom loader resolves, give up.
                  if (!window.Hammer) {
                    if (typeof ngDevMode === 'undefined' || ngDevMode) {
                      this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
                    }
                    deregister = () => {};
                    return;
                  }
                  if (!cancelRegistration) {
                    // Now that Hammer is loaded and the listener is being loaded for real,
                    // the deregistration function changes from canceling registration to
                    // removal.
                    deregister = this.addEventListener(element, eventName, handler);
                  }
                }).catch(() => {
                  if (typeof ngDevMode === 'undefined' || ngDevMode) {
                    this.console.warn(`The "${eventName}" event cannot be bound because the custom ` + `Hammer.JS loader failed.`);
                  }
                  deregister = () => {};
                }));
                // Return a function that *executes* `deregister` (and not `deregister` itself) so that we
                // can change the behavior of `deregister` once the listener is added. Using a closure in
                // this way allows us to avoid any additional data structures to track listener removal.
                return () => {
                  deregister();
                };
              }
              return zone.runOutsideAngular(() => {
                // Creating the manager bind events, must be done outside of angular
                const mc = this._config.buildHammer(element);
                const callback = function (eventObj) {
                  zone.runGuarded(function () {
                    handler(eventObj);
                  });
                };
                mc.on(eventName, callback);
                return () => {
                  mc.off(eventName, callback);
                  // destroy mc to prevent memory leak
                  if (typeof mc.destroy === 'function') {
                    mc.destroy();
                  }
                };
              });
            }
            isCustomEvent(eventName) {
              return this._config.events.indexOf(eventName) > -1;
            }
            static {
              this.ɵfac = function HammerGesturesPlugin_Factory(t) {
                return new (t || HammerGesturesPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_GESTURE_CONFIG), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_LOADER, 8));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: HammerGesturesPlugin,
                factory: HammerGesturesPlugin.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGesturesPlugin, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }, {
                type: HammerGestureConfig,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [HAMMER_GESTURE_CONFIG]
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [HAMMER_LOADER]
                }]
              }];
            }, null);
          })();
          /**
           * Adds support for HammerJS.
           *
           * Import this module at the root of your application so that Angular can work with
           * HammerJS to detect gesture events.
           *
           * Note that applications still need to include the HammerJS script itself. This module
           * simply sets up the coordination layer between HammerJS and Angular's EventManager.
           *
           * @publicApi
           */
          class HammerModule {
            static {
              this.ɵfac = function HammerModule_Factory(t) {
                return new (t || HammerModule)();
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
                type: HammerModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
                providers: [{
                  provide: EVENT_MANAGER_PLUGINS,
                  useClass: HammerGesturesPlugin,
                  multi: true,
                  deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT, HAMMER_GESTURE_CONFIG, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional(), HAMMER_LOADER]]
                }, {
                  provide: HAMMER_GESTURE_CONFIG,
                  useClass: HammerGestureConfig,
                  deps: []
                }]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule,
              args: [{
                providers: [{
                  provide: EVENT_MANAGER_PLUGINS,
                  useClass: HammerGesturesPlugin,
                  multi: true,
                  deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT, HAMMER_GESTURE_CONFIG, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional(), HAMMER_LOADER]]
                }, {
                  provide: HAMMER_GESTURE_CONFIG,
                  useClass: HammerGestureConfig,
                  deps: []
                }]
              }]
            }], null, null);
          })();
          
          /**
           * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
           * values to be safe to use in the different DOM contexts.
           *
           * For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
           * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
           * the website.
           *
           * In specific situations, it might be necessary to disable sanitization, for example if the
           * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
           * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
           * methods, and then binding to that value from the template.
           *
           * These situations should be very rare, and extraordinary care must be taken to avoid creating a
           * Cross Site Scripting (XSS) security bug!
           *
           * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
           * close as possible to the source of the value, to make it easy to verify no security bug is
           * created by its use.
           *
           * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
           * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
           * code. The sanitizer leaves safe values intact.
           *
           * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
           * sanitization for the value passed in. Carefully check and audit all values and code paths going
           * into this call. Make sure any user data is appropriately escaped for this security context.
           * For more detail, see the [Security Guide](https://g.co/ng/security).
           *
           * @publicApi
           */
          class DomSanitizer {
            static {
              this.ɵfac = function DomSanitizer_Factory(t) {
                return new (t || DomSanitizer)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DomSanitizer,
                factory: function DomSanitizer_Factory(t) {
                  let r = null;
                  if (t) {
                    r = new (t || DomSanitizer)();
                  } else {
                    r = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](DomSanitizerImpl);
                  }
                  return r;
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizer, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(() => DomSanitizerImpl)
              }]
            }], null, null);
          })();
          function domSanitizerImplFactory(injector) {
            return new DomSanitizerImpl(injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
          }
          class DomSanitizerImpl extends DomSanitizer {
            constructor(_doc) {
              super();
              this._doc = _doc;
            }
            sanitize(ctx, value) {
              if (value == null) return null;
              switch (ctx) {
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.NONE:
                  return value;
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.HTML:
                  if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "HTML" /* BypassType.Html */)) {
                    return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                  }
                  return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeHtml"])(this._doc, String(value)).toString();
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.STYLE:
                  if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Style" /* BypassType.Style */)) {
                    return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                  }
                  return value;
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.SCRIPT:
                  if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Script" /* BypassType.Script */)) {
                    return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                  }
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'unsafe value used in a script context');
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.URL:
                  if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "URL" /* BypassType.Url */)) {
                    return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                  }
                  return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeUrl"])(String(value));
                case _angular_core__WEBPACK_IMPORTED_MODULE_1__.SecurityContext.RESOURCE_URL:
                  if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "ResourceURL" /* BypassType.ResourceUrl */)) {
                    return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                  }
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `unsafe value used in a resource URL context (see ${_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵXSS_SECURITY_URL"]})`);
                default:
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Unexpected SecurityContext ${ctx} (see ${_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵXSS_SECURITY_URL"]})`);
              }
            }
            bypassSecurityTrustHtml(value) {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustHtml"])(value);
            }
            bypassSecurityTrustStyle(value) {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustStyle"])(value);
            }
            bypassSecurityTrustScript(value) {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustScript"])(value);
            }
            bypassSecurityTrustUrl(value) {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustUrl"])(value);
            }
            bypassSecurityTrustResourceUrl(value) {
              return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustResourceUrl"])(value);
            }
            static {
              this.ɵfac = function DomSanitizerImpl_Factory(t) {
                return new (t || DomSanitizerImpl)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DomSanitizerImpl,
                factory: function DomSanitizerImpl_Factory(t) {
                  let r = null;
                  if (t) {
                    r = new t();
                  } else {
                    r = domSanitizerImplFactory(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.Injector));
                  }
                  return r;
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizerImpl, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: domSanitizerImplFactory,
                deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.Injector]
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__.DOCUMENT]
                }]
              }];
            }, null);
          })();
          
          /**
           * Helper function to create an object that represents a Hydration feature.
           */
          function hydrationFeature(kind, providers = []) {
            return {
              ɵkind: kind,
              ɵproviders: providers
            };
          }
          /**
           * Disables DOM nodes reuse during hydration. Effectively makes
           * Angular re-render an application from scratch on the client.
           *
           * When this option is enabled, make sure that the initial navigation
           * option is configured for the Router as `enabledBlocking` by using the
           * `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
           *
           * ```
           * bootstrapApplication(RootComponent, {
           *   providers: [
           *     provideRouter(
           *       // ... other features ...
           *       withEnabledBlockingInitialNavigation()
           *     ),
           *     provideClientHydration(withNoDomReuse())
           *   ]
           * });
           * ```
           *
           * This would ensure that the application is rerendered after all async
           * operations in the Router (such as lazy-loading of components,
           * waiting for async guards and resolvers) are completed to avoid
           * clearing the DOM on the client too soon, thus causing content flicker.
           *
           * @see {@link provideRouter}
           * @see {@link withEnabledBlockingInitialNavigation}
           *
           * @publicApi
           * @developerPreview
           */
          function withNoDomReuse() {
            // This feature has no providers and acts as a flag that turns off
            // non-destructive hydration (which otherwise is turned on by default).
            return hydrationFeature(0 /* HydrationFeatureKind.NoDomReuseFeature */);
          }
          /**
           * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
           * server and other one on the browser.
           *
           * @publicApi
           * @developerPreview
           */
          function withNoHttpTransferCache() {
            // This feature has no providers and acts as a flag that turns off
            // HTTP transfer cache (which otherwise is turned on by default).
            return hydrationFeature(1 /* HydrationFeatureKind.NoHttpTransferCache */);
          }
          /**
           * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function
           * that verifies whether compatible ZoneJS was used in an application
           * and logs a warning in a console if it's not the case.
           */
          function provideZoneJsCompatibilityDetector() {
            return [{
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ENVIRONMENT_INITIALIZER,
              useValue: () => {
                const ngZone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone);
                // Checking `ngZone instanceof NgZone` would be insufficient here,
                // because custom implementations might use NgZone as a base class.
                if (ngZone.constructor !== _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone) {
                  const console = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]);
                  const message = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵformatRuntimeError"])(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' + 'that uses a custom or a noop Zone.js implementation. ' + 'This is not yet a fully supported configuration.');
                  // tslint:disable-next-line:no-console
                  console.warn(message);
                }
              },
              multi: true
            }];
          }
          /**
           * Sets up providers necessary to enable hydration functionality for the application.
           *
           * By default, the function enables the recommended set of features for the optimal
           * performance for most of the applications. You can enable/disable features by
           * passing special functions (from the `HydrationFeatures` set) as arguments to the
           * `provideClientHydration` function. It includes the following features:
           *
           * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
           * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
           * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
           * [here](/guide/universal#caching-data-when-using-httpclient).
           *
           * These functions functions will allow you to disable some of the default features:
           * * {@link withNoDomReuse} to disable DOM nodes reuse during hydration
           * * {@link withNoHttpTransferCache} to disable HTTP transfer cache
           *
           *
           * @usageNotes
           *
           * Basic example of how you can enable hydration in your application when
           * `bootstrapApplication` function is used:
           * ```
           * bootstrapApplication(AppComponent, {
           *   providers: [provideClientHydration()]
           * });
           * ```
           *
           * Alternatively if you are using NgModules, you would add `provideClientHydration`
           * to your root app module's provider list.
           * ```
           * @NgModule({
           *   declarations: [RootCmp],
           *   bootstrap: [RootCmp],
           *   providers: [provideClientHydration()],
           * })
           * export class AppModule {}
           * ```
           *
           * @see {@link withNoDomReuse}
           * @see {@link withNoHttpTransferCache}
           *
           * @param features Optional features to configure additional router behaviors.
           * @returns A set of providers to enable hydration.
           *
           * @publicApi
           * @developerPreview
           */
          function provideClientHydration(...features) {
            const providers = [];
            const featuresKind = new Set();
            for (const {
              ɵproviders,
              ɵkind
            } of features) {
              featuresKind.add(ɵkind);
              if (ɵproviders.length) {
                providers.push(ɵproviders);
              }
            }
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.makeEnvironmentProviders)([typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [], featuresKind.has(0 /* HydrationFeatureKind.NoDomReuseFeature */) ? [] : (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵwithDomHydration"])(), featuresKind.has(1 /* HydrationFeatureKind.NoHttpTransferCache */) ? [] : (0,_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["ɵwithHttpTransferCache"])(), providers]);
          }
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of the platform-browser package.
           */
          /**
           * @publicApi
           */
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.Version('16.2.12');
          
          // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
          /**
           * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
           *
           * Example:
           *
           * ```
           * const COUNTER_KEY = makeStateKey<number>('counter');
           * let value = 10;
           *
           * transferState.set(COUNTER_KEY, value);
           * ```
           *
           * @publicApi
           * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.
           */
          // The below is a workaround to add a deprecated message.
          const makeStateKey = _angular_core__WEBPACK_IMPORTED_MODULE_1__.makeStateKey;
          // The below type is needed for G3 due to JSC_CONFORMANCE_VIOLATION.
          const TransferState = _angular_core__WEBPACK_IMPORTED_MODULE_1__.TransferState;
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          // This file only reexports content of the `src` folder. Keep it that way.
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 5072:
          /*!**********************************************************!*\
            !*** ./node_modules/@angular/router/fesm2022/router.mjs ***!
            \**********************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ActivatedRoute: () => (/* binding */ ActivatedRoute),
          /* harmony export */   ActivatedRouteSnapshot: () => (/* binding */ ActivatedRouteSnapshot),
          /* harmony export */   ActivationEnd: () => (/* binding */ ActivationEnd),
          /* harmony export */   ActivationStart: () => (/* binding */ ActivationStart),
          /* harmony export */   BaseRouteReuseStrategy: () => (/* binding */ BaseRouteReuseStrategy),
          /* harmony export */   ChildActivationEnd: () => (/* binding */ ChildActivationEnd),
          /* harmony export */   ChildActivationStart: () => (/* binding */ ChildActivationStart),
          /* harmony export */   ChildrenOutletContexts: () => (/* binding */ ChildrenOutletContexts),
          /* harmony export */   DefaultTitleStrategy: () => (/* binding */ DefaultTitleStrategy),
          /* harmony export */   DefaultUrlSerializer: () => (/* binding */ DefaultUrlSerializer),
          /* harmony export */   GuardsCheckEnd: () => (/* binding */ GuardsCheckEnd),
          /* harmony export */   GuardsCheckStart: () => (/* binding */ GuardsCheckStart),
          /* harmony export */   NavigationCancel: () => (/* binding */ NavigationCancel),
          /* harmony export */   NavigationEnd: () => (/* binding */ NavigationEnd),
          /* harmony export */   NavigationError: () => (/* binding */ NavigationError),
          /* harmony export */   NavigationSkipped: () => (/* binding */ NavigationSkipped),
          /* harmony export */   NavigationStart: () => (/* binding */ NavigationStart),
          /* harmony export */   NoPreloading: () => (/* binding */ NoPreloading),
          /* harmony export */   OutletContext: () => (/* binding */ OutletContext),
          /* harmony export */   PRIMARY_OUTLET: () => (/* binding */ PRIMARY_OUTLET),
          /* harmony export */   PreloadAllModules: () => (/* binding */ PreloadAllModules),
          /* harmony export */   PreloadingStrategy: () => (/* binding */ PreloadingStrategy),
          /* harmony export */   ROUTER_CONFIGURATION: () => (/* binding */ ROUTER_CONFIGURATION),
          /* harmony export */   ROUTER_INITIALIZER: () => (/* binding */ ROUTER_INITIALIZER),
          /* harmony export */   ROUTES: () => (/* binding */ ROUTES),
          /* harmony export */   ResolveEnd: () => (/* binding */ ResolveEnd),
          /* harmony export */   ResolveStart: () => (/* binding */ ResolveStart),
          /* harmony export */   RouteConfigLoadEnd: () => (/* binding */ RouteConfigLoadEnd),
          /* harmony export */   RouteConfigLoadStart: () => (/* binding */ RouteConfigLoadStart),
          /* harmony export */   RouteReuseStrategy: () => (/* binding */ RouteReuseStrategy),
          /* harmony export */   Router: () => (/* binding */ Router),
          /* harmony export */   RouterEvent: () => (/* binding */ RouterEvent),
          /* harmony export */   RouterLink: () => (/* binding */ RouterLink),
          /* harmony export */   RouterLinkActive: () => (/* binding */ RouterLinkActive),
          /* harmony export */   RouterLinkWithHref: () => (/* binding */ RouterLink),
          /* harmony export */   RouterModule: () => (/* binding */ RouterModule),
          /* harmony export */   RouterOutlet: () => (/* binding */ RouterOutlet),
          /* harmony export */   RouterPreloader: () => (/* binding */ RouterPreloader),
          /* harmony export */   RouterState: () => (/* binding */ RouterState),
          /* harmony export */   RouterStateSnapshot: () => (/* binding */ RouterStateSnapshot),
          /* harmony export */   RoutesRecognized: () => (/* binding */ RoutesRecognized),
          /* harmony export */   Scroll: () => (/* binding */ Scroll),
          /* harmony export */   TitleStrategy: () => (/* binding */ TitleStrategy),
          /* harmony export */   UrlHandlingStrategy: () => (/* binding */ UrlHandlingStrategy),
          /* harmony export */   UrlSegment: () => (/* binding */ UrlSegment),
          /* harmony export */   UrlSegmentGroup: () => (/* binding */ UrlSegmentGroup),
          /* harmony export */   UrlSerializer: () => (/* binding */ UrlSerializer),
          /* harmony export */   UrlTree: () => (/* binding */ UrlTree),
          /* harmony export */   VERSION: () => (/* binding */ VERSION),
          /* harmony export */   convertToParamMap: () => (/* binding */ convertToParamMap),
          /* harmony export */   createUrlTreeFromSnapshot: () => (/* binding */ createUrlTreeFromSnapshot),
          /* harmony export */   defaultUrlMatcher: () => (/* binding */ defaultUrlMatcher),
          /* harmony export */   mapToCanActivate: () => (/* binding */ mapToCanActivate),
          /* harmony export */   mapToCanActivateChild: () => (/* binding */ mapToCanActivateChild),
          /* harmony export */   mapToCanDeactivate: () => (/* binding */ mapToCanDeactivate),
          /* harmony export */   mapToCanMatch: () => (/* binding */ mapToCanMatch),
          /* harmony export */   mapToResolve: () => (/* binding */ mapToResolve),
          /* harmony export */   provideRouter: () => (/* binding */ provideRouter),
          /* harmony export */   provideRoutes: () => (/* binding */ provideRoutes),
          /* harmony export */   withComponentInputBinding: () => (/* binding */ withComponentInputBinding),
          /* harmony export */   withDebugTracing: () => (/* binding */ withDebugTracing),
          /* harmony export */   withDisabledInitialNavigation: () => (/* binding */ withDisabledInitialNavigation),
          /* harmony export */   withEnabledBlockingInitialNavigation: () => (/* binding */ withEnabledBlockingInitialNavigation),
          /* harmony export */   withHashLocation: () => (/* binding */ withHashLocation),
          /* harmony export */   withInMemoryScrolling: () => (/* binding */ withInMemoryScrolling),
          /* harmony export */   withNavigationErrorHandler: () => (/* binding */ withNavigationErrorHandler),
          /* harmony export */   withPreloading: () => (/* binding */ withPreloading),
          /* harmony export */   withRouterConfig: () => (/* binding */ withRouterConfig),
          /* harmony export */   "ɵEmptyOutletComponent": () => (/* binding */ ɵEmptyOutletComponent),
          /* harmony export */   "ɵROUTER_PROVIDERS": () => (/* binding */ ROUTER_PROVIDERS),
          /* harmony export */   "ɵafterNextNavigation": () => (/* binding */ afterNextNavigation),
          /* harmony export */   "ɵloadChildren": () => (/* binding */ loadChildren)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 2551);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 5429);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 9452);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 5797);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 9999);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 3335);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs */ 4665);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs */ 137);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs */ 5682);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! rxjs */ 7919);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! rxjs */ 9400);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! rxjs */ 4982);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! rxjs */ 819);
          /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! rxjs */ 2510);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 271);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 6647);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 4334);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 3037);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 1567);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 3255);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 2435);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 1903);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! rxjs/operators */ 8764);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs/operators */ 1318);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! rxjs/operators */ 2112);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! rxjs/operators */ 778);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! rxjs/operators */ 2157);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! rxjs/operators */ 602);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! rxjs/operators */ 7378);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! rxjs/operators */ 9475);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! rxjs/operators */ 3481);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! rxjs/operators */ 3900);
          /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! rxjs/operators */ 3222);
          /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @angular/platform-browser */ 436);
          /**
           * @license Angular v16.2.12
           * (c) 2010-2022 Google LLC. https://angular.io/
           * License: MIT
           */
          
          
          
          
          
          
          
          
          
          /**
           * The primary routing outlet.
           *
           * @publicApi
           */
          const PRIMARY_OUTLET = 'primary';
          /**
           * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a
           * static string or `Route.resolve` if anything else. This allows us to reuse the existing route
           * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.
           */
          const RouteTitleKey = /* @__PURE__ */Symbol('RouteTitle');
          class ParamsAsMap {
            constructor(params) {
              this.params = params || {};
            }
            has(name) {
              return Object.prototype.hasOwnProperty.call(this.params, name);
            }
            get(name) {
              if (this.has(name)) {
                const v = this.params[name];
                return Array.isArray(v) ? v[0] : v;
              }
              return null;
            }
            getAll(name) {
              if (this.has(name)) {
                const v = this.params[name];
                return Array.isArray(v) ? v : [v];
              }
              return [];
            }
            get keys() {
              return Object.keys(this.params);
            }
          }
          /**
           * Converts a `Params` instance to a `ParamMap`.
           * @param params The instance to convert.
           * @returns The new map instance.
           *
           * @publicApi
           */
          function convertToParamMap(params) {
            return new ParamsAsMap(params);
          }
          /**
           * Matches the route configuration (`route`) against the actual URL (`segments`).
           *
           * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.
           *
           * @param segments The remaining unmatched segments in the current navigation
           * @param segmentGroup The current segment group being matched
           * @param route The `Route` to match against.
           *
           * @see {@link UrlMatchResult}
           * @see {@link Route}
           *
           * @returns The resulting match information or `null` if the `route` should not match.
           * @publicApi
           */
          function defaultUrlMatcher(segments, segmentGroup, route) {
            const parts = route.path.split('/');
            if (parts.length > segments.length) {
              // The actual URL is shorter than the config, no match
              return null;
            }
            if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || parts.length < segments.length)) {
              // The config is longer than the actual URL but we are looking for a full match, return null
              return null;
            }
            const posParams = {};
            // Check each config part against the actual URL
            for (let index = 0; index < parts.length; index++) {
              const part = parts[index];
              const segment = segments[index];
              const isParameter = part.startsWith(':');
              if (isParameter) {
                posParams[part.substring(1)] = segment;
              } else if (part !== segment.path) {
                // The actual URL part does not match the config, no match
                return null;
              }
            }
            return {
              consumed: segments.slice(0, parts.length),
              posParams
            };
          }
          function shallowEqualArrays(a, b) {
            if (a.length !== b.length) return false;
            for (let i = 0; i < a.length; ++i) {
              if (!shallowEqual(a[i], b[i])) return false;
            }
            return true;
          }
          function shallowEqual(a, b) {
            // While `undefined` should never be possible, it would sometimes be the case in IE 11
            // and pre-chromium Edge. The check below accounts for this edge case.
            const k1 = a ? Object.keys(a) : undefined;
            const k2 = b ? Object.keys(b) : undefined;
            if (!k1 || !k2 || k1.length != k2.length) {
              return false;
            }
            let key;
            for (let i = 0; i < k1.length; i++) {
              key = k1[i];
              if (!equalArraysOrString(a[key], b[key])) {
                return false;
              }
            }
            return true;
          }
          /**
           * Test equality for arrays of strings or a string.
           */
          function equalArraysOrString(a, b) {
            if (Array.isArray(a) && Array.isArray(b)) {
              if (a.length !== b.length) return false;
              const aSorted = [...a].sort();
              const bSorted = [...b].sort();
              return aSorted.every((val, index) => bSorted[index] === val);
            } else {
              return a === b;
            }
          }
          /**
           * Return the last element of an array.
           */
          function last(a) {
            return a.length > 0 ? a[a.length - 1] : null;
          }
          function wrapIntoObservable(value) {
            if ((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.isObservable)(value)) {
              return value;
            }
            if ((0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisPromise"])(value)) {
              // Use `Promise.resolve()` to wrap promise-like instances.
              // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the
              // change detection.
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(Promise.resolve(value));
            }
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(value);
          }
          const pathCompareMap = {
            'exact': equalSegmentGroups,
            'subset': containsSegmentGroup
          };
          const paramCompareMap = {
            'exact': equalParams,
            'subset': containsParams,
            'ignored': () => true
          };
          function containsTree(container, containee, options) {
            return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) && paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) && !(options.fragment === 'exact' && container.fragment !== containee.fragment);
          }
          function equalParams(container, containee) {
            // TODO: This does not handle array params correctly.
            return shallowEqual(container, containee);
          }
          function equalSegmentGroups(container, containee, matrixParams) {
            if (!equalPath(container.segments, containee.segments)) return false;
            if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {
              return false;
            }
            if (container.numberOfChildren !== containee.numberOfChildren) return false;
            for (const c in containee.children) {
              if (!container.children[c]) return false;
              if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams)) return false;
            }
            return true;
          }
          function containsParams(container, containee) {
            return Object.keys(containee).length <= Object.keys(container).length && Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key]));
          }
          function containsSegmentGroup(container, containee, matrixParams) {
            return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams);
          }
          function containsSegmentGroupHelper(container, containee, containeePaths, matrixParams) {
            if (container.segments.length > containeePaths.length) {
              const current = container.segments.slice(0, containeePaths.length);
              if (!equalPath(current, containeePaths)) return false;
              if (containee.hasChildren()) return false;
              if (!matrixParamsMatch(current, containeePaths, matrixParams)) return false;
              return true;
            } else if (container.segments.length === containeePaths.length) {
              if (!equalPath(container.segments, containeePaths)) return false;
              if (!matrixParamsMatch(container.segments, containeePaths, matrixParams)) return false;
              for (const c in containee.children) {
                if (!container.children[c]) return false;
                if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {
                  return false;
                }
              }
              return true;
            } else {
              const current = containeePaths.slice(0, container.segments.length);
              const next = containeePaths.slice(container.segments.length);
              if (!equalPath(container.segments, current)) return false;
              if (!matrixParamsMatch(container.segments, current, matrixParams)) return false;
              if (!container.children[PRIMARY_OUTLET]) return false;
              return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next, matrixParams);
            }
          }
          function matrixParamsMatch(containerPaths, containeePaths, options) {
            return containeePaths.every((containeeSegment, i) => {
              return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);
            });
          }
          /**
           * @description
           *
           * Represents the parsed URL.
           *
           * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a
           * serialized tree.
           * UrlTree is a data structure that provides a lot of affordances in dealing with URLs
           *
           * @usageNotes
           * ### Example
           *
           * ```
           * @Component({templateUrl:'template.html'})
           * class MyComponent {
           *   constructor(router: Router) {
           *     const tree: UrlTree =
           *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');
           *     const f = tree.fragment; // return 'fragment'
           *     const q = tree.queryParams; // returns {debug: 'true'}
           *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
           *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'
           *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'
           *     g.children['support'].segments; // return 1 segment 'help'
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class UrlTree {
            constructor( /** The root segment group of the URL tree */
            root = new UrlSegmentGroup([], {}), /** The query params of the URL */
            queryParams = {}, /** The fragment of the URL */
            fragment = null) {
              this.root = root;
              this.queryParams = queryParams;
              this.fragment = fragment;
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (root.segments.length > 0) {
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4015 /* RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT */, 'The root `UrlSegmentGroup` should not contain `segments`. ' + 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');
                }
              }
            }
            get queryParamMap() {
              if (!this._queryParamMap) {
                this._queryParamMap = convertToParamMap(this.queryParams);
              }
              return this._queryParamMap;
            }
            /** @docsNotRequired */
            toString() {
              return DEFAULT_SERIALIZER.serialize(this);
            }
          }
          /**
           * @description
           *
           * Represents the parsed URL segment group.
           *
           * See `UrlTree` for more information.
           *
           * @publicApi
           */
          class UrlSegmentGroup {
            constructor( /** The URL segments of this group. See `UrlSegment` for more information */
            segments, /** The list of children of this group */
            children) {
              this.segments = segments;
              this.children = children;
              /** The parent node in the url tree */
              this.parent = null;
              Object.values(children).forEach(v => v.parent = this);
            }
            /** Whether the segment has child segments */
            hasChildren() {
              return this.numberOfChildren > 0;
            }
            /** Number of child segments */
            get numberOfChildren() {
              return Object.keys(this.children).length;
            }
            /** @docsNotRequired */
            toString() {
              return serializePaths(this);
            }
          }
          /**
           * @description
           *
           * Represents a single URL segment.
           *
           * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
           * parameters associated with the segment.
           *
           * @usageNotes
           * ### Example
           *
           * ```
           * @Component({templateUrl:'template.html'})
           * class MyComponent {
           *   constructor(router: Router) {
           *     const tree: UrlTree = router.parseUrl('/team;id=33');
           *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
           *     const s: UrlSegment[] = g.segments;
           *     s[0].path; // returns 'team'
           *     s[0].parameters; // returns {id: 33}
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class UrlSegment {
            constructor( /** The path part of a URL segment */
            path, /** The matrix parameters associated with a segment */
            parameters) {
              this.path = path;
              this.parameters = parameters;
            }
            get parameterMap() {
              if (!this._parameterMap) {
                this._parameterMap = convertToParamMap(this.parameters);
              }
              return this._parameterMap;
            }
            /** @docsNotRequired */
            toString() {
              return serializePath(this);
            }
          }
          function equalSegments(as, bs) {
            return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));
          }
          function equalPath(as, bs) {
            if (as.length !== bs.length) return false;
            return as.every((a, i) => a.path === bs[i].path);
          }
          function mapChildrenIntoArray(segment, fn) {
            let res = [];
            Object.entries(segment.children).forEach(([childOutlet, child]) => {
              if (childOutlet === PRIMARY_OUTLET) {
                res = res.concat(fn(child, childOutlet));
              }
            });
            Object.entries(segment.children).forEach(([childOutlet, child]) => {
              if (childOutlet !== PRIMARY_OUTLET) {
                res = res.concat(fn(child, childOutlet));
              }
            });
            return res;
          }
          /**
           * @description
           *
           * Serializes and deserializes a URL string into a URL tree.
           *
           * The url serialization strategy is customizable. You can
           * make all URLs case insensitive by providing a custom UrlSerializer.
           *
           * See `DefaultUrlSerializer` for an example of a URL serializer.
           *
           * @publicApi
           */
          class UrlSerializer {
            static {
              this.ɵfac = function UrlSerializer_Factory(t) {
                return new (t || UrlSerializer)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: UrlSerializer,
                factory: function () {
                  return (() => new DefaultUrlSerializer())();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UrlSerializer, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => new DefaultUrlSerializer()
              }]
            }], null, null);
          })();
          /**
           * @description
           *
           * A default implementation of the `UrlSerializer`.
           *
           * Example URLs:
           *
           * ```
           * /inbox/33(popup:compose)
           * /inbox/33;open=true/messages/44
           * ```
           *
           * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the
           * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to
           * specify route specific parameters.
           *
           * @publicApi
           */
          class DefaultUrlSerializer {
            /** Parses a url into a `UrlTree` */
            parse(url) {
              const p = new UrlParser(url);
              return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());
            }
            /** Converts a `UrlTree` into a url */
            serialize(tree) {
              const segment = `/${serializeSegment(tree.root, true)}`;
              const query = serializeQueryParams(tree.queryParams);
              const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';
              return `${segment}${query}${fragment}`;
            }
          }
          const DEFAULT_SERIALIZER = new DefaultUrlSerializer();
          function serializePaths(segment) {
            return segment.segments.map(p => serializePath(p)).join('/');
          }
          function serializeSegment(segment, root) {
            if (!segment.hasChildren()) {
              return serializePaths(segment);
            }
            if (root) {
              const primary = segment.children[PRIMARY_OUTLET] ? serializeSegment(segment.children[PRIMARY_OUTLET], false) : '';
              const children = [];
              Object.entries(segment.children).forEach(([k, v]) => {
                if (k !== PRIMARY_OUTLET) {
                  children.push(`${k}:${serializeSegment(v, false)}`);
                }
              });
              return children.length > 0 ? `${primary}(${children.join('//')})` : primary;
            } else {
              const children = mapChildrenIntoArray(segment, (v, k) => {
                if (k === PRIMARY_OUTLET) {
                  return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];
                }
                return [`${k}:${serializeSegment(v, false)}`];
              });
              // use no parenthesis if the only child is a primary outlet route
              if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {
                return `${serializePaths(segment)}/${children[0]}`;
              }
              return `${serializePaths(segment)}/(${children.join('//')})`;
            }
          }
          /**
           * Encodes a URI string with the default encoding. This function will only ever be called from
           * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need
           * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't
           * have to be encoded per https://url.spec.whatwg.org.
           */
          function encodeUriString(s) {
            return encodeURIComponent(s).replace(/%40/g, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',');
          }
          /**
           * This function should be used to encode both keys and values in a query string key/value. In
           * the following URL, you need to call encodeUriQuery on "k" and "v":
           *
           * http://www.site.org/html;mk=mv?k=v#f
           */
          function encodeUriQuery(s) {
            return encodeUriString(s).replace(/%3B/gi, ';');
          }
          /**
           * This function should be used to encode a URL fragment. In the following URL, you need to call
           * encodeUriFragment on "f":
           *
           * http://www.site.org/html;mk=mv?k=v#f
           */
          function encodeUriFragment(s) {
            return encodeURI(s);
          }
          /**
           * This function should be run on any URI segment as well as the key and value in a key/value
           * pair for matrix params. In the following URL, you need to call encodeUriSegment on "html",
           * "mk", and "mv":
           *
           * http://www.site.org/html;mk=mv?k=v#f
           */
          function encodeUriSegment(s) {
            return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
          }
          function decode(s) {
            return decodeURIComponent(s);
          }
          // Query keys/values should have the "+" replaced first, as "+" in a query string is " ".
          // decodeURIComponent function will not decode "+" as a space.
          function decodeQuery(s) {
            return decode(s.replace(/\+/g, '%20'));
          }
          function serializePath(path) {
            return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;
          }
          function serializeMatrixParams(params) {
            return Object.keys(params).map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`).join('');
          }
          function serializeQueryParams(params) {
            const strParams = Object.keys(params).map(name => {
              const value = params[name];
              return Array.isArray(value) ? value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') : `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;
            }).filter(s => !!s);
            return strParams.length ? `?${strParams.join('&')}` : '';
          }
          const SEGMENT_RE = /^[^\/()?;#]+/;
          function matchSegments(str) {
            const match = str.match(SEGMENT_RE);
            return match ? match[0] : '';
          }
          const MATRIX_PARAM_SEGMENT_RE = /^[^\/()?;=#]+/;
          function matchMatrixKeySegments(str) {
            const match = str.match(MATRIX_PARAM_SEGMENT_RE);
            return match ? match[0] : '';
          }
          const QUERY_PARAM_RE = /^[^=?&#]+/;
          // Return the name of the query param at the start of the string or an empty string
          function matchQueryParams(str) {
            const match = str.match(QUERY_PARAM_RE);
            return match ? match[0] : '';
          }
          const QUERY_PARAM_VALUE_RE = /^[^&#]+/;
          // Return the value of the query param at the start of the string or an empty string
          function matchUrlQueryParamValue(str) {
            const match = str.match(QUERY_PARAM_VALUE_RE);
            return match ? match[0] : '';
          }
          class UrlParser {
            constructor(url) {
              this.url = url;
              this.remaining = url;
            }
            parseRootSegment() {
              this.consumeOptional('/');
              if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {
                return new UrlSegmentGroup([], {});
              }
              // The root segment group never has segments
              return new UrlSegmentGroup([], this.parseChildren());
            }
            parseQueryParams() {
              const params = {};
              if (this.consumeOptional('?')) {
                do {
                  this.parseQueryParam(params);
                } while (this.consumeOptional('&'));
              }
              return params;
            }
            parseFragment() {
              return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;
            }
            parseChildren() {
              if (this.remaining === '') {
                return {};
              }
              this.consumeOptional('/');
              const segments = [];
              if (!this.peekStartsWith('(')) {
                segments.push(this.parseSegment());
              }
              while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {
                this.capture('/');
                segments.push(this.parseSegment());
              }
              let children = {};
              if (this.peekStartsWith('/(')) {
                this.capture('/');
                children = this.parseParens(true);
              }
              let res = {};
              if (this.peekStartsWith('(')) {
                res = this.parseParens(false);
              }
              if (segments.length > 0 || Object.keys(children).length > 0) {
                res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);
              }
              return res;
            }
            // parse a segment with its matrix parameters
            // ie `name;k1=v1;k2`
            parseSegment() {
              const path = matchSegments(this.remaining);
              if (path === '' && this.peekStartsWith(';')) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4009 /* RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Empty path url segment cannot have parameters: '${this.remaining}'.`);
              }
              this.capture(path);
              return new UrlSegment(decode(path), this.parseMatrixParams());
            }
            parseMatrixParams() {
              const params = {};
              while (this.consumeOptional(';')) {
                this.parseParam(params);
              }
              return params;
            }
            parseParam(params) {
              const key = matchMatrixKeySegments(this.remaining);
              if (!key) {
                return;
              }
              this.capture(key);
              let value = '';
              if (this.consumeOptional('=')) {
                const valueMatch = matchSegments(this.remaining);
                if (valueMatch) {
                  value = valueMatch;
                  this.capture(value);
                }
              }
              params[decode(key)] = decode(value);
            }
            // Parse a single query parameter `name[=value]`
            parseQueryParam(params) {
              const key = matchQueryParams(this.remaining);
              if (!key) {
                return;
              }
              this.capture(key);
              let value = '';
              if (this.consumeOptional('=')) {
                const valueMatch = matchUrlQueryParamValue(this.remaining);
                if (valueMatch) {
                  value = valueMatch;
                  this.capture(value);
                }
              }
              const decodedKey = decodeQuery(key);
              const decodedVal = decodeQuery(value);
              if (params.hasOwnProperty(decodedKey)) {
                // Append to existing values
                let currentVal = params[decodedKey];
                if (!Array.isArray(currentVal)) {
                  currentVal = [currentVal];
                  params[decodedKey] = currentVal;
                }
                currentVal.push(decodedVal);
              } else {
                // Create a new value
                params[decodedKey] = decodedVal;
              }
            }
            // parse `(a/b//outlet_name:c/d)`
            parseParens(allowPrimary) {
              const segments = {};
              this.capture('(');
              while (!this.consumeOptional(')') && this.remaining.length > 0) {
                const path = matchSegments(this.remaining);
                const next = this.remaining[path.length];
                // if is is not one of these characters, then the segment was unescaped
                // or the group was not closed
                if (next !== '/' && next !== ')' && next !== ';') {
                  throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4010 /* RuntimeErrorCode.UNPARSABLE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot parse url '${this.url}'`);
                }
                let outletName = undefined;
                if (path.indexOf(':') > -1) {
                  outletName = path.slice(0, path.indexOf(':'));
                  this.capture(outletName);
                  this.capture(':');
                } else if (allowPrimary) {
                  outletName = PRIMARY_OUTLET;
                }
                const children = this.parseChildren();
                segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children);
                this.consumeOptional('//');
              }
              return segments;
            }
            peekStartsWith(str) {
              return this.remaining.startsWith(str);
            }
            // Consumes the prefix when it is present and returns whether it has been consumed
            consumeOptional(str) {
              if (this.peekStartsWith(str)) {
                this.remaining = this.remaining.substring(str.length);
                return true;
              }
              return false;
            }
            capture(str) {
              if (!this.consumeOptional(str)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4011 /* RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected "${str}".`);
              }
            }
          }
          function createRoot(rootCandidate) {
            return rootCandidate.segments.length > 0 ? new UrlSegmentGroup([], {
              [PRIMARY_OUTLET]: rootCandidate
            }) : rootCandidate;
          }
          /**
           * Recursively
           * - merges primary segment children into their parents
           * - drops empty children (those which have no segments and no children themselves). This latter
           * prevents serializing a group into something like `/a(aux:)`, where `aux` is an empty child
           * segment.
           * - merges named outlets without a primary segment sibling into the children. This prevents
           * serializing a URL like `//(a:a)(b:b) instead of `/(a:a//b:b)` when the aux b route lives on the
           * root but the `a` route lives under an empty path primary route.
           */
          function squashSegmentGroup(segmentGroup) {
            const newChildren = {};
            for (const childOutlet of Object.keys(segmentGroup.children)) {
              const child = segmentGroup.children[childOutlet];
              const childCandidate = squashSegmentGroup(child);
              // moves named children in an empty path primary child into this group
              if (childOutlet === PRIMARY_OUTLET && childCandidate.segments.length === 0 && childCandidate.hasChildren()) {
                for (const [grandChildOutlet, grandChild] of Object.entries(childCandidate.children)) {
                  newChildren[grandChildOutlet] = grandChild;
                }
              } // don't add empty children
              else if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {
                newChildren[childOutlet] = childCandidate;
              }
            }
            const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);
            return mergeTrivialChildren(s);
          }
          /**
           * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.
           *
           * When a segment group has only one child which is a primary outlet, merges that child into the
           * parent. That is, the child segment group's segments are merged into the `s` and the child's
           * children become the children of `s`. Think of this like a 'squash', merging the child segment
           * group into the parent.
           */
          function mergeTrivialChildren(s) {
            if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {
              const c = s.children[PRIMARY_OUTLET];
              return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);
            }
            return s;
          }
          function isUrlTree(v) {
            return v instanceof UrlTree;
          }
          
          /**
           * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.
           *
           * @publicApi
           *
           *
           * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to
           * @param commands An array of URL fragments with which to construct the new URL tree.
           * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
           * segments, followed by the parameters for each segment.
           * The fragments are applied to the one provided in the `relativeTo` parameter.
           * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have
           *     any query parameters.
           * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.
           *
           * @usageNotes
           *
           * ```
           * // create /team/33/user/11
           * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);
           *
           * // create /team/33;expand=true/user/11
           * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);
           *
           * // you can collapse static segments like this (this works only with the first passed-in value):
           * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);
           *
           * // If the first segment can contain slashes, and you do not want the router to split it,
           * // you can do the following:
           * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);
           *
           * // create /team/33/(user/11//right:chat)
           * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:
           * 'chat'}}], null, null);
           *
           * // remove the right secondary node
           * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);
           *
           * // For the examples below, assume the current URL is for the `/team/33/user/11` and the
           * `ActivatedRouteSnapshot` points to `user/11`:
           *
           * // navigate to /team/33/user/11/details
           * createUrlTreeFromSnapshot(snapshot, ['details']);
           *
           * // navigate to /team/33/user/22
           * createUrlTreeFromSnapshot(snapshot, ['../22']);
           *
           * // navigate to /team/44/user/22
           * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);
           * ```
           */
          function createUrlTreeFromSnapshot(relativeTo, commands, queryParams = null, fragment = null) {
            const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);
            return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment);
          }
          function createSegmentGroupFromRoute(route) {
            let targetGroup;
            function createSegmentGroupFromRouteRecursive(currentRoute) {
              const childOutlets = {};
              for (const childSnapshot of currentRoute.children) {
                const root = createSegmentGroupFromRouteRecursive(childSnapshot);
                childOutlets[childSnapshot.outlet] = root;
              }
              const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);
              if (currentRoute === route) {
                targetGroup = segmentGroup;
              }
              return segmentGroup;
            }
            const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);
            const rootSegmentGroup = createRoot(rootCandidate);
            return targetGroup ?? rootSegmentGroup;
          }
          function createUrlTreeFromSegmentGroup(relativeTo, commands, queryParams, fragment) {
            let root = relativeTo;
            while (root.parent) {
              root = root.parent;
            }
            // There are no commands so the `UrlTree` goes to the same path as the one created from the
            // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without
            // applying any other logic.
            if (commands.length === 0) {
              return tree(root, root, root, queryParams, fragment);
            }
            const nav = computeNavigation(commands);
            if (nav.toRoot()) {
              return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);
            }
            const position = findStartingPositionForTargetGroup(nav, root, relativeTo);
            const newSegmentGroup = position.processChildren ? updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands) : updateSegmentGroup(position.segmentGroup, position.index, nav.commands);
            return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment);
          }
          function isMatrixParams(command) {
            return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;
          }
          /**
           * Determines if a given command has an `outlets` map. When we encounter a command
           * with an outlets k/v map, we need to apply each outlet individually to the existing segment.
           */
          function isCommandWithOutlets(command) {
            return typeof command === 'object' && command != null && command.outlets;
          }
          function tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {
            let qp = {};
            if (queryParams) {
              Object.entries(queryParams).forEach(([name, value]) => {
                qp[name] = Array.isArray(value) ? value.map(v => `${v}`) : `${value}`;
              });
            }
            let rootCandidate;
            if (oldRoot === oldSegmentGroup) {
              rootCandidate = newSegmentGroup;
            } else {
              rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);
            }
            const newRoot = createRoot(squashSegmentGroup(rootCandidate));
            return new UrlTree(newRoot, qp, fragment);
          }
          /**
           * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.
           * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This
           * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses
           * the Router's current url tree. If we don't create new segment groups, we end up modifying that
           * value.
           */
          function replaceSegment(current, oldSegment, newSegment) {
            const children = {};
            Object.entries(current.children).forEach(([outletName, c]) => {
              if (c === oldSegment) {
                children[outletName] = newSegment;
              } else {
                children[outletName] = replaceSegment(c, oldSegment, newSegment);
              }
            });
            return new UrlSegmentGroup(current.segments, children);
          }
          class Navigation {
            constructor(isAbsolute, numberOfDoubleDots, commands) {
              this.isAbsolute = isAbsolute;
              this.numberOfDoubleDots = numberOfDoubleDots;
              this.commands = commands;
              if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4003 /* RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Root segment cannot have matrix parameters');
              }
              const cmdWithOutlet = commands.find(isCommandWithOutlets);
              if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4004 /* RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) && '{outlets:{}} has to be the last command');
              }
            }
            toRoot() {
              return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';
            }
          }
          /** Transforms commands to a normalized `Navigation` */
          function computeNavigation(commands) {
            if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {
              return new Navigation(true, 0, commands);
            }
            let numberOfDoubleDots = 0;
            let isAbsolute = false;
            const res = commands.reduce((res, cmd, cmdIdx) => {
              if (typeof cmd === 'object' && cmd != null) {
                if (cmd.outlets) {
                  const outlets = {};
                  Object.entries(cmd.outlets).forEach(([name, commands]) => {
                    outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;
                  });
                  return [...res, {
                    outlets
                  }];
                }
                if (cmd.segmentPath) {
                  return [...res, cmd.segmentPath];
                }
              }
              if (!(typeof cmd === 'string')) {
                return [...res, cmd];
              }
              if (cmdIdx === 0) {
                cmd.split('/').forEach((urlPart, partIndex) => {
                  if (partIndex == 0 && urlPart === '.') {
                    // skip './a'
                  } else if (partIndex == 0 && urlPart === '') {
                    //  '/a'
                    isAbsolute = true;
                  } else if (urlPart === '..') {
                    //  '../a'
                    numberOfDoubleDots++;
                  } else if (urlPart != '') {
                    res.push(urlPart);
                  }
                });
                return res;
              }
              return [...res, cmd];
            }, []);
            return new Navigation(isAbsolute, numberOfDoubleDots, res);
          }
          class Position {
            constructor(segmentGroup, processChildren, index) {
              this.segmentGroup = segmentGroup;
              this.processChildren = processChildren;
              this.index = index;
            }
          }
          function findStartingPositionForTargetGroup(nav, root, target) {
            if (nav.isAbsolute) {
              return new Position(root, true, 0);
            }
            if (!target) {
              // `NaN` is used only to maintain backwards compatibility with incorrectly mocked
              // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was
              // determined based on an internal property that was rarely mocked, resulting in `NaN`. In
              // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.
              return new Position(root, false, NaN);
            }
            if (target.parent === null) {
              return new Position(target, true, 0);
            }
            const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;
            const index = target.segments.length - 1 + modifier;
            return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots);
          }
          function createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {
            let g = group;
            let ci = index;
            let dd = numberOfDoubleDots;
            while (dd > ci) {
              dd -= ci;
              g = g.parent;
              if (!g) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4005 /* RuntimeErrorCode.INVALID_DOUBLE_DOTS */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Invalid number of \'../\'');
              }
              ci = g.segments.length;
            }
            return new Position(g, false, ci - dd);
          }
          function getOutlets(commands) {
            if (isCommandWithOutlets(commands[0])) {
              return commands[0].outlets;
            }
            return {
              [PRIMARY_OUTLET]: commands
            };
          }
          function updateSegmentGroup(segmentGroup, startIndex, commands) {
            if (!segmentGroup) {
              segmentGroup = new UrlSegmentGroup([], {});
            }
            if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
              return updateSegmentGroupChildren(segmentGroup, startIndex, commands);
            }
            const m = prefixedWith(segmentGroup, startIndex, commands);
            const slicedCommands = commands.slice(m.commandIndex);
            if (m.match && m.pathIndex < segmentGroup.segments.length) {
              const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});
              g.children[PRIMARY_OUTLET] = new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);
              return updateSegmentGroupChildren(g, 0, slicedCommands);
            } else if (m.match && slicedCommands.length === 0) {
              return new UrlSegmentGroup(segmentGroup.segments, {});
            } else if (m.match && !segmentGroup.hasChildren()) {
              return createNewSegmentGroup(segmentGroup, startIndex, commands);
            } else if (m.match) {
              return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);
            } else {
              return createNewSegmentGroup(segmentGroup, startIndex, commands);
            }
          }
          function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
            if (commands.length === 0) {
              return new UrlSegmentGroup(segmentGroup.segments, {});
            } else {
              const outlets = getOutlets(commands);
              const children = {};
              // If the set of commands applies to anything other than the primary outlet and the child
              // segment is an empty path primary segment on its own, we want to apply the commands to the
              // empty child path rather than here. The outcome is that the empty primary child is effectively
              // removed from the final output UrlTree. Imagine the following config:
              //
              // {path: '', children: [{path: '**', outlet: 'popup'}]}.
              //
              // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up
              // navigation with commands
              // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the
              // root segment because that would result in
              // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in
              // the `ActivatedRoute` rather than updating the existing one.
              //
              // Because empty paths do not appear in the URL segments and the fact that the segments used in
              // the output `UrlTree` are squashed to eliminate these empty paths where possible
              // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755
              // it can be hard to determine what is the right thing to do when applying commands to a
              // `UrlSegmentGroup` that is created from an "unsquashed"/expanded `ActivatedRoute` tree.
              // This code effectively "squashes" empty path primary routes when they have no siblings on
              // the same level of the tree.
              if (Object.keys(outlets).some(o => o !== PRIMARY_OUTLET) && segmentGroup.children[PRIMARY_OUTLET] && segmentGroup.numberOfChildren === 1 && segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {
                const childrenOfEmptyChild = updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);
                return new UrlSegmentGroup(segmentGroup.segments, childrenOfEmptyChild.children);
              }
              Object.entries(outlets).forEach(([outlet, commands]) => {
                if (typeof commands === 'string') {
                  commands = [commands];
                }
                if (commands !== null) {
                  children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);
                }
              });
              Object.entries(segmentGroup.children).forEach(([childOutlet, child]) => {
                if (outlets[childOutlet] === undefined) {
                  children[childOutlet] = child;
                }
              });
              return new UrlSegmentGroup(segmentGroup.segments, children);
            }
          }
          function prefixedWith(segmentGroup, startIndex, commands) {
            let currentCommandIndex = 0;
            let currentPathIndex = startIndex;
            const noMatch = {
              match: false,
              pathIndex: 0,
              commandIndex: 0
            };
            while (currentPathIndex < segmentGroup.segments.length) {
              if (currentCommandIndex >= commands.length) return noMatch;
              const path = segmentGroup.segments[currentPathIndex];
              const command = commands[currentCommandIndex];
              // Do not try to consume command as part of the prefixing if it has outlets because it can
              // contain outlets other than the one being processed. Consuming the outlets command would
              // result in other outlets being ignored.
              if (isCommandWithOutlets(command)) {
                break;
              }
              const curr = `${command}`;
              const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;
              if (currentPathIndex > 0 && curr === undefined) break;
              if (curr && next && typeof next === 'object' && next.outlets === undefined) {
                if (!compare(curr, next, path)) return noMatch;
                currentCommandIndex += 2;
              } else {
                if (!compare(curr, {}, path)) return noMatch;
                currentCommandIndex++;
              }
              currentPathIndex++;
            }
            return {
              match: true,
              pathIndex: currentPathIndex,
              commandIndex: currentCommandIndex
            };
          }
          function createNewSegmentGroup(segmentGroup, startIndex, commands) {
            const paths = segmentGroup.segments.slice(0, startIndex);
            let i = 0;
            while (i < commands.length) {
              const command = commands[i];
              if (isCommandWithOutlets(command)) {
                const children = createNewSegmentChildren(command.outlets);
                return new UrlSegmentGroup(paths, children);
              }
              // if we start with an object literal, we need to reuse the path part from the segment
              if (i === 0 && isMatrixParams(commands[0])) {
                const p = segmentGroup.segments[startIndex];
                paths.push(new UrlSegment(p.path, stringify(commands[0])));
                i++;
                continue;
              }
              const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;
              const next = i < commands.length - 1 ? commands[i + 1] : null;
              if (curr && next && isMatrixParams(next)) {
                paths.push(new UrlSegment(curr, stringify(next)));
                i += 2;
              } else {
                paths.push(new UrlSegment(curr, {}));
                i++;
              }
            }
            return new UrlSegmentGroup(paths, {});
          }
          function createNewSegmentChildren(outlets) {
            const children = {};
            Object.entries(outlets).forEach(([outlet, commands]) => {
              if (typeof commands === 'string') {
                commands = [commands];
              }
              if (commands !== null) {
                children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);
              }
            });
            return children;
          }
          function stringify(params) {
            const res = {};
            Object.entries(params).forEach(([k, v]) => res[k] = `${v}`);
            return res;
          }
          function compare(path, params, segment) {
            return path == segment.path && shallowEqual(params, segment.parameters);
          }
          const IMPERATIVE_NAVIGATION = 'imperative';
          /**
           * Base for events the router goes through, as opposed to events tied to a specific
           * route. Fired one time for any given navigation.
           *
           * The following code shows how a class subscribes to router events.
           *
           * ```ts
           * import {Event, RouterEvent, Router} from '@angular/router';
           *
           * class MyService {
           *   constructor(public router: Router) {
           *     router.events.pipe(
           *        filter((e: Event | RouterEvent): e is RouterEvent => e instanceof RouterEvent)
           *     ).subscribe((e: RouterEvent) => {
           *       // Do something
           *     });
           *   }
           * }
           * ```
           *
           * @see {@link Event}
           * @see [Router events summary](guide/router-reference#router-events)
           * @publicApi
           */
          class RouterEvent {
            constructor( /** A unique ID that the router assigns to every router navigation. */
            id, /** The URL that is the destination for this navigation. */
            url) {
              this.id = id;
              this.url = url;
            }
          }
          /**
           * An event triggered when a navigation starts.
           *
           * @publicApi
           */
          class NavigationStart extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            navigationTrigger = 'imperative', /** @docsNotRequired */
            restoredState = null) {
              super(id, url);
              this.type = 0 /* EventType.NavigationStart */;
              this.navigationTrigger = navigationTrigger;
              this.restoredState = restoredState;
            }
            /** @docsNotRequired */
            toString() {
              return `NavigationStart(id: ${this.id}, url: '${this.url}')`;
            }
          }
          /**
           * An event triggered when a navigation ends successfully.
           *
           * @see {@link NavigationStart}
           * @see {@link NavigationCancel}
           * @see {@link NavigationError}
           *
           * @publicApi
           */
          class NavigationEnd extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.type = 1 /* EventType.NavigationEnd */;
            }
            /** @docsNotRequired */
            toString() {
              return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;
            }
          }
          /**
           * An event triggered when a navigation is canceled, directly or indirectly.
           * This can happen for several reasons including when a route guard
           * returns `false` or initiates a redirect by returning a `UrlTree`.
           *
           * @see {@link NavigationStart}
           * @see {@link NavigationEnd}
           * @see {@link NavigationError}
           *
           * @publicApi
           */
          class NavigationCancel extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url,
            /**
             * A description of why the navigation was cancelled. For debug purposes only. Use `code`
             * instead for a stable cancellation reason that can be used in production.
             */
            reason,
            /**
             * A code to indicate why the navigation was canceled. This cancellation code is stable for
             * the reason and can be relied on whereas the `reason` string could change and should not be
             * used in production.
             */
            code) {
              super(id, url);
              this.reason = reason;
              this.code = code;
              this.type = 2 /* EventType.NavigationCancel */;
            }
            /** @docsNotRequired */
            toString() {
              return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;
            }
          }
          /**
           * An event triggered when a navigation is skipped.
           * This can happen for a couple reasons including onSameUrlHandling
           * is set to `ignore` and the navigation URL is not different than the
           * current state.
           *
           * @publicApi
           */
          class NavigationSkipped extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url,
            /**
             * A description of why the navigation was skipped. For debug purposes only. Use `code`
             * instead for a stable skipped reason that can be used in production.
             */
            reason,
            /**
             * A code to indicate why the navigation was skipped. This code is stable for
             * the reason and can be relied on whereas the `reason` string could change and should not be
             * used in production.
             */
            code) {
              super(id, url);
              this.reason = reason;
              this.code = code;
              this.type = 16 /* EventType.NavigationSkipped */;
            }
          }
          /**
           * An event triggered when a navigation fails due to an unexpected error.
           *
           * @see {@link NavigationStart}
           * @see {@link NavigationEnd}
           * @see {@link NavigationCancel}
           *
           * @publicApi
           */
          class NavigationError extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            error,
            /**
             * The target of the navigation when the error occurred.
             *
             * Note that this can be `undefined` because an error could have occurred before the
             * `RouterStateSnapshot` was created for the navigation.
             */
            target) {
              super(id, url);
              this.error = error;
              this.target = target;
              this.type = 3 /* EventType.NavigationError */;
            }
            /** @docsNotRequired */
            toString() {
              return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;
            }
          }
          /**
           * An event triggered when routes are recognized.
           *
           * @publicApi
           */
          class RoutesRecognized extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects, /** @docsNotRequired */
            state) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.state = state;
              this.type = 4 /* EventType.RoutesRecognized */;
            }
            /** @docsNotRequired */
            toString() {
              return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
            }
          }
          /**
           * An event triggered at the start of the Guard phase of routing.
           *
           * @see {@link GuardsCheckEnd}
           *
           * @publicApi
           */
          class GuardsCheckStart extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects, /** @docsNotRequired */
            state) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.state = state;
              this.type = 7 /* EventType.GuardsCheckStart */;
            }
          
            toString() {
              return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
            }
          }
          /**
           * An event triggered at the end of the Guard phase of routing.
           *
           * @see {@link GuardsCheckStart}
           *
           * @publicApi
           */
          class GuardsCheckEnd extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects, /** @docsNotRequired */
            state, /** @docsNotRequired */
            shouldActivate) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.state = state;
              this.shouldActivate = shouldActivate;
              this.type = 8 /* EventType.GuardsCheckEnd */;
            }
          
            toString() {
              return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;
            }
          }
          /**
           * An event triggered at the start of the Resolve phase of routing.
           *
           * Runs in the "resolve" phase whether or not there is anything to resolve.
           * In future, may change to only run when there are things to be resolved.
           *
           * @see {@link ResolveEnd}
           *
           * @publicApi
           */
          class ResolveStart extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects, /** @docsNotRequired */
            state) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.state = state;
              this.type = 5 /* EventType.ResolveStart */;
            }
          
            toString() {
              return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
            }
          }
          /**
           * An event triggered at the end of the Resolve phase of routing.
           * @see {@link ResolveStart}
           *
           * @publicApi
           */
          class ResolveEnd extends RouterEvent {
            constructor( /** @docsNotRequired */
            id, /** @docsNotRequired */
            url, /** @docsNotRequired */
            urlAfterRedirects, /** @docsNotRequired */
            state) {
              super(id, url);
              this.urlAfterRedirects = urlAfterRedirects;
              this.state = state;
              this.type = 6 /* EventType.ResolveEnd */;
            }
          
            toString() {
              return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
            }
          }
          /**
           * An event triggered before lazy loading a route configuration.
           *
           * @see {@link RouteConfigLoadEnd}
           *
           * @publicApi
           */
          class RouteConfigLoadStart {
            constructor( /** @docsNotRequired */
            route) {
              this.route = route;
              this.type = 9 /* EventType.RouteConfigLoadStart */;
            }
          
            toString() {
              return `RouteConfigLoadStart(path: ${this.route.path})`;
            }
          }
          /**
           * An event triggered when a route has been lazy loaded.
           *
           * @see {@link RouteConfigLoadStart}
           *
           * @publicApi
           */
          class RouteConfigLoadEnd {
            constructor( /** @docsNotRequired */
            route) {
              this.route = route;
              this.type = 10 /* EventType.RouteConfigLoadEnd */;
            }
          
            toString() {
              return `RouteConfigLoadEnd(path: ${this.route.path})`;
            }
          }
          /**
           * An event triggered at the start of the child-activation
           * part of the Resolve phase of routing.
           * @see {@link ChildActivationEnd}
           * @see {@link ResolveStart}
           *
           * @publicApi
           */
          class ChildActivationStart {
            constructor( /** @docsNotRequired */
            snapshot) {
              this.snapshot = snapshot;
              this.type = 11 /* EventType.ChildActivationStart */;
            }
          
            toString() {
              const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
              return `ChildActivationStart(path: '${path}')`;
            }
          }
          /**
           * An event triggered at the end of the child-activation part
           * of the Resolve phase of routing.
           * @see {@link ChildActivationStart}
           * @see {@link ResolveStart}
           * @publicApi
           */
          class ChildActivationEnd {
            constructor( /** @docsNotRequired */
            snapshot) {
              this.snapshot = snapshot;
              this.type = 12 /* EventType.ChildActivationEnd */;
            }
          
            toString() {
              const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
              return `ChildActivationEnd(path: '${path}')`;
            }
          }
          /**
           * An event triggered at the start of the activation part
           * of the Resolve phase of routing.
           * @see {@link ActivationEnd}
           * @see {@link ResolveStart}
           *
           * @publicApi
           */
          class ActivationStart {
            constructor( /** @docsNotRequired */
            snapshot) {
              this.snapshot = snapshot;
              this.type = 13 /* EventType.ActivationStart */;
            }
          
            toString() {
              const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
              return `ActivationStart(path: '${path}')`;
            }
          }
          /**
           * An event triggered at the end of the activation part
           * of the Resolve phase of routing.
           * @see {@link ActivationStart}
           * @see {@link ResolveStart}
           *
           * @publicApi
           */
          class ActivationEnd {
            constructor( /** @docsNotRequired */
            snapshot) {
              this.snapshot = snapshot;
              this.type = 14 /* EventType.ActivationEnd */;
            }
          
            toString() {
              const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
              return `ActivationEnd(path: '${path}')`;
            }
          }
          /**
           * An event triggered by scrolling.
           *
           * @publicApi
           */
          class Scroll {
            constructor( /** @docsNotRequired */
            routerEvent, /** @docsNotRequired */
            position, /** @docsNotRequired */
            anchor) {
              this.routerEvent = routerEvent;
              this.position = position;
              this.anchor = anchor;
              this.type = 15 /* EventType.Scroll */;
            }
          
            toString() {
              const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;
              return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;
            }
          }
          class BeforeActivateRoutes {}
          class RedirectRequest {
            constructor(url) {
              this.url = url;
            }
          }
          function stringifyEvent(routerEvent) {
            switch (routerEvent.type) {
              case 14 /* EventType.ActivationEnd */:
                return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;
              case 13 /* EventType.ActivationStart */:
                return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;
              case 12 /* EventType.ChildActivationEnd */:
                return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;
              case 11 /* EventType.ChildActivationStart */:
                return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;
              case 8 /* EventType.GuardsCheckEnd */:
                return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;
              case 7 /* EventType.GuardsCheckStart */:
                return `GuardsCheckStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;
              case 2 /* EventType.NavigationCancel */:
                return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;
              case 16 /* EventType.NavigationSkipped */:
                return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;
              case 1 /* EventType.NavigationEnd */:
                return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}')`;
              case 3 /* EventType.NavigationError */:
                return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${routerEvent.error})`;
              case 0 /* EventType.NavigationStart */:
                return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;
              case 6 /* EventType.ResolveEnd */:
                return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;
              case 5 /* EventType.ResolveStart */:
                return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;
              case 10 /* EventType.RouteConfigLoadEnd */:
                return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;
              case 9 /* EventType.RouteConfigLoadStart */:
                return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;
              case 4 /* EventType.RoutesRecognized */:
                return `RoutesRecognized(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;
              case 15 /* EventType.Scroll */:
                const pos = routerEvent.position ? `${routerEvent.position[0]}, ${routerEvent.position[1]}` : null;
                return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;
            }
          }
          
          /**
           * Store contextual information about a `RouterOutlet`
           *
           * @publicApi
           */
          class OutletContext {
            constructor() {
              this.outlet = null;
              this.route = null;
              this.injector = null;
              this.children = new ChildrenOutletContexts();
              this.attachRef = null;
            }
          }
          /**
           * Store contextual information about the children (= nested) `RouterOutlet`
           *
           * @publicApi
           */
          class ChildrenOutletContexts {
            constructor() {
              // contexts for child outlets, by name.
              this.contexts = new Map();
            }
            /** Called when a `RouterOutlet` directive is instantiated */
            onChildOutletCreated(childName, outlet) {
              const context = this.getOrCreateContext(childName);
              context.outlet = outlet;
              this.contexts.set(childName, context);
            }
            /**
             * Called when a `RouterOutlet` directive is destroyed.
             * We need to keep the context as the outlet could be destroyed inside a NgIf and might be
             * re-created later.
             */
            onChildOutletDestroyed(childName) {
              const context = this.getContext(childName);
              if (context) {
                context.outlet = null;
                context.attachRef = null;
              }
            }
            /**
             * Called when the corresponding route is deactivated during navigation.
             * Because the component get destroyed, all children outlet are destroyed.
             */
            onOutletDeactivated() {
              const contexts = this.contexts;
              this.contexts = new Map();
              return contexts;
            }
            onOutletReAttached(contexts) {
              this.contexts = contexts;
            }
            getOrCreateContext(childName) {
              let context = this.getContext(childName);
              if (!context) {
                context = new OutletContext();
                this.contexts.set(childName, context);
              }
              return context;
            }
            getContext(childName) {
              return this.contexts.get(childName) || null;
            }
            static {
              this.ɵfac = function ChildrenOutletContexts_Factory(t) {
                return new (t || ChildrenOutletContexts)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: ChildrenOutletContexts,
                factory: ChildrenOutletContexts.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ChildrenOutletContexts, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          class Tree {
            constructor(root) {
              this._root = root;
            }
            get root() {
              return this._root.value;
            }
            /**
             * @internal
             */
            parent(t) {
              const p = this.pathFromRoot(t);
              return p.length > 1 ? p[p.length - 2] : null;
            }
            /**
             * @internal
             */
            children(t) {
              const n = findNode(t, this._root);
              return n ? n.children.map(t => t.value) : [];
            }
            /**
             * @internal
             */
            firstChild(t) {
              const n = findNode(t, this._root);
              return n && n.children.length > 0 ? n.children[0].value : null;
            }
            /**
             * @internal
             */
            siblings(t) {
              const p = findPath(t, this._root);
              if (p.length < 2) return [];
              const c = p[p.length - 2].children.map(c => c.value);
              return c.filter(cc => cc !== t);
            }
            /**
             * @internal
             */
            pathFromRoot(t) {
              return findPath(t, this._root).map(s => s.value);
            }
          }
          // DFS for the node matching the value
          function findNode(value, node) {
            if (value === node.value) return node;
            for (const child of node.children) {
              const node = findNode(value, child);
              if (node) return node;
            }
            return null;
          }
          // Return the path to the node with the given value using DFS
          function findPath(value, node) {
            if (value === node.value) return [node];
            for (const child of node.children) {
              const path = findPath(value, child);
              if (path.length) {
                path.unshift(node);
                return path;
              }
            }
            return [];
          }
          class TreeNode {
            constructor(value, children) {
              this.value = value;
              this.children = children;
            }
            toString() {
              return `TreeNode(${this.value})`;
            }
          }
          // Return the list of T indexed by outlet name
          function nodeChildrenAsMap(node) {
            const map = {};
            if (node) {
              node.children.forEach(child => map[child.value.outlet] = child);
            }
            return map;
          }
          
          /**
           * Represents the state of the router as a tree of activated routes.
           *
           * @usageNotes
           *
           * Every node in the route tree is an `ActivatedRoute` instance
           * that knows about the "consumed" URL segments, the extracted parameters,
           * and the resolved data.
           * Use the `ActivatedRoute` properties to traverse the tree from any node.
           *
           * The following fragment shows how a component gets the root node
           * of the current state to establish its own route tree:
           *
           * ```
           * @Component({templateUrl:'template.html'})
           * class MyComponent {
           *   constructor(router: Router) {
           *     const state: RouterState = router.routerState;
           *     const root: ActivatedRoute = state.root;
           *     const child = root.firstChild;
           *     const id: Observable<string> = child.params.map(p => p.id);
           *     //...
           *   }
           * }
           * ```
           *
           * @see {@link ActivatedRoute}
           * @see [Getting route information](guide/router#getting-route-information)
           *
           * @publicApi
           */
          class RouterState extends Tree {
            /** @internal */
            constructor(root, /** The current snapshot of the router state */
            snapshot) {
              super(root);
              this.snapshot = snapshot;
              setRouterState(this, root);
            }
            toString() {
              return this.snapshot.toString();
            }
          }
          function createEmptyState(urlTree, rootComponent) {
            const snapshot = createEmptyStateSnapshot(urlTree, rootComponent);
            const emptyUrl = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject([new UrlSegment('', {})]);
            const emptyParams = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject({});
            const emptyData = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject({});
            const emptyQueryParams = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject({});
            const fragment = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject('');
            const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);
            activated.snapshot = snapshot.root;
            return new RouterState(new TreeNode(activated, []), snapshot);
          }
          function createEmptyStateSnapshot(urlTree, rootComponent) {
            const emptyParams = {};
            const emptyData = {};
            const emptyQueryParams = {};
            const fragment = '';
            const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, {});
            return new RouterStateSnapshot('', new TreeNode(activated, []));
          }
          /**
           * Provides access to information about a route associated with a component
           * that is loaded in an outlet.
           * Use to traverse the `RouterState` tree and extract information from nodes.
           *
           * The following example shows how to construct a component using information from a
           * currently activated route.
           *
           * Note: the observables in this class only emit when the current and previous values differ based
           * on shallow equality. For example, changing deeply nested properties in resolved `data` will not
           * cause the `ActivatedRoute.data` `Observable` to emit a new value.
           *
           * {@example router/activated-route/module.ts region="activated-route"
           *     header="activated-route.component.ts"}
           *
           * @see [Getting route information](guide/router#getting-route-information)
           *
           * @publicApi
           */
          class ActivatedRoute {
            /** @internal */
            constructor( /** @internal */
            urlSubject, /** @internal */
            paramsSubject, /** @internal */
            queryParamsSubject, /** @internal */
            fragmentSubject, /** @internal */
            dataSubject, /** The outlet name of the route, a constant. */
            outlet, /** The component of the route, a constant. */
            component, futureSnapshot) {
              this.urlSubject = urlSubject;
              this.paramsSubject = paramsSubject;
              this.queryParamsSubject = queryParamsSubject;
              this.fragmentSubject = fragmentSubject;
              this.dataSubject = dataSubject;
              this.outlet = outlet;
              this.component = component;
              this._futureSnapshot = futureSnapshot;
              this.title = this.dataSubject?.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(d => d[RouteTitleKey])) ?? (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(undefined);
              // TODO(atscott): Verify that these can be changed to `.asObservable()` with TGP.
              this.url = urlSubject;
              this.params = paramsSubject;
              this.queryParams = queryParamsSubject;
              this.fragment = fragmentSubject;
              this.data = dataSubject;
            }
            /** The configuration used to match this route. */
            get routeConfig() {
              return this._futureSnapshot.routeConfig;
            }
            /** The root of the router state. */
            get root() {
              return this._routerState.root;
            }
            /** The parent of this route in the router state tree. */
            get parent() {
              return this._routerState.parent(this);
            }
            /** The first child of this route in the router state tree. */
            get firstChild() {
              return this._routerState.firstChild(this);
            }
            /** The children of this route in the router state tree. */
            get children() {
              return this._routerState.children(this);
            }
            /** The path from the root of the router state tree to this route. */
            get pathFromRoot() {
              return this._routerState.pathFromRoot(this);
            }
            /**
             * An Observable that contains a map of the required and optional parameters
             * specific to the route.
             * The map supports retrieving single and multiple values from the same parameter.
             */
            get paramMap() {
              if (!this._paramMap) {
                this._paramMap = this.params.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(p => convertToParamMap(p)));
              }
              return this._paramMap;
            }
            /**
             * An Observable that contains a map of the query parameters available to all routes.
             * The map supports retrieving single and multiple values from the query parameter.
             */
            get queryParamMap() {
              if (!this._queryParamMap) {
                this._queryParamMap = this.queryParams.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(p => convertToParamMap(p)));
              }
              return this._queryParamMap;
            }
            toString() {
              return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;
            }
          }
          /**
           * Returns the inherited params, data, and resolve for a given route.
           * By default, this only inherits values up to the nearest path-less or component-less route.
           * @internal
           */
          function inheritedParamsDataResolve(route, paramsInheritanceStrategy = 'emptyOnly') {
            const pathFromRoot = route.pathFromRoot;
            let inheritingStartingFrom = 0;
            if (paramsInheritanceStrategy !== 'always') {
              inheritingStartingFrom = pathFromRoot.length - 1;
              while (inheritingStartingFrom >= 1) {
                const current = pathFromRoot[inheritingStartingFrom];
                const parent = pathFromRoot[inheritingStartingFrom - 1];
                // current route is an empty path => inherits its parent's params and data
                if (current.routeConfig && current.routeConfig.path === '') {
                  inheritingStartingFrom--;
                  // parent is componentless => current route should inherit its params and data
                } else if (!parent.component) {
                  inheritingStartingFrom--;
                } else {
                  break;
                }
              }
            }
            return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));
          }
          /** @internal */
          function flattenInherited(pathFromRoot) {
            return pathFromRoot.reduce((res, curr) => {
              const params = {
                ...res.params,
                ...curr.params
              };
              const data = {
                ...res.data,
                ...curr.data
              };
              const resolve = {
                ...curr.data,
                ...res.resolve,
                ...curr.routeConfig?.data,
                ...curr._resolvedData
              };
              return {
                params,
                data,
                resolve
              };
            }, {
              params: {},
              data: {},
              resolve: {}
            });
          }
          /**
           * @description
           *
           * Contains the information about a route associated with a component loaded in an
           * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to
           * traverse the router state tree.
           *
           * The following example initializes a component with route information extracted
           * from the snapshot of the root node at the time of creation.
           *
           * ```
           * @Component({templateUrl:'./my-component.html'})
           * class MyComponent {
           *   constructor(route: ActivatedRoute) {
           *     const id: string = route.snapshot.params.id;
           *     const url: string = route.snapshot.url.join('');
           *     const user = route.snapshot.data.user;
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class ActivatedRouteSnapshot {
            /** The resolved route title */
            get title() {
              // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be
              // available at the time of class instantiation.
              return this.data?.[RouteTitleKey];
            }
            /** @internal */
            constructor( /** The URL segments matched by this route */
            url,
            /**
             *  The matrix parameters scoped to this route.
             *
             *  You can compute all params (or data) in the router state or to get params outside
             *  of an activated component by traversing the `RouterState` tree as in the following
             *  example:
             *  ```
             *  collectRouteParams(router: Router) {
             *    let params = {};
             *    let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];
             *    while (stack.length > 0) {
             *      const route = stack.pop()!;
             *      params = {...params, ...route.params};
             *      stack.push(...route.children);
             *    }
             *    return params;
             *  }
             *  ```
             */
            params, /** The query parameters shared by all the routes */
            queryParams, /** The URL fragment shared by all the routes */
            fragment, /** The static and resolved data of this route */
            data, /** The outlet name of the route */
            outlet, /** The component of the route */
            component, routeConfig, resolve) {
              this.url = url;
              this.params = params;
              this.queryParams = queryParams;
              this.fragment = fragment;
              this.data = data;
              this.outlet = outlet;
              this.component = component;
              this.routeConfig = routeConfig;
              this._resolve = resolve;
            }
            /** The root of the router state */
            get root() {
              return this._routerState.root;
            }
            /** The parent of this route in the router state tree */
            get parent() {
              return this._routerState.parent(this);
            }
            /** The first child of this route in the router state tree */
            get firstChild() {
              return this._routerState.firstChild(this);
            }
            /** The children of this route in the router state tree */
            get children() {
              return this._routerState.children(this);
            }
            /** The path from the root of the router state tree to this route */
            get pathFromRoot() {
              return this._routerState.pathFromRoot(this);
            }
            get paramMap() {
              if (!this._paramMap) {
                this._paramMap = convertToParamMap(this.params);
              }
              return this._paramMap;
            }
            get queryParamMap() {
              if (!this._queryParamMap) {
                this._queryParamMap = convertToParamMap(this.queryParams);
              }
              return this._queryParamMap;
            }
            toString() {
              const url = this.url.map(segment => segment.toString()).join('/');
              const matched = this.routeConfig ? this.routeConfig.path : '';
              return `Route(url:'${url}', path:'${matched}')`;
            }
          }
          /**
           * @description
           *
           * Represents the state of the router at a moment in time.
           *
           * This is a tree of activated route snapshots. Every node in this tree knows about
           * the "consumed" URL segments, the extracted parameters, and the resolved data.
           *
           * The following example shows how a component is initialized with information
           * from the snapshot of the root node's state at the time of creation.
           *
           * ```
           * @Component({templateUrl:'template.html'})
           * class MyComponent {
           *   constructor(router: Router) {
           *     const state: RouterState = router.routerState;
           *     const snapshot: RouterStateSnapshot = state.snapshot;
           *     const root: ActivatedRouteSnapshot = snapshot.root;
           *     const child = root.firstChild;
           *     const id: Observable<string> = child.params.map(p => p.id);
           *     //...
           *   }
           * }
           * ```
           *
           * @publicApi
           */
          class RouterStateSnapshot extends Tree {
            /** @internal */
            constructor( /** The url from which this snapshot was created */
            url, root) {
              super(root);
              this.url = url;
              setRouterState(this, root);
            }
            toString() {
              return serializeNode(this._root);
            }
          }
          function setRouterState(state, node) {
            node.value._routerState = state;
            node.children.forEach(c => setRouterState(state, c));
          }
          function serializeNode(node) {
            const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';
            return `${node.value}${c}`;
          }
          /**
           * The expectation is that the activate route is created with the right set of parameters.
           * So we push new values into the observables only when they are not the initial values.
           * And we detect that by checking if the snapshot field is set.
           */
          function advanceActivatedRoute(route) {
            if (route.snapshot) {
              const currentSnapshot = route.snapshot;
              const nextSnapshot = route._futureSnapshot;
              route.snapshot = nextSnapshot;
              if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {
                route.queryParamsSubject.next(nextSnapshot.queryParams);
              }
              if (currentSnapshot.fragment !== nextSnapshot.fragment) {
                route.fragmentSubject.next(nextSnapshot.fragment);
              }
              if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {
                route.paramsSubject.next(nextSnapshot.params);
              }
              if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {
                route.urlSubject.next(nextSnapshot.url);
              }
              if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {
                route.dataSubject.next(nextSnapshot.data);
              }
            } else {
              route.snapshot = route._futureSnapshot;
              // this is for resolved data
              route.dataSubject.next(route._futureSnapshot.data);
            }
          }
          function equalParamsAndUrlSegments(a, b) {
            const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);
            const parentsMismatch = !a.parent !== !b.parent;
            return equalUrlParams && !parentsMismatch && (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));
          }
          
          /**
           * @description
           *
           * Acts as a placeholder that Angular dynamically fills based on the current router state.
           *
           * Each outlet can have a unique name, determined by the optional `name` attribute.
           * The name cannot be set or changed dynamically. If not set, default value is "primary".
           *
           * ```
           * <router-outlet></router-outlet>
           * <router-outlet name='left'></router-outlet>
           * <router-outlet name='right'></router-outlet>
           * ```
           *
           * Named outlets can be the targets of secondary routes.
           * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:
           *
           * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`
           *
           * Using named outlets and secondary routes, you can target multiple outlets in
           * the same `RouterLink` directive.
           *
           * The router keeps track of separate branches in a navigation tree for each named outlet and
           * generates a representation of that tree in the URL.
           * The URL for a secondary route uses the following syntax to specify both the primary and secondary
           * routes at the same time:
           *
           * `http://base-path/primary-route-path(outlet-name:route-path)`
           *
           * A router outlet emits an activate event when a new component is instantiated,
           * deactivate event when a component is destroyed.
           * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the
           * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to
           * detach the subtree.
           *
           * ```
           * <router-outlet
           *   (activate)='onActivate($event)'
           *   (deactivate)='onDeactivate($event)'
           *   (attach)='onAttach($event)'
           *   (detach)='onDetach($event)'></router-outlet>
           * ```
           *
           * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
           * outlet and secondary route configuration").
           * @see {@link RouterLink}
           * @see {@link Route}
           * @ngModule RouterModule
           *
           * @publicApi
           */
          class RouterOutlet {
            constructor() {
              this.activated = null;
              this._activatedRoute = null;
              /**
               * The name of the outlet
               *
               * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)
               */
              this.name = PRIMARY_OUTLET;
              this.activateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              this.deactivateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              /**
               * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a
               * previously detached subtree.
               **/
              this.attachEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              /**
               * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the
               * subtree.
               */
              this.detachEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              this.parentContexts = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ChildrenOutletContexts);
              this.location = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ViewContainerRef);
              this.changeDetector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef);
              this.environmentInjector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.EnvironmentInjector);
              this.inputBinder = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(INPUT_BINDER, {
                optional: true
              });
              /** @nodoc */
              this.supportsBindingToComponentInputs = true;
            }
            /** @internal */
            get activatedComponentRef() {
              return this.activated;
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (changes['name']) {
                const {
                  firstChange,
                  previousValue
                } = changes['name'];
                if (firstChange) {
                  // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no
                  // input is set at all, we need to centrally handle the first change there.
                  return;
                }
                // unregister with the old name
                if (this.isTrackedInParentContexts(previousValue)) {
                  this.deactivate();
                  this.parentContexts.onChildOutletDestroyed(previousValue);
                }
                // register the new name
                this.initializeOutletWithName();
              }
            }
            /** @nodoc */
            ngOnDestroy() {
              // Ensure that the registered outlet is this one before removing it on the context.
              if (this.isTrackedInParentContexts(this.name)) {
                this.parentContexts.onChildOutletDestroyed(this.name);
              }
              this.inputBinder?.unsubscribeFromRouteData(this);
            }
            isTrackedInParentContexts(outletName) {
              return this.parentContexts.getContext(outletName)?.outlet === this;
            }
            /** @nodoc */
            ngOnInit() {
              this.initializeOutletWithName();
            }
            initializeOutletWithName() {
              this.parentContexts.onChildOutletCreated(this.name, this);
              if (this.activated) {
                return;
              }
              // If the outlet was not instantiated at the time the route got activated we need to populate
              // the outlet when it is initialized (ie inside a NgIf)
              const context = this.parentContexts.getContext(this.name);
              if (context?.route) {
                if (context.attachRef) {
                  // `attachRef` is populated when there is an existing component to mount
                  this.attach(context.attachRef, context.route);
                } else {
                  // otherwise the component defined in the configuration is created
                  this.activateWith(context.route, context.injector);
                }
              }
            }
            get isActivated() {
              return !!this.activated;
            }
            /**
             * @returns The currently activated component instance.
             * @throws An error if the outlet is not activated.
             */
            get component() {
              if (!this.activated) throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');
              return this.activated.instance;
            }
            get activatedRoute() {
              if (!this.activated) throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');
              return this._activatedRoute;
            }
            get activatedRouteData() {
              if (this._activatedRoute) {
                return this._activatedRoute.snapshot.data;
              }
              return {};
            }
            /**
             * Called when the `RouteReuseStrategy` instructs to detach the subtree
             */
            detach() {
              if (!this.activated) throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');
              this.location.detach();
              const cmp = this.activated;
              this.activated = null;
              this._activatedRoute = null;
              this.detachEvents.emit(cmp.instance);
              return cmp;
            }
            /**
             * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
             */
            attach(ref, activatedRoute) {
              this.activated = ref;
              this._activatedRoute = activatedRoute;
              this.location.insert(ref.hostView);
              this.inputBinder?.bindActivatedRouteToOutletComponent(this);
              this.attachEvents.emit(ref.instance);
            }
            deactivate() {
              if (this.activated) {
                const c = this.component;
                this.activated.destroy();
                this.activated = null;
                this._activatedRoute = null;
                this.deactivateEvents.emit(c);
              }
            }
            activateWith(activatedRoute, environmentInjector) {
              if (this.isActivated) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4013 /* RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Cannot activate an already activated outlet');
              }
              this._activatedRoute = activatedRoute;
              const location = this.location;
              const snapshot = activatedRoute.snapshot;
              const component = snapshot.component;
              const childContexts = this.parentContexts.getOrCreateContext(this.name).children;
              const injector = new OutletInjector(activatedRoute, childContexts, location.injector);
              this.activated = location.createComponent(component, {
                index: location.length,
                injector,
                environmentInjector: environmentInjector ?? this.environmentInjector
              });
              // Calling `markForCheck` to make sure we will run the change detection when the
              // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.
              this.changeDetector.markForCheck();
              this.inputBinder?.bindActivatedRouteToOutletComponent(this);
              this.activateEvents.emit(this.activated.instance);
            }
            static {
              this.ɵfac = function RouterOutlet_Factory(t) {
                return new (t || RouterOutlet)();
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: RouterOutlet,
                selectors: [["router-outlet"]],
                inputs: {
                  name: "name"
                },
                outputs: {
                  activateEvents: "activate",
                  deactivateEvents: "deactivate",
                  attachEvents: "attach",
                  detachEvents: "detach"
                },
                exportAs: ["outlet"],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterOutlet, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: 'router-outlet',
                exportAs: 'outlet',
                standalone: true
              }]
            }], null, {
              name: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              activateEvents: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output,
                args: ['activate']
              }],
              deactivateEvents: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output,
                args: ['deactivate']
              }],
              attachEvents: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output,
                args: ['attach']
              }],
              detachEvents: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output,
                args: ['detach']
              }]
            });
          })();
          class OutletInjector {
            constructor(route, childContexts, parent) {
              this.route = route;
              this.childContexts = childContexts;
              this.parent = parent;
            }
            get(token, notFoundValue) {
              if (token === ActivatedRoute) {
                return this.route;
              }
              if (token === ChildrenOutletContexts) {
                return this.childContexts;
              }
              return this.parent.get(token, notFoundValue);
            }
          }
          const INPUT_BINDER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('');
          /**
           * Injectable used as a tree-shakable provider for opting in to binding router data to component
           * inputs.
           *
           * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or
           * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,
           * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.
           * Importantly, when an input does not have an item in the route data with a matching key, this
           * input is set to `undefined`. If it were not done this way, the previous information would be
           * retained if the data got removed from the route (i.e. if a query parameter is removed).
           *
           * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that
           * the subscriptions are cleaned up.
           */
          class RoutedComponentInputBinder {
            constructor() {
              this.outletDataSubscriptions = new Map();
            }
            bindActivatedRouteToOutletComponent(outlet) {
              this.unsubscribeFromRouteData(outlet);
              this.subscribeToRouteData(outlet);
            }
            unsubscribeFromRouteData(outlet) {
              this.outletDataSubscriptions.get(outlet)?.unsubscribe();
              this.outletDataSubscriptions.delete(outlet);
            }
            subscribeToRouteData(outlet) {
              const {
                activatedRoute
              } = outlet;
              const dataSubscription = (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.combineLatest)([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(([queryParams, params, data], index) => {
                data = {
                  ...queryParams,
                  ...params,
                  ...data
                };
                // Get the first result from the data subscription synchronously so it's available to
                // the component as soon as possible (and doesn't require a second change detection).
                if (index === 0) {
                  return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(data);
                }
                // Promise.resolve is used to avoid synchronously writing the wrong data when
                // two of the Observables in the `combineLatest` stream emit one after
                // another.
                return Promise.resolve(data);
              })).subscribe(data => {
                // Outlet may have been deactivated or changed names to be associated with a different
                // route
                if (!outlet.isActivated || !outlet.activatedComponentRef || outlet.activatedRoute !== activatedRoute || activatedRoute.component === null) {
                  this.unsubscribeFromRouteData(outlet);
                  return;
                }
                const mirror = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.reflectComponentType)(activatedRoute.component);
                if (!mirror) {
                  this.unsubscribeFromRouteData(outlet);
                  return;
                }
                for (const {
                  templateName
                } of mirror.inputs) {
                  outlet.activatedComponentRef.setInput(templateName, data[templateName]);
                }
              });
              this.outletDataSubscriptions.set(outlet, dataSubscription);
            }
            static {
              this.ɵfac = function RoutedComponentInputBinder_Factory(t) {
                return new (t || RoutedComponentInputBinder)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: RoutedComponentInputBinder,
                factory: RoutedComponentInputBinder.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RoutedComponentInputBinder, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], null, null);
          })();
          function createRouterState(routeReuseStrategy, curr, prevState) {
            const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);
            return new RouterState(root, curr);
          }
          function createNode(routeReuseStrategy, curr, prevState) {
            // reuse an activated route that is currently displayed on the screen
            if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {
              const value = prevState.value;
              value._futureSnapshot = curr.value;
              const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);
              return new TreeNode(value, children);
            } else {
              if (routeReuseStrategy.shouldAttach(curr.value)) {
                // retrieve an activated route that is used to be displayed, but is not currently displayed
                const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);
                if (detachedRouteHandle !== null) {
                  const tree = detachedRouteHandle.route;
                  tree.value._futureSnapshot = curr.value;
                  tree.children = curr.children.map(c => createNode(routeReuseStrategy, c));
                  return tree;
                }
              }
              const value = createActivatedRoute(curr.value);
              const children = curr.children.map(c => createNode(routeReuseStrategy, c));
              return new TreeNode(value, children);
            }
          }
          function createOrReuseChildren(routeReuseStrategy, curr, prevState) {
            return curr.children.map(child => {
              for (const p of prevState.children) {
                if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {
                  return createNode(routeReuseStrategy, child, p);
                }
              }
              return createNode(routeReuseStrategy, child);
            });
          }
          function createActivatedRoute(c) {
            return new ActivatedRoute(new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(c.url), new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(c.params), new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(c.queryParams), new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(c.fragment), new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(c.data), c.outlet, c.component, c);
          }
          const NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';
          function redirectingNavigationError(urlSerializer, redirect) {
            const {
              redirectTo,
              navigationBehaviorOptions
            } = isUrlTree(redirect) ? {
              redirectTo: redirect,
              navigationBehaviorOptions: undefined
            } : redirect;
            const error = navigationCancelingError(ngDevMode && `Redirecting to "${urlSerializer.serialize(redirectTo)}"`, 0 /* NavigationCancellationCode.Redirect */, redirect);
            error.url = redirectTo;
            error.navigationBehaviorOptions = navigationBehaviorOptions;
            return error;
          }
          function navigationCancelingError(message, code, redirectUrl) {
            const error = new Error('NavigationCancelingError: ' + (message || ''));
            error[NAVIGATION_CANCELING_ERROR] = true;
            error.cancellationCode = code;
            if (redirectUrl) {
              error.url = redirectUrl;
            }
            return error;
          }
          function isRedirectingNavigationCancelingError$1(error) {
            return isNavigationCancelingError$1(error) && isUrlTree(error.url);
          }
          function isNavigationCancelingError$1(error) {
            return error && error[NAVIGATION_CANCELING_ERROR];
          }
          
          /**
           * This component is used internally within the router to be a placeholder when an empty
           * router-outlet is needed. For example, with a config such as:
           *
           * `{path: 'parent', outlet: 'nav', children: [...]}`
           *
           * In order to render, there needs to be a component on this config, which will default
           * to this `EmptyOutletComponent`.
           */
          class ɵEmptyOutletComponent {
            static {
              this.ɵfac = function ɵEmptyOutletComponent_Factory(t) {
                return new (t || ɵEmptyOutletComponent)();
              };
            }
            static {
              this.ɵcmp = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: ɵEmptyOutletComponent,
                selectors: [["ng-component"]],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵStandaloneFeature"]],
                decls: 1,
                vars: 0,
                template: function ɵEmptyOutletComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "router-outlet");
                  }
                },
                dependencies: [RouterOutlet],
                encapsulation: 2
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ɵEmptyOutletComponent, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Component,
              args: [{
                template: `<router-outlet></router-outlet>`,
                imports: [RouterOutlet],
                standalone: true
              }]
            }], null, null);
          })();
          
          /**
           * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist
           * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the
           * `currentInjector`.
           *
           * @param route The route that might have providers
           * @param currentInjector The parent injector of the `Route`
           */
          function getOrCreateRouteInjectorIfNeeded(route, currentInjector) {
            if (route.providers && !route._injector) {
              route._injector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.createEnvironmentInjector)(route.providers, currentInjector, `Route: ${route.path}`);
            }
            return route._injector ?? currentInjector;
          }
          function getLoadedRoutes(route) {
            return route._loadedRoutes;
          }
          function getLoadedInjector(route) {
            return route._loadedInjector;
          }
          function getLoadedComponent(route) {
            return route._loadedComponent;
          }
          function getProvidersInjector(route) {
            return route._injector;
          }
          function validateConfig(config, parentPath = '', requireStandaloneComponents = false) {
            // forEach doesn't iterate undefined values
            for (let i = 0; i < config.length; i++) {
              const route = config[i];
              const fullPath = getFullPath(parentPath, route);
              validateNode(route, fullPath, requireStandaloneComponents);
            }
          }
          function assertStandalone(fullPath, component) {
            if (component && (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisNgModule"])(component)) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. You are using 'loadComponent' with a module, ` + `but it must be used with standalone components. Use 'loadChildren' instead.`);
            } else if (component && !(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.isStandalone)(component)) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);
            }
          }
          function validateNode(route, fullPath, requireStandaloneComponents) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!route) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `
                Invalid configuration of route '${fullPath}': Encountered undefined route.
                The reason might be an extra comma.
          
                Example:
                const routes: Routes = [
                  { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
                  { path: 'dashboard',  component: DashboardComponent },, << two commas
                  { path: 'detail/:id', component: HeroDetailComponent }
                ];
              `);
              }
              if (Array.isArray(route)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': Array cannot be specified`);
              }
              if (!route.redirectTo && !route.component && !route.loadComponent && !route.children && !route.loadChildren && route.outlet && route.outlet !== PRIMARY_OUTLET) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);
              }
              if (route.redirectTo && route.children) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);
              }
              if (route.redirectTo && route.loadChildren) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);
              }
              if (route.children && route.loadChildren) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);
              }
              if (route.redirectTo && (route.component || route.loadComponent)) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and component/loadComponent cannot be used together`);
              }
              if (route.component && route.loadComponent) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': component and loadComponent cannot be used together`);
              }
              if (route.redirectTo && route.canActivate) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` + `so canActivate will never be executed.`);
              }
              if (route.path && route.matcher) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);
              }
              if (route.redirectTo === void 0 && !route.component && !route.loadComponent && !route.children && !route.loadChildren) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);
              }
              if (route.path === void 0 && route.matcher === void 0) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);
              }
              if (typeof route.path === 'string' && route.path.charAt(0) === '/') {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path cannot start with a slash`);
              }
              if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {
                const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '{path: "${fullPath}", redirectTo: "${route.redirectTo}"}': please provide 'pathMatch'. ${exp}`);
              }
              if (requireStandaloneComponents) {
                assertStandalone(fullPath, route.component);
              }
            }
            if (route.children) {
              validateConfig(route.children, fullPath, requireStandaloneComponents);
            }
          }
          function getFullPath(parentPath, currentRoute) {
            if (!currentRoute) {
              return parentPath;
            }
            if (!parentPath && !currentRoute.path) {
              return '';
            } else if (parentPath && !currentRoute.path) {
              return `${parentPath}/`;
            } else if (!parentPath && currentRoute.path) {
              return currentRoute.path;
            } else {
              return `${parentPath}/${currentRoute.path}`;
            }
          }
          /**
           * Makes a copy of the config and adds any default required properties.
           */
          function standardizeConfig(r) {
            const children = r.children && r.children.map(standardizeConfig);
            const c = children ? {
              ...r,
              children
            } : {
              ...r
            };
            if (!c.component && !c.loadComponent && (children || c.loadChildren) && c.outlet && c.outlet !== PRIMARY_OUTLET) {
              c.component = ɵEmptyOutletComponent;
            }
            return c;
          }
          /** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */
          function getOutlet(route) {
            return route.outlet || PRIMARY_OUTLET;
          }
          /**
           * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.
           * The order of the configs is otherwise preserved.
           */
          function sortByMatchingOutlets(routes, outletName) {
            const sortedConfig = routes.filter(r => getOutlet(r) === outletName);
            sortedConfig.push(...routes.filter(r => getOutlet(r) !== outletName));
            return sortedConfig;
          }
          /**
           * Gets the first injector in the snapshot's parent tree.
           *
           * If the `Route` has a static list of providers, the returned injector will be the one created from
           * those. If it does not exist, the returned injector may come from the parents, which may be from a
           * loaded config or their static providers.
           *
           * Returns `null` if there is neither this nor any parents have a stored injector.
           *
           * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and
           * also used for getting the correct injector to use for creating components.
           */
          function getClosestRouteInjector(snapshot) {
            if (!snapshot) return null;
            // If the current route has its own injector, which is created from the static providers on the
            // route itself, we should use that. Otherwise, we start at the parent since we do not want to
            // include the lazy loaded injector from this route.
            if (snapshot.routeConfig?._injector) {
              return snapshot.routeConfig._injector;
            }
            for (let s = snapshot.parent; s; s = s.parent) {
              const route = s.routeConfig;
              // Note that the order here is important. `_loadedInjector` stored on the route with
              // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`
              // is created from the static providers on that parent route, so it applies to the children as
              // well, but only if there is no lazy loaded NgModuleRef injector.
              if (route?._loadedInjector) return route._loadedInjector;
              if (route?._injector) return route._injector;
            }
            return null;
          }
          let warnedAboutUnsupportedInputBinding = false;
          const activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent, inputBindingEnabled) => (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(t => {
            new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent, inputBindingEnabled).activate(rootContexts);
            return t;
          });
          class ActivateRoutes {
            constructor(routeReuseStrategy, futureState, currState, forwardEvent, inputBindingEnabled) {
              this.routeReuseStrategy = routeReuseStrategy;
              this.futureState = futureState;
              this.currState = currState;
              this.forwardEvent = forwardEvent;
              this.inputBindingEnabled = inputBindingEnabled;
            }
            activate(parentContexts) {
              const futureRoot = this.futureState._root;
              const currRoot = this.currState ? this.currState._root : null;
              this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);
              advanceActivatedRoute(this.futureState.root);
              this.activateChildRoutes(futureRoot, currRoot, parentContexts);
            }
            // De-activate the child route that are not re-used for the future state
            deactivateChildRoutes(futureNode, currNode, contexts) {
              const children = nodeChildrenAsMap(currNode);
              // Recurse on the routes active in the future state to de-activate deeper children
              futureNode.children.forEach(futureChild => {
                const childOutletName = futureChild.value.outlet;
                this.deactivateRoutes(futureChild, children[childOutletName], contexts);
                delete children[childOutletName];
              });
              // De-activate the routes that will not be re-used
              Object.values(children).forEach(v => {
                this.deactivateRouteAndItsChildren(v, contexts);
              });
            }
            deactivateRoutes(futureNode, currNode, parentContext) {
              const future = futureNode.value;
              const curr = currNode ? currNode.value : null;
              if (future === curr) {
                // Reusing the node, check to see if the children need to be de-activated
                if (future.component) {
                  // If we have a normal route, we need to go through an outlet.
                  const context = parentContext.getContext(future.outlet);
                  if (context) {
                    this.deactivateChildRoutes(futureNode, currNode, context.children);
                  }
                } else {
                  // if we have a componentless route, we recurse but keep the same outlet map.
                  this.deactivateChildRoutes(futureNode, currNode, parentContext);
                }
              } else {
                if (curr) {
                  // Deactivate the current route which will not be re-used
                  this.deactivateRouteAndItsChildren(currNode, parentContext);
                }
              }
            }
            deactivateRouteAndItsChildren(route, parentContexts) {
              // If there is no component, the Route is never attached to an outlet (because there is no
              // component to attach).
              if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {
                this.detachAndStoreRouteSubtree(route, parentContexts);
              } else {
                this.deactivateRouteAndOutlet(route, parentContexts);
              }
            }
            detachAndStoreRouteSubtree(route, parentContexts) {
              const context = parentContexts.getContext(route.value.outlet);
              const contexts = context && route.value.component ? context.children : parentContexts;
              const children = nodeChildrenAsMap(route);
              for (const childOutlet of Object.keys(children)) {
                this.deactivateRouteAndItsChildren(children[childOutlet], contexts);
              }
              if (context && context.outlet) {
                const componentRef = context.outlet.detach();
                const contexts = context.children.onOutletDeactivated();
                this.routeReuseStrategy.store(route.value.snapshot, {
                  componentRef,
                  route,
                  contexts
                });
              }
            }
            deactivateRouteAndOutlet(route, parentContexts) {
              const context = parentContexts.getContext(route.value.outlet);
              // The context could be `null` if we are on a componentless route but there may still be
              // children that need deactivating.
              const contexts = context && route.value.component ? context.children : parentContexts;
              const children = nodeChildrenAsMap(route);
              for (const childOutlet of Object.keys(children)) {
                this.deactivateRouteAndItsChildren(children[childOutlet], contexts);
              }
              if (context) {
                if (context.outlet) {
                  // Destroy the component
                  context.outlet.deactivate();
                  // Destroy the contexts for all the outlets that were in the component
                  context.children.onOutletDeactivated();
                }
                // Clear the information about the attached component on the context but keep the reference to
                // the outlet. Clear even if outlet was not yet activated to avoid activating later with old
                // info
                context.attachRef = null;
                context.route = null;
              }
            }
            activateChildRoutes(futureNode, currNode, contexts) {
              const children = nodeChildrenAsMap(currNode);
              futureNode.children.forEach(c => {
                this.activateRoutes(c, children[c.value.outlet], contexts);
                this.forwardEvent(new ActivationEnd(c.value.snapshot));
              });
              if (futureNode.children.length) {
                this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));
              }
            }
            activateRoutes(futureNode, currNode, parentContexts) {
              const future = futureNode.value;
              const curr = currNode ? currNode.value : null;
              advanceActivatedRoute(future);
              // reusing the node
              if (future === curr) {
                if (future.component) {
                  // If we have a normal route, we need to go through an outlet.
                  const context = parentContexts.getOrCreateContext(future.outlet);
                  this.activateChildRoutes(futureNode, currNode, context.children);
                } else {
                  // if we have a componentless route, we recurse but keep the same outlet map.
                  this.activateChildRoutes(futureNode, currNode, parentContexts);
                }
              } else {
                if (future.component) {
                  // if we have a normal route, we need to place the component into the outlet and recurse.
                  const context = parentContexts.getOrCreateContext(future.outlet);
                  if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {
                    const stored = this.routeReuseStrategy.retrieve(future.snapshot);
                    this.routeReuseStrategy.store(future.snapshot, null);
                    context.children.onOutletReAttached(stored.contexts);
                    context.attachRef = stored.componentRef;
                    context.route = stored.route.value;
                    if (context.outlet) {
                      // Attach right away when the outlet has already been instantiated
                      // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated
                      context.outlet.attach(stored.componentRef, stored.route.value);
                    }
                    advanceActivatedRoute(stored.route.value);
                    this.activateChildRoutes(futureNode, null, context.children);
                  } else {
                    const injector = getClosestRouteInjector(future.snapshot);
                    context.attachRef = null;
                    context.route = future;
                    context.injector = injector;
                    if (context.outlet) {
                      // Activate the outlet when it has already been instantiated
                      // Otherwise it will get activated from its `ngOnInit` when instantiated
                      context.outlet.activateWith(future, context.injector);
                    }
                    this.activateChildRoutes(futureNode, null, context.children);
                  }
                } else {
                  // if we have a componentless route, we recurse but keep the same outlet map.
                  this.activateChildRoutes(futureNode, null, parentContexts);
                }
              }
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                const context = parentContexts.getOrCreateContext(future.outlet);
                const outlet = context.outlet;
                if (outlet && this.inputBindingEnabled && !outlet.supportsBindingToComponentInputs && !warnedAboutUnsupportedInputBinding) {
                  console.warn(`'withComponentInputBinding' feature is enabled but ` + `this application is using an outlet that may not support binding to component inputs.`);
                  warnedAboutUnsupportedInputBinding = true;
                }
              }
            }
          }
          class CanActivate {
            constructor(path) {
              this.path = path;
              this.route = this.path[this.path.length - 1];
            }
          }
          class CanDeactivate {
            constructor(component, route) {
              this.component = component;
              this.route = route;
            }
          }
          function getAllRouteGuards(future, curr, parentContexts) {
            const futureRoot = future._root;
            const currRoot = curr ? curr._root : null;
            return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);
          }
          function getCanActivateChild(p) {
            const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;
            if (!canActivateChild || canActivateChild.length === 0) return null;
            return {
              node: p,
              guards: canActivateChild
            };
          }
          function getTokenOrFunctionIdentity(tokenOrFunction, injector) {
            const NOT_FOUND = Symbol();
            const result = injector.get(tokenOrFunction, NOT_FOUND);
            if (result === NOT_FOUND) {
              if (typeof tokenOrFunction === 'function' && !(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisInjectable"])(tokenOrFunction)) {
                // We think the token is just a function so return it as-is
                return tokenOrFunction;
              } else {
                // This will throw the not found error
                return injector.get(tokenOrFunction);
              }
            }
            return result;
          }
          function getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {
            canDeactivateChecks: [],
            canActivateChecks: []
          }) {
            const prevChildren = nodeChildrenAsMap(currNode);
            // Process the children of the future route
            futureNode.children.forEach(c => {
              getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);
              delete prevChildren[c.value.outlet];
            });
            // Process any children left from the current route (not active for the future route)
            Object.entries(prevChildren).forEach(([k, v]) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));
            return checks;
          }
          function getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {
            canDeactivateChecks: [],
            canActivateChecks: []
          }) {
            const future = futureNode.value;
            const curr = currNode ? currNode.value : null;
            const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;
            // reusing the node
            if (curr && future.routeConfig === curr.routeConfig) {
              const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);
              if (shouldRun) {
                checks.canActivateChecks.push(new CanActivate(futurePath));
              } else {
                // we need to set the data
                future.data = curr.data;
                future._resolvedData = curr._resolvedData;
              }
              // If we have a component, we need to go through an outlet.
              if (future.component) {
                getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);
                // if we have a componentless route, we recurse but keep the same outlet map.
              } else {
                getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);
              }
              if (shouldRun && context && context.outlet && context.outlet.isActivated) {
                checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));
              }
            } else {
              if (curr) {
                deactivateRouteAndItsChildren(currNode, context, checks);
              }
              checks.canActivateChecks.push(new CanActivate(futurePath));
              // If we have a component, we need to go through an outlet.
              if (future.component) {
                getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);
                // if we have a componentless route, we recurse but keep the same outlet map.
              } else {
                getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);
              }
            }
            return checks;
          }
          function shouldRunGuardsAndResolvers(curr, future, mode) {
            if (typeof mode === 'function') {
              return mode(curr, future);
            }
            switch (mode) {
              case 'pathParamsChange':
                return !equalPath(curr.url, future.url);
              case 'pathParamsOrQueryParamsChange':
                return !equalPath(curr.url, future.url) || !shallowEqual(curr.queryParams, future.queryParams);
              case 'always':
                return true;
              case 'paramsOrQueryParamsChange':
                return !equalParamsAndUrlSegments(curr, future) || !shallowEqual(curr.queryParams, future.queryParams);
              case 'paramsChange':
              default:
                return !equalParamsAndUrlSegments(curr, future);
            }
          }
          function deactivateRouteAndItsChildren(route, context, checks) {
            const children = nodeChildrenAsMap(route);
            const r = route.value;
            Object.entries(children).forEach(([childName, node]) => {
              if (!r.component) {
                deactivateRouteAndItsChildren(node, context, checks);
              } else if (context) {
                deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);
              } else {
                deactivateRouteAndItsChildren(node, null, checks);
              }
            });
            if (!r.component) {
              checks.canDeactivateChecks.push(new CanDeactivate(null, r));
            } else if (context && context.outlet && context.outlet.isActivated) {
              checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));
            } else {
              checks.canDeactivateChecks.push(new CanDeactivate(null, r));
            }
          }
          
          /**
           * Simple function check, but generic so type inference will flow. Example:
           *
           * function product(a: number, b: number) {
           *   return a * b;
           * }
           *
           * if (isFunction<product>(fn)) {
           *   return fn(1, 2);
           * } else {
           *   throw "Must provide the `product` function";
           * }
           */
          function isFunction(v) {
            return typeof v === 'function';
          }
          function isBoolean(v) {
            return typeof v === 'boolean';
          }
          function isCanLoad(guard) {
            return guard && isFunction(guard.canLoad);
          }
          function isCanActivate(guard) {
            return guard && isFunction(guard.canActivate);
          }
          function isCanActivateChild(guard) {
            return guard && isFunction(guard.canActivateChild);
          }
          function isCanDeactivate(guard) {
            return guard && isFunction(guard.canDeactivate);
          }
          function isCanMatch(guard) {
            return guard && isFunction(guard.canMatch);
          }
          function isRedirectingNavigationCancelingError(error) {
            return isNavigationCancelingError(error) && isUrlTree(error.url);
          }
          function isNavigationCancelingError(error) {
            return error && error[NAVIGATION_CANCELING_ERROR];
          }
          function isEmptyError(e) {
            return e instanceof rxjs__WEBPACK_IMPORTED_MODULE_8__.EmptyError || e?.name === 'EmptyError';
          }
          const INITIAL_VALUE = /* @__PURE__ */Symbol('INITIAL_VALUE');
          function prioritizedGuardValue() {
            return (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(obs => {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.combineLatest)(obs.map(o => o.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.startWith)(INITIAL_VALUE)))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(results => {
                for (const result of results) {
                  if (result === true) {
                    // If result is true, check the next one
                    continue;
                  } else if (result === INITIAL_VALUE) {
                    // If guard has not finished, we need to stop processing.
                    return INITIAL_VALUE;
                  } else if (result === false || result instanceof UrlTree) {
                    // Result finished and was not true. Return the result.
                    // Note that we only allow false/UrlTree. Other values are considered invalid and
                    // ignored.
                    return result;
                  }
                }
                // Everything resolved to true. Return true.
                return true;
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(item => item !== INITIAL_VALUE), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.take)(1));
            });
          }
          function checkGuards(injector, forwardEvent) {
            return (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(t => {
              const {
                targetSnapshot,
                currentSnapshot,
                guards: {
                  canActivateChecks,
                  canDeactivateChecks
                }
              } = t;
              if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                  ...t,
                  guardsResult: true
                });
              }
              return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, injector).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(canDeactivate => {
                return canDeactivate && isBoolean(canDeactivate) ? runCanActivateChecks(targetSnapshot, canActivateChecks, injector, forwardEvent) : (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canDeactivate);
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(guardsResult => ({
                ...t,
                guardsResult
              })));
            });
          }
          function runCanDeactivateChecks(checks, futureRSS, currRSS, injector) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(checks).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)(result => {
              return result !== true;
            }, true));
          }
          function runCanActivateChecks(futureSnapshot, checks, injector, forwardEvent) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(checks).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.concatMap)(check => {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_15__.concat)(fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, injector), runCanActivate(futureSnapshot, check.route, injector));
            }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)(result => {
              return result !== true;
            }, true));
          }
          /**
           * This should fire off `ActivationStart` events for each route being activated at this
           * level.
           * In other words, if you're activating `a` and `b` below, `path` will contain the
           * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always
           * return
           * `true` so checks continue to run.
           */
          function fireActivationStart(snapshot, forwardEvent) {
            if (snapshot !== null && forwardEvent) {
              forwardEvent(new ActivationStart(snapshot));
            }
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
          }
          /**
           * This should fire off `ChildActivationStart` events for each route being activated at this
           * level.
           * In other words, if you're activating `a` and `b` below, `path` will contain the
           * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always
           * return
           * `true` so checks continue to run.
           */
          function fireChildActivationStart(snapshot, forwardEvent) {
            if (snapshot !== null && forwardEvent) {
              forwardEvent(new ChildActivationStart(snapshot));
            }
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
          }
          function runCanActivate(futureRSS, futureARS, injector) {
            const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;
            if (!canActivate || canActivate.length === 0) return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
            const canActivateObservables = canActivate.map(canActivate => {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_16__.defer)(() => {
                const closestInjector = getClosestRouteInjector(futureARS) ?? injector;
                const guard = getTokenOrFunctionIdentity(canActivate, closestInjector);
                const guardVal = isCanActivate(guard) ? guard.canActivate(futureARS, futureRSS) : closestInjector.runInContext(() => guard(futureARS, futureRSS));
                return wrapIntoObservable(guardVal).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)());
              });
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canActivateObservables).pipe(prioritizedGuardValue());
          }
          function runCanActivateChild(futureRSS, path, injector) {
            const futureARS = path[path.length - 1];
            const canActivateChildGuards = path.slice(0, path.length - 1).reverse().map(p => getCanActivateChild(p)).filter(_ => _ !== null);
            const canActivateChildGuardsMapped = canActivateChildGuards.map(d => {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_16__.defer)(() => {
                const guardsMapped = d.guards.map(canActivateChild => {
                  const closestInjector = getClosestRouteInjector(d.node) ?? injector;
                  const guard = getTokenOrFunctionIdentity(canActivateChild, closestInjector);
                  const guardVal = isCanActivateChild(guard) ? guard.canActivateChild(futureARS, futureRSS) : closestInjector.runInContext(() => guard(futureARS, futureRSS));
                  return wrapIntoObservable(guardVal).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)());
                });
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(guardsMapped).pipe(prioritizedGuardValue());
              });
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());
          }
          function runCanDeactivate(component, currARS, currRSS, futureRSS, injector) {
            const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;
            if (!canDeactivate || canDeactivate.length === 0) return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
            const canDeactivateObservables = canDeactivate.map(c => {
              const closestInjector = getClosestRouteInjector(currARS) ?? injector;
              const guard = getTokenOrFunctionIdentity(c, closestInjector);
              const guardVal = isCanDeactivate(guard) ? guard.canDeactivate(component, currARS, currRSS, futureRSS) : closestInjector.runInContext(() => guard(component, currARS, currRSS, futureRSS));
              return wrapIntoObservable(guardVal).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)());
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canDeactivateObservables).pipe(prioritizedGuardValue());
          }
          function runCanLoadGuards(injector, route, segments, urlSerializer) {
            const canLoad = route.canLoad;
            if (canLoad === undefined || canLoad.length === 0) {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
            }
            const canLoadObservables = canLoad.map(injectionToken => {
              const guard = getTokenOrFunctionIdentity(injectionToken, injector);
              const guardVal = isCanLoad(guard) ? guard.canLoad(route, segments) : injector.runInContext(() => guard(route, segments));
              return wrapIntoObservable(guardVal);
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canLoadObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));
          }
          function redirectIfUrlTree(urlSerializer) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_17__.pipe)((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(result => {
              if (!isUrlTree(result)) return;
              throw redirectingNavigationError(urlSerializer, result);
            }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(result => result === true));
          }
          function runCanMatchGuards(injector, route, segments, urlSerializer) {
            const canMatch = route.canMatch;
            if (!canMatch || canMatch.length === 0) return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(true);
            const canMatchObservables = canMatch.map(injectionToken => {
              const guard = getTokenOrFunctionIdentity(injectionToken, injector);
              const guardVal = isCanMatch(guard) ? guard.canMatch(route, segments) : injector.runInContext(() => guard(route, segments));
              return wrapIntoObservable(guardVal);
            });
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(canMatchObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));
          }
          class NoMatch {
            constructor(segmentGroup) {
              this.segmentGroup = segmentGroup || null;
            }
          }
          class AbsoluteRedirect {
            constructor(urlTree) {
              this.urlTree = urlTree;
            }
          }
          function noMatch$1(segmentGroup) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.throwError)(new NoMatch(segmentGroup));
          }
          function absoluteRedirect(newTree) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.throwError)(new AbsoluteRedirect(newTree));
          }
          function namedOutletsRedirect(redirectTo) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.throwError)(new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4000 /* RuntimeErrorCode.NAMED_OUTLET_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));
          }
          function canLoadFails(route) {
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.throwError)(navigationCancelingError((typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot load children because the guard of the route "path: '${route.path}'" returned false`, 3 /* NavigationCancellationCode.GuardRejected */));
          }
          
          class ApplyRedirects {
            constructor(urlSerializer, urlTree) {
              this.urlSerializer = urlSerializer;
              this.urlTree = urlTree;
            }
            noMatchError(e) {
              return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4002 /* RuntimeErrorCode.NO_MATCH */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot match any routes. URL Segment: '${e.segmentGroup}'`);
            }
            lineralizeSegments(route, urlTree) {
              let res = [];
              let c = urlTree.root;
              while (true) {
                res = res.concat(c.segments);
                if (c.numberOfChildren === 0) {
                  return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(res);
                }
                if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {
                  return namedOutletsRedirect(route.redirectTo);
                }
                c = c.children[PRIMARY_OUTLET];
              }
            }
            applyRedirectCommands(segments, redirectTo, posParams) {
              return this.applyRedirectCreateUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);
            }
            applyRedirectCreateUrlTree(redirectTo, urlTree, segments, posParams) {
              const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);
              return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);
            }
            createQueryParams(redirectToParams, actualParams) {
              const res = {};
              Object.entries(redirectToParams).forEach(([k, v]) => {
                const copySourceValue = typeof v === 'string' && v.startsWith(':');
                if (copySourceValue) {
                  const sourceName = v.substring(1);
                  res[k] = actualParams[sourceName];
                } else {
                  res[k] = v;
                }
              });
              return res;
            }
            createSegmentGroup(redirectTo, group, segments, posParams) {
              const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);
              let children = {};
              Object.entries(group.children).forEach(([name, child]) => {
                children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);
              });
              return new UrlSegmentGroup(updatedSegments, children);
            }
            createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {
              return redirectToSegments.map(s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) : this.findOrReturn(s, actualSegments));
            }
            findPosParam(redirectTo, redirectToUrlSegment, posParams) {
              const pos = posParams[redirectToUrlSegment.path.substring(1)];
              if (!pos) throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4001 /* RuntimeErrorCode.MISSING_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);
              return pos;
            }
            findOrReturn(redirectToUrlSegment, actualSegments) {
              let idx = 0;
              for (const s of actualSegments) {
                if (s.path === redirectToUrlSegment.path) {
                  actualSegments.splice(idx);
                  return s;
                }
                idx++;
              }
              return redirectToUrlSegment;
            }
          }
          const noMatch = {
            matched: false,
            consumedSegments: [],
            remainingSegments: [],
            parameters: {},
            positionalParamSegments: {}
          };
          function matchWithChecks(segmentGroup, route, segments, injector, urlSerializer) {
            const result = match(segmentGroup, route, segments);
            if (!result.matched) {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(result);
            }
            // Only create the Route's `EnvironmentInjector` if it matches the attempted
            // navigation
            injector = getOrCreateRouteInjectorIfNeeded(route, injector);
            return runCanMatchGuards(injector, route, segments, urlSerializer).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(v => v === true ? result : {
              ...noMatch
            }));
          }
          function match(segmentGroup, route, segments) {
            if (route.path === '') {
              if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {
                return {
                  ...noMatch
                };
              }
              return {
                matched: true,
                consumedSegments: [],
                remainingSegments: segments,
                parameters: {},
                positionalParamSegments: {}
              };
            }
            const matcher = route.matcher || defaultUrlMatcher;
            const res = matcher(segments, segmentGroup, route);
            if (!res) return {
              ...noMatch
            };
            const posParams = {};
            Object.entries(res.posParams ?? {}).forEach(([k, v]) => {
              posParams[k] = v.path;
            });
            const parameters = res.consumed.length > 0 ? {
              ...posParams,
              ...res.consumed[res.consumed.length - 1].parameters
            } : posParams;
            return {
              matched: true,
              consumedSegments: res.consumed,
              remainingSegments: segments.slice(res.consumed.length),
              // TODO(atscott): investigate combining parameters and positionalParamSegments
              parameters,
              positionalParamSegments: res.posParams ?? {}
            };
          }
          function split(segmentGroup, consumedSegments, slicedSegments, config) {
            if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {
              const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
              return {
                segmentGroup: s,
                slicedSegments: []
              };
            }
            if (slicedSegments.length === 0 && containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {
              const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children));
              return {
                segmentGroup: s,
                slicedSegments
              };
            }
            const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);
            return {
              segmentGroup: s,
              slicedSegments
            };
          }
          function addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, routes, children) {
            const res = {};
            for (const r of routes) {
              if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {
                const s = new UrlSegmentGroup([], {});
                res[getOutlet(r)] = s;
              }
            }
            return {
              ...children,
              ...res
            };
          }
          function createChildrenForEmptyPaths(routes, primarySegment) {
            const res = {};
            res[PRIMARY_OUTLET] = primarySegment;
            for (const r of routes) {
              if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {
                const s = new UrlSegmentGroup([], {});
                res[getOutlet(r)] = s;
              }
            }
            return res;
          }
          function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {
            return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);
          }
          function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {
            return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));
          }
          function emptyPathMatch(segmentGroup, slicedSegments, r) {
            if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {
              return false;
            }
            return r.path === '';
          }
          /**
           * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without
           * verifying that its children are a full match for the remainder of the `rawSegment` children as
           * well.
           */
          function isImmediateMatch(route, rawSegment, segments, outlet) {
            // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to
            // a config like
            // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`
            // or even
            // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`
            //
            // The exception here is when the segment outlet is for the primary outlet. This would
            // result in a match inside the named outlet because all children there are written as primary
            // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like
            // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`
            // This should only match if the url is `/(x:b)`.
            if (getOutlet(route) !== outlet && (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {
              return false;
            }
            if (route.path === '**') {
              return true;
            }
            return match(rawSegment, route, segments).matched;
          }
          function noLeftoversInUrl(segmentGroup, segments, outlet) {
            return segments.length === 0 && !segmentGroup.children[outlet];
          }
          function recognize$1(injector, configLoader, rootComponentType, config, urlTree, urlSerializer, paramsInheritanceStrategy = 'emptyOnly') {
            return new Recognizer(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer).recognize();
          }
          class Recognizer {
            constructor(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer) {
              this.injector = injector;
              this.configLoader = configLoader;
              this.rootComponentType = rootComponentType;
              this.config = config;
              this.urlTree = urlTree;
              this.paramsInheritanceStrategy = paramsInheritanceStrategy;
              this.urlSerializer = urlSerializer;
              this.allowRedirects = true;
              this.applyRedirects = new ApplyRedirects(this.urlSerializer, this.urlTree);
            }
            noMatchError(e) {
              return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4002 /* RuntimeErrorCode.NO_MATCH */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot match any routes. URL Segment: '${e.segmentGroup}'`);
            }
            recognize() {
              const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;
              return this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => {
                if (e instanceof AbsoluteRedirect) {
                  // After an absolute redirect we do not apply any more redirects!
                  // If this implementation changes, update the documentation note in `redirectTo`.
                  this.allowRedirects = false;
                  this.urlTree = e.urlTree;
                  return this.match(e.urlTree);
                }
                if (e instanceof NoMatch) {
                  throw this.noMatchError(e);
                }
                throw e;
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(children => {
                // Use Object.freeze to prevent readers of the Router state from modifying it outside
                // of a navigation, resulting in the router being out of sync with the browser.
                const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze({
                  ...this.urlTree.queryParams
                }), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, {});
                const rootNode = new TreeNode(root, children);
                const routeState = new RouterStateSnapshot('', rootNode);
                const tree = createUrlTreeFromSnapshot(root, [], this.urlTree.queryParams, this.urlTree.fragment);
                // https://github.com/angular/angular/issues/47307
                // Creating the tree stringifies the query params
                // We don't want to do this here so reassign them to the original.
                tree.queryParams = this.urlTree.queryParams;
                routeState.url = this.urlSerializer.serialize(tree);
                this.inheritParamsAndData(routeState._root);
                return {
                  state: routeState,
                  tree
                };
              }));
            }
            match(tree) {
              const expanded$ = this.processSegmentGroup(this.injector, this.config, tree.root, PRIMARY_OUTLET);
              return expanded$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => {
                if (e instanceof NoMatch) {
                  throw this.noMatchError(e);
                }
                throw e;
              }));
            }
            inheritParamsAndData(routeNode) {
              const route = routeNode.value;
              const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);
              route.params = Object.freeze(i.params);
              route.data = Object.freeze(i.data);
              routeNode.children.forEach(n => this.inheritParamsAndData(n));
            }
            processSegmentGroup(injector, config, segmentGroup, outlet) {
              if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
                return this.processChildren(injector, config, segmentGroup);
              }
              return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet, true);
            }
            /**
             * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if
             * we cannot find a match for _any_ of the children.
             *
             * @param config - The `Routes` to match against
             * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the
             *     config.
             */
            processChildren(injector, config, segmentGroup) {
              // Expand outlets one at a time, starting with the primary outlet. We need to do it this way
              // because an absolute redirect from the primary outlet takes precedence.
              const childOutlets = [];
              for (const child of Object.keys(segmentGroup.children)) {
                if (child === 'primary') {
                  childOutlets.unshift(child);
                } else {
                  childOutlets.push(child);
                }
              }
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(childOutlets).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.concatMap)(childOutlet => {
                const child = segmentGroup.children[childOutlet];
                // Sort the config so that routes with outlets that match the one being activated
                // appear first, followed by routes for other outlets, which might match if they have
                // an empty path.
                const sortedConfig = sortByMatchingOutlets(config, childOutlet);
                return this.processSegmentGroup(injector, sortedConfig, child, childOutlet);
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.scan)((children, outletChildren) => {
                children.push(...outletChildren);
                return children;
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.defaultIfEmpty)(null), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_23__.last)(), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(children => {
                if (children === null) return noMatch$1(segmentGroup);
                // Because we may have matched two outlets to the same empty path segment, we can have
                // multiple activated results for the same outlet. We should merge the children of
                // these results so the final return value is only one `TreeNode` per outlet.
                const mergedChildren = mergeEmptyPathMatches(children);
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  // This should really never happen - we are only taking the first match for each
                  // outlet and merge the empty path matches.
                  checkOutletNameUniqueness(mergedChildren);
                }
                sortActivatedRouteSnapshots(mergedChildren);
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(mergedChildren);
              }));
            }
            processSegment(injector, routes, segmentGroup, segments, outlet, allowRedirects) {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(routes).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.concatMap)(r => {
                return this.processSegmentAgainstRoute(r._injector ?? injector, routes, r, segmentGroup, segments, outlet, allowRedirects).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => {
                  if (e instanceof NoMatch) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(null);
                  }
                  throw e;
                }));
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)(x => !!x), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => {
                if (isEmptyError(e)) {
                  if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)([]);
                  }
                  return noMatch$1(segmentGroup);
                }
                throw e;
              }));
            }
            processSegmentAgainstRoute(injector, routes, route, rawSegment, segments, outlet, allowRedirects) {
              if (!isImmediateMatch(route, rawSegment, segments, outlet)) return noMatch$1(rawSegment);
              if (route.redirectTo === undefined) {
                return this.matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet, allowRedirects);
              }
              if (allowRedirects && this.allowRedirects) {
                return this.expandSegmentAgainstRouteUsingRedirect(injector, rawSegment, routes, route, segments, outlet);
              }
              return noMatch$1(rawSegment);
            }
            expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {
              if (route.path === '**') {
                return this.expandWildCardWithParamsAgainstRouteUsingRedirect(injector, routes, route, outlet);
              }
              return this.expandRegularSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet);
            }
            expandWildCardWithParamsAgainstRouteUsingRedirect(injector, routes, route, outlet) {
              const newTree = this.applyRedirects.applyRedirectCommands([], route.redirectTo, {});
              if (route.redirectTo.startsWith('/')) {
                return absoluteRedirect(newTree);
              }
              return this.applyRedirects.lineralizeSegments(route, newTree).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(newSegments => {
                const group = new UrlSegmentGroup(newSegments, {});
                return this.processSegment(injector, routes, group, newSegments, outlet, false);
              }));
            }
            expandRegularSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {
              const {
                matched,
                consumedSegments,
                remainingSegments,
                positionalParamSegments
              } = match(segmentGroup, route, segments);
              if (!matched) return noMatch$1(segmentGroup);
              const newTree = this.applyRedirects.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);
              if (route.redirectTo.startsWith('/')) {
                return absoluteRedirect(newTree);
              }
              return this.applyRedirects.lineralizeSegments(route, newTree).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(newSegments => {
                return this.processSegment(injector, routes, segmentGroup, newSegments.concat(remainingSegments), outlet, false);
              }));
            }
            matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet, allowRedirects) {
              let matchResult;
              if (route.path === '**') {
                const params = segments.length > 0 ? last(segments).parameters : {};
                const snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze({
                  ...this.urlTree.queryParams
                }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));
                matchResult = (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                  snapshot,
                  consumedSegments: [],
                  remainingSegments: []
                });
                // Prior versions of the route matching algorithm would stop matching at the wildcard route.
                // We should investigate a better strategy for any existing children. Otherwise, these
                // child segments are silently dropped from the navigation.
                // https://github.com/angular/angular/issues/40089
                rawSegment.children = {};
              } else {
                matchResult = matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(({
                  matched,
                  consumedSegments,
                  remainingSegments,
                  parameters
                }) => {
                  if (!matched) {
                    return null;
                  }
                  const snapshot = new ActivatedRouteSnapshot(consumedSegments, parameters, Object.freeze({
                    ...this.urlTree.queryParams
                  }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));
                  return {
                    snapshot,
                    consumedSegments,
                    remainingSegments
                  };
                }));
              }
              return matchResult.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(result => {
                if (result === null) {
                  return noMatch$1(rawSegment);
                }
                // If the route has an injector created from providers, we should start using that.
                injector = route._injector ?? injector;
                return this.getChildConfig(injector, route, segments).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(({
                  routes: childConfig
                }) => {
                  const childInjector = route._loadedInjector ?? injector;
                  const {
                    snapshot,
                    consumedSegments,
                    remainingSegments
                  } = result;
                  const {
                    segmentGroup,
                    slicedSegments
                  } = split(rawSegment, consumedSegments, remainingSegments, childConfig);
                  if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
                    return this.processChildren(childInjector, childConfig, segmentGroup).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(children => {
                      if (children === null) {
                        return null;
                      }
                      return [new TreeNode(snapshot, children)];
                    }));
                  }
                  if (childConfig.length === 0 && slicedSegments.length === 0) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)([new TreeNode(snapshot, [])]);
                  }
                  const matchedOnOutlet = getOutlet(route) === outlet;
                  // If we matched a config due to empty path match on a different outlet, we need to
                  // continue passing the current outlet for the segment rather than switch to PRIMARY.
                  // Note that we switch to primary when we have a match because outlet configs look like
                  // this: {path: 'a', outlet: 'a', children: [
                  //  {path: 'b', component: B},
                  //  {path: 'c', component: C},
                  // ]}
                  // Notice that the children of the named outlet are configured with the primary outlet
                  return this.processSegment(childInjector, childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(children => {
                    return [new TreeNode(snapshot, children)];
                  }));
                }));
              }));
            }
            getChildConfig(injector, route, segments) {
              if (route.children) {
                // The children belong to the same module
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                  routes: route.children,
                  injector
                });
              }
              if (route.loadChildren) {
                // lazy children belong to the loaded module
                if (route._loadedRoutes !== undefined) {
                  return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                    routes: route._loadedRoutes,
                    injector: route._loadedInjector
                  });
                }
                return runCanLoadGuards(injector, route, segments, this.urlSerializer).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(shouldLoadResult => {
                  if (shouldLoadResult) {
                    return this.configLoader.loadChildren(injector, route).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(cfg => {
                      route._loadedRoutes = cfg.routes;
                      route._loadedInjector = cfg.injector;
                    }));
                  }
                  return canLoadFails(route);
                }));
              }
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                routes: [],
                injector
              });
            }
          }
          function sortActivatedRouteSnapshots(nodes) {
            nodes.sort((a, b) => {
              if (a.value.outlet === PRIMARY_OUTLET) return -1;
              if (b.value.outlet === PRIMARY_OUTLET) return 1;
              return a.value.outlet.localeCompare(b.value.outlet);
            });
          }
          function hasEmptyPathConfig(node) {
            const config = node.value.routeConfig;
            return config && config.path === '';
          }
          /**
           * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with
           * the children from each duplicate. This is necessary because different outlets can match a
           * single empty path route config and the results need to then be merged.
           */
          function mergeEmptyPathMatches(nodes) {
            const result = [];
            // The set of nodes which contain children that were merged from two duplicate empty path nodes.
            const mergedNodes = new Set();
            for (const node of nodes) {
              if (!hasEmptyPathConfig(node)) {
                result.push(node);
                continue;
              }
              const duplicateEmptyPathNode = result.find(resultNode => node.value.routeConfig === resultNode.value.routeConfig);
              if (duplicateEmptyPathNode !== undefined) {
                duplicateEmptyPathNode.children.push(...node.children);
                mergedNodes.add(duplicateEmptyPathNode);
              } else {
                result.push(node);
              }
            }
            // For each node which has children from multiple sources, we need to recompute a new `TreeNode`
            // by also merging those children. This is necessary when there are multiple empty path configs
            // in a row. Put another way: whenever we combine children of two nodes, we need to also check
            // if any of those children can be combined into a single node as well.
            for (const mergedNode of mergedNodes) {
              const mergedChildren = mergeEmptyPathMatches(mergedNode.children);
              result.push(new TreeNode(mergedNode.value, mergedChildren));
            }
            return result.filter(n => !mergedNodes.has(n));
          }
          function checkOutletNameUniqueness(nodes) {
            const names = {};
            nodes.forEach(n => {
              const routeWithSameOutletName = names[n.value.outlet];
              if (routeWithSameOutletName) {
                const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');
                const c = n.value.url.map(s => s.toString()).join('/');
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4006 /* RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);
              }
              names[n.value.outlet] = n.value;
            });
          }
          function getData(route) {
            return route.data || {};
          }
          function getResolve(route) {
            return route.resolve || {};
          }
          function recognize(injector, configLoader, rootComponentType, config, serializer, paramsInheritanceStrategy) {
            return (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(t => recognize$1(injector, configLoader, rootComponentType, config, t.extractedUrl, serializer, paramsInheritanceStrategy).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(({
              state: targetSnapshot,
              tree: urlAfterRedirects
            }) => {
              return {
                ...t,
                targetSnapshot,
                urlAfterRedirects
              };
            })));
          }
          function resolveData(paramsInheritanceStrategy, injector) {
            return (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(t => {
              const {
                targetSnapshot,
                guards: {
                  canActivateChecks
                }
              } = t;
              if (!canActivateChecks.length) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t);
              }
              let canActivateChecksResolved = 0;
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(canActivateChecks).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.concatMap)(check => runResolve(check.route, targetSnapshot, paramsInheritanceStrategy, injector)), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(() => canActivateChecksResolved++), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_24__.takeLast)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(_ => canActivateChecksResolved === canActivateChecks.length ? (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t) : rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY));
            });
          }
          function runResolve(futureARS, futureRSS, paramsInheritanceStrategy, injector) {
            const config = futureARS.routeConfig;
            const resolve = futureARS._resolve;
            if (config?.title !== undefined && !hasStaticTitle(config)) {
              resolve[RouteTitleKey] = config.title;
            }
            return resolveNode(resolve, futureARS, futureRSS, injector).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(resolvedData => {
              futureARS._resolvedData = resolvedData;
              futureARS.data = inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve;
              if (config && hasStaticTitle(config)) {
                futureARS.data[RouteTitleKey] = config.title;
              }
              return null;
            }));
          }
          function resolveNode(resolve, futureARS, futureRSS, injector) {
            const keys = getDataKeys(resolve);
            if (keys.length === 0) {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({});
            }
            const data = {};
            return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(keys).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(key => getResolver(resolve[key], futureARS, futureRSS, injector).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.first)(), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(value => {
              data[key] = value;
            }))), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_24__.takeLast)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_26__.mapTo)(data), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => isEmptyError(e) ? rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY : (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.throwError)(e)));
          }
          function getDataKeys(obj) {
            return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)];
          }
          function getResolver(injectionToken, futureARS, futureRSS, injector) {
            const closestInjector = getClosestRouteInjector(futureARS) ?? injector;
            const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);
            const resolverValue = resolver.resolve ? resolver.resolve(futureARS, futureRSS) : closestInjector.runInContext(() => resolver(futureARS, futureRSS));
            return wrapIntoObservable(resolverValue);
          }
          function hasStaticTitle(config) {
            return typeof config.title === 'string' || config.title === null;
          }
          
          /**
           * Perform a side effect through a switchMap for every emission on the source Observable,
           * but return an Observable that is identical to the source. It's essentially the same as
           * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,
           * it will wait before continuing with the original value.
           */
          function switchTap(next) {
            return (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(v => {
              const nextResult = next(v);
              if (nextResult) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(nextResult).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(() => v));
              }
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(v);
            });
          }
          
          /**
           * The [DI token](guide/glossary/#di-token) for a router configuration.
           *
           * `ROUTES` is a low level API for router configuration via dependency injection.
           *
           * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,
           * `provideRouter`, or `Router.resetConfig()`.
           *
           * @publicApi
           */
          const ROUTES = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('ROUTES');
          class RouterConfigLoader {
            constructor() {
              this.componentLoaders = new WeakMap();
              this.childrenLoaders = new WeakMap();
              this.compiler = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Compiler);
            }
            loadComponent(route) {
              if (this.componentLoaders.get(route)) {
                return this.componentLoaders.get(route);
              } else if (route._loadedComponent) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(route._loadedComponent);
              }
              if (this.onLoadStartListener) {
                this.onLoadStartListener(route);
              }
              const loadRunner = wrapIntoObservable(route.loadComponent()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(maybeUnwrapDefaultExport), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(component => {
                if (this.onLoadEndListener) {
                  this.onLoadEndListener(route);
                }
                (typeof ngDevMode === 'undefined' || ngDevMode) && assertStandalone(route.path ?? '', component);
                route._loadedComponent = component;
              }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.finalize)(() => {
                this.componentLoaders.delete(route);
              }));
              // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much
              const loader = new rxjs__WEBPACK_IMPORTED_MODULE_28__.ConnectableObservable(loadRunner, () => new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_30__.refCount)());
              this.componentLoaders.set(route, loader);
              return loader;
            }
            loadChildren(parentInjector, route) {
              if (this.childrenLoaders.get(route)) {
                return this.childrenLoaders.get(route);
              } else if (route._loadedRoutes) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)({
                  routes: route._loadedRoutes,
                  injector: route._loadedInjector
                });
              }
              if (this.onLoadStartListener) {
                this.onLoadStartListener(route);
              }
              const moduleFactoryOrRoutes$ = loadChildren(route, this.compiler, parentInjector, this.onLoadEndListener);
              const loadRunner = moduleFactoryOrRoutes$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.finalize)(() => {
                this.childrenLoaders.delete(route);
              }));
              // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much
              const loader = new rxjs__WEBPACK_IMPORTED_MODULE_28__.ConnectableObservable(loadRunner, () => new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_30__.refCount)());
              this.childrenLoaders.set(route, loader);
              return loader;
            }
            static {
              this.ɵfac = function RouterConfigLoader_Factory(t) {
                return new (t || RouterConfigLoader)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: RouterConfigLoader,
                factory: RouterConfigLoader.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterConfigLoader, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * Executes a `route.loadChildren` callback and converts the result to an array of child routes and
           * an injector if that callback returned a module.
           *
           * This function is used for the route discovery during prerendering
           * in @angular-devkit/build-angular. If there are any updates to the contract here, it will require
           * an update to the extractor.
           */
          function loadChildren(route, compiler, parentInjector, onLoadEndListener) {
            return wrapIntoObservable(route.loadChildren()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(maybeUnwrapDefaultExport), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(t => {
              if (t instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModuleFactory || Array.isArray(t)) {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t);
              } else {
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(compiler.compileModuleAsync(t));
              }
            }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(factoryOrRoutes => {
              if (onLoadEndListener) {
                onLoadEndListener(route);
              }
              // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is
              // no injector associated with lazy loading a `Route` array.
              let injector;
              let rawRoutes;
              let requireStandaloneComponents = false;
              if (Array.isArray(factoryOrRoutes)) {
                rawRoutes = factoryOrRoutes;
                requireStandaloneComponents = true;
              } else {
                injector = factoryOrRoutes.create(parentInjector).injector;
                // When loading a module that doesn't provide `RouterModule.forChild()` preloader
                // will get stuck in an infinite loop. The child module's Injector will look to
                // its parent `Injector` when it doesn't find any ROUTES so it will return routes
                // for it's parent module instead.
                rawRoutes = injector.get(ROUTES, [], {
                  optional: true,
                  self: true
                }).flat();
              }
              const routes = rawRoutes.map(standardizeConfig);
              (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(routes, route.path, requireStandaloneComponents);
              return {
                routes,
                injector
              };
            }));
          }
          function isWrappedDefaultExport(value) {
            // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be
            // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that
            // `default` will be a renamed property.
            return value && typeof value === 'object' && 'default' in value;
          }
          function maybeUnwrapDefaultExport(input) {
            // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not
            // subject to property renaming, so we reference it with bracket access.
            return isWrappedDefaultExport(input) ? input['default'] : input;
          }
          class NavigationTransitions {
            get hasRequestedNavigation() {
              return this.navigationId !== 0;
            }
            constructor() {
              this.currentNavigation = null;
              this.currentTransition = null;
              this.lastSuccessfulNavigation = null;
              /**
               * These events are used to communicate back to the Router about the state of the transition. The
               * Router wants to respond to these events in various ways. Because the `NavigationTransition`
               * class is not public, this event subject is not publicly exposed.
               */
              this.events = new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject();
              /**
               * Used to abort the current transition with an error.
               */
              this.transitionAbortSubject = new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject();
              this.configLoader = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(RouterConfigLoader);
              this.environmentInjector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.EnvironmentInjector);
              this.urlSerializer = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(UrlSerializer);
              this.rootContexts = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ChildrenOutletContexts);
              this.inputBindingEnabled = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(INPUT_BINDER, {
                optional: true
              }) !== null;
              this.navigationId = 0;
              /**
               * Hook that enables you to pause navigation after the preactivation phase.
               * Used by `RouterModule`.
               *
               * @internal
               */
              this.afterPreactivation = () => (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(void 0);
              /** @internal */
              this.rootComponentType = null;
              const onLoadStart = r => this.events.next(new RouteConfigLoadStart(r));
              const onLoadEnd = r => this.events.next(new RouteConfigLoadEnd(r));
              this.configLoader.onLoadEndListener = onLoadEnd;
              this.configLoader.onLoadStartListener = onLoadStart;
            }
            complete() {
              this.transitions?.complete();
            }
            handleNavigationRequest(request) {
              const id = ++this.navigationId;
              this.transitions?.next({
                ...this.transitions.value,
                ...request,
                id
              });
            }
            setupNavigations(router, initialUrlTree, initialRouterState) {
              this.transitions = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject({
                id: 0,
                currentUrlTree: initialUrlTree,
                currentRawUrl: initialUrlTree,
                currentBrowserUrl: initialUrlTree,
                extractedUrl: router.urlHandlingStrategy.extract(initialUrlTree),
                urlAfterRedirects: router.urlHandlingStrategy.extract(initialUrlTree),
                rawUrl: initialUrlTree,
                extras: {},
                resolve: null,
                reject: null,
                promise: Promise.resolve(true),
                source: IMPERATIVE_NAVIGATION,
                restoredState: null,
                currentSnapshot: initialRouterState.snapshot,
                targetSnapshot: null,
                currentRouterState: initialRouterState,
                targetRouterState: null,
                guards: {
                  canActivateChecks: [],
                  canDeactivateChecks: []
                },
                guardsResult: null
              });
              return this.transitions.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(t => t.id !== 0),
              // Extract URL
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(t => ({
                ...t,
                extractedUrl: router.urlHandlingStrategy.extract(t.rawUrl)
              })),
              // Using switchMap so we cancel executing navigations when a new one comes in
              (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(overallTransitionState => {
                this.currentTransition = overallTransitionState;
                let completed = false;
                let errored = false;
                return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(overallTransitionState).pipe(
                // Store the Navigation object
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                  this.currentNavigation = {
                    id: t.id,
                    initialUrl: t.rawUrl,
                    extractedUrl: t.extractedUrl,
                    trigger: t.source,
                    extras: t.extras,
                    previousNavigation: !this.lastSuccessfulNavigation ? null : {
                      ...this.lastSuccessfulNavigation,
                      previousNavigation: null
                    }
                  };
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(t => {
                  const browserUrlTree = t.currentBrowserUrl.toString();
                  const urlTransition = !router.navigated || t.extractedUrl.toString() !== browserUrlTree ||
                  // Navigations which succeed or ones which fail and are cleaned up
                  // correctly should result in `browserUrlTree` and `currentUrlTree`
                  // matching. If this is not the case, assume something went wrong and
                  // try processing the URL again.
                  browserUrlTree !== t.currentUrlTree.toString();
                  const onSameUrlNavigation = t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;
                  if (!urlTransition && onSameUrlNavigation !== 'reload') {
                    const reason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation to ${t.rawUrl} was ignored because it is the same as the current Router URL.` : '';
                    this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.rawUrl), reason, 0 /* NavigationSkippedCode.IgnoredSameUrlNavigation */));
                    t.resolve(null);
                    return rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY;
                  }
                  if (router.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t).pipe(
                    // Fire NavigationStart event
                    (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(t => {
                      const transition = this.transitions?.getValue();
                      this.events.next(new NavigationStart(t.id, this.urlSerializer.serialize(t.extractedUrl), t.source, t.restoredState));
                      if (transition !== this.transitions?.getValue()) {
                        return rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY;
                      }
                      // This delay is required to match old behavior that forced
                      // navigation to always be async
                      return Promise.resolve(t);
                    }),
                    // Recognize
                    recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer, router.paramsInheritanceStrategy),
                    // Update URL if in `eager` update mode
                    (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                      overallTransitionState.targetSnapshot = t.targetSnapshot;
                      overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;
                      this.currentNavigation = {
                        ...this.currentNavigation,
                        finalUrl: t.urlAfterRedirects
                      };
                      // Fire RoutesRecognized
                      const routesRecognized = new RoutesRecognized(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
                      this.events.next(routesRecognized);
                    }));
                  } else if (urlTransition && router.urlHandlingStrategy.shouldProcessUrl(t.currentRawUrl)) {
                    /* When the current URL shouldn't be processed, but the previous one
                     * was, we handle this "error condition" by navigating to the
                     * previously successful URL, but leaving the URL intact.*/
                    const {
                      id,
                      extractedUrl,
                      source,
                      restoredState,
                      extras
                    } = t;
                    const navStart = new NavigationStart(id, this.urlSerializer.serialize(extractedUrl), source, restoredState);
                    this.events.next(navStart);
                    const targetSnapshot = createEmptyState(extractedUrl, this.rootComponentType).snapshot;
                    this.currentTransition = overallTransitionState = {
                      ...t,
                      targetSnapshot,
                      urlAfterRedirects: extractedUrl,
                      extras: {
                        ...extras,
                        skipLocationChange: false,
                        replaceUrl: false
                      }
                    };
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(overallTransitionState);
                  } else {
                    /* When neither the current or previous URL can be processed, do
                     * nothing other than update router's internal reference to the
                     * current "settled" URL. This way the next navigation will be coming
                     * from the current URL in the browser.
                     */
                    const reason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation was ignored because the UrlHandlingStrategy` + ` indicated neither the current URL ${t.currentRawUrl} nor target URL ${t.rawUrl} should be processed.` : '';
                    this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, 1 /* NavigationSkippedCode.IgnoredByUrlHandlingStrategy */));
                    t.resolve(null);
                    return rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY;
                  }
                }),
                // --- GUARDS ---
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                  const guardsStart = new GuardsCheckStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
                  this.events.next(guardsStart);
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(t => {
                  this.currentTransition = overallTransitionState = {
                    ...t,
                    guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts)
                  };
                  return overallTransitionState;
                }), checkGuards(this.environmentInjector, evt => this.events.next(evt)), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                  overallTransitionState.guardsResult = t.guardsResult;
                  if (isUrlTree(t.guardsResult)) {
                    throw redirectingNavigationError(this.urlSerializer, t.guardsResult);
                  }
                  const guardsEnd = new GuardsCheckEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);
                  this.events.next(guardsEnd);
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(t => {
                  if (!t.guardsResult) {
                    this.cancelNavigationTransition(t, '', 3 /* NavigationCancellationCode.GuardRejected */);
                    return false;
                  }
                  return true;
                }),
                // --- RESOLVE ---
                switchTap(t => {
                  if (t.guards.canActivateChecks.length) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                      const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
                      this.events.next(resolveStart);
                    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.switchMap)(t => {
                      let dataResolved = false;
                      return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(t).pipe(resolveData(router.paramsInheritanceStrategy, this.environmentInjector), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)({
                        next: () => dataResolved = true,
                        complete: () => {
                          if (!dataResolved) {
                            this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode ? `At least one route resolver didn't emit any value.` : '', 2 /* NavigationCancellationCode.NoDataFromResolver */);
                          }
                        }
                      }));
                    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(t => {
                      const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
                      this.events.next(resolveEnd);
                    }));
                  }
                  return undefined;
                }),
                // --- LOAD COMPONENTS ---
                switchTap(t => {
                  const loadComponents = route => {
                    const loaders = [];
                    if (route.routeConfig?.loadComponent && !route.routeConfig._loadedComponent) {
                      loaders.push(this.configLoader.loadComponent(route.routeConfig).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(loadedComponent => {
                        route.component = loadedComponent;
                      }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(() => void 0)));
                    }
                    for (const child of route.children) {
                      loaders.push(...loadComponents(child));
                    }
                    return loaders;
                  };
                  return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.combineLatest)(loadComponents(t.targetSnapshot.root)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.defaultIfEmpty)(), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.take)(1));
                }), switchTap(() => this.afterPreactivation()), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(t => {
                  const targetRouterState = createRouterState(router.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
                  this.currentTransition = overallTransitionState = {
                    ...t,
                    targetRouterState
                  };
                  return overallTransitionState;
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(() => {
                  this.events.next(new BeforeActivateRoutes());
                }), activateRoutes(this.rootContexts, router.routeReuseStrategy, evt => this.events.next(evt), this.inputBindingEnabled),
                // Ensure that if some observable used to drive the transition doesn't
                // complete, the navigation still finalizes This should never happen, but
                // this is done as a safety measure to avoid surfacing this error (#49567).
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.take)(1), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)({
                  next: t => {
                    completed = true;
                    this.lastSuccessfulNavigation = this.currentNavigation;
                    this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));
                    router.titleStrategy?.updateTitle(t.targetRouterState.snapshot);
                    t.resolve(true);
                  },
                  complete: () => {
                    completed = true;
                  }
                }),
                // There used to be a lot more logic happening directly within the
                // transition Observable. Some of this logic has been refactored out to
                // other places but there may still be errors that happen there. This gives
                // us a way to cancel the transition from the outside. This may also be
                // required in the future to support something like the abort signal of the
                // Navigation API where the navigation gets aborted from outside the
                // transition.
                (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_31__.takeUntil)(this.transitionAbortSubject.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.tap)(err => {
                  throw err;
                }))), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.finalize)(() => {
                  /* When the navigation stream finishes either through error or success,
                   * we set the `completed` or `errored` flag. However, there are some
                   * situations where we could get here without either of those being set.
                   * For instance, a redirect during NavigationStart. Therefore, this is a
                   * catch-all to make sure the NavigationCancel event is fired when a
                   * navigation gets cancelled but not caught by other means. */
                  if (!completed && !errored) {
                    const cancelationReason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}` : '';
                    this.cancelNavigationTransition(overallTransitionState, cancelationReason, 1 /* NavigationCancellationCode.SupersededByNewNavigation */);
                  }
                  // Only clear current navigation if it is still set to the one that
                  // finalized.
                  if (this.currentNavigation?.id === overallTransitionState.id) {
                    this.currentNavigation = null;
                  }
                }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(e => {
                  errored = true;
                  /* This error type is issued during Redirect, and is handled as a
                   * cancellation rather than an error. */
                  if (isNavigationCancelingError$1(e)) {
                    this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));
                    // When redirecting, we need to delay resolving the navigation
                    // promise and push it to the redirect navigation
                    if (!isRedirectingNavigationCancelingError$1(e)) {
                      overallTransitionState.resolve(false);
                    } else {
                      this.events.next(new RedirectRequest(e.url));
                    }
                    /* All other errors should reset to the router's internal URL reference
                     * to the pre-error state. */
                  } else {
                    this.events.next(new NavigationError(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e, overallTransitionState.targetSnapshot ?? undefined));
                    try {
                      overallTransitionState.resolve(router.errorHandler(e));
                    } catch (ee) {
                      overallTransitionState.reject(ee);
                    }
                  }
                  return rxjs__WEBPACK_IMPORTED_MODULE_25__.EMPTY;
                }));
                // casting because `pipe` returns observable({}) when called with 8+ arguments
              }));
            }
          
            cancelNavigationTransition(t, reason, code) {
              const navCancel = new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);
              this.events.next(navCancel);
              t.resolve(false);
            }
            static {
              this.ɵfac = function NavigationTransitions_Factory(t) {
                return new (t || NavigationTransitions)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: NavigationTransitions,
                factory: NavigationTransitions.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NavigationTransitions, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          function isBrowserTriggeredNavigation(source) {
            return source !== IMPERATIVE_NAVIGATION;
          }
          
          /**
           * Provides a strategy for setting the page title after a router navigation.
           *
           * The built-in implementation traverses the router state snapshot and finds the deepest primary
           * outlet with `title` property. Given the `Routes` below, navigating to
           * `/base/child(popup:aux)` would result in the document title being set to "child".
           * ```
           * [
           *   {path: 'base', title: 'base', children: [
           *     {path: 'child', title: 'child'},
           *   ],
           *   {path: 'aux', outlet: 'popup', title: 'popupTitle'}
           * ]
           * ```
           *
           * This class can be used as a base class for custom title strategies. That is, you can create your
           * own class that extends the `TitleStrategy`. Note that in the above example, the `title`
           * from the named outlet is never used. However, a custom strategy might be implemented to
           * incorporate titles in named outlets.
           *
           * @publicApi
           * @see [Page title guide](guide/router#setting-the-page-title)
           */
          class TitleStrategy {
            /**
             * @returns The `title` of the deepest primary route.
             */
            buildTitle(snapshot) {
              let pageTitle;
              let route = snapshot.root;
              while (route !== undefined) {
                pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;
                route = route.children.find(child => child.outlet === PRIMARY_OUTLET);
              }
              return pageTitle;
            }
            /**
             * Given an `ActivatedRouteSnapshot`, returns the final value of the
             * `Route.title` property, which can either be a static string or a resolved value.
             */
            getResolvedTitleForRoute(snapshot) {
              return snapshot.data[RouteTitleKey];
            }
            static {
              this.ɵfac = function TitleStrategy_Factory(t) {
                return new (t || TitleStrategy)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: TitleStrategy,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultTitleStrategy))();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](TitleStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultTitleStrategy)
              }]
            }], null, null);
          })();
          /**
           * The default `TitleStrategy` used by the router that updates the title using the `Title` service.
           */
          class DefaultTitleStrategy extends TitleStrategy {
            constructor(title) {
              super();
              this.title = title;
            }
            /**
             * Sets the title of the browser to the given value.
             *
             * @param title The `pageTitle` from the deepest primary route.
             */
            updateTitle(snapshot) {
              const title = this.buildTitle(snapshot);
              if (title !== undefined) {
                this.title.setTitle(title);
              }
            }
            static {
              this.ɵfac = function DefaultTitleStrategy_Factory(t) {
                return new (t || DefaultTitleStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_32__.Title));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DefaultTitleStrategy,
                factory: DefaultTitleStrategy.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DefaultTitleStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_32__.Title
              }];
            }, null);
          })();
          
          /**
           * @description
           *
           * Provides a way to customize when activated routes get reused.
           *
           * @publicApi
           */
          class RouteReuseStrategy {
            static {
              this.ɵfac = function RouteReuseStrategy_Factory(t) {
                return new (t || RouteReuseStrategy)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: RouteReuseStrategy,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultRouteReuseStrategy))();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouteReuseStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultRouteReuseStrategy)
              }]
            }], null, null);
          })();
          /**
           * @description
           *
           * This base route reuse strategy only reuses routes when the matched router configs are
           * identical. This prevents components from being destroyed and recreated
           * when just the route parameters, query parameters or fragment change
           * (that is, the existing component is _reused_).
           *
           * This strategy does not store any routes for later reuse.
           *
           * Angular uses this strategy by default.
           *
           *
           * It can be used as a base class for custom route reuse strategies, i.e. you can create your own
           * class that extends the `BaseRouteReuseStrategy` one.
           * @publicApi
           */
          class BaseRouteReuseStrategy {
            /**
             * Whether the given route should detach for later reuse.
             * Always returns false for `BaseRouteReuseStrategy`.
             * */
            shouldDetach(route) {
              return false;
            }
            /**
             * A no-op; the route is never stored since this strategy never detaches routes for later re-use.
             */
            store(route, detachedTree) {}
            /** Returns `false`, meaning the route (and its subtree) is never reattached */
            shouldAttach(route) {
              return false;
            }
            /** Returns `null` because this strategy does not store routes for later re-use. */
            retrieve(route) {
              return null;
            }
            /**
             * Determines if a route should be reused.
             * This strategy returns `true` when the future route config and current route config are
             * identical.
             */
            shouldReuseRoute(future, curr) {
              return future.routeConfig === curr.routeConfig;
            }
          }
          class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
            static {
              this.ɵfac = /* @__PURE__ */function () {
                let ɵDefaultRouteReuseStrategy_BaseFactory;
                return function DefaultRouteReuseStrategy_Factory(t) {
                  return (ɵDefaultRouteReuseStrategy_BaseFactory || (ɵDefaultRouteReuseStrategy_BaseFactory = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetInheritedFactory"](DefaultRouteReuseStrategy)))(t || DefaultRouteReuseStrategy);
                };
              }();
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DefaultRouteReuseStrategy,
                factory: DefaultRouteReuseStrategy.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DefaultRouteReuseStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          
          /**
           * A [DI token](guide/glossary/#di-token) for the router service.
           *
           * @publicApi
           */
          const ROUTER_CONFIGURATION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router config' : '', {
            providedIn: 'root',
            factory: () => ({})
          });
          
          /**
           * @description
           *
           * Provides a way to migrate AngularJS applications to Angular.
           *
           * @publicApi
           */
          class UrlHandlingStrategy {
            static {
              this.ɵfac = function UrlHandlingStrategy_Factory(t) {
                return new (t || UrlHandlingStrategy)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: UrlHandlingStrategy,
                factory: function () {
                  return (() => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultUrlHandlingStrategy))();
                },
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UrlHandlingStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root',
                useFactory: () => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(DefaultUrlHandlingStrategy)
              }]
            }], null, null);
          })();
          /**
           * @publicApi
           */
          class DefaultUrlHandlingStrategy {
            shouldProcessUrl(url) {
              return true;
            }
            extract(url) {
              return url;
            }
            merge(newUrlPart, wholeUrl) {
              return newUrlPart;
            }
            static {
              this.ɵfac = function DefaultUrlHandlingStrategy_Factory(t) {
                return new (t || DefaultUrlHandlingStrategy)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: DefaultUrlHandlingStrategy,
                factory: DefaultUrlHandlingStrategy.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DefaultUrlHandlingStrategy, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          var NavigationResult;
          (function (NavigationResult) {
            NavigationResult[NavigationResult["COMPLETE"] = 0] = "COMPLETE";
            NavigationResult[NavigationResult["FAILED"] = 1] = "FAILED";
            NavigationResult[NavigationResult["REDIRECTING"] = 2] = "REDIRECTING";
          })(NavigationResult || (NavigationResult = {}));
          /**
           * Performs the given action once the router finishes its next/current navigation.
           *
           * The navigation is considered complete under the following conditions:
           * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or
           * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the
           * redirecting/superseding navigation must finish.
           * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits
           */
          function afterNextNavigation(router, action) {
            router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(e => e instanceof NavigationEnd || e instanceof NavigationCancel || e instanceof NavigationError || e instanceof NavigationSkipped), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(e => {
              if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {
                return NavigationResult.COMPLETE;
              }
              const redirecting = e instanceof NavigationCancel ? e.code === 0 /* NavigationCancellationCode.Redirect */ || e.code === 1 /* NavigationCancellationCode.SupersededByNewNavigation */ : false;
              return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED;
            }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(result => result !== NavigationResult.REDIRECTING), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.take)(1)).subscribe(() => {
              action();
            });
          }
          function defaultErrorHandler(error) {
            throw error;
          }
          function defaultMalformedUriErrorHandler(error, urlSerializer, url) {
            return urlSerializer.parse('/');
          }
          /**
           * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`
           * (exact = true).
           */
          const exactMatchOptions = {
            paths: 'exact',
            fragment: 'ignored',
            matrixParams: 'ignored',
            queryParams: 'exact'
          };
          /**
           * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`
           * (exact = false).
           */
          const subsetMatchOptions = {
            paths: 'subset',
            fragment: 'ignored',
            matrixParams: 'ignored',
            queryParams: 'subset'
          };
          /**
           * @description
           *
           * A service that provides navigation among views and URL manipulation capabilities.
           *
           * @see {@link Route}
           * @see [Routing and Navigation Guide](guide/router).
           *
           * @ngModule RouterModule
           *
           * @publicApi
           */
          class Router {
            // TODO(b/260747083): This should not exist and navigationId should be private in
            // `NavigationTransitions`
            get navigationId() {
              return this.navigationTransitions.navigationId;
            }
            /**
             * The ɵrouterPageId of whatever page is currently active in the browser history. This is
             * important for computing the target page id for new navigations because we need to ensure each
             * page id in the browser history is 1 more than the previous entry.
             */
            get browserPageId() {
              if (this.canceledNavigationResolution !== 'computed') {
                return this.currentPageId;
              }
              return this.location.getState()?.ɵrouterPageId ?? this.currentPageId;
            }
            /**
             * An event stream for routing events.
             */
            get events() {
              // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal
              // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't
              // allowed/supported but we still have to fix these or file bugs against the teams before making
              // the change.
              return this._events;
            }
            constructor() {
              this.disposed = false;
              /**
               * The id of the currently active page in the router.
               * Updated to the transition's target id on a successful navigation.
               *
               * This is used to track what page the router last activated. When an attempted navigation fails,
               * the router can then use this to compute how to restore the state back to the previously active
               * page.
               */
              this.currentPageId = 0;
              this.console = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]);
              this.isNgZoneEnabled = false;
              /**
               * The private `Subject` type for the public events exposed in the getter. This is used internally
               * to push events to. The separate field allows us to expose separate types in the public API
               * (i.e., an Observable rather than the Subject).
               */
              this._events = new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject();
              this.options = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ROUTER_CONFIGURATION, {
                optional: true
              }) || {};
              this.pendingTasks = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵInitialRenderPendingTasks"]);
              /**
               * A handler for navigation errors in this NgModule.
               *
               * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.
               *   `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.
               * @see {@link withNavigationErrorHandler}
               */
              this.errorHandler = this.options.errorHandler || defaultErrorHandler;
              /**
               * A handler for errors thrown by `Router.parseUrl(url)`
               * when `url` contains an invalid character.
               * The most common case is a `%` sign
               * that's not encoded and is not part of a percent encoded sequence.
               *
               * @deprecated URI parsing errors should be handled in the `UrlSerializer`.
               *
               * @see {@link RouterModule}
               */
              this.malformedUriErrorHandler = this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;
              /**
               * True if at least one navigation event has occurred,
               * false otherwise.
               */
              this.navigated = false;
              this.lastSuccessfulId = -1;
              /**
               * A strategy for extracting and merging URLs.
               * Used for AngularJS to Angular migrations.
               *
               * @deprecated Configure using `providers` instead:
               *   `{provide: UrlHandlingStrategy, useClass: MyStrategy}`.
               */
              this.urlHandlingStrategy = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(UrlHandlingStrategy);
              /**
               * A strategy for re-using routes.
               *
               * @deprecated Configure using `providers` instead:
               *   `{provide: RouteReuseStrategy, useClass: MyStrategy}`.
               */
              this.routeReuseStrategy = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(RouteReuseStrategy);
              /**
               * A strategy for setting the title based on the `routerState`.
               *
               * @deprecated Configure using `providers` instead:
               *   `{provide: TitleStrategy, useClass: MyStrategy}`.
               */
              this.titleStrategy = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(TitleStrategy);
              /**
               * How to handle a navigation request to the current URL.
               *
               *
               * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
               * @see {@link withRouterConfig}
               * @see {@link provideRouter}
               * @see {@link RouterModule}
               */
              this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';
              /**
               * How to merge parameters, data, resolved data, and title from parent to child
               * routes. One of:
               *
               * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
               * for path-less or component-less routes.
               * - `'always'` : Inherit parent parameters, data, and resolved data
               * for all child routes.
               *
               * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
               * @see {@link withRouterConfig}
               * @see {@link provideRouter}
               * @see {@link RouterModule}
               */
              this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
              /**
               * Determines when the router updates the browser URL.
               * By default (`"deferred"`), updates the browser URL after navigation has finished.
               * Set to `'eager'` to update the browser URL at the beginning of navigation.
               * You can choose to update early so that, if navigation fails,
               * you can show an error message with the URL that failed.
               *
               * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
               * @see {@link withRouterConfig}
               * @see {@link provideRouter}
               * @see {@link RouterModule}
               */
              this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
              /**
               * Configures how the Router attempts to restore state when a navigation is cancelled.
               *
               * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the
               * router before the navigation started. This means that if the URL of the browser is updated
               * _before_ the navigation is canceled, the Router will simply replace the item in history rather
               * than trying to restore to the previous location in the session history. This happens most
               * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward
               * buttons.
               *
               * 'computed' - Will attempt to return to the same index in the session history that corresponds
               * to the Angular route when the navigation gets cancelled. For example, if the browser back
               * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation
               * and vice versa.
               *
               * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only
               * handles a portion of the URL because the history restoration navigates to the previous place in
               * the browser history rather than simply resetting a portion of the URL.
               *
               * The default value is `replace`.
               *
               * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
               * @see {@link withRouterConfig}
               * @see {@link provideRouter}
               * @see {@link RouterModule}
               */
              this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
              this.config = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ROUTES, {
                optional: true
              })?.flat() ?? [];
              this.navigationTransitions = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(NavigationTransitions);
              this.urlSerializer = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(UrlSerializer);
              this.location = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_common__WEBPACK_IMPORTED_MODULE_33__.Location);
              /**
               * Indicates whether the application has opted in to binding Router data to component inputs.
               *
               * This option is enabled by the `withComponentInputBinding` feature of `provideRouter` or
               * `bindToComponentInputs` in the `ExtraOptions` of `RouterModule.forRoot`.
               */
              this.componentInputBindingEnabled = !!(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(INPUT_BINDER, {
                optional: true
              });
              this.eventsSubscription = new rxjs__WEBPACK_IMPORTED_MODULE_34__.Subscription();
              this.isNgZoneEnabled = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone) instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone && _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone.isInAngularZone();
              this.resetConfig(this.config);
              this.currentUrlTree = new UrlTree();
              this.rawUrlTree = this.currentUrlTree;
              this.browserUrlTree = this.currentUrlTree;
              this.routerState = createEmptyState(this.currentUrlTree, null);
              this.navigationTransitions.setupNavigations(this, this.currentUrlTree, this.routerState).subscribe(t => {
                this.lastSuccessfulId = t.id;
                this.currentPageId = this.browserPageId;
              }, e => {
                this.console.warn(`Unhandled Navigation Error: ${e}`);
              });
              this.subscribeToNavigationEvents();
            }
            subscribeToNavigationEvents() {
              const subscription = this.navigationTransitions.events.subscribe(e => {
                try {
                  const {
                    currentTransition
                  } = this.navigationTransitions;
                  if (currentTransition === null) {
                    if (isPublicRouterEvent(e)) {
                      this._events.next(e);
                    }
                    return;
                  }
                  if (e instanceof NavigationStart) {
                    // If the source of the navigation is from a browser event, the URL is
                    // already updated. We already need to sync the internal state.
                    if (isBrowserTriggeredNavigation(currentTransition.source)) {
                      this.browserUrlTree = currentTransition.extractedUrl;
                    }
                  } else if (e instanceof NavigationSkipped) {
                    this.rawUrlTree = currentTransition.rawUrl;
                  } else if (e instanceof RoutesRecognized) {
                    if (this.urlUpdateStrategy === 'eager') {
                      if (!currentTransition.extras.skipLocationChange) {
                        const rawUrl = this.urlHandlingStrategy.merge(currentTransition.urlAfterRedirects, currentTransition.rawUrl);
                        this.setBrowserUrl(rawUrl, currentTransition);
                      }
                      this.browserUrlTree = currentTransition.urlAfterRedirects;
                    }
                  } else if (e instanceof BeforeActivateRoutes) {
                    this.currentUrlTree = currentTransition.urlAfterRedirects;
                    this.rawUrlTree = this.urlHandlingStrategy.merge(currentTransition.urlAfterRedirects, currentTransition.rawUrl);
                    this.routerState = currentTransition.targetRouterState;
                    if (this.urlUpdateStrategy === 'deferred') {
                      if (!currentTransition.extras.skipLocationChange) {
                        this.setBrowserUrl(this.rawUrlTree, currentTransition);
                      }
                      this.browserUrlTree = currentTransition.urlAfterRedirects;
                    }
                  } else if (e instanceof NavigationCancel) {
                    if (e.code !== 0 /* NavigationCancellationCode.Redirect */ && e.code !== 1 /* NavigationCancellationCode.SupersededByNewNavigation */) {
                      // It seems weird that `navigated` is set to `true` when the navigation is rejected,
                      // however it's how things were written initially. Investigation would need to be done
                      // to determine if this can be removed.
                      this.navigated = true;
                    }
                    if (e.code === 3 /* NavigationCancellationCode.GuardRejected */ || e.code === 2 /* NavigationCancellationCode.NoDataFromResolver */) {
                      this.restoreHistory(currentTransition);
                    }
                  } else if (e instanceof RedirectRequest) {
                    const mergedTree = this.urlHandlingStrategy.merge(e.url, currentTransition.currentRawUrl);
                    const extras = {
                      skipLocationChange: currentTransition.extras.skipLocationChange,
                      // The URL is already updated at this point if we have 'eager' URL
                      // updates or if the navigation was triggered by the browser (back
                      // button, URL bar, etc). We want to replace that item in history
                      // if the navigation is rejected.
                      replaceUrl: this.urlUpdateStrategy === 'eager' || isBrowserTriggeredNavigation(currentTransition.source)
                    };
                    this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras, {
                      resolve: currentTransition.resolve,
                      reject: currentTransition.reject,
                      promise: currentTransition.promise
                    });
                  }
                  if (e instanceof NavigationError) {
                    this.restoreHistory(currentTransition, true);
                  }
                  if (e instanceof NavigationEnd) {
                    this.navigated = true;
                  }
                  // Note that it's important to have the Router process the events _before_ the event is
                  // pushed through the public observable. This ensures the correct router state is in place
                  // before applications observe the events.
                  if (isPublicRouterEvent(e)) {
                    this._events.next(e);
                  }
                } catch (e) {
                  this.navigationTransitions.transitionAbortSubject.next(e);
                }
              });
              this.eventsSubscription.add(subscription);
            }
            /** @internal */
            resetRootComponentType(rootComponentType) {
              // TODO: vsavkin router 4.0 should make the root component set to null
              // this will simplify the lifecycle of the router.
              this.routerState.root.component = rootComponentType;
              this.navigationTransitions.rootComponentType = rootComponentType;
            }
            /**
             * Sets up the location change listener and performs the initial navigation.
             */
            initialNavigation() {
              this.setUpLocationChangeListener();
              if (!this.navigationTransitions.hasRequestedNavigation) {
                const state = this.location.getState();
                this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, state);
              }
            }
            /**
             * Sets up the location change listener. This listener detects navigations triggered from outside
             * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router
             * navigation so that the correct events, guards, etc. are triggered.
             */
            setUpLocationChangeListener() {
              // Don't need to use Zone.wrap any more, because zone.js
              // already patch onPopState, so location change callback will
              // run into ngZone
              if (!this.locationSubscription) {
                this.locationSubscription = this.location.subscribe(event => {
                  const source = event['type'] === 'popstate' ? 'popstate' : 'hashchange';
                  if (source === 'popstate') {
                    // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS
                    // hybrid apps.
                    setTimeout(() => {
                      this.navigateToSyncWithBrowser(event['url'], source, event.state);
                    }, 0);
                  }
                });
              }
            }
            /**
             * Schedules a router navigation to synchronize Router state with the browser state.
             *
             * This is done as a response to a popstate event and the initial navigation. These
             * two scenarios represent times when the browser URL/state has been updated and
             * the Router needs to respond to ensure its internal state matches.
             */
            navigateToSyncWithBrowser(url, source, state) {
              const extras = {
                replaceUrl: true
              };
              // TODO: restoredState should always include the entire state, regardless
              // of navigationId. This requires a breaking change to update the type on
              // NavigationStart’s restoredState, which currently requires navigationId
              // to always be present. The Router used to only restore history state if
              // a navigationId was present.
              // The stored navigationId is used by the RouterScroller to retrieve the scroll
              // position for the page.
              const restoredState = state?.navigationId ? state : null;
              // Separate to NavigationStart.restoredState, we must also restore the state to
              // history.state and generate a new navigationId, since it will be overwritten
              if (state) {
                const stateCopy = {
                  ...state
                };
                delete stateCopy.navigationId;
                delete stateCopy.ɵrouterPageId;
                if (Object.keys(stateCopy).length !== 0) {
                  extras.state = stateCopy;
                }
              }
              const urlTree = this.parseUrl(url);
              this.scheduleNavigation(urlTree, source, restoredState, extras);
            }
            /** The current URL. */
            get url() {
              return this.serializeUrl(this.currentUrlTree);
            }
            /**
             * Returns the current `Navigation` object when the router is navigating,
             * and `null` when idle.
             */
            getCurrentNavigation() {
              return this.navigationTransitions.currentNavigation;
            }
            /**
             * The `Navigation` object of the most recent navigation to succeed and `null` if there
             *     has not been a successful navigation yet.
             */
            get lastSuccessfulNavigation() {
              return this.navigationTransitions.lastSuccessfulNavigation;
            }
            /**
             * Resets the route configuration used for navigation and generating links.
             *
             * @param config The route array for the new configuration.
             *
             * @usageNotes
             *
             * ```
             * router.resetConfig([
             *  { path: 'team/:id', component: TeamCmp, children: [
             *    { path: 'simple', component: SimpleCmp },
             *    { path: 'user/:name', component: UserCmp }
             *  ]}
             * ]);
             * ```
             */
            resetConfig(config) {
              (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config);
              this.config = config.map(standardizeConfig);
              this.navigated = false;
              this.lastSuccessfulId = -1;
            }
            /** @nodoc */
            ngOnDestroy() {
              this.dispose();
            }
            /** Disposes of the router. */
            dispose() {
              this.navigationTransitions.complete();
              if (this.locationSubscription) {
                this.locationSubscription.unsubscribe();
                this.locationSubscription = undefined;
              }
              this.disposed = true;
              this.eventsSubscription.unsubscribe();
            }
            /**
             * Appends URL segments to the current URL tree to create a new URL tree.
             *
             * @param commands An array of URL fragments with which to construct the new URL tree.
             * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
             * segments, followed by the parameters for each segment.
             * The fragments are applied to the current URL tree or the one provided  in the `relativeTo`
             * property of the options object, if supplied.
             * @param navigationExtras Options that control the navigation strategy.
             * @returns The new URL tree.
             *
             * @usageNotes
             *
             * ```
             * // create /team/33/user/11
             * router.createUrlTree(['/team', 33, 'user', 11]);
             *
             * // create /team/33;expand=true/user/11
             * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);
             *
             * // you can collapse static segments like this (this works only with the first passed-in value):
             * router.createUrlTree(['/team/33/user', userId]);
             *
             * // If the first segment can contain slashes, and you do not want the router to split it,
             * // you can do the following:
             * router.createUrlTree([{segmentPath: '/one/two'}]);
             *
             * // create /team/33/(user/11//right:chat)
             * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);
             *
             * // remove the right secondary node
             * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);
             *
             * // assuming the current url is `/team/33/user/11` and the route points to `user/11`
             *
             * // navigate to /team/33/user/11/details
             * router.createUrlTree(['details'], {relativeTo: route});
             *
             * // navigate to /team/33/user/22
             * router.createUrlTree(['../22'], {relativeTo: route});
             *
             * // navigate to /team/44/user/22
             * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});
             *
             * Note that a value of `null` or `undefined` for `relativeTo` indicates that the
             * tree should be created relative to the root.
             * ```
             */
            createUrlTree(commands, navigationExtras = {}) {
              const {
                relativeTo,
                queryParams,
                fragment,
                queryParamsHandling,
                preserveFragment
              } = navigationExtras;
              const f = preserveFragment ? this.currentUrlTree.fragment : fragment;
              let q = null;
              switch (queryParamsHandling) {
                case 'merge':
                  q = {
                    ...this.currentUrlTree.queryParams,
                    ...queryParams
                  };
                  break;
                case 'preserve':
                  q = this.currentUrlTree.queryParams;
                  break;
                default:
                  q = queryParams || null;
              }
              if (q !== null) {
                q = this.removeEmptyProps(q);
              }
              let relativeToUrlSegmentGroup;
              try {
                const relativeToSnapshot = relativeTo ? relativeTo.snapshot : this.routerState.snapshot.root;
                relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);
              } catch (e) {
                // This is strictly for backwards compatibility with tests that create
                // invalid `ActivatedRoute` mocks.
                // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and
                // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at
                // the moment.
                if (typeof commands[0] !== 'string' || !commands[0].startsWith('/')) {
                  // Navigations that were absolute in the old way of creating UrlTrees
                  // would still work because they wouldn't attempt to match the
                  // segments in the `ActivatedRoute` to the `currentUrlTree` but
                  // instead just replace the root segment with the navigation result.
                  // Non-absolute navigations would fail to apply the commands because
                  // the logic could not find the segment to replace (so they'd act like there were no
                  // commands).
                  commands = [];
                }
                relativeToUrlSegmentGroup = this.currentUrlTree.root;
              }
              return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, q, f ?? null);
            }
            /**
             * Navigates to a view using an absolute route path.
             *
             * @param url An absolute path for a defined route. The function does not apply any delta to the
             *     current URL.
             * @param extras An object containing properties that modify the navigation strategy.
             *
             * @returns A Promise that resolves to 'true' when navigation succeeds,
             * to 'false' when navigation fails, or is rejected on error.
             *
             * @usageNotes
             *
             * The following calls request navigation to an absolute path.
             *
             * ```
             * router.navigateByUrl("/team/33/user/11");
             *
             * // Navigate without updating the URL
             * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
             * ```
             *
             * @see [Routing and Navigation guide](guide/router)
             *
             */
            navigateByUrl(url, extras = {
              skipLocationChange: false
            }) {
              if (typeof ngDevMode === 'undefined' || ngDevMode) {
                if (this.isNgZoneEnabled && !_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone.isInAngularZone()) {
                  this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);
                }
              }
              const urlTree = isUrlTree(url) ? url : this.parseUrl(url);
              const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
              return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);
            }
            /**
             * Navigate based on the provided array of commands and a starting point.
             * If no starting route is provided, the navigation is absolute.
             *
             * @param commands An array of URL fragments with which to construct the target URL.
             * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
             * segments, followed by the parameters for each segment.
             * The fragments are applied to the current URL or the one provided  in the `relativeTo` property
             * of the options object, if supplied.
             * @param extras An options object that determines how the URL should be constructed or
             *     interpreted.
             *
             * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation
             *     fails,
             * or is rejected on error.
             *
             * @usageNotes
             *
             * The following calls request navigation to a dynamic route path relative to the current URL.
             *
             * ```
             * router.navigate(['team', 33, 'user', 11], {relativeTo: route});
             *
             * // Navigate without updating the URL, overriding the default behavior
             * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
             * ```
             *
             * @see [Routing and Navigation guide](guide/router)
             *
             */
            navigate(commands, extras = {
              skipLocationChange: false
            }) {
              validateCommands(commands);
              return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
            }
            /** Serializes a `UrlTree` into a string */
            serializeUrl(url) {
              return this.urlSerializer.serialize(url);
            }
            /** Parses a string into a `UrlTree` */
            parseUrl(url) {
              let urlTree;
              try {
                urlTree = this.urlSerializer.parse(url);
              } catch (e) {
                urlTree = this.malformedUriErrorHandler(e, this.urlSerializer, url);
              }
              return urlTree;
            }
            isActive(url, matchOptions) {
              let options;
              if (matchOptions === true) {
                options = {
                  ...exactMatchOptions
                };
              } else if (matchOptions === false) {
                options = {
                  ...subsetMatchOptions
                };
              } else {
                options = matchOptions;
              }
              if (isUrlTree(url)) {
                return containsTree(this.currentUrlTree, url, options);
              }
              const urlTree = this.parseUrl(url);
              return containsTree(this.currentUrlTree, urlTree, options);
            }
            removeEmptyProps(params) {
              return Object.keys(params).reduce((result, key) => {
                const value = params[key];
                if (value !== null && value !== undefined) {
                  result[key] = value;
                }
                return result;
              }, {});
            }
            /** @internal */
            scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {
              if (this.disposed) {
                return Promise.resolve(false);
              }
              let resolve;
              let reject;
              let promise;
              if (priorPromise) {
                resolve = priorPromise.resolve;
                reject = priorPromise.reject;
                promise = priorPromise.promise;
              } else {
                promise = new Promise((res, rej) => {
                  resolve = res;
                  reject = rej;
                });
              }
              // Indicate that the navigation is happening.
              const taskId = this.pendingTasks.add();
              afterNextNavigation(this, () => {
                // Remove pending task in a microtask to allow for cancelled
                // initial navigations and redirects within the same task.
                queueMicrotask(() => this.pendingTasks.remove(taskId));
              });
              this.navigationTransitions.handleNavigationRequest({
                source,
                restoredState,
                currentUrlTree: this.currentUrlTree,
                currentRawUrl: this.currentUrlTree,
                currentBrowserUrl: this.browserUrlTree,
                rawUrl,
                extras,
                resolve,
                reject,
                promise,
                currentSnapshot: this.routerState.snapshot,
                currentRouterState: this.routerState
              });
              // Make sure that the error is propagated even though `processNavigations` catch
              // handler does not rethrow
              return promise.catch(e => {
                return Promise.reject(e);
              });
            }
            /** @internal */
            setBrowserUrl(url, transition) {
              const path = this.urlSerializer.serialize(url);
              if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {
                // replacements do not update the target page
                const currentBrowserPageId = this.browserPageId;
                const state = {
                  ...transition.extras.state,
                  ...this.generateNgRouterState(transition.id, currentBrowserPageId)
                };
                this.location.replaceState(path, '', state);
              } else {
                const state = {
                  ...transition.extras.state,
                  ...this.generateNgRouterState(transition.id, this.browserPageId + 1)
                };
                this.location.go(path, '', state);
              }
            }
            /**
             * Performs the necessary rollback action to restore the browser URL to the
             * state before the transition.
             * @internal
             */
            restoreHistory(transition, restoringFromCaughtError = false) {
              if (this.canceledNavigationResolution === 'computed') {
                const currentBrowserPageId = this.browserPageId;
                const targetPagePosition = this.currentPageId - currentBrowserPageId;
                if (targetPagePosition !== 0) {
                  this.location.historyGo(targetPagePosition);
                } else if (this.currentUrlTree === this.getCurrentNavigation()?.finalUrl && targetPagePosition === 0) {
                  // We got to the activation stage (where currentUrlTree is set to the navigation's
                  // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).
                  // We still need to reset the router state back to what it was when the navigation started.
                  this.resetState(transition);
                  // TODO(atscott): resetting the `browserUrlTree` should really be done in `resetState`.
                  // Investigate if this can be done by running TGP.
                  this.browserUrlTree = transition.currentUrlTree;
                  this.resetUrlToCurrentUrlTree();
                } else {
                  // The browser URL and router state was not updated before the navigation cancelled so
                  // there's no restoration needed.
                }
              } else if (this.canceledNavigationResolution === 'replace') {
                // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op
                // for `deferred` navigations that haven't change the internal state yet because guards
                // reject. For 'eager' navigations, it seems like we also really should reset the state
                // because the navigation was cancelled. Investigate if this can be done by running TGP.
                if (restoringFromCaughtError) {
                  this.resetState(transition);
                }
                this.resetUrlToCurrentUrlTree();
              }
            }
            resetState(t) {
              this.routerState = t.currentRouterState;
              this.currentUrlTree = t.currentUrlTree;
              // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be
              // configured to handle only part of the navigation URL. This means we would only want to reset
              // the part of the navigation handled by the Angular router rather than the whole URL. In
              // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL
              // when merging, such as the query params so they are not lost on a refresh.
              this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);
            }
            resetUrlToCurrentUrlTree() {
              this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));
            }
            generateNgRouterState(navigationId, routerPageId) {
              if (this.canceledNavigationResolution === 'computed') {
                return {
                  navigationId,
                  ɵrouterPageId: routerPageId
                };
              }
              return {
                navigationId
              };
            }
            static {
              this.ɵfac = function Router_Factory(t) {
                return new (t || Router)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: Router,
                factory: Router.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Router, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [];
            }, null);
          })();
          function validateCommands(commands) {
            for (let i = 0; i < commands.length; i++) {
              const cmd = commands[i];
              if (cmd == null) {
                throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4008 /* RuntimeErrorCode.NULLISH_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The requested path contains ${cmd} segment at index ${i}`);
              }
            }
          }
          function isPublicRouterEvent(e) {
            return !(e instanceof BeforeActivateRoutes) && !(e instanceof RedirectRequest);
          }
          
          /**
           * @description
           *
           * When applied to an element in a template, makes that element a link
           * that initiates navigation to a route. Navigation opens one or more routed components
           * in one or more `<router-outlet>` locations on the page.
           *
           * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
           * the following creates a static link to the route:
           * `<a routerLink="/user/bob">link to user component</a>`
           *
           * You can use dynamic values to generate the link.
           * For a dynamic link, pass an array of path segments,
           * followed by the params for each segment.
           * For example, `['/team', teamId, 'user', userName, {details: true}]`
           * generates a link to `/team/11/user/bob;details=true`.
           *
           * Multiple static segments can be merged into one term and combined with dynamic segments.
           * For example, `['/team/11/user', userName, {details: true}]`
           *
           * The input that you provide to the link is treated as a delta to the current URL.
           * For instance, suppose the current URL is `/user/(box//aux:team)`.
           * The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
           * `/user/(jim//aux:team)`.
           * See {@link Router#createUrlTree} for more information.
           *
           * @usageNotes
           *
           * You can use absolute or relative paths in a link, set query parameters,
           * control how parameters are handled, and keep a history of navigation states.
           *
           * ### Relative link paths
           *
           * The first segment name can be prepended with `/`, `./`, or `../`.
           * * If the first segment begins with `/`, the router looks up the route from the root of the
           *   app.
           * * If the first segment begins with `./`, or doesn't begin with a slash, the router
           *   looks in the children of the current activated route.
           * * If the first segment begins with `../`, the router goes up one level in the route tree.
           *
           * ### Setting and handling query params and fragments
           *
           * The following link adds a query parameter and a fragment to the generated URL:
           *
           * ```
           * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
           *   link to user component
           * </a>
           * ```
           * By default, the directive constructs the new URL using the given query parameters.
           * The example generates the link: `/user/bob?debug=true#education`.
           *
           * You can instruct the directive to handle query parameters differently
           * by specifying the `queryParamsHandling` option in the link.
           * Allowed values are:
           *
           *  - `'merge'`: Merge the given `queryParams` into the current query params.
           *  - `'preserve'`: Preserve the current query params.
           *
           * For example:
           *
           * ```
           * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" queryParamsHandling="merge">
           *   link to user component
           * </a>
           * ```
           *
           * See {@link UrlCreationOptions#queryParamsHandling}.
           *
           * ### Preserving navigation history
           *
           * You can provide a `state` value to be persisted to the browser's
           * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
           * For example:
           *
           * ```
           * <a [routerLink]="['/user/bob']" [state]="{tracingId: 123}">
           *   link to user component
           * </a>
           * ```
           *
           * Use {@link Router#getCurrentNavigation} to retrieve a saved
           * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`
           * event:
           *
           * ```
           * // Get NavigationStart events
           * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {
           *   const navigation = router.getCurrentNavigation();
           *   tracingService.trace({id: navigation.extras.state.tracingId});
           * });
           * ```
           *
           * @ngModule RouterModule
           *
           * @publicApi
           */
          class RouterLink {
            constructor(router, route, tabIndexAttribute, renderer, el, locationStrategy) {
              this.router = router;
              this.route = route;
              this.tabIndexAttribute = tabIndexAttribute;
              this.renderer = renderer;
              this.el = el;
              this.locationStrategy = locationStrategy;
              /**
               * Represents an `href` attribute value applied to a host element,
               * when a host element is `<a>`. For other tags, the value is `null`.
               */
              this.href = null;
              this.commands = null;
              /** @internal */
              this.onChanges = new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject();
              /**
               * Passed to {@link Router#createUrlTree} as part of the
               * `UrlCreationOptions`.
               * @see {@link UrlCreationOptions#preserveFragment}
               * @see {@link Router#createUrlTree}
               */
              this.preserveFragment = false;
              /**
               * Passed to {@link Router#navigateByUrl} as part of the
               * `NavigationBehaviorOptions`.
               * @see {@link NavigationBehaviorOptions#skipLocationChange}
               * @see {@link Router#navigateByUrl}
               */
              this.skipLocationChange = false;
              /**
               * Passed to {@link Router#navigateByUrl} as part of the
               * `NavigationBehaviorOptions`.
               * @see {@link NavigationBehaviorOptions#replaceUrl}
               * @see {@link Router#navigateByUrl}
               */
              this.replaceUrl = false;
              const tagName = el.nativeElement.tagName?.toLowerCase();
              this.isAnchorElement = tagName === 'a' || tagName === 'area';
              if (this.isAnchorElement) {
                this.subscription = router.events.subscribe(s => {
                  if (s instanceof NavigationEnd) {
                    this.updateHref();
                  }
                });
              } else {
                this.setTabIndexIfNotOnNativeEl('0');
              }
            }
            /**
             * Modifies the tab index if there was not a tabindex attribute on the element during
             * instantiation.
             */
            setTabIndexIfNotOnNativeEl(newTabIndex) {
              if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {
                return;
              }
              this.applyAttributeValue('tabindex', newTabIndex);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              if (this.isAnchorElement) {
                this.updateHref();
              }
              // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes
              // to the RouterLinks it's tracking.
              this.onChanges.next(this);
            }
            /**
             * Commands to pass to {@link Router#createUrlTree}.
             *   - **array**: commands to pass to {@link Router#createUrlTree}.
             *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
             *   - **null|undefined**: effectively disables the `routerLink`
             * @see {@link Router#createUrlTree}
             */
            set routerLink(commands) {
              if (commands != null) {
                this.commands = Array.isArray(commands) ? commands : [commands];
                this.setTabIndexIfNotOnNativeEl('0');
              } else {
                this.commands = null;
                this.setTabIndexIfNotOnNativeEl(null);
              }
            }
            /** @nodoc */
            onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
              if (this.urlTree === null) {
                return true;
              }
              if (this.isAnchorElement) {
                if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {
                  return true;
                }
                if (typeof this.target === 'string' && this.target != '_self') {
                  return true;
                }
              }
              const extras = {
                skipLocationChange: this.skipLocationChange,
                replaceUrl: this.replaceUrl,
                state: this.state
              };
              this.router.navigateByUrl(this.urlTree, extras);
              // Return `false` for `<a>` elements to prevent default action
              // and cancel the native behavior, since the navigation is handled
              // by the Router.
              return !this.isAnchorElement;
            }
            /** @nodoc */
            ngOnDestroy() {
              this.subscription?.unsubscribe();
            }
            updateHref() {
              this.href = this.urlTree !== null && this.locationStrategy ? this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)) : null;
              const sanitizedValue = this.href === null ? null :
              // This class represents a directive that can be added to both `<a>` elements,
              // as well as other elements. As a result, we can't define security context at
              // compile time. So the security context is deferred to runtime.
              // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function
              // based on the tag and property names. The logic mimics the one from
              // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.
              //
              // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`
              // instead of applying a value via a renderer, after a final merge of the
              // `RouterLinkWithHref` directive.
              (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrlOrResourceUrl"])(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');
              this.applyAttributeValue('href', sanitizedValue);
            }
            applyAttributeValue(attrName, attrValue) {
              const renderer = this.renderer;
              const nativeElement = this.el.nativeElement;
              if (attrValue !== null) {
                renderer.setAttribute(nativeElement, attrName, attrValue);
              } else {
                renderer.removeAttribute(nativeElement, attrName);
              }
            }
            get urlTree() {
              if (this.commands === null) {
                return null;
              }
              return this.router.createUrlTree(this.commands, {
                // If the `relativeTo` input is not defined, we want to use `this.route` by default.
                // Otherwise, we should use the value provided by the user in the input.
                relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,
                queryParams: this.queryParams,
                fragment: this.fragment,
                queryParamsHandling: this.queryParamsHandling,
                preserveFragment: this.preserveFragment
              });
            }
            static {
              this.ɵfac = function RouterLink_Factory(t) {
                return new (t || RouterLink)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_33__.LocationStrategy));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: RouterLink,
                selectors: [["", "routerLink", ""]],
                hostVars: 1,
                hostBindings: function RouterLink_HostBindings(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RouterLink_click_HostBindingHandler($event) {
                      return ctx.onClick($event.button, $event.ctrlKey, $event.shiftKey, $event.altKey, $event.metaKey);
                    });
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("target", ctx.target);
                  }
                },
                inputs: {
                  target: "target",
                  queryParams: "queryParams",
                  fragment: "fragment",
                  queryParamsHandling: "queryParamsHandling",
                  state: "state",
                  relativeTo: "relativeTo",
                  preserveFragment: ["preserveFragment", "preserveFragment", _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute],
                  skipLocationChange: ["skipLocationChange", "skipLocationChange", _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute],
                  replaceUrl: ["replaceUrl", "replaceUrl", _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute],
                  routerLink: "routerLink"
                },
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInputTransformsFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLink, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[routerLink]',
                standalone: true
              }]
            }], function () {
              return [{
                type: Router
              }, {
                type: ActivatedRoute
              }, {
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Attribute,
                  args: ['tabindex']
                }]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Renderer2
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }, {
                type: _angular_common__WEBPACK_IMPORTED_MODULE_33__.LocationStrategy
              }];
            }, {
              target: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.HostBinding,
                args: ['attr.target']
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              queryParams: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              fragment: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              queryParamsHandling: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              state: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              relativeTo: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              preserveFragment: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute
                }]
              }],
              skipLocationChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute
                }]
              }],
              replaceUrl: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input,
                args: [{
                  transform: _angular_core__WEBPACK_IMPORTED_MODULE_1__.booleanAttribute
                }]
              }],
              routerLink: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              onClick: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.HostListener,
                args: ['click', ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]
              }]
            });
          })();
          
          /**
           *
           * @description
           *
           * Tracks whether the linked route of an element is currently active, and allows you
           * to specify one or more CSS classes to add to the element when the linked route
           * is active.
           *
           * Use this directive to create a visual distinction for elements associated with an active route.
           * For example, the following code highlights the word "Bob" when the router
           * activates the associated route:
           *
           * ```
           * <a routerLink="/user/bob" routerLinkActive="active-link">Bob</a>
           * ```
           *
           * Whenever the URL is either '/user' or '/user/bob', the "active-link" class is
           * added to the anchor tag. If the URL changes, the class is removed.
           *
           * You can set more than one class using a space-separated string or an array.
           * For example:
           *
           * ```
           * <a routerLink="/user/bob" routerLinkActive="class1 class2">Bob</a>
           * <a routerLink="/user/bob" [routerLinkActive]="['class1', 'class2']">Bob</a>
           * ```
           *
           * To add the classes only when the URL matches the link exactly, add the option `exact: true`:
           *
           * ```
           * <a routerLink="/user/bob" routerLinkActive="active-link" [routerLinkActiveOptions]="{exact:
           * true}">Bob</a>
           * ```
           *
           * To directly check the `isActive` status of the link, assign the `RouterLinkActive`
           * instance to a template variable.
           * For example, the following checks the status without assigning any CSS classes:
           *
           * ```
           * <a routerLink="/user/bob" routerLinkActive #rla="routerLinkActive">
           *   Bob {{ rla.isActive ? '(already open)' : ''}}
           * </a>
           * ```
           *
           * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.
           * For example, the following sets the active-link class on the `<div>`  parent tag
           * when the URL is either '/user/jim' or '/user/bob'.
           *
           * ```
           * <div routerLinkActive="active-link" [routerLinkActiveOptions]="{exact: true}">
           *   <a routerLink="/user/jim">Jim</a>
           *   <a routerLink="/user/bob">Bob</a>
           * </div>
           * ```
           *
           * The `RouterLinkActive` directive can also be used to set the aria-current attribute
           * to provide an alternative distinction for active elements to visually impaired users.
           *
           * For example, the following code adds the 'active' class to the Home Page link when it is
           * indeed active and in such case also sets its aria-current attribute to 'page':
           *
           * ```
           * <a routerLink="/" routerLinkActive="active" ariaCurrentWhenActive="page">Home Page</a>
           * ```
           *
           * @ngModule RouterModule
           *
           * @publicApi
           */
          class RouterLinkActive {
            get isActive() {
              return this._isActive;
            }
            constructor(router, element, renderer, cdr, link) {
              this.router = router;
              this.element = element;
              this.renderer = renderer;
              this.cdr = cdr;
              this.link = link;
              this.classes = [];
              this._isActive = false;
              /**
               * Options to configure how to determine if the router link is active.
               *
               * These options are passed to the `Router.isActive()` function.
               *
               * @see {@link Router#isActive}
               */
              this.routerLinkActiveOptions = {
                exact: false
              };
              /**
               *
               * You can use the output `isActiveChange` to get notified each time the link becomes
               * active or inactive.
               *
               * Emits:
               * true  -> Route is active
               * false -> Route is inactive
               *
               * ```
               * <a
               *  routerLink="/user/bob"
               *  routerLinkActive="active-link"
               *  (isActiveChange)="this.onRouterLinkActive($event)">Bob</a>
               * ```
               */
              this.isActiveChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              this.routerEventsSubscription = router.events.subscribe(s => {
                if (s instanceof NavigationEnd) {
                  this.update();
                }
              });
            }
            /** @nodoc */
            ngAfterContentInit() {
              // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).
              (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(this.links.changes, (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.mergeAll)()).subscribe(_ => {
                this.update();
                this.subscribeToEachLinkOnChanges();
              });
            }
            subscribeToEachLinkOnChanges() {
              this.linkInputChangesSubscription?.unsubscribe();
              const allLinkChanges = [...this.links.toArray(), this.link].filter(link => !!link).map(link => link.onChanges);
              this.linkInputChangesSubscription = (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(allLinkChanges).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.mergeAll)()).subscribe(link => {
                if (this._isActive !== this.isLinkActive(this.router)(link)) {
                  this.update();
                }
              });
            }
            set routerLinkActive(data) {
              const classes = Array.isArray(data) ? data : data.split(' ');
              this.classes = classes.filter(c => !!c);
            }
            /** @nodoc */
            ngOnChanges(changes) {
              this.update();
            }
            /** @nodoc */
            ngOnDestroy() {
              this.routerEventsSubscription.unsubscribe();
              this.linkInputChangesSubscription?.unsubscribe();
            }
            update() {
              if (!this.links || !this.router.navigated) return;
              queueMicrotask(() => {
                const hasActiveLinks = this.hasActiveLinks();
                if (this._isActive !== hasActiveLinks) {
                  this._isActive = hasActiveLinks;
                  this.cdr.markForCheck();
                  this.classes.forEach(c => {
                    if (hasActiveLinks) {
                      this.renderer.addClass(this.element.nativeElement, c);
                    } else {
                      this.renderer.removeClass(this.element.nativeElement, c);
                    }
                  });
                  if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {
                    this.renderer.setAttribute(this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());
                  } else {
                    this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');
                  }
                  // Emit on isActiveChange after classes are updated
                  this.isActiveChange.emit(hasActiveLinks);
                }
              });
            }
            isLinkActive(router) {
              const options = isActiveMatchOptions(this.routerLinkActiveOptions) ? this.routerLinkActiveOptions :
              // While the types should disallow `undefined` here, it's possible without strict inputs
              this.routerLinkActiveOptions.exact || false;
              return link => link.urlTree ? router.isActive(link.urlTree, options) : false;
            }
            hasActiveLinks() {
              const isActiveCheckFn = this.isLinkActive(this.router);
              return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
            }
            static {
              this.ɵfac = function RouterLinkActive_Factory(t) {
                return new (t || RouterLinkActive)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.Renderer2), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](RouterLink, 8));
              };
            }
            static {
              this.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
                type: RouterLinkActive,
                selectors: [["", "routerLinkActive", ""]],
                contentQueries: function RouterLinkActive_ContentQueries(rf, ctx, dirIndex) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, RouterLink, 5);
                  }
                  if (rf & 2) {
                    let _t;
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.links = _t);
                  }
                },
                inputs: {
                  routerLinkActiveOptions: "routerLinkActiveOptions",
                  ariaCurrentWhenActive: "ariaCurrentWhenActive",
                  routerLinkActive: "routerLinkActive"
                },
                outputs: {
                  isActiveChange: "isActiveChange"
                },
                exportAs: ["routerLinkActive"],
                standalone: true,
                features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLinkActive, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Directive,
              args: [{
                selector: '[routerLinkActive]',
                exportAs: 'routerLinkActive',
                standalone: true
              }]
            }], function () {
              return [{
                type: Router
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Renderer2
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ChangeDetectorRef
              }, {
                type: RouterLink,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }]
              }];
            }, {
              links: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ContentChildren,
                args: [RouterLink, {
                  descendants: true
                }]
              }],
              routerLinkActiveOptions: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              ariaCurrentWhenActive: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }],
              isActiveChange: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Output
              }],
              routerLinkActive: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Input
              }]
            });
          })();
          /**
           * Use instead of `'paths' in options` to be compatible with property renaming
           */
          function isActiveMatchOptions(options) {
            return !!options.paths;
          }
          
          /**
           * @description
           *
           * Provides a preloading strategy.
           *
           * @publicApi
           */
          class PreloadingStrategy {}
          /**
           * @description
           *
           * Provides a preloading strategy that preloads all modules as quickly as possible.
           *
           * ```
           * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
           * ```
           *
           * @publicApi
           */
          class PreloadAllModules {
            preload(route, fn) {
              return fn().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.catchError)(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(null)));
            }
            static {
              this.ɵfac = function PreloadAllModules_Factory(t) {
                return new (t || PreloadAllModules)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: PreloadAllModules,
                factory: PreloadAllModules.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](PreloadAllModules, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * @description
           *
           * Provides a preloading strategy that does not preload any modules.
           *
           * This strategy is enabled by default.
           *
           * @publicApi
           */
          class NoPreloading {
            preload(route, fn) {
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(null);
            }
            static {
              this.ɵfac = function NoPreloading_Factory(t) {
                return new (t || NoPreloading)();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: NoPreloading,
                factory: NoPreloading.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NoPreloading, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], null, null);
          })();
          /**
           * The preloader optimistically loads all router configurations to
           * make navigations into lazily-loaded sections of the application faster.
           *
           * The preloader runs in the background. When the router bootstraps, the preloader
           * starts listening to all navigation events. After every such event, the preloader
           * will check if any configurations can be loaded lazily.
           *
           * If a route is protected by `canLoad` guards, the preloaded will not load it.
           *
           * @publicApi
           */
          class RouterPreloader {
            constructor(router, compiler, injector, preloadingStrategy, loader) {
              this.router = router;
              this.injector = injector;
              this.preloadingStrategy = preloadingStrategy;
              this.loader = loader;
            }
            setUpPreloading() {
              this.subscription = this.router.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(e => e instanceof NavigationEnd), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.concatMap)(() => this.preload())).subscribe(() => {});
            }
            preload() {
              return this.processRoutes(this.injector, this.router.config);
            }
            /** @nodoc */
            ngOnDestroy() {
              if (this.subscription) {
                this.subscription.unsubscribe();
              }
            }
            processRoutes(injector, routes) {
              const res = [];
              for (const route of routes) {
                if (route.providers && !route._injector) {
                  route._injector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.createEnvironmentInjector)(route.providers, injector, `Route: ${route.path}`);
                }
                const injectorForCurrentRoute = route._injector ?? injector;
                const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;
                // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not
                // `loadComponent`. `canLoad` guards only block loading of child routes by design. This
                // happens as a consequence of needing to descend into children for route matching immediately
                // while component loading is deferred until route activation. Because `canLoad` guards can
                // have side effects, we cannot execute them here so we instead skip preloading altogether
                // when present. Lastly, it remains to be decided whether `canLoad` should behave this way
                // at all. Code splitting and lazy loading is separate from client-side authorization checks
                // and should not be used as a security measure to prevent loading of code.
                if (route.loadChildren && !route._loadedRoutes && route.canLoad === undefined || route.loadComponent && !route._loadedComponent) {
                  res.push(this.preloadConfig(injectorForCurrentRoute, route));
                }
                if (route.children || route._loadedRoutes) {
                  res.push(this.processRoutes(injectorForChildren, route.children ?? route._loadedRoutes));
                }
              }
              return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)(res).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.mergeAll)());
            }
            preloadConfig(injector, route) {
              return this.preloadingStrategy.preload(route, () => {
                let loadedChildren$;
                if (route.loadChildren && route.canLoad === undefined) {
                  loadedChildren$ = this.loader.loadChildren(injector, route);
                } else {
                  loadedChildren$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(null);
                }
                const recursiveLoadChildren$ = loadedChildren$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.mergeMap)(config => {
                  if (config === null) {
                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(void 0);
                  }
                  route._loadedRoutes = config.routes;
                  route._loadedInjector = config.injector;
                  // If the loaded config was a module, use that as the module/module injector going
                  // forward. Otherwise, continue using the current module/module injector.
                  return this.processRoutes(config.injector ?? injector, config.routes);
                }));
                if (route.loadComponent && !route._loadedComponent) {
                  const loadComponent$ = this.loader.loadComponent(route);
                  return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.from)([recursiveLoadChildren$, loadComponent$]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.mergeAll)());
                } else {
                  return recursiveLoadChildren$;
                }
              });
            }
            static {
              this.ɵfac = function RouterPreloader_Factory(t) {
                return new (t || RouterPreloader)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.Compiler), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.EnvironmentInjector), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](PreloadingStrategy), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](RouterConfigLoader));
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: RouterPreloader,
                factory: RouterPreloader.ɵfac,
                providedIn: 'root'
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterPreloader, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable,
              args: [{
                providedIn: 'root'
              }]
            }], function () {
              return [{
                type: Router
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Compiler
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.EnvironmentInjector
              }, {
                type: PreloadingStrategy
              }, {
                type: RouterConfigLoader
              }];
            }, null);
          })();
          const ROUTER_SCROLLER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('');
          class RouterScroller {
            /** @nodoc */
            constructor(urlSerializer, transitions, viewportScroller, zone, options = {}) {
              this.urlSerializer = urlSerializer;
              this.transitions = transitions;
              this.viewportScroller = viewportScroller;
              this.zone = zone;
              this.options = options;
              this.lastId = 0;
              this.lastSource = 'imperative';
              this.restoredId = 0;
              this.store = {};
              // Default both options to 'disabled'
              options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';
              options.anchorScrolling = options.anchorScrolling || 'disabled';
            }
            init() {
              // we want to disable the automatic scrolling because having two places
              // responsible for scrolling results race conditions, especially given
              // that browser don't implement this behavior consistently
              if (this.options.scrollPositionRestoration !== 'disabled') {
                this.viewportScroller.setHistoryScrollRestoration('manual');
              }
              this.routerEventsSubscription = this.createScrollEvents();
              this.scrollEventsSubscription = this.consumeScrollEvents();
            }
            createScrollEvents() {
              return this.transitions.events.subscribe(e => {
                if (e instanceof NavigationStart) {
                  // store the scroll position of the current stable navigations.
                  this.store[this.lastId] = this.viewportScroller.getScrollPosition();
                  this.lastSource = e.navigationTrigger;
                  this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;
                } else if (e instanceof NavigationEnd) {
                  this.lastId = e.id;
                  this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);
                } else if (e instanceof NavigationSkipped && e.code === 0 /* NavigationSkippedCode.IgnoredSameUrlNavigation */) {
                  this.lastSource = undefined;
                  this.restoredId = 0;
                  this.scheduleScrollEvent(e, this.urlSerializer.parse(e.url).fragment);
                }
              });
            }
            consumeScrollEvents() {
              return this.transitions.events.subscribe(e => {
                if (!(e instanceof Scroll)) return;
                // a popstate event. The pop state event will always ignore anchor scrolling.
                if (e.position) {
                  if (this.options.scrollPositionRestoration === 'top') {
                    this.viewportScroller.scrollToPosition([0, 0]);
                  } else if (this.options.scrollPositionRestoration === 'enabled') {
                    this.viewportScroller.scrollToPosition(e.position);
                  }
                  // imperative navigation "forward"
                } else {
                  if (e.anchor && this.options.anchorScrolling === 'enabled') {
                    this.viewportScroller.scrollToAnchor(e.anchor);
                  } else if (this.options.scrollPositionRestoration !== 'disabled') {
                    this.viewportScroller.scrollToPosition([0, 0]);
                  }
                }
              });
            }
            scheduleScrollEvent(routerEvent, anchor) {
              this.zone.runOutsideAngular(() => {
                // The scroll event needs to be delayed until after change detection. Otherwise, we may
                // attempt to restore the scroll position before the router outlet has fully rendered the
                // component by executing its update block of the template function.
                setTimeout(() => {
                  this.zone.run(() => {
                    this.transitions.events.next(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));
                  });
                }, 0);
              });
            }
            /** @nodoc */
            ngOnDestroy() {
              this.routerEventsSubscription?.unsubscribe();
              this.scrollEventsSubscription?.unsubscribe();
            }
            static {
              this.ɵfac = function RouterScroller_Factory(t) {
                _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinvalidFactory"]();
              };
            }
            static {
              this.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: RouterScroller,
                factory: RouterScroller.ɵfac
              });
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterScroller, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Injectable
            }], function () {
              return [{
                type: UrlSerializer
              }, {
                type: NavigationTransitions
              }, {
                type: _angular_common__WEBPACK_IMPORTED_MODULE_33__.ViewportScroller
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone
              }, {
                type: undefined
              }];
            }, null);
          })();
          
          /**
           * Sets up providers necessary to enable `Router` functionality for the application.
           * Allows to configure a set of routes as well as extra features that should be enabled.
           *
           * @usageNotes
           *
           * Basic example of how you can add a Router to your application:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent, {
           *   providers: [provideRouter(appRoutes)]
           * });
           * ```
           *
           * You can also enable optional features in the Router by adding functions from the `RouterFeatures`
           * type:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes,
           *         withDebugTracing(),
           *         withRouterConfig({paramsInheritanceStrategy: 'always'}))
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link RouterFeatures}
           *
           * @publicApi
           * @param routes A set of `Route`s to use for the application routing table.
           * @param features Optional features to configure additional router behaviors.
           * @returns A set of providers to setup a Router.
           */
          function provideRouter(routes, ...features) {
            return (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.makeEnvironmentProviders)([{
              provide: ROUTES,
              multi: true,
              useValue: routes
            }, typeof ngDevMode === 'undefined' || ngDevMode ? {
              provide: ROUTER_IS_PROVIDED,
              useValue: true
            } : [], {
              provide: ActivatedRoute,
              useFactory: rootRoute,
              deps: [Router]
            }, {
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_BOOTSTRAP_LISTENER,
              multi: true,
              useFactory: getBootstrapListener
            }, features.map(feature => feature.ɵproviders)]);
          }
          function rootRoute(router) {
            return router.routerState.root;
          }
          /**
           * Helper function to create an object that represents a Router feature.
           */
          function routerFeature(kind, providers) {
            return {
              ɵkind: kind,
              ɵproviders: providers
            };
          }
          /**
           * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever
           * called.
           */
          const ROUTER_IS_PROVIDED = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken('', {
            providedIn: 'root',
            factory: () => false
          });
          const routerIsProvidedDevModeCheck = {
            provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ENVIRONMENT_INITIALIZER,
            multi: true,
            useFactory() {
              return () => {
                if (!(0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ROUTER_IS_PROVIDED)) {
                  console.warn('`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' + 'This is likely a mistake.');
                }
              };
            }
          };
          /**
           * Registers a [DI provider](guide/glossary#provider) for a set of routes.
           * @param routes The route configuration to provide.
           *
           * @usageNotes
           *
           * ```
           * @NgModule({
           *   providers: [provideRoutes(ROUTES)]
           * })
           * class LazyLoadedChildModule {}
           * ```
           *
           * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.
           * @see {@link ROUTES}
           * @publicApi
           */
          function provideRoutes(routes) {
            return [{
              provide: ROUTES,
              multi: true,
              useValue: routes
            }, typeof ngDevMode === 'undefined' || ngDevMode ? routerIsProvidedDevModeCheck : []];
          }
          /**
           * Enables customizable scrolling behavior for router navigations.
           *
           * @usageNotes
           *
           * Basic example of how you can enable scrolling feature:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withInMemoryScrolling())
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           * @see {@link ViewportScroller}
           *
           * @publicApi
           * @param options Set of configuration parameters to customize scrolling behavior, see
           *     `InMemoryScrollingOptions` for additional information.
           * @returns A set of providers for use with `provideRouter`.
           */
          function withInMemoryScrolling(options = {}) {
            const providers = [{
              provide: ROUTER_SCROLLER,
              useFactory: () => {
                const viewportScroller = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_common__WEBPACK_IMPORTED_MODULE_33__.ViewportScroller);
                const zone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone);
                const transitions = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(NavigationTransitions);
                const urlSerializer = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(UrlSerializer);
                return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);
              }
            }];
            return routerFeature(4 /* RouterFeatureKind.InMemoryScrollingFeature */, providers);
          }
          function getBootstrapListener() {
            const injector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Injector);
            return bootstrappedComponentRef => {
              const ref = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__.ApplicationRef);
              if (bootstrappedComponentRef !== ref.components[0]) {
                return;
              }
              const router = injector.get(Router);
              const bootstrapDone = injector.get(BOOTSTRAP_DONE);
              if (injector.get(INITIAL_NAVIGATION) === 1 /* InitialNavigation.EnabledNonBlocking */) {
                router.initialNavigation();
              }
              injector.get(ROUTER_PRELOADER, null, _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectFlags.Optional)?.setUpPreloading();
              injector.get(ROUTER_SCROLLER, null, _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectFlags.Optional)?.init();
              router.resetRootComponentType(ref.componentTypes[0]);
              if (!bootstrapDone.closed) {
                bootstrapDone.next();
                bootstrapDone.complete();
                bootstrapDone.unsubscribe();
              }
            };
          }
          /**
           * A subject used to indicate that the bootstrapping phase is done. When initial navigation is
           * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing
           * to the activation phase.
           */
          const BOOTSTRAP_DONE = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'bootstrap done indicator' : '', {
            factory: () => {
              return new rxjs__WEBPACK_IMPORTED_MODULE_29__.Subject();
            }
          });
          const INITIAL_NAVIGATION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'initial navigation' : '', {
            providedIn: 'root',
            factory: () => 1 /* InitialNavigation.EnabledNonBlocking */
          });
          /**
           * Configures initial navigation to start before the root component is created.
           *
           * The bootstrap is blocked until the initial navigation is complete. This value is required for
           * [server-side rendering](guide/universal) to work.
           *
           * @usageNotes
           *
           * Basic example of how you can enable this navigation behavior:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withEnabledBlockingInitialNavigation())
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           *
           * @publicApi
           * @returns A set of providers for use with `provideRouter`.
           */
          function withEnabledBlockingInitialNavigation() {
            const providers = [{
              provide: INITIAL_NAVIGATION,
              useValue: 0 /* InitialNavigation.EnabledBlocking */
            }, {
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_INITIALIZER,
              multi: true,
              deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__.Injector],
              useFactory: injector => {
                const locationInitialized = injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_33__.LOCATION_INITIALIZED, Promise.resolve());
                return () => {
                  return locationInitialized.then(() => {
                    return new Promise(resolve => {
                      const router = injector.get(Router);
                      const bootstrapDone = injector.get(BOOTSTRAP_DONE);
                      afterNextNavigation(router, () => {
                        // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored
                        // without a redirect.
                        resolve(true);
                      });
                      injector.get(NavigationTransitions).afterPreactivation = () => {
                        // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we
                        // assume activation will complete successfully (even though this is not
                        // guaranteed).
                        resolve(true);
                        return bootstrapDone.closed ? (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.of)(void 0) : bootstrapDone;
                      };
                      router.initialNavigation();
                    });
                  });
                };
              }
            }];
            return routerFeature(2 /* RouterFeatureKind.EnabledBlockingInitialNavigationFeature */, providers);
          }
          /**
           * Disables initial navigation.
           *
           * Use if there is a reason to have more control over when the router starts its initial navigation
           * due to some complex initialization logic.
           *
           * @usageNotes
           *
           * Basic example of how you can disable initial navigation:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withDisabledInitialNavigation())
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           *
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withDisabledInitialNavigation() {
            const providers = [{
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_INITIALIZER,
              multi: true,
              useFactory: () => {
                const router = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(Router);
                return () => {
                  router.setUpLocationChangeListener();
                };
              }
            }, {
              provide: INITIAL_NAVIGATION,
              useValue: 2 /* InitialNavigation.Disabled */
            }];
          
            return routerFeature(3 /* RouterFeatureKind.DisabledInitialNavigationFeature */, providers);
          }
          /**
           * Enables logging of all internal navigation events to the console.
           * Extra logging might be useful for debugging purposes to inspect Router event sequence.
           *
           * @usageNotes
           *
           * Basic example of how you can enable debug tracing:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withDebugTracing())
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           *
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withDebugTracing() {
            let providers = [];
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              providers = [{
                provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ENVIRONMENT_INITIALIZER,
                multi: true,
                useFactory: () => {
                  const router = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(Router);
                  return () => router.events.subscribe(e => {
                    // tslint:disable:no-console
                    console.group?.(`Router Event: ${e.constructor.name}`);
                    console.log(stringifyEvent(e));
                    console.log(e);
                    console.groupEnd?.();
                    // tslint:enable:no-console
                  });
                }
              }];
            } else {
              providers = [];
            }
            return routerFeature(1 /* RouterFeatureKind.DebugTracingFeature */, providers);
          }
          const ROUTER_PRELOADER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router preloader' : '');
          /**
           * Allows to configure a preloading strategy to use. The strategy is configured by providing a
           * reference to a class that implements a `PreloadingStrategy`.
           *
           * @usageNotes
           *
           * Basic example of how you can configure preloading:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withPreloading(PreloadAllModules))
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           *
           * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that
           *     should be used.
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withPreloading(preloadingStrategy) {
            const providers = [{
              provide: ROUTER_PRELOADER,
              useExisting: RouterPreloader
            }, {
              provide: PreloadingStrategy,
              useExisting: preloadingStrategy
            }];
            return routerFeature(0 /* RouterFeatureKind.PreloadingFeature */, providers);
          }
          /**
           * Allows to provide extra parameters to configure Router.
           *
           * @usageNotes
           *
           * Basic example of how you can provide extra configuration options:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withRouterConfig({
           *          onSameUrlNavigation: 'reload'
           *       }))
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           *
           * @param options A set of parameters to configure Router, see `RouterConfigOptions` for
           *     additional information.
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withRouterConfig(options) {
            const providers = [{
              provide: ROUTER_CONFIGURATION,
              useValue: options
            }];
            return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);
          }
          /**
           * Provides the location strategy that uses the URL fragment instead of the history API.
           *
           * @usageNotes
           *
           * Basic example of how you can use the hash location option:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withHashLocation())
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link provideRouter}
           * @see {@link HashLocationStrategy}
           *
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withHashLocation() {
            const providers = [{
              provide: _angular_common__WEBPACK_IMPORTED_MODULE_33__.LocationStrategy,
              useClass: _angular_common__WEBPACK_IMPORTED_MODULE_33__.HashLocationStrategy
            }];
            return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);
          }
          /**
           * Subscribes to the Router's navigation events and calls the given function when a
           * `NavigationError` happens.
           *
           * This function is run inside application's [injection context](guide/dependency-injection-context)
           * so you can use the [`inject`](api/core/inject) function.
           *
           * @usageNotes
           *
           * Basic example of how you can use the error handler option:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>
           * inject(MyErrorTracker).trackError(e)))
           *     ]
           *   }
           * );
           * ```
           *
           * @see {@link NavigationError}
           * @see {@link core/inject}
           * @see {@link runInInjectionContext}
           *
           * @returns A set of providers for use with `provideRouter`.
           *
           * @publicApi
           */
          function withNavigationErrorHandler(fn) {
            const providers = [{
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.ENVIRONMENT_INITIALIZER,
              multi: true,
              useValue: () => {
                const injector = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.EnvironmentInjector);
                (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(Router).events.subscribe(e => {
                  if (e instanceof NavigationError) {
                    injector.runInContext(() => fn(e));
                  }
                });
              }
            }];
            return routerFeature(7 /* RouterFeatureKind.NavigationErrorHandlerFeature */, providers);
          }
          /**
           * Enables binding information from the `Router` state directly to the inputs of the component in
           * `Route` configurations.
           *
           * @usageNotes
           *
           * Basic example of how you can enable the feature:
           * ```
           * const appRoutes: Routes = [];
           * bootstrapApplication(AppComponent,
           *   {
           *     providers: [
           *       provideRouter(appRoutes, withComponentInputBinding())
           *     ]
           *   }
           * );
           * ```
           *
           * @returns A set of providers for use with `provideRouter`.
           */
          function withComponentInputBinding() {
            const providers = [RoutedComponentInputBinder, {
              provide: INPUT_BINDER,
              useExisting: RoutedComponentInputBinder
            }];
            return routerFeature(8 /* RouterFeatureKind.ComponentInputBindingFeature */, providers);
          }
          
          /**
           * The directives defined in the `RouterModule`.
           */
          const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent];
          /**
           * @docsNotRequired
           */
          const ROUTER_FORROOT_GUARD = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router duplicate forRoot guard' : 'ROUTER_FORROOT_GUARD');
          // TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept
          // here to avoid a breaking change whereby the provider order matters based on where the
          // `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a "breaking"
          // change in a major version.
          const ROUTER_PROVIDERS = [_angular_common__WEBPACK_IMPORTED_MODULE_33__.Location, {
            provide: UrlSerializer,
            useClass: DefaultUrlSerializer
          }, Router, ChildrenOutletContexts, {
            provide: ActivatedRoute,
            useFactory: rootRoute,
            deps: [Router]
          }, RouterConfigLoader,
          // Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can
          // be removed when `provideRoutes` is removed.
          typeof ngDevMode === 'undefined' || ngDevMode ? {
            provide: ROUTER_IS_PROVIDED,
            useValue: true
          } : []];
          function routerNgProbeToken() {
            return new _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgProbeToken('Router', Router);
          }
          /**
           * @description
           *
           * Adds directives and providers for in-app navigation among views defined in an application.
           * Use the Angular `Router` service to declaratively specify application states and manage state
           * transitions.
           *
           * You can import this NgModule multiple times, once for each lazy-loaded bundle.
           * However, only one `Router` service can be active.
           * To ensure this, there are two ways to register routes when importing this module:
           *
           * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given
           * routes, and the `Router` service itself.
           * * The `forChild()` method creates an `NgModule` that contains all the directives and the given
           * routes, but does not include the `Router` service.
           *
           * @see [Routing and Navigation guide](guide/router) for an
           * overview of how the `Router` service should be used.
           *
           * @publicApi
           */
          class RouterModule {
            constructor(guard) {}
            /**
             * Creates and configures a module with all the router providers and directives.
             * Optionally sets up an application listener to perform an initial navigation.
             *
             * When registering the NgModule at the root, import as follows:
             *
             * ```
             * @NgModule({
             *   imports: [RouterModule.forRoot(ROUTES)]
             * })
             * class MyNgModule {}
             * ```
             *
             * @param routes An array of `Route` objects that define the navigation paths for the application.
             * @param config An `ExtraOptions` configuration object that controls how navigation is performed.
             * @return The new `NgModule`.
             *
             */
            static forRoot(routes, config) {
              return {
                ngModule: RouterModule,
                providers: [ROUTER_PROVIDERS, typeof ngDevMode === 'undefined' || ngDevMode ? config?.enableTracing ? withDebugTracing().ɵproviders : [] : [], {
                  provide: ROUTES,
                  multi: true,
                  useValue: routes
                }, {
                  provide: ROUTER_FORROOT_GUARD,
                  useFactory: provideForRootGuard,
                  deps: [[Router, new _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional(), new _angular_core__WEBPACK_IMPORTED_MODULE_1__.SkipSelf()]]
                }, {
                  provide: ROUTER_CONFIGURATION,
                  useValue: config ? config : {}
                }, config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(), provideRouterScroller(), config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [], {
                  provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgProbeToken,
                  multi: true,
                  useFactory: routerNgProbeToken
                }, config?.initialNavigation ? provideInitialNavigation(config) : [], config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [], provideRouterInitializer()]
              };
            }
            /**
             * Creates a module with all the router directives and a provider registering routes,
             * without creating a new Router service.
             * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:
             *
             * ```
             * @NgModule({
             *   imports: [RouterModule.forChild(ROUTES)]
             * })
             * class MyNgModule {}
             * ```
             *
             * @param routes An array of `Route` objects that define the navigation paths for the submodule.
             * @return The new NgModule.
             *
             */
            static forChild(routes) {
              return {
                ngModule: RouterModule,
                providers: [{
                  provide: ROUTES,
                  multi: true,
                  useValue: routes
                }]
              };
            }
            static {
              this.ɵfac = function RouterModule_Factory(t) {
                return new (t || RouterModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ROUTER_FORROOT_GUARD, 8));
              };
            }
            static {
              this.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
                type: RouterModule
              });
            }
            static {
              this.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({});
            }
          }
          (function () {
            (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterModule, [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.NgModule,
              args: [{
                imports: ROUTER_DIRECTIVES,
                exports: ROUTER_DIRECTIVES
              }]
            }], function () {
              return [{
                type: undefined,
                decorators: [{
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Optional
                }, {
                  type: _angular_core__WEBPACK_IMPORTED_MODULE_1__.Inject,
                  args: [ROUTER_FORROOT_GUARD]
                }]
              }];
            }, null);
          })();
          /**
           * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`
           * because it reads from the `ExtraOptions` which should not be used in the standalone world.
           */
          function provideRouterScroller() {
            return {
              provide: ROUTER_SCROLLER,
              useFactory: () => {
                const viewportScroller = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_common__WEBPACK_IMPORTED_MODULE_33__.ViewportScroller);
                const zone = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone);
                const config = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(ROUTER_CONFIGURATION);
                const transitions = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(NavigationTransitions);
                const urlSerializer = (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(UrlSerializer);
                if (config.scrollOffset) {
                  viewportScroller.setOffset(config.scrollOffset);
                }
                return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);
              }
            };
          }
          // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should
          // provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`.
          function provideHashLocationStrategy() {
            return {
              provide: _angular_common__WEBPACK_IMPORTED_MODULE_33__.LocationStrategy,
              useClass: _angular_common__WEBPACK_IMPORTED_MODULE_33__.HashLocationStrategy
            };
          }
          // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not
          // need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`.
          function providePathLocationStrategy() {
            return {
              provide: _angular_common__WEBPACK_IMPORTED_MODULE_33__.LocationStrategy,
              useClass: _angular_common__WEBPACK_IMPORTED_MODULE_33__.PathLocationStrategy
            };
          }
          function provideForRootGuard(router) {
            if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {
              throw new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵRuntimeError"](4007 /* RuntimeErrorCode.FOR_ROOT_CALLED_TWICE */, `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` + ` Lazy loaded modules should use RouterModule.forChild() instead.`);
            }
            return 'guarded';
          }
          // Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter`
          // users call `withXInitialNavigation` directly.
          function provideInitialNavigation(config) {
            return [config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [], config.initialNavigation === 'enabledBlocking' ? withEnabledBlockingInitialNavigation().ɵproviders : []];
          }
          // TODO(atscott): This should not be in the public API
          /**
           * A [DI token](guide/glossary/#di-token) for the router initializer that
           * is called after the app is bootstrapped.
           *
           * @publicApi
           */
          const ROUTER_INITIALIZER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Router Initializer' : '');
          function provideRouterInitializer() {
            return [
            // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just
            // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.
            {
              provide: ROUTER_INITIALIZER,
              useFactory: getBootstrapListener
            }, {
              provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__.APP_BOOTSTRAP_LISTENER,
              multi: true,
              useExisting: ROUTER_INITIALIZER
            }];
          }
          
          /**
           * Maps an array of injectable classes with canMatch functions to an array of equivalent
           * `CanMatchFn` for use in a `Route` definition.
           *
           * Usage {@example router/utils/functional_guards.ts region='CanActivate'}
           *
           * @publicApi
           * @see {@link Route}
           */
          function mapToCanMatch(providers) {
            return providers.map(provider => (...params) => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(provider).canMatch(...params));
          }
          /**
           * Maps an array of injectable classes with canActivate functions to an array of equivalent
           * `CanActivateFn` for use in a `Route` definition.
           *
           * Usage {@example router/utils/functional_guards.ts region='CanActivate'}
           *
           * @publicApi
           * @see {@link Route}
           */
          function mapToCanActivate(providers) {
            return providers.map(provider => (...params) => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(provider).canActivate(...params));
          }
          /**
           * Maps an array of injectable classes with canActivateChild functions to an array of equivalent
           * `CanActivateChildFn` for use in a `Route` definition.
           *
           * Usage {@example router/utils/functional_guards.ts region='CanActivate'}
           *
           * @publicApi
           * @see {@link Route}
           */
          function mapToCanActivateChild(providers) {
            return providers.map(provider => (...params) => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(provider).canActivateChild(...params));
          }
          /**
           * Maps an array of injectable classes with canDeactivate functions to an array of equivalent
           * `CanDeactivateFn` for use in a `Route` definition.
           *
           * Usage {@example router/utils/functional_guards.ts region='CanActivate'}
           *
           * @publicApi
           * @see {@link Route}
           */
          function mapToCanDeactivate(providers) {
            return providers.map(provider => (...params) => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(provider).canDeactivate(...params));
          }
          /**
           * Maps an injectable class with a resolve function to an equivalent `ResolveFn`
           * for use in a `Route` definition.
           *
           * Usage {@example router/utils/functional_guards.ts region='Resolve'}
           *
           * @publicApi
           * @see {@link Route}
           */
          function mapToResolve(provider) {
            return (...params) => (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.inject)(provider).resolve(...params);
          }
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of the router package.
           */
          /**
           * @publicApi
           */
          const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.Version('16.2.12');
          
          /**
           * @module
           * @description
           * Entry point for all public APIs of this package.
           */
          // This file only reexports content of the `src` folder. Keep it that way.
          
          // This file is not used to build this module. It is only used during editing
          
          /**
           * Generated bundle index. Do not edit.
           */
          
          
          
          /***/ }),
          
          /***/ 9204:
          /*!*********************************************************************!*\
            !*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***!
            \*********************************************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   "default": () => (/* binding */ _asyncToGenerator)
          /* harmony export */ });
          function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
            try {
              var info = gen[key](arg);
              var value = info.value;
            } catch (error) {
              reject(error);
              return;
            }
            if (info.done) {
              resolve(value);
            } else {
              Promise.resolve(value).then(_next, _throw);
            }
          }
          function _asyncToGenerator(fn) {
            return function () {
              var self = this,
                args = arguments;
              return new Promise(function (resolve, reject) {
                var gen = fn.apply(self, args);
                function _next(value) {
                  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
                }
                function _throw(err) {
                  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
                }
                _next(undefined);
              });
            };
          }
          
          /***/ }),
          
          /***/ 4398:
          /*!******************************************!*\
            !*** ./node_modules/tslib/tslib.es6.mjs ***!
            \******************************************/
          /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
          
          "use strict";
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   __addDisposableResource: () => (/* binding */ __addDisposableResource),
          /* harmony export */   __assign: () => (/* binding */ __assign),
          /* harmony export */   __asyncDelegator: () => (/* binding */ __asyncDelegator),
          /* harmony export */   __asyncGenerator: () => (/* binding */ __asyncGenerator),
          /* harmony export */   __asyncValues: () => (/* binding */ __asyncValues),
          /* harmony export */   __await: () => (/* binding */ __await),
          /* harmony export */   __awaiter: () => (/* binding */ __awaiter),
          /* harmony export */   __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
          /* harmony export */   __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
          /* harmony export */   __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
          /* harmony export */   __createBinding: () => (/* binding */ __createBinding),
          /* harmony export */   __decorate: () => (/* binding */ __decorate),
          /* harmony export */   __disposeResources: () => (/* binding */ __disposeResources),
          /* harmony export */   __esDecorate: () => (/* binding */ __esDecorate),
          /* harmony export */   __exportStar: () => (/* binding */ __exportStar),
          /* harmony export */   __extends: () => (/* binding */ __extends),
          /* harmony export */   __generator: () => (/* binding */ __generator),
          /* harmony export */   __importDefault: () => (/* binding */ __importDefault),
          /* harmony export */   __importStar: () => (/* binding */ __importStar),
          /* harmony export */   __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
          /* harmony export */   __metadata: () => (/* binding */ __metadata),
          /* harmony export */   __param: () => (/* binding */ __param),
          /* harmony export */   __propKey: () => (/* binding */ __propKey),
          /* harmony export */   __read: () => (/* binding */ __read),
          /* harmony export */   __rest: () => (/* binding */ __rest),
          /* harmony export */   __rewriteRelativeImportExtension: () => (/* binding */ __rewriteRelativeImportExtension),
          /* harmony export */   __runInitializers: () => (/* binding */ __runInitializers),
          /* harmony export */   __setFunctionName: () => (/* binding */ __setFunctionName),
          /* harmony export */   __spread: () => (/* binding */ __spread),
          /* harmony export */   __spreadArray: () => (/* binding */ __spreadArray),
          /* harmony export */   __spreadArrays: () => (/* binding */ __spreadArrays),
          /* harmony export */   __values: () => (/* binding */ __values),
          /* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
          /* harmony export */ });
          /******************************************************************************
          Copyright (c) Microsoft Corporation.
          
          Permission to use, copy, modify, and/or distribute this software for any
          purpose with or without fee is hereby granted.
          
          THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
          REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
          AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
          INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
          LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
          OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
          PERFORMANCE OF THIS SOFTWARE.
          ***************************************************************************** */
          /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
          
          var extendStatics = function(d, b) {
            extendStatics = Object.setPrototypeOf ||
                ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
            return extendStatics(d, b);
          };
          
          function __extends(d, b) {
            if (typeof b !== "function" && b !== null)
                throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
            extendStatics(d, b);
            function __() { this.constructor = d; }
            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
          }
          
          var __assign = function() {
            __assign = Object.assign || function __assign(t) {
                for (var s, i = 1, n = arguments.length; i < n; i++) {
                    s = arguments[i];
                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
                }
                return t;
            }
            return __assign.apply(this, arguments);
          }
          
          function __rest(s, e) {
            var t = {};
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                t[p] = s[p];
            if (s != null && typeof Object.getOwnPropertySymbols === "function")
                for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                        t[p[i]] = s[p[i]];
                }
            return t;
          }
          
          function __decorate(decorators, target, key, desc) {
            var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
            if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
            else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
            return c > 3 && r && Object.defineProperty(target, key, r), r;
          }
          
          function __param(paramIndex, decorator) {
            return function (target, key) { decorator(target, key, paramIndex); }
          }
          
          function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
            function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
            var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
            var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
            var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
            var _, done = false;
            for (var i = decorators.length - 1; i >= 0; i--) {
                var context = {};
                for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
                for (var p in contextIn.access) context.access[p] = contextIn.access[p];
                context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
                var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
                if (kind === "accessor") {
                    if (result === void 0) continue;
                    if (result === null || typeof result !== "object") throw new TypeError("Object expected");
                    if (_ = accept(result.get)) descriptor.get = _;
                    if (_ = accept(result.set)) descriptor.set = _;
                    if (_ = accept(result.init)) initializers.unshift(_);
                }
                else if (_ = accept(result)) {
                    if (kind === "field") initializers.unshift(_);
                    else descriptor[key] = _;
                }
            }
            if (target) Object.defineProperty(target, contextIn.name, descriptor);
            done = true;
          };
          
          function __runInitializers(thisArg, initializers, value) {
            var useValue = arguments.length > 2;
            for (var i = 0; i < initializers.length; i++) {
                value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
            }
            return useValue ? value : void 0;
          };
          
          function __propKey(x) {
            return typeof x === "symbol" ? x : "".concat(x);
          };
          
          function __setFunctionName(f, name, prefix) {
            if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
            return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
          };
          
          function __metadata(metadataKey, metadataValue) {
            if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
          }
          
          function __awaiter(thisArg, _arguments, P, generator) {
            function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
            return new (P || (P = Promise))(function (resolve, reject) {
                function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
                function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
                function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
                step((generator = generator.apply(thisArg, _arguments || [])).next());
            });
          }
          
          function __generator(thisArg, body) {
            var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
            return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
            function verb(n) { return function (v) { return step([n, v]); }; }
            function step(op) {
                if (f) throw new TypeError("Generator is already executing.");
                while (g && (g = 0, op[0] && (_ = 0)), _) try {
                    if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                    if (y = 0, t) op = [op[0] & 2, t.value];
                    switch (op[0]) {
                        case 0: case 1: t = op; break;
                        case 4: _.label++; return { value: op[1], done: false };
                        case 5: _.label++; y = op[1]; op = [0]; continue;
                        case 7: op = _.ops.pop(); _.trys.pop(); continue;
                        default:
                            if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                            if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                            if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                            if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                            if (t[2]) _.ops.pop();
                            _.trys.pop(); continue;
                    }
                    op = body.call(thisArg, _);
                } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
                if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
            }
          }
          
          var __createBinding = Object.create ? (function(o, m, k, k2) {
            if (k2 === undefined) k2 = k;
            var desc = Object.getOwnPropertyDescriptor(m, k);
            if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                desc = { enumerable: true, get: function() { return m[k]; } };
            }
            Object.defineProperty(o, k2, desc);
          }) : (function(o, m, k, k2) {
            if (k2 === undefined) k2 = k;
            o[k2] = m[k];
          });
          
          function __exportStar(m, o) {
            for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
          }
          
          function __values(o) {
            var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
            if (m) return m.call(o);
            if (o && typeof o.length === "number") return {
                next: function () {
                    if (o && i >= o.length) o = void 0;
                    return { value: o && o[i++], done: !o };
                }
            };
            throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
          }
          
          function __read(o, n) {
            var m = typeof Symbol === "function" && o[Symbol.iterator];
            if (!m) return o;
            var i = m.call(o), r, ar = [], e;
            try {
                while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
            }
            catch (error) { e = { error: error }; }
            finally {
                try {
                    if (r && !r.done && (m = i["return"])) m.call(i);
                }
                finally { if (e) throw e.error; }
            }
            return ar;
          }
          
          /** @deprecated */
          function __spread() {
            for (var ar = [], i = 0; i < arguments.length; i++)
                ar = ar.concat(__read(arguments[i]));
            return ar;
          }
          
          /** @deprecated */
          function __spreadArrays() {
            for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
            for (var r = Array(s), k = 0, i = 0; i < il; i++)
                for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
                    r[k] = a[j];
            return r;
          }
          
          function __spreadArray(to, from, pack) {
            if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
                if (ar || !(i in from)) {
                    if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                    ar[i] = from[i];
                }
            }
            return to.concat(ar || Array.prototype.slice.call(from));
          }
          
          function __await(v) {
            return this instanceof __await ? (this.v = v, this) : new __await(v);
          }
          
          function __asyncGenerator(thisArg, _arguments, generator) {
            if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
            var g = generator.apply(thisArg, _arguments || []), i, q = [];
            return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
            function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
            function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
            function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
            function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
            function fulfill(value) { resume("next", value); }
            function reject(value) { resume("throw", value); }
            function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
          }
          
          function __asyncDelegator(o) {
            var i, p;
            return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
            function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
          }
          
          function __asyncValues(o) {
            if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
            var m = o[Symbol.asyncIterator], i;
            return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
            function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
            function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
          }
          
          function __makeTemplateObject(cooked, raw) {
            if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
            return cooked;
          };
          
          var __setModuleDefault = Object.create ? (function(o, v) {
            Object.defineProperty(o, "default", { enumerable: true, value: v });
          }) : function(o, v) {
            o["default"] = v;
          };
          
          var ownKeys = function(o) {
            ownKeys = Object.getOwnPropertyNames || function (o) {
              var ar = [];
              for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
              return ar;
            };
            return ownKeys(o);
          };
          
          function __importStar(mod) {
            if (mod && mod.__esModule) return mod;
            var result = {};
            if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
            __setModuleDefault(result, mod);
            return result;
          }
          
          function __importDefault(mod) {
            return (mod && mod.__esModule) ? mod : { default: mod };
          }
          
          function __classPrivateFieldGet(receiver, state, kind, f) {
            if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
            if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
            return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
          }
          
          function __classPrivateFieldSet(receiver, state, value, kind, f) {
            if (kind === "m") throw new TypeError("Private method is not writable");
            if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
            if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
            return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
          }
          
          function __classPrivateFieldIn(state, receiver) {
            if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
            return typeof state === "function" ? receiver === state : state.has(receiver);
          }
          
          function __addDisposableResource(env, value, async) {
            if (value !== null && value !== void 0) {
              if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
              var dispose, inner;
              if (async) {
                if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
                dispose = value[Symbol.asyncDispose];
              }
              if (dispose === void 0) {
                if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
                dispose = value[Symbol.dispose];
                if (async) inner = dispose;
              }
              if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
              if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
              env.stack.push({ value: value, dispose: dispose, async: async });
            }
            else if (async) {
              env.stack.push({ async: true });
            }
            return value;
          }
          
          var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
            var e = new Error(message);
            return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
          };
          
          function __disposeResources(env) {
            function fail(e) {
              env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
              env.hasError = true;
            }
            var r, s = 0;
            function next() {
              while (r = env.stack.pop()) {
                try {
                  if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
                  if (r.dispose) {
                    var result = r.dispose.call(r.value);
                    if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
                  }
                  else s |= 1;
                }
                catch (e) {
                  fail(e);
                }
              }
              if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
              if (env.hasError) throw env.error;
            }
            return next();
          }
          
          function __rewriteRelativeImportExtension(path, preserveJsx) {
            if (typeof path === "string" && /^\.\.?\//.test(path)) {
                return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
                    return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
                });
            }
            return path;
          }
          
          /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
            __extends,
            __assign,
            __rest,
            __decorate,
            __param,
            __esDecorate,
            __runInitializers,
            __propKey,
            __setFunctionName,
            __metadata,
            __awaiter,
            __generator,
            __createBinding,
            __exportStar,
            __values,
            __read,
            __spread,
            __spreadArrays,
            __spreadArray,
            __await,
            __asyncGenerator,
            __asyncDelegator,
            __asyncValues,
            __makeTemplateObject,
            __importStar,
            __importDefault,
            __classPrivateFieldGet,
            __classPrivateFieldSet,
            __classPrivateFieldIn,
            __addDisposableResource,
            __disposeResources,
            __rewriteRelativeImportExtension,
          });
          
          
          /***/ })
          
          }]);
          //# sourceMappingURL=vendor.js.map
          Attack
          https://localhost:4201/vendor.js/
          Evidence
          parent directory
          Solution

          Disable directory browsing. If this is required, make sure the listed files does not induce risks.

      3. Missing Anti-clickjacking Header (1)
        1. GET https://localhost:4201
          Alert tags
          Alert description

          The response does not protect against 'ClickJacking' attacks. It should include either Content-Security-Policy with 'frame-ancestors' directive or X-Frame-Options.

          Request
          Request line and header section (229 bytes)
          GET https://localhost:4201 HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (284 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: text/html; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 861
          ETag: W/"35d-FQAip+PMWoUCdLT6I/1rM9bv8Kg"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (861 bytes)
          <!doctype html>
          <html lang="en">
          <head>
            <meta charset="utf-8">
            <title>PSP</title>
            <base href="/">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="icon" type="image/x-icon" href="favicon.ico">
            <link rel="preconnect" href="https://fonts.gstatic.com">
            <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
            <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
          <link rel="stylesheet" href="styles.css"></head>
          <body class="mat-typography">
            <app-root></app-root>
          <script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" defer></script><script src="vendor.js" type="module"></script><script src="main.js" type="module"></script></body>
          </html>
          
          Parameter
          x-frame-options
          Solution

          Modern Web browsers support the Content-Security-Policy and X-Frame-Options HTTP headers. Ensure one of them is set on all web pages returned by your site/app.

          If you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. Alternatively consider implementing Content Security Policy's "frame-ancestors" directive.

  3. Risk=Low, Confidence=High (1)

    1. https://update.googleapis.com (1)

      1. Strict-Transport-Security Header Not Set (1)
        1. POST https://update.googleapis.com/service/update2/json?cup2key=15:LDGTM9q3MfTP_kw9MDhx0ijcJRbuG2j9p43bOqbcJhI&cup2hreq=7e0f53468f226d33162c04a764fa79175b52fd3656b406d68aa67d088a565671
          Alert tags
          Alert description

          HTTP Strict Transport Security (HSTS) is a web security policy mechanism whereby a web server declares that complying user agents (such as a web browser) are to interact with it using only secure HTTPS connections (i.e. HTTP layered over TLS/SSL). HSTS is an IETF standards track protocol and is specified in RFC 6797.

          Request
          Request line and header section (1394 bytes)
          POST https://update.googleapis.com/service/update2/json?cup2key=15:LDGTM9q3MfTP_kw9MDhx0ijcJRbuG2j9p43bOqbcJhI&cup2hreq=7e0f53468f226d33162c04a764fa79175b52fd3656b406d68aa67d088a565671 HTTP/1.1
          host: update.googleapis.com
          Proxy-Connection: keep-alive
          Content-Length: 8386
          X-Goog-Update-AppId: obedbbhbpmojnkanicioggnmelmoomoc,ihnlcenocehgdaegdmhbidjhnhdchfmm,oimompecagnajdejgnnjijobebaeigek,niikhdgajlphfehepabhhblakbdgeefj,lmelglejhemejginpboagddgdfbepgmp,kiabhabjdbkjdpjbpigfodbdjmbglcoo,neifaoindggfcjicffkgpmnlppeffabd,gcmjkmgdlgnkkcocmoeiminaijmmjnii,llkgjffcdpffmhiakmfcdcblohccpfmo,laoigpblnllgcgjnjnllmfolckpjlhki,jflookgnkcckhobaglndicnbbgbonegd,ehgidpndbllacpjalkiimkbadgjfnnmc,efniojlnjndmcbiieegkicadnoecjjef,khaoiebndkojlmppeemjhbpbandiljpe,ggkkehgbnfjpeggfpleeakpidbkibbmn,jamhcnnkihinmdlkakkaopbjbbcngflc,giekcmmlnklenlaomppkphknjmnnpneh,hajigopbbjhghbfimgkfmpenfkclmohk,ojhpjlocmbogdgmfpkhlaaeamibhnphh,mcfjlbnicoclaecapilmleaelokfnijm,pmagihnlncbcefglppponlgakiphldeh,ldfkbgjbencjpgjfleiooeldhjdapggh,hfnkpimlhhgieaddgfemjhofmfblmnib,jflhchccmppkfebkiaminageehmchikm,eeigpngbgcognadeebkilcpcaedhellh,gonpemdgkjcecdgbnaabipppbmgfggbe
          X-Goog-Update-Interactivity: bg
          X-Goog-Update-Updater: chrome-138.0.7204.158
          Content-Type: application/json
          User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
          
          
          Request body (8386 bytes)
          {"request":{"@os":"win","@updater":"chrome","acceptformat":"crx3,download,puff,run,xz,zucc","apps":[{"accept_locale":"SR500000","appid":"obedbbhbpmojnkanicioggnmelmoomoc","brand":"YTUH","cohort":"1:s6f:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{e8bcf656-3a9f-4f3f-ac62-78f84654353a}","rd":6772},"updatecheck":{},"version":"0.0.0.0"},{"appid":"ihnlcenocehgdaegdmhbidjhnhdchfmm","brand":"YTUH","cohort":"1::","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{8e8323f0-7301-45bc-8004-8a6c8655f6ea}","rd":6772},"updatecheck":{},"version":"1.3.36.141"},{"appid":"oimompecagnajdejgnnjijobebaeigek","brand":"YTUH","cohort":"1:2qw3:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{31b272cb-440b-431a-9e42-ce0489fe8340}","rd":6772},"updatecheck":{},"version":"4.10.2891.0"},{"appid":"niikhdgajlphfehepabhhblakbdgeefj","brand":"YTUH","cached_items":[{"sha256":"38c89b12bb20a8f2751c9c7cd2e31c173a47af08c115e1ecccc2f5151a2cf2c6"}],"cohort":"1:1uh3:","cohortname":"Auto Main Cohort.","enabled":true,"installdate":6133,"lang":"sr","ping":{"ping_freshness":"{efa21829-fa24-4884-a6af-d846d16bb1da}","rd":6772},"updatecheck":{},"version":"2025.6.16.0"},{"appid":"lmelglejhemejginpboagddgdfbepgmp","brand":"YTUH","cached_items":[{"sha256":"71d64127b8607dca0209382d2e2ae5b1b550b810f9b203ac9c6ffe529eaeb23d"}],"cohort":"1:lwl:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{3f910a22-c34d-432e-a304-2afbfeb2f348}","rd":6772},"updatecheck":{},"version":"523"},{"appid":"kiabhabjdbkjdpjbpigfodbdjmbglcoo","brand":"YTUH","cohort":"1:v3l:","cohortname":"Auto","enabled":true,"installdate":6081,"lang":"sr","ping":{"ping_freshness":"{393c8ac5-dc0c-4513-babb-dc38ef5e0072}","rd":6772},"updatecheck":{},"version":"2025.5.15.1"},{"appid":"neifaoindggfcjicffkgpmnlppeffabd","brand":"YTUH","cohort":"1:1299:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{37207f02-6738-42ea-add6-469545bd7955}","rd":6772},"updatecheck":{},"version":"1.0.2738.0"},{"appid":"gcmjkmgdlgnkkcocmoeiminaijmmjnii","brand":"YTUH","cohort":"1:bm1:34al@0.02","cohortname":"Stable","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{97dbe5d8-7798-4589-b2e1-7070cfdd2c1c}","rd":6772},"updatecheck":{},"version":"9.56.0"},{"appid":"llkgjffcdpffmhiakmfcdcblohccpfmo","brand":"YTUH","cohort":"1::","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{5ddec6ea-2606-4381-8a68-aa92d007e5b9}","rd":6772},"updatecheck":{},"version":"1.0.0.17"},{"appid":"laoigpblnllgcgjnjnllmfolckpjlhki","brand":"YTUH","cohort":"1:10zr:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{819b5577-2379-4abb-9e85-504ea272b145}","rd":6772},"updatecheck":{},"version":"1.0.7.1744928549"},{"appid":"jflookgnkcckhobaglndicnbbgbonegd","brand":"YTUH","cached_items":[{"sha256":"452fc25b522f1e7f6c6e0b90e0cace50d3abab9faa181d4df4068f0caeb22cbb"}],"cohort":"1:s7x:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{32b63cbe-360f-495e-aa8e-71eb53db8b11}","rd":6772},"updatecheck":{},"version":"3076"},{"appid":"ehgidpndbllacpjalkiimkbadgjfnnmc","brand":"YTUH","cohort":"1:ofl:","cohortname":"stable64","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{8be20eca-d1bd-4746-8d03-e06cad0c8d60}","rd":6772},"updatecheck":{},"version":"2018.8.8.0"},{"appid":"efniojlnjndmcbiieegkicadnoecjjef","brand":"YTUH","cached_items":[{"sha256":"78ed994c907cd42aaa4ebfd7718d70fa1264d177f4d97c5287eb2f425e990d00"}],"cohort":"1:18ql:","cohortname":"Auto Stage3","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{4542c0fb-dd7c-435b-89c0-131578ff257e}","rd":6772},"updatecheck":{},"version":"1373"},{"appid":"khaoiebndkojlmppeemjhbpbandiljpe","brand":"YTUH","cohort":"1:cux:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{64f0f6b0-b106-4bff-b7ac-ec0020ea5cbe}","rd":6772},"updatecheck":{},"version":"67"},{"appid":"ggkkehgbnfjpeggfpleeakpidbkibbmn","brand":"YTUH","cached_items":[{"sha256":"3be383b996e859844cb650da43d4c56df7cc58fab90152e941585fe243e822f2"}],"cohort":"1:ut9/1a0f:","cohortname":"M108 and Above","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{b86442a6-5309-40de-8469-a66de0b9be01}","rd":6772},"updatecheck":{},"version":"2025.7.8.669"},{"appid":"jamhcnnkihinmdlkakkaopbjbbcngflc","brand":"YTUH","cohort":"1:wvr:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{d6bf387d-1d86-4f9b-960a-fbae556ef629}","rd":6772},"updatecheck":{},"version":"120.0.6050.0"},{"appid":"giekcmmlnklenlaomppkphknjmnnpneh","brand":"YTUH","cohort":"1:j5l:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{ae25d00e-77d0-4999-a27e-bc74cd6080ed}","rd":6772},"updatecheck":{},"version":"7"},{"appid":"hajigopbbjhghbfimgkfmpenfkclmohk","brand":"YTUH","cohort":"1:2tdl:","cohortname":"Stable","enabled":true,"installdate":6627,"lang":"sr","ping":{"ping_freshness":"{68d19d66-ebf4-4b12-8b8a-c01f53f32891}","rd":6772},"updatecheck":{},"version":"3"},{"appid":"ojhpjlocmbogdgmfpkhlaaeamibhnphh","brand":"YTUH","cohort":"1:w0x:","cohortname":"All users","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{92d97421-dc01-4d81-95a9-5d58ff80f178}","rd":6772},"updatecheck":{},"version":"3"},{"appid":"mcfjlbnicoclaecapilmleaelokfnijm","brand":"YTUH","cohort":"1:2ql3:","cohortname":"Initial upload","enabled":true,"installdate":6652,"lang":"sr","ping":{"ping_freshness":"{7d8d5bc2-dca8-4e95-ad4b-47c2d5745195}","rd":6772},"updatecheck":{},"version":"2024.11.26.0"},{"appid":"pmagihnlncbcefglppponlgakiphldeh","brand":"YTUH","cohort":"1:2ntr:","cohortname":"General Release","enabled":true,"installdate":6652,"lang":"sr","ping":{"ping_freshness":"{9b2796af-f9a6-4409-a1fc-c9628809b9f7}","rd":6772},"updatecheck":{},"version":"2024.10.17.0"},{"appid":"ldfkbgjbencjpgjfleiooeldhjdapggh","brand":"YTUH","cached_items":[{"sha256":"b9c8fa0dbca7e64987049b556dab42ddb744fe7cd0bef2dd71cf433d6fcc5c3d"}],"cohort":"1:2v8l:","cohortname":"Auto","enabled":true,"installdate":6732,"lang":"sr","ping":{"ping_freshness":"{b64c952e-0437-4bc8-a676-7fbe3485e876}","rd":6772},"updatecheck":{},"version":"2025.2.18.1"},{"appid":"hfnkpimlhhgieaddgfemjhofmfblmnib","brand":"YTUH","cached_items":[{"sha256":"2f5598e63958b6f420137e1ba93d31102fce189d8184bfe42194af68c0f28e5f"}],"cohort":"1:287f:","cohortname":"Auto full","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{24d5d8e4-30a0-41a5-a03c-3869906602d8}","rd":6772},"updatecheck":{},"version":"9921"},{"appid":"jflhchccmppkfebkiaminageehmchikm","brand":"YTUH","cached_items":[{"sha256":"9265045f9e3bc69c0b511466eb49932995a76f19839fa8051eb5d437d6b025bd"}],"cohort":"1:26yf:","cohortname":"Stable","enabled":true,"installdate":6154,"lang":"sr","ping":{"ping_freshness":"{bdc0988c-3879-4e17-9b26-3c56e5186f59}","rd":6772},"updatecheck":{},"version":"2025.7.8.1"},{"appid":"eeigpngbgcognadeebkilcpcaedhellh","brand":"YTUH","cached_items":[{"sha256":"4497d8060d0e53c12b4403aa9ebe7e827d4880bae3f4139a26a4feb7ed64c4a2"}],"cohort":"1:w59:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{74e60b4d-526f-4b8e-a6f3-0b3c9d55fc78}","rd":6772},"updatecheck":{},"version":"2025.6.13.84507"},{"appid":"gonpemdgkjcecdgbnaabipppbmgfggbe","brand":"YTUH","cohort":"1:z1x:","cohortname":"Auto","enabled":true,"installdate":5896,"lang":"sr","ping":{"ping_freshness":"{06df17eb-7c14-45b4-a24c-19c8823a584c}","rd":6772},"updatecheck":{},"version":"2025.4.2.0"}],"arch":"x64","dedup":"cr","domainjoined":true,"hw":{"avx":true,"physmemory":15,"sse":true,"sse2":true,"sse3":true,"sse41":true,"sse42":true,"ssse3":true},"ismachine":true,"nacl_arch":"x86-64","os":{"arch":"x86_64","platform":"Windows","version":"10.0.26100.4652"},"prodversion":"138.0.7204.158","protocol":"4.0","requestid":"{cba683b4-0881-4a9a-a289-ab6d110e7612}","sessionid":"{ca669640-b1db-4737-ab7e-06c928f0e781}","updaters":{"autoupdatecheckenabled":true,"ismachine":true,"lastchecked":0,"laststarted":0,"name":"ChromiumUpdater","updatepolicy":-1,"version":"140.0.7272.0"},"updaterversion":"138.0.7204.158"}}
          Response
          Status line and header section (1019 bytes)
          HTTP/1.1 200 OK
          Content-Security-Policy: script-src 'report-sample' 'none';report-uri https://csp.withgoogle.com/csp/clientupdate-aus/1
          Cache-Control: no-cache, no-store, max-age=0, must-revalidate
          Pragma: no-cache
          Expires: Mon, 01 Jan 1990 00:00:00 GMT
          Date: Fri, 18 Jul 2025 17:17:01 GMT
          X-Cup-Server-Proof: 3046022100836bf1793886d9a90a267fcc5c2500d94e1779a7d48be2007066159ca7d6035e022100de6f6737c8651ea47759be1e461d8d8b6c7b1f7b7816976e7dff4588556c68b0:7e0f53468f226d33162c04a764fa79175b52fd3656b406d68aa67d088a565671
          ETag: W/"3046022100836bf1793886d9a90a267fcc5c2500d94e1779a7d48be2007066159ca7d6035e022100de6f6737c8651ea47759be1e461d8d8b6c7b1f7b7816976e7dff4588556c68b0:7e0f53468f226d33162c04a764fa79175b52fd3656b406d68aa67d088a565671"
          Content-Type: application/json; charset=utf-8
          Content-Length: 4329
          X-Daynum: 6773
          X-Daystart: 37021
          X-Content-Type-Options: nosniff
          X-Frame-Options: SAMEORIGIN
          X-XSS-Protection: 1; mode=block
          Server: GSE
          Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
          
          
          Response body (4329 bytes)
          )]}'
          {"response":{"server":"prod","protocol":"4.0","daystart":{"elapsed_seconds":37021,"elapsed_days":6773},"apps":[{"appid":"obedbbhbpmojnkanicioggnmelmoomoc","cohort":"1:s6f:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"ihnlcenocehgdaegdmhbidjhnhdchfmm","cohort":"1::","status":"ok","cohortname":"","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"oimompecagnajdejgnnjijobebaeigek","cohort":"1:2qw3:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"niikhdgajlphfehepabhhblakbdgeefj","cohort":"1:1uh3:","status":"ok","cohortname":"Auto Main Cohort.","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"lmelglejhemejginpboagddgdfbepgmp","cohort":"1:lwl:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"kiabhabjdbkjdpjbpigfodbdjmbglcoo","cohort":"1:v3l:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"neifaoindggfcjicffkgpmnlppeffabd","cohort":"1:1299:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"gcmjkmgdlgnkkcocmoeiminaijmmjnii","cohort":"1:bm1:34al@0.02","status":"ok","cohortname":"Stable","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"llkgjffcdpffmhiakmfcdcblohccpfmo","cohort":"1::","status":"ok","cohortname":"","ping":{"status":"ok"},"updatecheck":{"_esbAllowlist":"true","status":"noupdate"}},{"appid":"laoigpblnllgcgjnjnllmfolckpjlhki","cohort":"1:10zr:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"jflookgnkcckhobaglndicnbbgbonegd","cohort":"1:s7x:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"ehgidpndbllacpjalkiimkbadgjfnnmc","cohort":"1:ofl:","status":"ok","cohortname":"stable64","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"efniojlnjndmcbiieegkicadnoecjjef","cohort":"1:18ql:","status":"ok","cohortname":"Auto Stage3","ping":{"status":"ok"},"updatecheck":{"status":"noupdate","info":"bandwidth limit"}},{"appid":"khaoiebndkojlmppeemjhbpbandiljpe","cohort":"1:cux:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"ggkkehgbnfjpeggfpleeakpidbkibbmn","cohort":"1:ut9/1a0f:","status":"ok","cohortname":"M108 and Above","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"jamhcnnkihinmdlkakkaopbjbbcngflc","cohort":"1:wvr:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"giekcmmlnklenlaomppkphknjmnnpneh","cohort":"1:j5l:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"hajigopbbjhghbfimgkfmpenfkclmohk","cohort":"1:2tdl:","status":"ok","cohortname":"Stable","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"ojhpjlocmbogdgmfpkhlaaeamibhnphh","cohort":"1:w0x:","status":"ok","cohortname":"All users","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"mcfjlbnicoclaecapilmleaelokfnijm","cohort":"1:2ql3:","status":"ok","cohortname":"Initial upload","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"pmagihnlncbcefglppponlgakiphldeh","cohort":"1:2ntr:","status":"ok","cohortname":"General Release","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"ldfkbgjbencjpgjfleiooeldhjdapggh","cohort":"1:2v8l:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"hfnkpimlhhgieaddgfemjhofmfblmnib","cohort":"1:287f:","status":"ok","cohortname":"Auto full","ping":{"status":"ok"},"updatecheck":{"status":"noupdate","info":"bandwidth limit"}},{"appid":"jflhchccmppkfebkiaminageehmchikm","cohort":"1:26yf:","status":"ok","cohortname":"Stable","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"eeigpngbgcognadeebkilcpcaedhellh","cohort":"1:w59:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}},{"appid":"gonpemdgkjcecdgbnaabipppbmgfggbe","cohort":"1:z1x:","status":"ok","cohortname":"Auto","ping":{"status":"ok"},"updatecheck":{"status":"noupdate"}}]}}
          Solution

          Ensure that your web server, application server, load balancer, etc. is configured to enforce Strict-Transport-Security.

  4. Risk=Low, Confidence=Medium (2)

    1. https://localhost:4201 (2)

      1. Server Leaks Information via "X-Powered-By" HTTP Response Header Field(s) (1)
        1. GET https://localhost:4201/robots.txt
          Alert tags
          Alert description

          The web/application server is leaking information via one or more "X-Powered-By" HTTP response headers. Access to such information may facilitate attackers identifying other frameworks/components your web application is reliant upon and the vulnerabilities such components may be subject to.

          Request
          Request line and header section (240 bytes)
          GET https://localhost:4201/robots.txt HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (304 bytes)
          HTTP/1.1 404 Not Found
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Security-Policy: default-src 'none'
          X-Content-Type-Options: nosniff
          Content-Type: text/html; charset=utf-8
          Content-Length: 149
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (149 bytes)
          <!DOCTYPE html>
          <html lang="en">
          <head>
          <meta charset="utf-8">
          <title>Error</title>
          </head>
          <body>
          <pre>Cannot GET /robots.txt</pre>
          </body>
          </html>
          
          Evidence
          X-Powered-By: Express
          Solution

          Ensure that your web server, application server, load balancer, etc. is configured to suppress "X-Powered-By" headers.

      2. X-Content-Type-Options Header Missing (1)
        1. GET https://localhost:4201
          Alert tags
          Alert description

          The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.

          Other info

          This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type.

          At "High" threshold this scan rule will not alert on client or server error responses.

          Request
          Request line and header section (229 bytes)
          GET https://localhost:4201 HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (284 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: text/html; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 861
          ETag: W/"35d-FQAip+PMWoUCdLT6I/1rM9bv8Kg"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (861 bytes)
          <!doctype html>
          <html lang="en">
          <head>
            <meta charset="utf-8">
            <title>PSP</title>
            <base href="/">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="icon" type="image/x-icon" href="favicon.ico">
            <link rel="preconnect" href="https://fonts.gstatic.com">
            <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
            <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
          <link rel="stylesheet" href="styles.css"></head>
          <body class="mat-typography">
            <app-root></app-root>
          <script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" defer></script><script src="vendor.js" type="module"></script><script src="main.js" type="module"></script></body>
          </html>
          
          Parameter
          x-content-type-options
          Solution

          Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.

          If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.

  5. Risk=Informational, Confidence=Medium (1)

    1. https://localhost:4201 (1)

      1. Modern Web Application (1)
        1. GET https://localhost:4201
          Alert tags
          Alert description

          The application appears to be a modern web application. If you need to explore it automatically then the Ajax Spider may well be more effective than the standard one.

          Other info

          No links have been found while there are scripts, which is an indication that this is a modern web application.

          Request
          Request line and header section (229 bytes)
          GET https://localhost:4201 HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (284 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: text/html; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 861
          ETag: W/"35d-FQAip+PMWoUCdLT6I/1rM9bv8Kg"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (861 bytes)
          <!doctype html>
          <html lang="en">
          <head>
            <meta charset="utf-8">
            <title>PSP</title>
            <base href="/">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="icon" type="image/x-icon" href="favicon.ico">
            <link rel="preconnect" href="https://fonts.gstatic.com">
            <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
            <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
          <link rel="stylesheet" href="styles.css"></head>
          <body class="mat-typography">
            <app-root></app-root>
          <script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" defer></script><script src="vendor.js" type="module"></script><script src="main.js" type="module"></script></body>
          </html>
          
          Evidence
          <script src="runtime.js" type="module"></script>
          Solution

          This is an informational alert and so no changes are required.

  6. Risk=Informational, Confidence=Low (2)

    1. https://localhost:4201 (2)

      1. Information Disclosure - Suspicious Comments (1)
        1. GET https://localhost:4201/main.js
          Alert tags
          Alert description

          The response appears to contain suspicious comments which may help an attacker. Note: Matches made within script blocks or files are against the entire content not only comments.

          Other info

          The following pattern was used: \bUSERNAME\b and was detected 14 times, the first in the element starting with: " authenticate(username, password, tfacode) {", see evidence field for the suspicious comment/snippet.

          Request
          Request line and header section (270 bytes)
          GET https://localhost:4201/main.js HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          referer: https://localhost:4201
          
          
          Request body (0 bytes)
          Response
          Status line and header section (301 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: application/javascript; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 88792
          ETag: W/"15ad8-UZACm6GMbuc1hy3zPjUImA1xBYc"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (88792 bytes)
          "use strict";
          (self["webpackChunksep_front"] = self["webpackChunksep_front"] || []).push([["main"],{
          
          /***/ 4114:
          /*!***************************************!*\
            !*** ./src/app/app-routing.module.ts ***!
            \***************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AppRoutingModule: () => (/* binding */ AppRoutingModule)
          /* harmony export */ });
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 5072);
          /* harmony import */ var _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./psp-form/psp-form.component */ 7654);
          /* harmony import */ var _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./psp-client-reg/psp-client-reg.component */ 5734);
          /* harmony import */ var _success_page_success_page_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./success-page/success-page.component */ 9720);
          /* harmony import */ var _failed_page_failed_page_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./failed-page/failed-page.component */ 7032);
          /* harmony import */ var _error_page_error_page_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./error-page/error-page.component */ 5226);
          /* harmony import */ var _home_home_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./home/home.component */ 7824);
          /* harmony import */ var _options_managment_options_managment_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./options-managment/options-managment.component */ 1224);
          /* harmony import */ var _login_login_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./login/login.component */ 3644);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 7580);
          
          
          
          
          
          
          
          
          
          
          
          const routes = [{
            path: 'payment-options/:id',
            component: _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_0__.PspFormComponent
          }, {
            path: 'app-psp-client-reg',
            component: _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_1__.PspClientRegComponent
          }, {
            path: 'success',
            component: _success_page_success_page_component__WEBPACK_IMPORTED_MODULE_2__.SuccessPageComponent
          }, {
            path: 'fail',
            component: _failed_page_failed_page_component__WEBPACK_IMPORTED_MODULE_3__.FailedPageComponent
          }, {
            path: 'error',
            component: _error_page_error_page_component__WEBPACK_IMPORTED_MODULE_4__.ErrorPageComponent
          }, {
            path: 'home',
            component: _home_home_component__WEBPACK_IMPORTED_MODULE_5__.HomeComponent
          }, {
            path: 'manage',
            component: _options_managment_options_managment_component__WEBPACK_IMPORTED_MODULE_6__.OptionsManagmentComponent
          }, {
            path: 'login',
            component: _login_login_component__WEBPACK_IMPORTED_MODULE_7__.LoginComponent
          }];
          class AppRoutingModule {
            static {
              this.ɵfac = function AppRoutingModule_Factory(t) {
                return new (t || AppRoutingModule)();
              };
            }
            static {
              this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineNgModule"]({
                type: AppRoutingModule
              });
            }
            static {
              this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjector"]({
                imports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule.forRoot(routes), _angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule]
              });
            }
          }
          (function () {
            (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵsetNgModuleScope"](AppRoutingModule, {
              imports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule],
              exports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule]
            });
          })();
          
          /***/ }),
          
          /***/ 92:
          /*!**********************************!*\
            !*** ./src/app/app.component.ts ***!
            \**********************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AppComponent: () => (/* binding */ AppComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 5072);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./psp-form/psp-form.component */ 7654);
          /* harmony import */ var _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./psp-client-reg/psp-client-reg.component */ 5734);
          
          
          
          
          
          const _c0 = function (a0) {
            return {
              "hidden": a0
            };
          };
          class AppComponent {
            constructor(router) {
              this.router = router;
              this.title = 'psp-front';
              this.id = '';
              this.clientId = '';
              this.showClientReg = false;
              this.showPaymentForm = false;
              this.paymentOptions = '';
              this.optionsP = '';
              this.initializeWebSockets();
            }
            initializeWebSockets() {
              this.setupWebSocket('transactions');
              this.setupWebSocket('clients');
              this.setupWebSocket('responses');
            }
            setupWebSocket(endpoint) {
              const url = `wss://localhost:8085/${endpoint}`;
              const webSocket = new WebSocket(url);
              webSocket.onopen = () => {
                console.log(`WebSocket connection to ${endpoint} established.`);
              };
              webSocket.onclose = event => {
                console.log(`WebSocket connection to ${endpoint} closed. Reconnecting...`);
                setTimeout(() => this.setupWebSocket(endpoint), 1000); // Ponovni pokušaj nakon 5 sekundi
              };
          
              webSocket.onerror = error => {
                console.error(`WebSocket error on ${endpoint}:`, error);
                webSocket.close(); // Zatvori konekciju da bi se pokrenuo onclose handler
              };
          
              webSocket.onmessage = event => {
                console.log(`Message from ${endpoint}:`, event.data);
                // Obradi poruku na osnovu endpoint-a
                if (endpoint === 'transactions') {
                  this.handleTransactionMessage(event);
                } else if (endpoint === 'clients') {
                  this.handleClientMessage(event);
                } else if (endpoint === 'responses') {
                  this.handleResponseMessage(event);
                }
              };
              // Sačuvaj referencu na WebSocket
              if (endpoint === 'transactions') {
                this.webSocket = webSocket;
              } else if (endpoint === 'clients') {
                this.webSocketClient = webSocket;
              } else if (endpoint === 'responses') {
                this.webSocketResponse = webSocket;
              }
            }
            handleTransactionMessage(event) {
              console.log(event.data);
              this.showPaymentForm = true;
              this.showClientReg = false;
              this.id = event.data;
              this.paymentOptions = event.data;
              this.router.navigate(['/payment-options', event.data]);
            }
            handleClientMessage(event) {
              console.log(event.data);
              this.showPaymentForm = false;
              this.showClientReg = true;
              const messageParts = event.data.split(',');
              this.clientId = messageParts[0].trim();
              const opcije = messageParts.slice(1).map(option => option.trim());
              this.optionsP = opcije.join(',');
              console.log('Parsed options:', this.optionsP);
              this.router.navigate(['/app-psp-client-reg']);
            }
            handleResponseMessage(event) {
              console.log(event.data);
              this.showPaymentForm = false;
              this.showClientReg = false;
              if (event.data.includes('success')) {
                this.router.navigate(['success']);
              }
              if (event.data.includes('error')) {
                this.router.navigate(['error']);
              }
              if (event.data.includes('fail')) {
                this.router.navigate(['fail']);
              }
            }
            sendPaymentMethod(selectedOption) {
              const message = JSON.stringify(selectedOption);
              this.webSocket.send(message);
              console.log('Sent option:', message);
              this.showClientReg = false;
              this.showPaymentForm = false;
              this.router.navigate(['home']);
            }
            handleOptionSelected(option) {
              option.clientId = this.clientId;
              if (option.name.includes('Crypto')) {
                if (!option.walletAddress) {
                  console.error('Wallet address is required for Crypto.');
                  return;
                }
              } else {
                option.walletAddress = null;
              }
              if (option.name.includes('PayPal')) {
                if (!option.paypalClientId) {
                  console.error('PayPal client ID is required for PayPal.');
                  return;
                }
              }
              const message = JSON.stringify(option);
              this.webSocketClient.send(message);
              console.log('Sent options:', message);
              this.showClientReg = false;
              this.showPaymentForm = false;
              this.router.navigate(['home']);
            }
            static {
              this.ɵfac = function AppComponent_Factory(t) {
                return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.Router));
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: AppComponent,
                selectors: [["app-root"]],
                decls: 8,
                vars: 8,
                consts: [[3, "ngClass"], [3, "optionsP", "optionsSelected"], [3, "paymentOptions", "paymentMethodSelected"]],
                template: function AppComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "app-psp-client-reg", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("optionsSelected", function AppComponent_Template_app_psp_client_reg_optionsSelected_1_listener($event) {
                      return ctx.handleOptionSelected($event);
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 0)(3, "app-psp-form", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("paymentMethodSelected", function AppComponent_Template_app_psp_form_paymentMethodSelected_3_listener($event) {
                      return ctx.sendPaymentMethod($event);
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "router-outlet")(5, "br")(6, "br")(7, "br");
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](4, _c0, !ctx.showClientReg));
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("optionsP", ctx.optionsP);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](6, _c0, !ctx.showPaymentForm));
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("paymentOptions", ctx.paymentOptions);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterOutlet, _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_0__.PspFormComponent, _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_1__.PspClientRegComponent],
                styles: [".hidden[_ngcontent-%COMP%] {\n    display: none;\n  }\n  \n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvYXBwLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7SUFDSSxhQUFhO0VBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyIuaGlkZGVuIHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbiAgfVxyXG4gICJdLCJzb3VyY2VSb290IjoiIn0= */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 635:
          /*!*******************************!*\
            !*** ./src/app/app.module.ts ***!
            \*******************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AppModule: () => (/* binding */ AppModule)
          /* harmony export */ });
          /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/platform-browser */ 436);
          /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app-routing.module */ 4114);
          /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app.component */ 92);
          /* harmony import */ var _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./psp-form/psp-form.component */ 7654);
          /* harmony import */ var _angular_material_sort__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/sort */ 2047);
          /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/paginator */ 4624);
          /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/table */ 7697);
          /* harmony import */ var _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./psp-client-reg/psp-client-reg.component */ 5734);
          /* harmony import */ var _success_page_success_page_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./success-page/success-page.component */ 9720);
          /* harmony import */ var _failed_page_failed_page_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./failed-page/failed-page.component */ 7032);
          /* harmony import */ var _error_page_error_page_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error-page/error-page.component */ 5226);
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/router */ 5072);
          /* harmony import */ var _home_home_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./home/home.component */ 7824);
          /* harmony import */ var _options_managment_options_managment_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./options-managment/options-managment.component */ 1224);
          /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/forms */ 4456);
          /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common/http */ 6443);
          /* harmony import */ var _login_login_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./login/login.component */ 3644);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 7580);
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          class AppModule {
            static {
              this.ɵfac = function AppModule_Factory(t) {
                return new (t || AppModule)();
              };
            }
            static {
              this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineNgModule"]({
                type: AppModule,
                bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent]
              });
            }
            static {
              this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineInjector"]({
                imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__.BrowserModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, _angular_material_sort__WEBPACK_IMPORTED_MODULE_12__.MatSortModule, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_13__.MatPaginatorModule, _angular_material_table__WEBPACK_IMPORTED_MODULE_14__.MatTableModule, _angular_router__WEBPACK_IMPORTED_MODULE_15__.RouterModule, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.FormsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_17__.HttpClientModule]
              });
            }
          }
          (function () {
            (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsetNgModuleScope"](AppModule, {
              declarations: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, _psp_form_psp_form_component__WEBPACK_IMPORTED_MODULE_2__.PspFormComponent, _psp_client_reg_psp_client_reg_component__WEBPACK_IMPORTED_MODULE_3__.PspClientRegComponent, _success_page_success_page_component__WEBPACK_IMPORTED_MODULE_4__.SuccessPageComponent, _failed_page_failed_page_component__WEBPACK_IMPORTED_MODULE_5__.FailedPageComponent, _error_page_error_page_component__WEBPACK_IMPORTED_MODULE_6__.ErrorPageComponent, _home_home_component__WEBPACK_IMPORTED_MODULE_7__.HomeComponent, _options_managment_options_managment_component__WEBPACK_IMPORTED_MODULE_8__.OptionsManagmentComponent, _login_login_component__WEBPACK_IMPORTED_MODULE_9__.LoginComponent],
              imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_11__.BrowserModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, _angular_material_sort__WEBPACK_IMPORTED_MODULE_12__.MatSortModule, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_13__.MatPaginatorModule, _angular_material_table__WEBPACK_IMPORTED_MODULE_14__.MatTableModule, _angular_router__WEBPACK_IMPORTED_MODULE_15__.RouterModule, _angular_forms__WEBPACK_IMPORTED_MODULE_16__.FormsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_17__.HttpClientModule]
            });
          })();
          
          /***/ }),
          
          /***/ 671:
          /*!*********************************!*\
            !*** ./src/app/auth.service.ts ***!
            \*********************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   AuthService: () => (/* binding */ AuthService)
          /* harmony export */ });
          /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ 6443);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 5072);
          
          
          
          
          class AuthService {
            constructor(http, router) {
              this.http = http;
              this.router = router;
              this.baseUrl = 'https://localhost:8085/api/authenticate';
            }
            authenticate(username, password, tfacode) {
              const loginData = {
                username: username,
                password: password,
                tfacode: tfacode
              };
              return this.http.post(`${this.baseUrl}/login`, loginData, {
                observe: 'response',
                headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpHeaders({
                  'Content-Type': 'application/json'
                })
              });
            }
            getQrCode(username) {
              return this.http.get(`${this.baseUrl}/generate-qr/${username}`, {
                responseType: 'text' // Return raw text (Base64 encoded image)
              });
            }
          
            saveToken(token) {
              localStorage.setItem('jwtToken', token);
            }
            getToken() {
              return localStorage.getItem('jwtToken');
            }
            isLoggedIn() {
              return !!this.getToken();
            }
            logout() {
              localStorage.removeItem('jwtToken');
              this.router.navigate(['/login']);
            }
            static {
              this.ɵfac = function AuthService_Factory(t) {
                return new (t || AuthService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router));
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
                token: AuthService,
                factory: AuthService.ɵfac,
                providedIn: 'root'
              });
            }
          }
          
          /***/ }),
          
          /***/ 5226:
          /*!****************************************************!*\
            !*** ./src/app/error-page/error-page.component.ts ***!
            \****************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   ErrorPageComponent: () => (/* binding */ ErrorPageComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          class ErrorPageComponent {
            static {
              this.ɵfac = function ErrorPageComponent_Factory(t) {
                return new (t || ErrorPageComponent)();
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: ErrorPageComponent,
                selectors: [["app-error-page"]],
                decls: 2,
                vars: 0,
                template: function ErrorPageComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "ERROR");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                },
                styles: ["div[_ngcontent-%COMP%]{\n    color: red;\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    font-size: 5vh;\n    font-weight: 800;\n    margin-top: 5%;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvZXJyb3ItcGFnZS9lcnJvci1wYWdlLmNvbXBvbmVudC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7SUFDSSxVQUFVO0lBQ1YsYUFBYTtJQUNiLGtCQUFrQjtJQUNsQix1QkFBdUI7SUFDdkIsbUJBQW1CO0lBQ25CLGNBQWM7SUFDZCxnQkFBZ0I7SUFDaEIsY0FBYztBQUNsQiIsInNvdXJjZXNDb250ZW50IjpbImRpdntcclxuICAgIGNvbG9yOiByZWQ7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgZm9udC1zaXplOiA1dmg7XHJcbiAgICBmb250LXdlaWdodDogODAwO1xyXG4gICAgbWFyZ2luLXRvcDogNSU7XHJcbn0iXSwic291cmNlUm9vdCI6IiJ9 */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 7032:
          /*!******************************************************!*\
            !*** ./src/app/failed-page/failed-page.component.ts ***!
            \******************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   FailedPageComponent: () => (/* binding */ FailedPageComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          class FailedPageComponent {
            static {
              this.ɵfac = function FailedPageComponent_Factory(t) {
                return new (t || FailedPageComponent)();
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: FailedPageComponent,
                selectors: [["app-failed-page"]],
                decls: 4,
                vars: 0,
                template: function FailedPageComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "FAIL");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "\u2639\uFE0F");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                },
                styles: ["div[_ngcontent-%COMP%]{\n    color: orange;\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    font-size: 5vh;\n    font-weight: 800;\n    margin-top: 5%;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvZmFpbGVkLXBhZ2UvZmFpbGVkLXBhZ2UuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGFBQWE7SUFDYixhQUFhO0lBQ2Isa0JBQWtCO0lBQ2xCLHVCQUF1QjtJQUN2QixtQkFBbUI7SUFDbkIsY0FBYztJQUNkLGdCQUFnQjtJQUNoQixjQUFjO0FBQ2xCIiwic291cmNlc0NvbnRlbnQiOlsiZGl2e1xyXG4gICAgY29sb3I6IG9yYW5nZTtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBmb250LXNpemU6IDV2aDtcclxuICAgIGZvbnQtd2VpZ2h0OiA4MDA7XHJcbiAgICBtYXJnaW4tdG9wOiA1JTtcclxufSJdLCJzb3VyY2VSb290IjoiIn0= */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 7824:
          /*!****************************************!*\
            !*** ./src/app/home/home.component.ts ***!
            \****************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   HomeComponent: () => (/* binding */ HomeComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          class HomeComponent {
            static {
              this.ɵfac = function HomeComponent_Factory(t) {
                return new (t || HomeComponent)();
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: HomeComponent,
                selectors: [["app-home"]],
                decls: 2,
                vars: 0,
                template: function HomeComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Home psp");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                },
                styles: ["/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIifQ== */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 3644:
          /*!******************************************!*\
            !*** ./src/app/login/login.component.ts ***!
            \******************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   LoginComponent: () => (/* binding */ LoginComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../auth.service */ 671);
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 5072);
          /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ 436);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 4456);
          
          
          
          
          
          
          function LoginComponent_div_16_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r0.errorMessage, " ");
            }
          }
          function LoginComponent_div_22_img_3_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 14);
            }
            if (rf & 2) {
              const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r2.qrCodeUrl, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
            }
          }
          function LoginComponent_div_22_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div")(1, "h3");
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Scan QR Code for 2FA Setup");
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, LoginComponent_div_22_img_3_Template, 1, 1, "img", 13);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.qrCodeUrl);
            }
          }
          class LoginComponent {
            constructor(authService, router, sanitizer) {
              this.authService = authService;
              this.router = router;
              this.sanitizer = sanitizer;
              this.username = '';
              this.password = '';
              this.tfacode = ''; // Polje za unos 2FA koda
              this.errorMessage = '';
              this.qrCodeUrl = null; // Sigurna URL za QR kod
              this.showQrCode = false;
            }
            sanitizeInput(input) {
              const sanitized = this.sanitizer.sanitize(1, input);
              return sanitized ?? '';
            }
            onLogin() {
              this.username = this.sanitizeInput(this.username);
              this.password = this.sanitizeInput(this.password);
              this.tfacode = this.sanitizeInput(this.tfacode);
              this.authService.authenticate(this.username, this.password, this.tfacode).subscribe({
                next: response => {
                  const token = response.headers.get('authorization');
                  if (token) {
                    this.authService.saveToken(token);
                    this.router.navigate(['/manage']);
                  } else {
                    this.errorMessage = 'Login successful but token is missing.';
                  }
                },
                error: err => {
                  if (err.status === 423) {
                    // HttpStatus.LOCKED
                    this.errorMessage = 'Your account is locked. Please try again after 5 minutes.';
                  } else if (err.status === 401) {
                    // HttpStatus.UNAUTHORIZED
                    this.errorMessage = 'Invalid username, password, or 2FA code.';
                  } else {
                    this.errorMessage = 'An unexpected error occurred.';
                  }
                  alert(this.errorMessage);
                }
              });
            }
            generateQrCode() {
              this.authService.getQrCode(this.username).subscribe({
                next: response => {
                  this.qrCodeUrl = this.sanitizer.bypassSecurityTrustUrl(`data:image/png;base64,${response}`);
                  this.showQrCode = true;
                },
                error: err => {
                  console.error('Error fetching QR code:', err);
                  this.errorMessage = 'Failed to load QR code. Make sure the username is correct.';
                }
              });
            }
            static {
              this.ɵfac = function LoginComponent_Factory(t) {
                return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__.DomSanitizer));
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: LoginComponent,
                selectors: [["app-login"]],
                decls: 23,
                vars: 5,
                consts: [[1, "login-container"], [3, "ngSubmit"], ["for", "username"], ["id", "username", "name", "username", "type", "text", "required", "", 3, "ngModel", "ngModelChange"], ["for", "password"], ["id", "password", "name", "password", "type", "password", "required", "", 3, "ngModel", "ngModelChange"], ["for", "tfacode"], ["id", "tfacode", "name", "tfacode", "type", "text", "required", "", 3, "ngModel", "ngModelChange"], ["class", "error-message", 4, "ngIf"], ["type", "submit"], [3, "click"], [4, "ngIf"], [1, "error-message"], ["alt", "QR Code", 3, "src", 4, "ngIf"], ["alt", "QR Code", 3, "src"]],
                template: function LoginComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "h2");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Login");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "form", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function LoginComponent_Template_form_ngSubmit_3_listener() {
                      return ctx.onLogin();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div")(5, "label", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Username");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "input", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_7_listener($event) {
                      return ctx.username = $event;
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div")(9, "label", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Password");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "input", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_11_listener($event) {
                      return ctx.password = $event;
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div")(13, "label", 6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "2FA Code");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "input", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_15_listener($event) {
                      return ctx.tfacode = $event;
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, LoginComponent_div_16_Template, 2, 1, "div", 8);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "button", 9);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Login");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div")(20, "button", 10);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_20_listener() {
                      return ctx.generateQrCode();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Generate QR Code");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, LoginComponent_div_22_Template, 4, 1, "div", 11);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.username);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.password);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.tfacode);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.errorMessage);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showQrCode);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgForm],
                styles: [".login-container[_ngcontent-%COMP%] {\n    max-width: 400px;\n    margin: 100px auto;\n    padding: 20px;\n    border: 1px solid #ccc;\n    border-radius: 5px;\n    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n    background-color: lightblue;\n  }\n  \n  .form-group[_ngcontent-%COMP%] {\n    margin-bottom: 15px;\n  }\n  \n  .btn[_ngcontent-%COMP%] {\n    width: 100%;\n    padding: 10px;\n  }\n  \n  .error[_ngcontent-%COMP%] {\n    color: red;\n    margin-top: 10px;\n  }\n  \n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvbG9naW4vbG9naW4uY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGdCQUFnQjtJQUNoQixrQkFBa0I7SUFDbEIsYUFBYTtJQUNiLHNCQUFzQjtJQUN0QixrQkFBa0I7SUFDbEIsdUNBQXVDO0lBQ3ZDLDJCQUEyQjtFQUM3Qjs7RUFFQTtJQUNFLG1CQUFtQjtFQUNyQjs7RUFFQTtJQUNFLFdBQVc7SUFDWCxhQUFhO0VBQ2Y7O0VBRUE7SUFDRSxVQUFVO0lBQ1YsZ0JBQWdCO0VBQ2xCIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ2luLWNvbnRhaW5lciB7XHJcbiAgICBtYXgtd2lkdGg6IDQwMHB4O1xyXG4gICAgbWFyZ2luOiAxMDBweCBhdXRvO1xyXG4gICAgcGFkZGluZzogMjBweDtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XHJcbiAgICBib3JkZXItcmFkaXVzOiA1cHg7XHJcbiAgICBib3gtc2hhZG93OiAwIDAgMTBweCByZ2JhKDAsIDAsIDAsIDAuMSk7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBsaWdodGJsdWU7XHJcbiAgfVxyXG4gIFxyXG4gIC5mb3JtLWdyb3VwIHtcclxuICAgIG1hcmdpbi1ib3R0b206IDE1cHg7XHJcbiAgfVxyXG4gIFxyXG4gIC5idG4ge1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBwYWRkaW5nOiAxMHB4O1xyXG4gIH1cclxuICBcclxuICAuZXJyb3Ige1xyXG4gICAgY29sb3I6IHJlZDtcclxuICAgIG1hcmdpbi10b3A6IDEwcHg7XHJcbiAgfVxyXG4gICJdLCJzb3VyY2VSb290IjoiIn0= */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 1224:
          /*!******************************************************************!*\
            !*** ./src/app/options-managment/options-managment.component.ts ***!
            \******************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   OptionsManagmentComponent: () => (/* binding */ OptionsManagmentComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _payment_options_service_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../payment-options-service.service */ 5276);
          /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 671);
          /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 5072);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 4456);
          
          
          
          
          
          
          function OptionsManagmentComponent_tr_14_Template(rf, ctx) {
            if (rf & 1) {
              const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr")(1, "td");
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td")(4, "button", 5);
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function OptionsManagmentComponent_tr_14_Template_button_click_4_listener() {
                const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4);
                const i_r2 = restoredCtx.index;
                const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r3.removePaymentOption(i_r2));
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Remove");
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
            }
            if (rf & 2) {
              const option_r1 = ctx.$implicit;
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
              _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](option_r1.name);
            }
          }
          class OptionsManagmentComponent {
            constructor(paymentOptionsService, authService, router) {
              this.paymentOptionsService = paymentOptionsService;
              this.authService = authService;
              this.router = router;
              this.paymentOptions = [];
              this.newOptionName = '';
            }
            ngOnInit() {
              this.loadPaymentOptions();
            }
            loadPaymentOptions() {
              this.paymentOptionsService.getAllOptions().subscribe(options => {
                this.paymentOptions = options;
              });
            }
            addPaymentOption() {
              if (this.newOptionName.trim()) {
                const newOption = {
                  name: this.newOptionName.trim()
                };
                this.paymentOptionsService.addPaymentOption(newOption).subscribe(option => {
                  this.paymentOptions.push(option);
                  this.newOptionName = '';
                });
                this.loadPaymentOptions();
              }
            }
            removePaymentOption(index) {
              if (this.paymentOptions.length > 1) {
                const optionToRemove = this.paymentOptions[index];
                this.paymentOptionsService.removePaymentOption(optionToRemove).subscribe(() => {
                  this.paymentOptions.splice(index, 1);
                });
              } else {
                alert('Last payment option cannot be removed!');
              }
            }
            logout() {
              this.authService.logout();
              this.router.navigate(['/login']);
            }
            static {
              this.ɵfac = function OptionsManagmentComponent_Factory(t) {
                return new (t || OptionsManagmentComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_payment_options_service_service__WEBPACK_IMPORTED_MODULE_0__.PaymentOptionsServiceService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.Router));
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
                type: OptionsManagmentComponent,
                selectors: [["app-options-managment"]],
                decls: 19,
                vars: 2,
                consts: [[2, "display", "flex", "justify-content", "flex-end", "padding", "10px"], [2, "background-color", "#007bff", "color", "white", "border", "none", "padding", "10px 20px", "cursor", "pointer", "font-size", "14px", "border-radius", "5px", 3, "click"], ["border", "1"], [4, "ngFor", "ngForOf"], ["placeholder", "New payment option name", 3, "ngModel", "ngModelChange"], [3, "click"]],
                template: function OptionsManagmentComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "div", 0)(2, "button", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function OptionsManagmentComponent_Template_button_click_2_listener() {
                      return ctx.logout();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Logout ");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "h2");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Payment Options");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "table", 2)(7, "thead")(8, "tr")(9, "th");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Name");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Actions");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "tbody");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, OptionsManagmentComponent_tr_14_Template, 6, 1, "tr", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div")(16, "input", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function OptionsManagmentComponent_Template_input_ngModelChange_16_listener($event) {
                      return ctx.newOptionName = $event;
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function OptionsManagmentComponent_Template_button_click_17_listener() {
                      return ctx.addPaymentOption();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Add New Option");
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.paymentOptions);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.newOptionName);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel],
                styles: ["\n\ntable[_ngcontent-%COMP%] {\n    width: 30%;  \n\n    margin: 20px auto;  \n\n    border-collapse: collapse;  \n\n  }\n\n  h2[_ngcontent-%COMP%]{\n    color: white;\n    text-align: center;\n    margin-top: 10%;\n  }\n  \n  \n\n  th[_ngcontent-%COMP%] {\n    background-color: #f2f2f2;  \n\n    padding: 10px;  \n\n    text-align: left;  \n\n  }\n  \n  \n\n  td[_ngcontent-%COMP%] {\n    padding: 8px;  \n\n    border-bottom: 1px solid #ddd;  \n\n  }\n  \n  \n  \n\n  tr[_ngcontent-%COMP%] {\n    background-color: #d1e7ff;  \n\n  }\n  \n  \n\n  button[_ngcontent-%COMP%] {\n    padding: 5px 10px;  \n\n    background-color: blue;  \n\n    color: white;  \n\n    border: none;  \n\n    cursor: pointer;  \n\n  }\n  \n  button[_ngcontent-%COMP%]:hover {\n    background-color: blue;  \n\n  }\n  \n  \n\n  input[_ngcontent-%COMP%] {\n    padding: 8px;\n    margin-top: 10px;\n    width: 90%;  \n\n    border: 1px solid #ddd;  \n\n    border-radius: 4px;  \n\n    width: 30%;\n    align-items: center;\n    margin-left: 35%;\n  }\n  \n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvb3B0aW9ucy1tYW5hZ21lbnQvb3B0aW9ucy1tYW5hZ21lbnQuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxtQ0FBbUM7QUFDbkM7SUFDSSxVQUFVLEdBQUcsK0NBQStDO0lBQzVELGlCQUFpQixHQUFHLHNDQUFzQztJQUMxRCx5QkFBeUIsR0FBRyw0Q0FBNEM7RUFDMUU7O0VBRUE7SUFDRSxZQUFZO0lBQ1osa0JBQWtCO0lBQ2xCLGVBQWU7RUFDakI7O0VBRUEsa0NBQWtDO0VBQ2xDO0lBQ0UseUJBQXlCLEdBQUcsa0NBQWtDO0lBQzlELGFBQWEsR0FBRyx1Q0FBdUM7SUFDdkQsZ0JBQWdCLEdBQUcsOEJBQThCO0VBQ25EOztFQUVBLGlDQUFpQztFQUNqQztJQUNFLFlBQVksR0FBRyxvQ0FBb0M7SUFDbkQsNkJBQTZCLEdBQUcsb0NBQW9DO0VBQ3RFOzs7RUFHQSwyQ0FBMkM7RUFDM0M7SUFDRSx5QkFBeUIsR0FBRyxzQ0FBc0M7RUFDcEU7O0VBRUEseUJBQXlCO0VBQ3pCO0lBQ0UsaUJBQWlCLEdBQUcsMkNBQTJDO0lBQy9ELHNCQUFzQixHQUFHLHlCQUF5QjtJQUNsRCxZQUFZLEdBQUcsK0JBQStCO0lBQzlDLFlBQVksR0FBRyxxQkFBcUI7SUFDcEMsZUFBZSxHQUFHLGdDQUFnQztFQUNwRDs7RUFFQTtJQUNFLHNCQUFzQixHQUFHLHVDQUF1QztFQUNsRTs7RUFFQSw0QkFBNEI7RUFDNUI7SUFDRSxZQUFZO0lBQ1osZ0JBQWdCO0lBQ2hCLFVBQVUsR0FBRyx5Q0FBeUM7SUFDdEQsc0JBQXNCLEdBQUcsd0NBQXdDO0lBQ2pFLGtCQUFrQixHQUFHLGlDQUFpQztJQUN0RCxVQUFVO0lBQ1YsbUJBQW1CO0lBQ25CLGdCQUFnQjtFQUNsQiIsInNvdXJjZXNDb250ZW50IjpbIi8qIENlbnRyaXJhbmplIHRhYmVsZSBuYSBzdHJhbmljaSAqL1xyXG50YWJsZSB7XHJcbiAgICB3aWR0aDogMzAlOyAgLyogUG9zdGF2bGphbmplIMOFwqFpcmluZSB0YWJlbGUgbmEgMzAlIHN0cmFuaWNlICovXHJcbiAgICBtYXJnaW46IDIwcHggYXV0bzsgIC8qIEF1dG9tYXRza28gY2VudHJpcmFuamUgc2EgbWFyZ2luYSAqL1xyXG4gICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTsgIC8qIFVrbGFuamFuamUgcmF6bWFrYSBpem1lw4TCkXUgw4TCh2VsaWphIHRhYmVsZSAqL1xyXG4gIH1cclxuXHJcbiAgaDJ7XHJcbiAgICBjb2xvcjogd2hpdGU7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBtYXJnaW4tdG9wOiAxMCU7XHJcbiAgfVxyXG4gIFxyXG4gIC8qIFN0aWxpem92YW5qZSB6YWdsYXZsamEgdGFiZWxlICovXHJcbiAgdGgge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2YyZjJmMjsgIC8qIFN2ZXRsbyBzaXZhIGJvamEgemEgemFnbGF2bGplICovXHJcbiAgICBwYWRkaW5nOiAxMHB4OyAgLyogRG9kYXZhbmplIHJhem1ha2EgdW51dGFyIHphZ2xhdmxqYSAqL1xyXG4gICAgdGV4dC1hbGlnbjogbGVmdDsgIC8qIFBvcmF2bmF2YW5qZSB0ZWtzdGEgdWxldm8gKi9cclxuICB9XHJcbiAgXHJcbiAgLyogU3RpbGl6b3ZhbmplIMOEwodlbGlqYSB1IHRhYmVsaSAqL1xyXG4gIHRkIHtcclxuICAgIHBhZGRpbmc6IDhweDsgIC8qIERvZGF2YW5qZSByYXptYWthIHVudXRhciDDhMKHZWxpamEgKi9cclxuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjZGRkOyAgLyogRG9kYXZhbmplIHN2ZXRsb2cgZG9uamVnIG9rdmlyYSAqL1xyXG4gIH1cclxuICBcclxuICBcclxuICAvKiBEb2RhdmFuamUgYm9qZSBwcmkgaG92ZXItdSBuYSByZWRvdmltYSAqL1xyXG4gIHRyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNkMWU3ZmY7ICAvKiBTdmV0bG8gcGxhdmEgcG96YWRpbmEgcHJpIGhvdmVyLXUgKi9cclxuICB9XHJcbiAgXHJcbiAgLyogU3RpbGl6b3ZhbmplIGR1Z21hZGkgKi9cclxuICBidXR0b24ge1xyXG4gICAgcGFkZGluZzogNXB4IDEwcHg7ICAvKiBEb2RhdmFuamUgcmF6bWFrYSBva28gdGVrc3RhIHUgZHVnbWV0dSAqL1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogYmx1ZTsgIC8qIFplbGVuYSBib2phIHphIGR1Z21lICovXHJcbiAgICBjb2xvcjogd2hpdGU7ICAvKiBCZWxhIGJvamEgemEgdGVrc3QgZHVnbWV0YSAqL1xyXG4gICAgYm9yZGVyOiBub25lOyAgLyogVWtsYW5qYW5qZSBpdmljYSAqL1xyXG4gICAgY3Vyc29yOiBwb2ludGVyOyAgLyogS3Vyc29yIGthbyBydWthIHByaSBob3Zlci11ICovXHJcbiAgfVxyXG4gIFxyXG4gIGJ1dHRvbjpob3ZlciB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibHVlOyAgLyogVGFtbmlqYSBuaWphbnNhIHplbGVuZSBwcmkgaG92ZXItdSAqL1xyXG4gIH1cclxuICBcclxuICAvKiBTdGlsaXphY2lqYSBpbnB1dCBwb2xqYSAqL1xyXG4gIGlucHV0IHtcclxuICAgIHBhZGRpbmc6IDhweDtcclxuICAgIG1hcmdpbi10b3A6IDEwcHg7XHJcbiAgICB3aWR0aDogOTAlOyAgLyogw4XCoGlyaW5hIGlucHV0IHBvbGphIDkwJSDDhcKhaXJpbmUgdGFiZWxlICovXHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjZGRkOyAgLyogRG9kYXZhbmplIHN2ZXRsaWggaXZpY2EgaW5wdXQgcG9sanUgKi9cclxuICAgIGJvcmRlci1yYWRpdXM6IDRweDsgIC8qIFphb2JsamVuaSB1Z2xvdmkgaW5wdXQgcG9samEgKi9cclxuICAgIHdpZHRoOiAzMCU7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgbWFyZ2luLWxlZnQ6IDM1JTtcclxuICB9XHJcbiAgIl0sInNvdXJjZVJvb3QiOiIifQ== */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 5276:
          /*!****************************************************!*\
            !*** ./src/app/payment-options-service.service.ts ***!
            \****************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   PaymentOptionsServiceService: () => (/* binding */ PaymentOptionsServiceService)
          /* harmony export */ });
          /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 6443);
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./auth.service */ 671);
          
          
          
          
          class PaymentOptionsServiceService {
            constructor(http, authService) {
              this.http = http;
              this.authService = authService;
              this.paymentOptionApiUrl = 'https://localhost:8085/api/paymentoption';
              this.responseApiUrl = 'https://localhost:8085/api/response';
            }
            getAuthHeaders() {
              const token = this.authService.getToken();
              return new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
                Authorization: `${token}`
              });
            }
            getAllOptions() {
              return this.http.get(this.paymentOptionApiUrl, {
                headers: this.getAuthHeaders()
              });
            }
            addPaymentOption(newOption) {
              return this.http.post(this.paymentOptionApiUrl, newOption, {
                headers: this.getAuthHeaders()
              });
            }
            removePaymentOption(option) {
              return this.http.delete(this.paymentOptionApiUrl, {
                headers: this.getAuthHeaders(),
                body: option
              });
            }
            getTransactionByMerchantOrderIdAndOrderId(merchantOrderId, orderId) {
              const url = `${this.responseApiUrl}/by-merchant-order-id/${merchantOrderId}/order-id/${orderId}`;
              return this.http.get(url);
            }
            static {
              this.ɵfac = function PaymentOptionsServiceService_Factory(t) {
                return new (t || PaymentOptionsServiceService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthService));
              };
            }
            static {
              this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
                token: PaymentOptionsServiceService,
                factory: PaymentOptionsServiceService.ɵfac,
                providedIn: 'root'
              });
            }
          }
          
          /***/ }),
          
          /***/ 5734:
          /*!************************************************************!*\
            !*** ./src/app/psp-client-reg/psp-client-reg.component.ts ***!
            \************************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   PspClientRegComponent: () => (/* binding */ PspClientRegComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ 436);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_material_sort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/sort */ 2047);
          /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/table */ 7697);
          /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 4456);
          
          
          
          
          
          
          
          function PspClientRegComponent_div_5_Template(rf, ctx) {
            if (rf & 1) {
              const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9)(1, "label", 10);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Enter Wallet Address:");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 11);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PspClientRegComponent_div_5_Template_input_ngModelChange_3_listener($event) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5);
                const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r4.walletAddress = $event);
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r0.walletAddress);
            }
          }
          function PspClientRegComponent_div_6_Template(rf, ctx) {
            if (rf & 1) {
              const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12)(1, "label", 13);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Enter client id:");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 14);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PspClientRegComponent_div_6_Template_input_ngModelChange_3_listener($event) {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7);
                const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r6.paypalString = $event);
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
            }
            if (rf & 2) {
              const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.paypalString);
            }
          }
          const _c0 = function (a0) {
            return {
              "selected": a0
            };
          };
          function PspClientRegComponent_td_10_Template(rf, ctx) {
            if (rf & 1) {
              const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 15);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PspClientRegComponent_td_10_Template_td_click_0_listener() {
                const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10);
                const option_r8 = restoredCtx.$implicit;
                const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r9.toggleSelection(option_r8.name));
              })("mouseover", function PspClientRegComponent_td_10_Template_td_mouseover_0_listener() {
                const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10);
                const option_r8 = restoredCtx.$implicit;
                const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r11.hoverOption = option_r8.name);
              })("mouseleave", function PspClientRegComponent_td_10_Template_td_mouseleave_0_listener() {
                _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10);
                const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r12.hoverOption = "");
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const option_r8 = ctx.$implicit;
              const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("font-size", ctx_r2.hoverOption === option_r8.name ? "1.2em" : "1em");
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c0, ctx_r2.selectedOptions.includes(option_r8.name)));
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", option_r8.name, " ");
            }
          }
          function PspClientRegComponent_tr_11_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 16);
            }
            if (rf & 2) {
              const row_r13 = ctx.$implicit;
              const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("hover", ctx_r3.hoverOption === row_r13.name);
              _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c0, ctx_r3.selectedOptions.includes(row_r13.name)));
            }
          }
          class PspClientRegComponent {
            set optionsP(value) {
              this.options = [];
              if (value) {
                const optionsArray = value.split(' ').map(option => option.trim());
                optionsArray.forEach(option => {
                  this.options.push({
                    name: option
                  });
                });
              }
            }
            constructor(sanitizer) {
              this.sanitizer = sanitizer;
              this.optionsSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
              this.options = [];
              this.displayedColumns = ['name'];
              this.selectedOptions = [];
              this.hoverOption = '';
              this.walletAddress = null;
              this.paypalString = null;
            }
            sanitizeInput(input) {
              const sanitized = this.sanitizer.sanitize(1, input);
              return sanitized ?? '';
            }
            toggleSelection(option) {
              const index = this.selectedOptions.indexOf(option);
              if (index > -1) {
                this.selectedOptions.splice(index, 1);
                if (option === 'Crypto') {
                  this.walletAddress = null;
                }
                if (option === 'PayPal') {
                  this.paypalString = null;
                }
              } else {
                this.selectedOptions.push(option);
              }
            }
            confirmSelection() {
              if (this.selectedOptions.includes('Crypto') && !this.walletAddress) {
                alert('Please enter a wallet address for Crypto.');
                return;
              }
              if (this.selectedOptions.includes('PayPal') && !this.paypalString) {
                alert('Please enter a PayPal string.');
                return;
              }
              const sanitizedWalletAddress = this.walletAddress ? this.sanitizeInput(this.walletAddress) : null;
              const sanitizedPaypalString = this.paypalString ? this.sanitizeInput(this.paypalString) : null;
              this.optionsSelected.emit({
                name: this.selectedOptions.join(','),
                clientId: null,
                walletAddress: this.selectedOptions.includes('Crypto') ? sanitizedWalletAddress : null,
                paypalClientId: this.selectedOptions.includes('PayPal') ? sanitizedPaypalString : null
              });
              alert(`Selected options: ${this.selectedOptions.join(', ')}\nWallet Address: ${sanitizedWalletAddress || 'N/A'}\nPayPal String: ${sanitizedPaypalString || 'N/A'}`);
              this.selectedOptions = [];
              this.walletAddress = null;
              this.paypalString = null;
            }
            static {
              this.ɵfac = function PspClientRegComponent_Factory(t) {
                return new (t || PspClientRegComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__.DomSanitizer));
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: PspClientRegComponent,
                selectors: [["app-psp-client-reg"]],
                inputs: {
                  optionsP: "optionsP"
                },
                outputs: {
                  optionsSelected: "optionsSelected"
                },
                decls: 12,
                vars: 5,
                consts: [[1, "psp-header"], ["mat-raised-button", "", 1, "confirm-button", 3, "disabled", "click"], ["class", "wallet-input", 4, "ngIf"], ["class", "paypal-input", "style", "display: flex; flex-direction: column; align-items: center; margin-top: 20px;", 4, "ngIf"], [1, "card-container"], ["mat-table", "", "matSort", "", 1, "options-table", 3, "dataSource"], ["matColumnDef", "name"], ["mat-cell", "", 3, "ngClass", "fontSize", "click", "mouseover", "mouseleave", 4, "matCellDef"], ["mat-row", "", 3, "ngClass", "hover", 4, "matRowDef", "matRowDefColumns"], [1, "wallet-input"], ["for", "walletAddress"], ["id", "walletAddress", "type", "text", "placeholder", "Enter wallet address", 3, "ngModel", "ngModelChange"], [1, "paypal-input", 2, "display", "flex", "flex-direction", "column", "align-items", "center", "margin-top", "20px"], ["for", "paypalString"], ["id", "paypalString", "type", "text", "placeholder", "Enter client id", 2, "width", "300px", "height", "40px", "font-size", "1.1em", "text-align", "center", "margin-top", "8px", "border-radius", "6px", "border", "1px solid #ccc", 3, "ngModel", "ngModelChange"], ["mat-cell", "", 3, "ngClass", "click", "mouseover", "mouseleave"], ["mat-row", "", 3, "ngClass"]],
                template: function PspClientRegComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "h1");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select payment options");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PspClientRegComponent_Template_button_click_3_listener() {
                      return ctx.confirmSelection();
                    });
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Confirm\n");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, PspClientRegComponent_div_5_Template, 4, 1, "div", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, PspClientRegComponent_div_6_Template, 4, 1, "div", 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4)(8, "table", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](9, 6);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, PspClientRegComponent_td_10_Template, 2, 6, "td", 7);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, PspClientRegComponent_tr_11_Template, 1, 5, "tr", 8);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.selectedOptions.length === 0 || ctx.selectedOptions.includes("PayPal") && !ctx.paypalString);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.selectedOptions.includes("Crypto"));
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.selectedOptions.includes("PayPal"));
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("dataSource", ctx.options);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRowDefColumns", ctx.displayedColumns);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _angular_material_sort__WEBPACK_IMPORTED_MODULE_3__.MatSort, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatTable, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatColumnDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatCellDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatRowDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatCell, _angular_material_table__WEBPACK_IMPORTED_MODULE_4__.MatRow, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel],
                styles: [".options-table[_ngcontent-%COMP%] {\n    border-collapse: collapse;\n    width: 50%;\n    max-width: 400vh;\n  }\n  \n  .card-container[_ngcontent-%COMP%] {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    height: 30vh;\n    width: 50%;\n    margin-left: 25%;\n    margin-bottom: 25%;\n    margin-top: 5%;\n  }\n  \n  .options-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%] {\n    cursor: pointer;\n    background-color: lightblue;\n    transition: background-color 0.3s, transform 0.2s;\n  }\n  \n  .options-table[_ngcontent-%COMP%]   tr.hover[_ngcontent-%COMP%] {\n    transform: scale(1.05);\n  }\n  \n  .options-table[_ngcontent-%COMP%]   tr.selected[_ngcontent-%COMP%] {\n    background-color: blue;\n  }\n  \n  .options-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .options-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n    padding: 10px;\n    text-align: left;\n  }\n  \n  .psp-header[_ngcontent-%COMP%] {\n    color: white;\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    height: 30vh;\n  }\n  \n  .confirm-button[_ngcontent-%COMP%] {\n    margin-left: 70%;\n    height: 5vh;\n    width: 10vh;\n    font-weight: 600;\n    background-color: lightskyblue;\n    cursor: pointer;\n  }\n  .confirm-button[_ngcontent-%COMP%]:hover{\n    transform: scale(1.01);\n    background-color: lightsteelblue;\n  }\n\n  .wallet-input[_ngcontent-%COMP%] {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    margin: 20px auto; \n\n  }\n  \n  .wallet-input[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] {\n    font-size: 1.2em;\n    color: white;\n    margin-bottom: 10px;\n  }\n  \n  .wallet-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%] {\n    width: 400px;\n    height: 40px;\n    font-size: 1.1em;\n    border: 2px solid #007BFF;\n    border-radius: 5px;\n    padding: 5px 10px;\n    outline: none;\n    transition: box-shadow 0.3s ease;\n  }\n  \n  .wallet-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus {\n    box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);\n  }\n  \n  .wallet-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder {\n    color: #B0DFFB;\n  }\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcHNwLWNsaWVudC1yZWcvcHNwLWNsaWVudC1yZWcuY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLHlCQUF5QjtJQUN6QixVQUFVO0lBQ1YsZ0JBQWdCO0VBQ2xCOztFQUVBO0lBQ0UsYUFBYTtJQUNiLHVCQUF1QjtJQUN2QixtQkFBbUI7SUFDbkIsWUFBWTtJQUNaLFVBQVU7SUFDVixnQkFBZ0I7SUFDaEIsa0JBQWtCO0lBQ2xCLGNBQWM7RUFDaEI7O0VBRUE7SUFDRSxlQUFlO0lBQ2YsMkJBQTJCO0lBQzNCLGlEQUFpRDtFQUNuRDs7RUFFQTtJQUNFLHNCQUFzQjtFQUN4Qjs7RUFFQTtJQUNFLHNCQUFzQjtFQUN4Qjs7RUFFQTtJQUNFLGFBQWE7SUFDYixnQkFBZ0I7RUFDbEI7O0VBRUE7SUFDRSxZQUFZO0lBQ1osYUFBYTtJQUNiLGtCQUFrQjtJQUNsQix1QkFBdUI7SUFDdkIsbUJBQW1CO0lBQ25CLFlBQVk7RUFDZDs7RUFFQTtJQUNFLGdCQUFnQjtJQUNoQixXQUFXO0lBQ1gsV0FBVztJQUNYLGdCQUFnQjtJQUNoQiw4QkFBOEI7SUFDOUIsZUFBZTtFQUNqQjtFQUNBO0lBQ0Usc0JBQXNCO0lBQ3RCLGdDQUFnQztFQUNsQzs7RUFFQTtJQUNFLGFBQWE7SUFDYixzQkFBc0I7SUFDdEIsbUJBQW1CO0lBQ25CLHVCQUF1QjtJQUN2QixpQkFBaUIsRUFBRSxnQkFBZ0I7RUFDckM7O0VBRUE7SUFDRSxnQkFBZ0I7SUFDaEIsWUFBWTtJQUNaLG1CQUFtQjtFQUNyQjs7RUFFQTtJQUNFLFlBQVk7SUFDWixZQUFZO0lBQ1osZ0JBQWdCO0lBQ2hCLHlCQUF5QjtJQUN6QixrQkFBa0I7SUFDbEIsaUJBQWlCO0lBQ2pCLGFBQWE7SUFDYixnQ0FBZ0M7RUFDbEM7O0VBRUE7SUFDRSwyQ0FBMkM7RUFDN0M7O0VBRUE7SUFDRSxjQUFjO0VBQ2hCIiwic291cmNlc0NvbnRlbnQiOlsiLm9wdGlvbnMtdGFibGUge1xyXG4gICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcclxuICAgIHdpZHRoOiA1MCU7XHJcbiAgICBtYXgtd2lkdGg6IDQwMHZoO1xyXG4gIH1cclxuICBcclxuICAuY2FyZC1jb250YWluZXIge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGhlaWdodDogMzB2aDtcclxuICAgIHdpZHRoOiA1MCU7XHJcbiAgICBtYXJnaW4tbGVmdDogMjUlO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMjUlO1xyXG4gICAgbWFyZ2luLXRvcDogNSU7XHJcbiAgfVxyXG4gIFxyXG4gIC5vcHRpb25zLXRhYmxlIHRyIHtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IGxpZ2h0Ymx1ZTtcclxuICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4zcywgdHJhbnNmb3JtIDAuMnM7XHJcbiAgfVxyXG4gIFxyXG4gIC5vcHRpb25zLXRhYmxlIHRyLmhvdmVyIHtcclxuICAgIHRyYW5zZm9ybTogc2NhbGUoMS4wNSk7XHJcbiAgfVxyXG4gIFxyXG4gIC5vcHRpb25zLXRhYmxlIHRyLnNlbGVjdGVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IGJsdWU7XHJcbiAgfVxyXG4gIFxyXG4gIC5vcHRpb25zLXRhYmxlIHRkLCAub3B0aW9ucy10YWJsZSB0aCB7XHJcbiAgICBwYWRkaW5nOiAxMHB4O1xyXG4gICAgdGV4dC1hbGlnbjogbGVmdDtcclxuICB9XHJcbiAgXHJcbiAgLnBzcC1oZWFkZXIge1xyXG4gICAgY29sb3I6IHdoaXRlO1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGhlaWdodDogMzB2aDtcclxuICB9XHJcbiAgXHJcbiAgLmNvbmZpcm0tYnV0dG9uIHtcclxuICAgIG1hcmdpbi1sZWZ0OiA3MCU7XHJcbiAgICBoZWlnaHQ6IDV2aDtcclxuICAgIHdpZHRoOiAxMHZoO1xyXG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IGxpZ2h0c2t5Ymx1ZTtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICB9XHJcbiAgLmNvbmZpcm0tYnV0dG9uOmhvdmVye1xyXG4gICAgdHJhbnNmb3JtOiBzY2FsZSgxLjAxKTtcclxuICAgIGJhY2tncm91bmQtY29sb3I6IGxpZ2h0c3RlZWxibHVlO1xyXG4gIH1cclxuXHJcbiAgLndhbGxldC1pbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgIG1hcmdpbjogMjBweCBhdXRvOyAvKiBDZW50cmlyYW5qZSAqL1xyXG4gIH1cclxuICBcclxuICAud2FsbGV0LWlucHV0IGxhYmVsIHtcclxuICAgIGZvbnQtc2l6ZTogMS4yZW07XHJcbiAgICBjb2xvcjogd2hpdGU7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAxMHB4O1xyXG4gIH1cclxuICBcclxuICAud2FsbGV0LWlucHV0IGlucHV0IHtcclxuICAgIHdpZHRoOiA0MDBweDtcclxuICAgIGhlaWdodDogNDBweDtcclxuICAgIGZvbnQtc2l6ZTogMS4xZW07XHJcbiAgICBib3JkZXI6IDJweCBzb2xpZCAjMDA3QkZGO1xyXG4gICAgYm9yZGVyLXJhZGl1czogNXB4O1xyXG4gICAgcGFkZGluZzogNXB4IDEwcHg7XHJcbiAgICBvdXRsaW5lOiBub25lO1xyXG4gICAgdHJhbnNpdGlvbjogYm94LXNoYWRvdyAwLjNzIGVhc2U7XHJcbiAgfVxyXG4gIFxyXG4gIC53YWxsZXQtaW5wdXQgaW5wdXQ6Zm9jdXMge1xyXG4gICAgYm94LXNoYWRvdzogMCAwIDEwcHggcmdiYSgwLCAxMjMsIDI1NSwgMC43KTtcclxuICB9XHJcbiAgXHJcbiAgLndhbGxldC1pbnB1dCBpbnB1dDo6cGxhY2Vob2xkZXIge1xyXG4gICAgY29sb3I6ICNCMERGRkI7XHJcbiAgfSJdLCJzb3VyY2VSb290IjoiIn0= */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 7654:
          /*!************************************************!*\
            !*** ./src/app/psp-form/psp-form.component.ts ***!
            \************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   PspFormComponent: () => (/* binding */ PspFormComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 7580);
          /* harmony import */ var _payment_options_service_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../payment-options-service.service */ 5276);
          /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 316);
          /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/table */ 7697);
          
          
          
          
          
          const _c0 = function (a0) {
            return {
              "selected-row": a0
            };
          };
          function PspFormComponent_td_6_Template(rf, ctx) {
            if (rf & 1) {
              const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td", 6);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PspFormComponent_td_6_Template_td_click_0_listener() {
                const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4);
                const element_r2 = restoredCtx.$implicit;
                const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
                return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r3.selectCard(element_r2));
              });
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
            }
            if (rf & 2) {
              const element_r2 = ctx.$implicit;
              const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c0, ctx_r0.selectedRow === element_r2));
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", element_r2.name, " ");
            }
          }
          function PspFormComponent_tr_7_Template(rf, ctx) {
            if (rf & 1) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "tr", 7);
            }
          }
          class PspFormComponent {
            constructor(paymentOptionsService) {
              this.paymentOptionsService = paymentOptionsService;
              this.paymentMethodSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
              this.selectedRow = null;
              this.header = "Choose one payment method";
              this.cards = [];
              this._paymentOptions = '';
              this.displayedColumns = ['name'];
            }
            ngOnInit() {
              this.selectedRow = null;
            }
            set paymentOptions(value) {
              this._paymentOptions = value;
              this.updateCards();
            }
            get paymentOptions() {
              return this._paymentOptions;
            }
            selectCard(card) {
              if (this.selectedRow === card) {
                return;
              }
              this.selectedRow = card;
              alert('chosen payment method : ' + card.name);
              const jsonString = this._paymentOptions.replace(/'/g, '"').replace(/(\w+)=/g, '"$1":');
              const data = JSON.parse(jsonString);
              this.paymentMethodSelected.emit({
                name: card.name,
                orderid: data.orderId,
                merchantid: data.merchantId
              });
              this.selectedRow = null;
            }
            updateCards() {
              this.cards = [];
              if (this.paymentOptions.includes("Card")) this.cards.push({
                name: 'Card',
                id: '1'
              });
              if (this.paymentOptions.includes("QR")) this.cards.push({
                name: 'QR Code',
                id: '2'
              });
              if (this.paymentOptions.includes("PayPal")) this.cards.push({
                name: 'PayPal',
                id: '3'
              });
              if (this.paymentOptions.includes("Crypto")) this.cards.push({
                name: 'Crypto',
                id: '4'
              });
            }
            getFilteredCards() {
              return this.selectedRow ? [this.selectedRow] : this.cards;
            }
            static {
              this.ɵfac = function PspFormComponent_Factory(t) {
                return new (t || PspFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_payment_options_service_service__WEBPACK_IMPORTED_MODULE_0__.PaymentOptionsServiceService));
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
                type: PspFormComponent,
                selectors: [["app-psp-form"]],
                inputs: {
                  paymentOptions: "paymentOptions"
                },
                outputs: {
                  paymentMethodSelected: "paymentMethodSelected"
                },
                decls: 8,
                vars: 3,
                consts: [[1, "psp-header"], [1, "card-container"], ["mat-table", "", 1, "mat-elevation-z8", "centered-table", 3, "dataSource"], ["matColumnDef", "name"], ["mat-cell", "", 3, "ngClass", "click", 4, "matCellDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["mat-cell", "", 3, "ngClass", "click"], ["mat-row", ""]],
                template: function PspFormComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "h1");
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 1)(4, "table", 2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](5, 3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PspFormComponent_td_6_Template, 2, 4, "td", 4);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, PspFormComponent_tr_7_Template, 1, 0, "tr", 5);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
                  }
                  if (rf & 2) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.header);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("dataSource", ctx.getFilteredCards());
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
                    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("matRowDefColumns", ctx.displayedColumns);
                  }
                },
                dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatTable, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatColumnDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatCellDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatRowDef, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatCell, _angular_material_table__WEBPACK_IMPORTED_MODULE_3__.MatRow],
                styles: [".card-container[_ngcontent-%COMP%] {\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    height: 30vh;\n    width: 50%;\n    margin-left: 25%;\n    margin-bottom: 35%;\n  }\n  \n  .psp-header[_ngcontent-%COMP%] {\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    height: 30vh;\n  }\n  \n  h1[_ngcontent-%COMP%] {\n    color: white;\n    text-align: center;\n    align-content: center;\n  }\n  \n  .centered-table[_ngcontent-%COMP%] {\n    width: 50%;\n  }\n  \n  table[_ngcontent-%COMP%] {\n    width: 50%;\n    max-width: 400px;\n  }\n  \n  tr[_ngcontent-%COMP%] {\n    text-align: center;\n    cursor: pointer;\n    transition: transform 0.3s ease;\n    background-color: lightblue;\n  }\n  \n  tr[_ngcontent-%COMP%]:hover {\n    transform: scale(1.05);\n  }\n  \n\n  .selected-row[_ngcontent-%COMP%] {\n    background-color: #2196f3; \n    color: white;\n    cursor: default;\n  }\n  tr.selected[_ngcontent-%COMP%]:hover {\n    transform: none;  \n  }\n  \n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvcHNwLWZvcm0vcHNwLWZvcm0uY29tcG9uZW50LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLGFBQWE7SUFDYixrQkFBa0I7SUFDbEIsdUJBQXVCO0lBQ3ZCLG1CQUFtQjtJQUNuQixZQUFZO0lBQ1osVUFBVTtJQUNWLGdCQUFnQjtJQUNoQixrQkFBa0I7RUFDcEI7O0VBRUE7SUFDRSxhQUFhO0lBQ2Isa0JBQWtCO0lBQ2xCLHVCQUF1QjtJQUN2QixtQkFBbUI7SUFDbkIsWUFBWTtFQUNkOztFQUVBO0lBQ0UsWUFBWTtJQUNaLGtCQUFrQjtJQUNsQixxQkFBcUI7RUFDdkI7O0VBRUE7SUFDRSxVQUFVO0VBQ1o7O0VBRUE7SUFDRSxVQUFVO0lBQ1YsZ0JBQWdCO0VBQ2xCOztFQUVBO0lBQ0Usa0JBQWtCO0lBQ2xCLGVBQWU7SUFDZiwrQkFBK0I7SUFDL0IsMkJBQTJCO0VBQzdCOztFQUVBO0lBQ0Usc0JBQXNCO0VBQ3hCOzs7RUFHQTtJQUNFLHlCQUF5QjtJQUN6QixZQUFZO0lBQ1osZUFBZTtFQUNqQjtFQUNBO0lBQ0UsZUFBZTtFQUNqQiIsInNvdXJjZXNDb250ZW50IjpbIi5jYXJkLWNvbnRhaW5lciB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgaGVpZ2h0OiAzMHZoO1xyXG4gICAgd2lkdGg6IDUwJTtcclxuICAgIG1hcmdpbi1sZWZ0OiAyNSU7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAzNSU7XHJcbiAgfVxyXG4gIFxyXG4gIC5wc3AtaGVhZGVyIHtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICBoZWlnaHQ6IDMwdmg7XHJcbiAgfVxyXG4gIFxyXG4gIGgxIHtcclxuICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxuICAgIGFsaWduLWNvbnRlbnQ6IGNlbnRlcjtcclxuICB9XHJcbiAgXHJcbiAgLmNlbnRlcmVkLXRhYmxlIHtcclxuICAgIHdpZHRoOiA1MCU7XHJcbiAgfVxyXG4gIFxyXG4gIHRhYmxlIHtcclxuICAgIHdpZHRoOiA1MCU7XHJcbiAgICBtYXgtd2lkdGg6IDQwMHB4O1xyXG4gIH1cclxuICBcclxuICB0ciB7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4zcyBlYXNlO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogbGlnaHRibHVlO1xyXG4gIH1cclxuICBcclxuICB0cjpob3ZlciB7XHJcbiAgICB0cmFuc2Zvcm06IHNjYWxlKDEuMDUpO1xyXG4gIH1cclxuICBcclxuXHJcbiAgLnNlbGVjdGVkLXJvdyB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjE5NmYzOyBcclxuICAgIGNvbG9yOiB3aGl0ZTtcclxuICAgIGN1cnNvcjogZGVmYXVsdDtcclxuICB9XHJcbiAgdHIuc2VsZWN0ZWQ6aG92ZXIge1xyXG4gICAgdHJhbnNmb3JtOiBub25lOyAgXHJcbiAgfVxyXG4gICJdLCJzb3VyY2VSb290IjoiIn0= */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 9720:
          /*!********************************************************!*\
            !*** ./src/app/success-page/success-page.component.ts ***!
            \********************************************************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony export */ __webpack_require__.d(__webpack_exports__, {
          /* harmony export */   SuccessPageComponent: () => (/* binding */ SuccessPageComponent)
          /* harmony export */ });
          /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 7580);
          
          class SuccessPageComponent {
            static {
              this.ɵfac = function SuccessPageComponent_Factory(t) {
                return new (t || SuccessPageComponent)();
              };
            }
            static {
              this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
                type: SuccessPageComponent,
                selectors: [["app-success-page"]],
                decls: 4,
                vars: 0,
                template: function SuccessPageComponent_Template(rf, ctx) {
                  if (rf & 1) {
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "SUCCESS");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "\uD83D\uDE42");
                    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
                  }
                },
                styles: ["div[_ngcontent-%COMP%]{\n    color: green;\n    display: flex;\n    text-align: center;\n    justify-content: center;\n    align-items: center;\n    font-size: 5vh;\n    font-weight: 800;\n    margin-top: 5%;\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy9hcHAvc3VjY2Vzcy1wYWdlL3N1Y2Nlc3MtcGFnZS5jb21wb25lbnQuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0lBQ0ksWUFBWTtJQUNaLGFBQWE7SUFDYixrQkFBa0I7SUFDbEIsdUJBQXVCO0lBQ3ZCLG1CQUFtQjtJQUNuQixjQUFjO0lBQ2QsZ0JBQWdCO0lBQ2hCLGNBQWM7QUFDbEIiLCJzb3VyY2VzQ29udGVudCI6WyJkaXZ7XHJcbiAgICBjb2xvcjogZ3JlZW47XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgZm9udC1zaXplOiA1dmg7XHJcbiAgICBmb250LXdlaWdodDogODAwO1xyXG4gICAgbWFyZ2luLXRvcDogNSU7XHJcbn0iXSwic291cmNlUm9vdCI6IiJ9 */"]
              });
            }
          }
          
          /***/ }),
          
          /***/ 4429:
          /*!*********************!*\
            !*** ./src/main.ts ***!
            \*********************/
          /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
          
          __webpack_require__.r(__webpack_exports__);
          /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ 436);
          /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app/app.module */ 635);
          
          
          _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__.platformBrowser().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_0__.AppModule).catch(err => console.error(err));
          
          /***/ })
          
          },
          /******/ __webpack_require__ => { // webpackRuntimeModules
          /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
          /******/ __webpack_require__.O(0, ["vendor"], () => (__webpack_exec__(886), __webpack_exec__(4429)));
          /******/ var __webpack_exports__ = __webpack_require__.O();
          /******/ }
          ]);
          //# sourceMappingURL=main.js.map
          Evidence
          username
          Solution

          Remove all comments that return information that may help an attacker and fix any underlying problems they refer to.

      2. Re-examine Cache-control Directives (1)
        1. GET https://localhost:4201
          Alert tags
          Alert description

          The cache-control header has not been set properly or is missing, allowing the browser and proxies to cache content. For static assets like css, js, or image files this might be intended, however, the resources should be reviewed to ensure that no sensitive content will be cached.

          Request
          Request line and header section (229 bytes)
          GET https://localhost:4201 HTTP/1.1
          host: localhost:4201
          user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
          pragma: no-cache
          cache-control: no-cache
          
          
          Request body (0 bytes)
          Response
          Status line and header section (284 bytes)
          HTTP/1.1 200 OK
          X-Powered-By: Express
          Access-Control-Allow-Origin: *
          Content-Type: text/html; charset=utf-8
          Accept-Ranges: bytes
          Content-Length: 861
          ETag: W/"35d-FQAip+PMWoUCdLT6I/1rM9bv8Kg"
          Date: Fri, 18 Jul 2025 17:17:14 GMT
          Connection: keep-alive
          Keep-Alive: timeout=5
          
          
          Response body (861 bytes)
          <!doctype html>
          <html lang="en">
          <head>
            <meta charset="utf-8">
            <title>PSP</title>
            <base href="/">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="icon" type="image/x-icon" href="favicon.ico">
            <link rel="preconnect" href="https://fonts.gstatic.com">
            <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
            <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
          <link rel="stylesheet" href="styles.css"></head>
          <body class="mat-typography">
            <app-root></app-root>
          <script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="styles.js" defer></script><script src="vendor.js" type="module"></script><script src="main.js" type="module"></script></body>
          </html>
          
          Parameter
          cache-control
          Solution

          For secure content, ensure the cache-control HTTP header is set with "no-cache, no-store, must-revalidate". If an asset should be cached consider setting the directives "public, max-age, immutable".

Appendix

Alert types

This section contains additional information on the types of alerts in the report.

  1. CSP: Wildcard Directive

    Source raised by a passive scanner (CSP)
    CWE ID 693
    WASC ID 15
    Reference
    1. https://www.w3.org/TR/CSP/
    2. https://caniuse.com/#search=content+security+policy
    3. https://content-security-policy.com/
    4. https://github.com/HtmlUnit/htmlunit-csp
    5. https://developers.google.com/web/fundamentals/security/csp#policy_applies_to_a_wide_variety_of_resources
  2. Content Security Policy (CSP) Header Not Set

    Source raised by a passive scanner (Content Security Policy (CSP) Header Not Set)
    CWE ID 693
    WASC ID 15
    Reference
    1. https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy
    2. https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html
    3. https://www.w3.org/TR/CSP/
    4. https://w3c.github.io/webappsec-csp/
    5. https://web.dev/articles/csp
    6. https://caniuse.com/#feat=contentsecuritypolicy
    7. https://content-security-policy.com/
  3. Cross-Domain Misconfiguration

    Source raised by a passive scanner (Cross-Domain Misconfiguration)
    CWE ID 264
    WASC ID 14
    Reference
    1. https://vulncat.fortify.com/en/detail?id=desc.config.dotnet.html5_overly_permissive_cors_policy
  4. Directory Browsing

    Source raised by an active scanner (Directory Browsing)
    CWE ID 548
    WASC ID 48
    Reference
    1. https://httpd.apache.org/docs/mod/core.html#options
  5. Missing Anti-clickjacking Header

    Source raised by a passive scanner (Anti-clickjacking Header)
    CWE ID 1021
    WASC ID 15
    Reference
    1. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  6. Server Leaks Information via "X-Powered-By" HTTP Response Header Field(s)

    Source raised by a passive scanner (Server Leaks Information via "X-Powered-By" HTTP Response Header Field(s))
    CWE ID 200
    WASC ID 13
    Reference
    1. https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework
    2. https://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html
  7. Strict-Transport-Security Header Not Set

    Source raised by a passive scanner (Strict-Transport-Security Header)
    CWE ID 319
    WASC ID 15
    Reference
    1. https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html
    2. https://owasp.org/www-community/Security_Headers
    3. https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
    4. https://caniuse.com/stricttransportsecurity
    5. https://datatracker.ietf.org/doc/html/rfc6797
  8. X-Content-Type-Options Header Missing

    Source raised by a passive scanner (X-Content-Type-Options Header Missing)
    CWE ID 693
    WASC ID 15
    Reference
    1. https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85)
    2. https://owasp.org/www-community/Security_Headers
  9. Information Disclosure - Suspicious Comments

    Source raised by a passive scanner (Information Disclosure - Suspicious Comments)
    CWE ID 200
    WASC ID 13
  10. Modern Web Application

    Source raised by a passive scanner (Modern Web Application)
  11. Re-examine Cache-control Directives

    Source raised by a passive scanner (Re-examine Cache-control Directives)
    CWE ID 525
    WASC ID 13
    Reference
    1. https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#web-content-caching
    2. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
    3. https://grayduck.mn/2021/09/13/cache-control-recommendations/